joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423cb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x19000]
push edi
jmp 0x423cca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x423cd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x423cc0
mov eax, 1
add ebx, ebx
jne 0x423ce3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x423cd8
jne 0x423cf4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x423cd8
xor ecx, ecx
sub eax, 3
jb 0x423d08
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x423d7a
mov ebp, eax
add ebx, ebx
jne 0x423d13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x423d20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x423d44
inc ecx
add ebx, ebx
jne 0x423d30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x423d25
jne 0x423d41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x423d25
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x423d64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x423d55
jmp 0x423cc6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x423d64
add edi, ecx
jmp 0x423cc6
pop esi
mov edi, esi
mov ecx, 0x225
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x423d82
cmp byte [edi], 5
jne 0x423d82
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x423d87
lea edi, [esi + 0x21000]
mov eax, dword [edi]
or eax, eax
je 0x423dff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x23fec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x24028]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x423db4
mov ecx, edi
jns 0x423de3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x24030]
or eax, eax
je 0x423df9
mov dword [ebx], eax
add ebx, 4
jmp 0x423dd1
call dword [esi + 0x2402c]
mov ebp, dword [esi + 0x24034]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x423e33
sub esp, 0xffffff80
jmp 0x402bf0

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x40563b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40a020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00402fd6
and dword [ebp - 0x14], 0
cmp dword [0x40b7d8], 0
mov dword [ebp - 0x18], eax
jne 0x4056ee
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405796
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405796
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40b7d8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40b7dc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40b7e0], eax
call edi
push eax
call esi
mov dword [0x40b7e8], eax
test eax, eax
je 0x4056ee
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40b7e4], eax
mov eax, dword [0x40b7e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405747
cmp dword [0x40b7e8], ecx
je 0x405747
push eax
call esi
push dword [0x40b7e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405747
test ebx, ebx
je 0x405747
call edi
test eax, eax
je 0x40573e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40573e
test byte [ebp - 8], 1
jne 0x405747
or dword [ebp + 0x10], 0x200000
jmp 0x40577a
mov eax, dword [0x40b7dc]
cmp eax, dword [ebp - 0x18]
je 0x40577a
push eax
call esi
test eax, eax
je 0x40577a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40577a
mov eax, dword [0x40b7e0]
cmp eax, dword [ebp - 0x18]
je 0x40577a
push eax
call esi
test eax, eax
je 0x40577a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40b7d8]
call esi
test eax, eax
je 0x405796
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405798
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040239a
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x1f1477cf
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
mov ecx, 0x3ad5402e
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x40170b
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 8
mov eax, 0x41aee6
call fcn.0040d846
mov dword [ebp - 4], 1
xor edi, edi
lea esi, [ebp + 8]
mov dword [ebp - 0x10], edi
call fcn.00404d10
push edi
push 0x80
push 2
push edi
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401761
lea esi, [ebp + 8]
call fcn.00404440
lea esi, [ebp + 0x2c]
call fcn.00404440
mov eax, edi
call fcn.0040d8e5
ret
lea esi, [ebp + 0x2c]
call fcn.00404d10
push eax
movzx eax, word [ebp + 0x28]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
lea ecx, [ebp - 0x10]
push ecx
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
inc edi
jmp 0x401749
Function at 0x401a6d
Capabilities:
Create process on windows

Disassembly:
push 0x5c
mov eax, 0x41b1a0
call fcn.0040d846
push 0x41f16c
lea eax, [ebp + 8]
push eax
mov dword [ebp - 4], 1
call fcn.00404a30
sub esp, 0x20
lea ebx, [ebp + 0x28]
mov esi, esp
mov dword [ebp - 0x10], esp
call fcn.004043b0
lea ebx, [ebp + 8]
call fcn.00404850
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.00410200
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x68], esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x401ade
mov bl, 1
lea esi, [ebp + 8]
call fcn.00404440
lea esi, [ebp + 0x28]
call fcn.00404440
mov al, bl
call fcn.0040d8e5
ret

Function at 0x401af6
Capabilities:
Set registry value

Disassembly:
push 0xc
mov eax, 0x41aebb
call fcn.0040d846
and dword [ebp - 4], 0
lea esi, [ebp + 8]
call fcn.00404d10
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x10]
push ecx
mov ebx, 0xf003f
push ebx
push 0
push eax
mov edi, 0x80000001
push edi
mov dword [ebp - 0x14], eax
call esi
test eax, eax
jne 0x401b57
mov eax, dword [ebp + 0x2c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401b36
sub eax, edx
sar eax, 1
add eax, eax
push eax
push dword [ebp + 0x2c]
push 1
push 0
push dword [ebp + 0x28]
push dword [ebp - 0x10]
jmp 0x401b9f
lea eax, [ebp - 0x10]
push eax
push ebx
push 0
push 0x41f170
push edi
call esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x401bb2
mov eax, dword [ebp + 0x2c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401b80
sub eax, edx
sar eax, 1
add eax, eax
push eax
push dword [ebp + 0x2c]
push 1
push 0
push dword [ebp + 0x28]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x401bb2
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [ebp + 8]
call fcn.00404440
call fcn.0040d8e5
ret
Function at 0x401bc9
Capabilities:
Set registry value

Disassembly:
push 0xc
mov eax, 0x41ae98
call fcn.0040d846
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x30]
lea esi, [ebp + 0xc]
mov dword [ebp - 0x10], eax
call fcn.00404d10
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp + 0x30]
push ecx
mov edi, 0xf003f
push edi
push ebx
push eax
push dword [ebp + 8]
mov dword [ebp - 0x14], eax
call esi
test eax, eax
jne 0x401c17
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push ebx
push dword [ebp + 0x2c]
push dword [ebp + 0x30]
jmp 0x401c4a
lea eax, [ebp + 0x30]
push eax
push edi
push ebx
push 0x41f170
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
push dword [ebp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x401c5d
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push ebx
push dword [ebp + 0x2c]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x401c5d
push dword [ebp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [ebp + 0xc]
call fcn.00404440
call fcn.0040d8e5
ret

Function at 0x401ce3
Capabilities:
Get user security identifier

Disassembly:
push 0x1c
mov eax, 0x41addc
call fcn.0040d879
xor esi, esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
push esi
xor ebx, ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x20], esi
call edi
test eax, eax
jne 0x401d78
push dword [ebp - 0x18]
call fcn.0040be61
mov ebx, eax
mov eax, dword [ebp - 0x14]
add eax, eax
push eax
mov dword [ebp - 0x28], ebx
call fcn.0040be61
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
cmp ebx, esi
je 0x401d5d
cmp eax, esi
je 0x401d5d
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp + 8]
push esi
call edi
test eax, eax
jne 0x401d64
push esi
push esi
call fcn.0040f1bb
mov dword [ebp - 0x20], 1
jmp 0x401d78
cmp dword [ebp - 0x1c], esi
je 0x401d86
push dword [ebp - 0x1c]
call fcn.0040b816
pop ecx
cmp dword [ebp - 0x20], esi
jne 0x401d98
cmp ebx, esi
je 0x401d9d
push ebx
call fcn.0040b816
pop ecx
jmp 0x401d9d
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
cmp dword [ebp - 0x20], esi
setne al
call fcn.0040d8e5
ret
Function at 0x401da9
Capabilities:
Check os version
Get session user name

Disassembly:
push 0x23c
mov eax, 0x41b27c
call fcn.0040d8af
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 0x128], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x118], 2
jne 0x401f0d
cmp dword [ebp - 0x124], 5
jne 0x401dff
cmp dword [ebp - 0x120], 1
je 0x401f0d
cmp dword [ebp - 0x120], 2
je 0x401f0d
push 3
push str.2500
sub esp, 0x20
mov ebx, str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZones3
mov esi, esp
mov dword [ebp - 0x220], esp
call fcn.00404280
push 0x80000001
call fcn.00401bc9
add esp, 0x2c
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.00410200
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x224], 0x7d0
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
and dword [ebp - 0x21c], 0
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00401ce3
pop ecx
pop ecx
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidA]
sub esp, 0x20
mov ebx, str.SoftwareMicrosoftInternet_ExplorerMain
mov esi, esp
mov dword [ebp - 0x21c], esp
call fcn.00404320
and dword [ebp - 4], 0
mov ebx, dword [ebp - 0x220]
sub esp, 0x20
mov esi, esp
mov dword [ebp - 0x228], esp
call fcn.00404320
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x248]
push eax
call fcn.00401c74
add esp, 0x44
push 1
push str.NoProtectedModeBanner
sub esp, 0x20
lea ebx, [ebp - 0x248]
mov esi, esp
mov dword [ebp - 4], 1
mov dword [ebp - 0x228], esp
call fcn.004043b0
push 0x80000003
call fcn.00401bc9
add esp, 0x2c
mov esi, ebx
call fcn.00404440
call fcn.0040d8f9
ret

Function at 0x4025e6
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4244a4]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
push ebx
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov esi, ecx
call fcn.00410200
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x210], 0x7d0
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea ebx, [ebp - 0x20c]
call fcn.00404280
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b297
leave
ret

Function at 0x40265b
Capabilities:
Get common file path
Get session user name

Disassembly:
push 0x320
mov eax, 0x41ae68
call fcn.0040d8af
and dword [ebp - 0x324], 0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x31c], ax
lea eax, [ebp - 0x31a]
mov esi, ecx
push eax
mov dword [ebp - 0x32c], esi
call fcn.00410200
add esp, 0xc
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x31c]
push eax
mov dword [ebp - 0x328], 0x7d0
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0x104
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, esi
call fcn.00404120
and dword [ebp - 4], 0
mov al, byte [ebp - 0x114]
mov byte [ebp - 0x320], al
lea eax, [ebp - 0x320]
push eax
mov dword [ebp - 0x324], 1
mov byte [ebp - 0x31f], 0
call fcn.00404490
mov eax, esi
call fcn.0040d8f9
ret
Function at 0x402943
Capabilities:
Delete file

Disassembly:
push 4
mov eax, 0x41b461
call fcn.0040d846
sub esp, 0x20
lea ebx, [ebp + 8]
mov esi, esp
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], esp
call fcn.004043b0
call fcn.00405290
add esp, 0x20
lea esi, [ebp + 0x28]
call fcn.00404c70
mov esi, ebx
mov edi, eax
call fcn.00404c70
push edi
mov ecx, eax
call fcn.0040594e
pop ecx
call fcn.00404d10
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00404440
lea esi, [ebp + 0x28]
call fcn.00404440
call fcn.0040d8e5
ret

Function at 0x402ed4
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x41afe4
call fcn.0040d8af
mov ebx, dword [ebp + 8]
or esi, 0xffffffff
mov edi, ecx
cmp ebx, esi
jne 0x402ef6
xor eax, eax
call fcn.0040d8f9
ret 4
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x402f1c
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x402f1c
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 1]
mov dword [edi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x402eee
cmp dword [edi + 0x54], 0
jne 0x402f26
mov eax, esi
jmp 0x402eee
mov eax, edi
call fcn.0040387b
cmp dword [edi + 0x44], 0
jne 0x402f49
push dword [edi + 0x54]
movsx eax, bl
push eax
call fcn.0040ba15
pop ecx
cmp eax, esi
pop ecx
mov eax, ebx
jne 0x402eee
jmp 0x402f22
lea esi, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
call fcn.00403569
and dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x402ff7
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
mov ebx, dword [ebp - 0x1c]
add ebx, eax
push ebx
push edx
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x2d]
push eax
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x14]
test eax, eax
js 0x40301f
cmp eax, 1
jg 0x402fff
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x402fa6
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, eax
je 0x402fcc
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x402fb9
lea eax, [ebp - 0x2c]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.0040c305
add esp, 0x10
cmp esi, eax
jne 0x40301f
lea eax, [ebp - 0x2d]
mov byte [edi + 0x49], 1
cmp dword [ebp - 0x38], eax
jne 0x40301a
test esi, esi
jne 0x402f58
cmp dword [ebp - 0x1c], 0x20
jae 0x40301f
push esi
push 8
pop ebx
lea esi, [ebp - 0x2c]
call fcn.004035ad
jmp 0x402f58
mov edx, dword [ebp - 0x2c]
jmp 0x402f6a
cmp eax, 3
jne 0x40301f
movsx eax, byte [ebp - 0x2d]
push dword [edi + 0x54]
push eax
call fcn.0040ba15
or esi, 0xffffffff
pop ecx
pop ecx
cmp eax, esi
je 0x403022
mov esi, dword [ebp + 8]
jmp 0x403022
or esi, 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040367c
jmp 0x402f22
Function at 0x403792
Capabilities:
Write file on windows

Disassembly:
push 0x24
mov eax, 0x41b0ab
call fcn.0040d8af
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x403873
cmp byte [edi + 0x49], bl
je 0x403873
mov eax, dword [edi]
push 0xffffffffffffffff
mov ecx, edi
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4037c7
xor al, al
jmp 0x403875
lea esi, [ebp - 0x2c]
call fcn.00403569
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x403815
lea eax, [ebp - 0x2c]
mov edx, eax
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
mov ebx, dword [ebp - 0x1c]
add eax, ebx
push eax
push edx
lea eax, [edi + 0x4c]
push eax
call dword [esi + 0x18]
sub eax, 0
je 0x40381a
dec eax
je 0x40381e
dec eax
dec eax
je 0x40386f
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040367c
mov al, bl
jmp 0x403875
mov edx, dword [ebp - 0x2c]
jmp 0x4037e0
mov byte [edi + 0x49], 0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40382a
lea eax, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, eax
je 0x403850
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40383d
lea eax, [ebp - 0x2c]
push dword [edi + 0x54]
push esi
push 1
push eax
call fcn.0040c305
add esp, 0x10
cmp esi, eax
jne 0x403803
cmp byte [edi + 0x49], 0
je 0x40386f
test esi, esi
jne 0x4037d2
push esi
push 8
pop ebx
lea esi, [ebp - 0x2c]
call fcn.004035ad
jmp 0x4037d2
mov bl, 1
jmp 0x403805
mov al, 1
call fcn.0040d8f9
ret
Function at 0x404f60
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4244a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
push esi
call fcn.00404eb0
add esp, 4
cmp al, 1
jne 0x404f9b
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b297
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x210]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x404fa5
lea eax, [ebp - 0x210]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404fb8
sub eax, edx
mov cl, byte [ebp + eax - 0x211]
lea eax, [ebp + eax - 0x211]
cmp cl, 0x5c
je 0x404fd9
cmp cl, 0x2f
jne 0x404fdc
mov byte [eax], 0
lea eax, [ebp - 0x210]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404fe5
sub eax, edx
mov esi, eax
push 0x100
lea eax, [ebp - 0x108]
push 0
push eax
mov dword [ebp - 0x218], esi
call fcn.00410200
add esp, 0xc
xor ebx, ebx
test esi, esi
jle 0x4050e8
mov byte [ebp - 0x213], bl
mov al, byte [ebp + ebx - 0x210]
cmp al, 0x5c
je 0x40504f
mov byte [ebp - 0x214], al
lea eax, [ebp - 0x214]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405035
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405045
jmp 0x40509b
push 0
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x405074
push 0x80
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x214]
mov byte [ebp - 0x214], 0x5c
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405083
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x405093
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x218]
and ecx, 3
dec eax
rep movsb byte es:[edi], byte [esi]
cmp ebx, eax
jne 0x4050db
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4050db
push 0x80
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
inc ebx
cmp ebx, dword [ebp - 0x218]
jl 0x40501c
lea edx, [ebp - 0x108]
push edx
call fcn.00404eb0
xor ecx, ecx
add esp, 4
test al, al
setne cl
pop edi
pop esi
pop ebx
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040b297
mov esp, ebp
pop ebp
ret
Function at 0x405ef2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [esi]
test edi, edi
je 0x405f3a
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x405f0b
mov eax, edi
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add dword [ebp + 0xc], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x405f3f
test ecx, ecx
je 0x405f3a
test edi, edi
jne 0x405f00
xor eax, eax
pop edi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x405f3c

Function at 0x407e06
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor ecx, ecx
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x407e0e
mov dword [ecx*4 + 0x84d2e0], eax
inc ecx
cmp ecx, 0x100
jb 0x407e09
mov edx, 0x800
jmp 0x407e5b
mov eax, dword [ecx*4 + 0x84cee0]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x84d2e0]
inc ecx
mov dword [ecx*4 + 0x84d2dc], eax
cmp ecx, edx
jb 0x407e3a
mov dword [0x84c100], 0x40872e
call fcn.00408890
test eax, eax
jne 0x407e7c
mov dword [0x84c100], 0x4087ca
pop esi
ret