joyce8/EMBER2024-capa huggingface dataset:
Function at 0x432606
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x348]
sub esp, 0x348
push 0xffffffffffffffff
push 0x44b2cc
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x45e008]
xor eax, ebp
mov dword [ebp + 0x344], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [esi]
xor ebx, ebx
xor ecx, ecx
mov dword [esi + 4], ebx
mov edi, 0x114
mov word [eax], cx
cmp byte [0x4602d1], cl
jne 0x4326a7
lea eax, [ebp + 0x22c]
mov byte [ebp + 0x22c], bl
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4326be
cmp eax, edi
jae 0x4326be
lea edx, [ebp + 0x22c]
mov byte [ebp + 0x340], bl
lea ecx, [ebp - 0x1c]
call fcn.00430301
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.004310df
push dword [ebp - 0x1c]
call fcn.00419063
mov al, 1
jmp 0x432748
xor eax, eax
mov word [ebp], ax
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test esi, esi
jne 0x4326c5
xor al, al
jmp 0x432749
cmp esi, edi
jae 0x4326e2
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov word [ebp + 0x228], ax
lea eax, [ebp]
push eax
call fcn.0043104a
mov al, 1
jmp 0x432749
lea ecx, [ebp - 0x1c]
call fcn.00431026
mov dword [ebp - 4], 1
cmp esi, dword [ebp - 0x14]
jbe 0x4326ff
push esi
lea ecx, [ebp - 0x1c]
call fcn.00430a72
mov edi, dword [ebp - 0x1c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x432740
xor eax, eax
mov word [edi + esi*2], ax
mov eax, ebx
cmp word [edi], bx
je 0x432724
inc eax
cmp word [edi + eax*2], bx
jne 0x43271d
mov dword [ebp - 0x18], eax
cmp eax, ecx
jne 0x432740
lea eax, [esi - 1]
cmp eax, ecx
jne 0x432740
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.004310df
mov bl, 1
push edi
call fcn.00419063
mov al, bl
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x344]
xor ecx, ebp
call fcn.00419055
add ebp, 0x348
leave
ret

Function at 0x432777
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.00433658
cmp eax, 0xffffffff
je 0x4327a4
mov edx, eax
and dl, 0x11
cmp dl, 1
jne 0x4327a4
and eax, 0xfffffffe
mov ecx, esi
mov edx, eax
call fcn.00432adc
test al, al
je 0x4327ce
cmp byte [0x4602d1], 0
jne 0x4327d6
mov edx, esi
lea ecx, [ebp - 0xc]
call fcn.0043032a
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00419063
pop ecx
test esi, esi
jne 0x4327d2
xor al, al
jmp 0x4327e2
mov al, 1
jmp 0x4327e2
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
pop esi
leave
ret
Function at 0x43292a
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0x44b335
call fcn.00425b84
mov edi, ecx
cmp byte [0x4602d1], 0
jne 0x432976
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.0043032a
xor ebx, ebx
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.00419063
pop ecx
test esi, esi
jne 0x432984
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x432988
xor al, al
jmp 0x4329bd
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x432965
mov al, 1
jmp 0x4329bd
lea ecx, [ebp - 0x50]
call fcn.00433236
lea ecx, [ebp - 0x28]
call fcn.00431026
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.00433257
test al, al
je 0x4329b2
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.00419063
pop ecx
mov al, bl
call fcn.00425b61
ret

Function at 0x4329c3
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4602d1], 0
jne 0x4329ff
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.0043032a
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00419063
pop ecx
test esi, esi
pop esi
jne 0x4329fb
xor al, al
leave
ret
mov al, 1
leave
ret
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
leave
ret

Function at 0x432a7b
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4602d1], 0
jne 0x432ab5
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.0043032a
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00419063
pop ecx
test esi, esi
pop esi
jne 0x432ab1
xor al, al
leave
ret
mov al, 1
leave
ret
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
leave
ret

Function at 0x432adc
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4602d1], 0
push esi
mov esi, edx
jne 0x432b18
mov edx, ecx
lea ecx, [ebp - 0xc]
call fcn.0043032a
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00419063
pop ecx
test esi, esi
jne 0x432b14
xor al, al
jmp 0x432b25
mov al, 1
jmp 0x432b25
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop esi
leave
ret
Function at 0x432b86
Capabilities:
Get disk information

Disassembly:
push 0x2c
mov eax, 0x44b3a9
call fcn.00425b84
mov ebx, ecx
mov dword [ebp - 0x10], ebx
call fcn.0040146a
cmp byte [0x4602d1], 0
jne 0x432c79
mov ecx, ebx
call fcn.0040146a
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
xor ebx, ebx
push ebx
push ebx
call edi
mov esi, eax
test esi, esi
je 0x432c8b
push esi
call fcn.00419199
pop ecx
mov dword [ebp - 0x1c], eax
push eax
push esi
mov dword [ebp - 4], ebx
call edi
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
je 0x432c71
cmp edi, esi
ja 0x432c71
lea ecx, [ebp - 0x2c]
call fcn.00430f31
mov byte [ebp - 4], 1
test edi, edi
je 0x432c63
xor esi, esi
mov eax, edi
mov edi, dword [ebp - 0x1c]
inc esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
cmp byte [edi + esi - 1], 0
jne 0x432c54
lea eax, [edi + ebx]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0043113d
lea edx, [ebp - 0x2c]
mov ebx, esi
lea ecx, [ebp - 0x38]
call fcn.004302d8
mov esi, eax
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00401515
mov ecx, dword [ebp - 0x10]
push esi
call fcn.004014d6
mov byte [ebp - 4], 1
push dword [ebp - 0x38]
call fcn.00419063
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
pop ecx
inc esi
sub eax, 1
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
jne 0x432c0a
mov edi, dword [ebp - 0x20]
push dword [ebp - 0x2c]
cmp ebx, edi
sete bl
call fcn.00419063
pop ecx
push dword [ebp - 0x1c]
jmp 0x432d2f
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor ebx, ebx
push ebx
push ebx
call edi
mov esi, eax
test esi, esi
jne 0x432c92
xor al, al
jmp 0x432d37
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00419199
pop ecx
mov dword [ebp - 0x18], eax
push eax
push esi
mov dword [ebp - 4], 3
call edi
mov edi, eax
test edi, edi
je 0x432d2c
cmp edi, esi
ja 0x432d2c
lea ecx, [ebp - 0x2c]
call fcn.00431026
mov byte [ebp - 4], 4
mov edx, ebx
mov dword [ebp - 0x1c], edx
mov esi, ebx
test edi, edi
je 0x432d1e
mov eax, dword [ebp - 0x18]
push 2
pop ecx
mov dword [ebp - 0x14], ecx
inc esi
cmp word [eax + ecx - 2], bx
jne 0x432d11
add eax, edx
lea ecx, [ebp - 0x2c]
push eax
call fcn.0043104a
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], esi
call fcn.00401515
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
call fcn.004014d6
mov ecx, dword [ebp - 0x14]
mov edx, ecx
mov eax, dword [ebp - 0x18]
add ecx, 2
mov dword [ebp - 0x14], ecx
cmp esi, edi
jb 0x432cdf
mov edx, dword [ebp - 0x1c]
push dword [ebp - 0x2c]
cmp edx, edi
sete bl
call fcn.00419063
pop ecx
push dword [ebp - 0x18]
call fcn.00419063
mov al, bl
pop ecx
call fcn.00425b61
ret

Function at 0x433658
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4602d1], 0
jne 0x43368a
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.0043032a
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00419063
pop ecx
mov eax, esi
pop esi
leave
ret
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
leave
ret
Function at 0x433acb
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x433af5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x433af5
xor al, al
jmp 0x433b09
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x436de2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
push edi
cmp esi, 0xffffffff
je 0x436ebb
mov edx, dword [ecx + 0x78]
mov eax, dword [ecx + 0x7c]
lea ecx, [esp + 0x2c]
and dword [esp + 0x34], 0
add eax, dword [edx + esi*4]
mov dword [esp + 0x2c], eax
mov eax, dword [edx + esi*4 + 4]
sub eax, dword [edx + esi*4]
mov dword [esp + 0x30], eax
call fcn.00439524
mov ebx, eax
test ebx, ebx
jmp 0x436eb1
lea ecx, [esp + 0x2c]
call fcn.0043950c
mov esi, dword [esp + 0x34]
xorps xmm0, xmm0
mov ecx, dword [esp + 0x2c]
movzx ebp, al
movlpd qword [esp + 0x20], xmm0
mov edi, dword [esp + 0x24]
mov byte [esp + 0x3c], al
lea ecx, [esi + ecx]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x18], 0
and ebp, 0xf
jbe 0x436e8b
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
movzx eax, byte [esi + ebx]
shld edi, ecx, 8
cdq
shl ecx, 8
or edi, edx
or ecx, eax
inc esi
cmp esi, ebp
jb 0x436e6a
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x14]
mov al, byte [esp + 0x3c]
add esi, ebp
mov dword [esp + 0x34], esi
cmp ecx, 0x6f10701
jne 0x436e9d
test edi, edi
je 0x436ec7
test al, 0x20
je 0x436eae
lea ecx, [esp + 0x2c]
call fcn.00439524
add dword [esp + 0x34], eax
sub ebx, 1
mov dword [esp + 0x14], ebx
jne 0x436e25
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
mov al, 1
jmp 0x436ebd
Function at 0x4454ec
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push 0x11
mov esi, ecx
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, dword [esp + 8]
shr eax, 0xf
and al, 1
movzx ecx, word [edx + 0xc]
mov edx, ecx
cmp edx, 8
je 0x44552f
cmp edx, 0x52
je 0x44551e
cmp ecx, 0x76
jne 0x44552b
mov ecx, esi
call fcn.00444a1f
jmp 0x445536
test al, al
je 0x44552b
mov ecx, esi
call fcn.00444c27
jmp 0x445536
xor al, al
jmp 0x445538
mov ecx, esi
call fcn.00444bbc
mov al, 1
pop esi
ret 4
Function at 0x446bbf
Capabilities:
Get file system object information

Disassembly:
push 0x1c8
mov eax, 0x44d1f7
call fcn.00425bb7
mov ebx, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x1d4]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1b0], eax
call fcn.00431026
and dword [ebp - 4], 0
cmp byte [edi], 0
je 0x446c42
push dword [edi + 0xc]
lea ecx, [ebp - 0x1bc]
push dword [edi + 8]
call fcn.00446b3f
push eax
mov edx, 0xdb0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1ac]
call fcn.00446b82
push eax
lea ecx, [ebp - 0x1d4]
mov byte [ebp - 4], 2
call fcn.004310df
push dword [ebp - 0x1ac]
call fcn.00419063
pop ecx
mov byte [ebp - 4], 0
push dword [ebp - 0x1bc]
call fcn.00419063
pop ecx
lea eax, [edi + 0x18]
mov ecx, eax
mov dword [ebp - 0x1a0], eax
call fcn.00430580
mov esi, eax
lea eax, [edi + 0x18]
push eax
lea ecx, [esi + 1]
push ecx
lea ecx, [ebp - 0x1bc]
call fcn.0043099f
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c8]
mov eax, dword [edi + 0x18]
add eax, 2
lea eax, [eax + esi*2]
push eax
call fcn.0043118d
lea eax, [ebp - 0x1bc]
mov byte [ebp - 4], 4
push eax
mov ecx, ebx
call fcn.00446e18
lea eax, [ebp - 0x1c8]
mov ecx, ebx
push eax
call fcn.00446e18
lea eax, [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x19c]
call fcn.004310b1
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 5
call fcn.004306eb
lea eax, [ebp - 0x1c8]
push eax
lea ecx, [ebp - 0x19c]
call fcn.0043066c
lea ecx, [ebp - 0x19c]
call fcn.004306eb
lea eax, [ebp - 0x1d4]
push eax
lea ecx, [ebp - 0x19c]
call fcn.0043066c
lea ecx, [ebp - 0x19c]
call fcn.004306eb
cmp byte [edi + 1], 0
je 0x446d5f
mov edx, 0x3f4
lea ecx, [ebp - 0x1ac]
call fcn.0043488e
push eax
lea ecx, [ebp - 0x19c]
mov byte [ebp - 4], 6
call fcn.0043066c
mov byte [ebp - 4], 5
push dword [ebp - 0x1ac]
call fcn.00419063
lea ecx, [ebp - 0x19c]
mov dword [esp], 0x454820
call fcn.00430620
push 0
lea eax, [ebp - 0x30]
push eax
lea ecx, [edi + 0x10]
call fcn.004345fb
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x19c]
call fcn.00430620
push dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push dword [ebx + 4]
call edi
mov edx, dword [ebp - 0x19c]
mov ecx, eax
call fcn.00435014
mov edx, dword [ebp - 0x1a0]
lea ecx, [ebp - 0x1ac]
push 0
call fcn.004313dc
push 0x110
push 0x160
lea eax, [ebp - 0x190]
push eax
push 0x80
push dword [ebp - 0x1ac]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push dword [ebp - 0x1ac]
mov esi, eax
call fcn.00419063
pop ecx
test esi, esi
je 0x446de0
push dword [ebp - 0x1b0]
push dword [ebx + 4]
call edi
push 0
push dword [ebp - 0x190]
push 0x170
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp - 0x19c]
call fcn.00419063
pop ecx
push dword [ebp - 0x1c8]
call fcn.00419063
pop ecx
push dword [ebp - 0x1bc]
call fcn.00419063
pop ecx
push dword [ebp - 0x1d4]
call fcn.00419063
pop ecx
call fcn.00425b75
ret 0xc
Function at 0x4473a5
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 0x28
mov eax, dword [edx]
push esi
mov esi, ecx
cmp eax, dword [esi + 0xb4]
jne 0x4473d8
cmp dword [edx + 8], 0xffffff65
jne 0x4473d8
movzx eax, word [edx + 0xc]
sub eax, 0x2d
je 0x447412
sub eax, 0x14
je 0x4473df
dec eax
sub eax, 1
je 0x447412
xor al, al
pop esi
leave
ret 8
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
je 0x4473d8
push 2
pop eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x28]
push eax
push 0xffffffffffffffff
push 0x102b
push dword [esi + 0xb4]
call dword [sym.imp.USER32.dll_SendMessageA]
mov al, 1
jmp 0x4473da
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
test al, 1
je 0x4473d8
mov ecx, esi
call fcn.004472b5
jmp 0x44740e
Function at 0x4496d7
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x168
mov eax, dword [0x45e008]
xor eax, esp
mov dword [esp + 0x164], eax
test cl, cl
mov edx, 0x4011
mov eax, 0x4110
cmovne eax, edx
push eax
push 0x160
lea eax, [esp + 8]
push eax
push 0x90
push 0x453ae4
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.00419055
mov esp, ebp
pop ebp
ret

Function at 0x44972d
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2d0
mov eax, dword [0x45e008]
xor eax, esp
mov dword [esp + 0x2cc], eax
push esi
mov esi, edx
or esi, 0x80
cmp byte [0x4602d1], 0
push edi
mov edi, dword [ebp + 8]
jne 0x449790
mov edx, ecx
lea ecx, [esp + 0xc]
call fcn.0043032a
push 0x4010
push 0x160
lea ecx, [esp + 0x20]
push ecx
push esi
push dword [eax]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push dword [esp + 0xc]
mov esi, eax
call fcn.00419063
pop ecx
mov eax, esi
jmp 0x44979e
push ecx
push ecx
lea eax, [esp + 0x20]
mov edx, esi
push eax
call fcn.004496b9
mov ecx, dword [esp + 0x1c]
mov dword [edi], ecx
mov ecx, dword [esp + 0x2d4]
pop edi
pop esi
xor ecx, esp
call fcn.00419055
mov esp, ebp
pop ebp
ret 4

Function at 0x449e8b
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push edi
push eax
push ecx
mov esi, edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x449eb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x449eb7
xor al, al
jmp 0x449ec8
mov ecx, dword [ebp - 4]
xor eax, eax
add eax, edi
mov dword [esi], eax
mov al, 1
adc ecx, 0
mov dword [esi + 4], ecx
pop edi
pop esi
leave
ret
Function at 0x43534b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042708b
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x435383
xor eax, eax
jmp 0x4353af
cmp esi, dword [ebp - 4]
je 0x4353ac
cmp dword [ebp + 0xc], 0
je 0x4353ac
push dword [edi + 0x9c]
call fcn.00434f59
push dword [edi + 0x9c]
mov esi, eax
call fcn.00424fcd
pop ecx
pop ecx
cmp esi, eax
je 0x43537f
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0xb9c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00b9c1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xb9c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb9c06a
add dl, dl
jne 0xb9c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb9c0dc
xor eax, eax
add dl, dl
jne 0xb9c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb9c17d
add dl, dl
jne 0xb9c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb9c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb9c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb9c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xb9c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xb9c075
mov eax, 1
add dl, dl
jne 0xb9c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb9c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb9c0e1
sub eax, ebx
mov ebx, 1
jne 0xb9c128
mov ecx, 1
add dl, dl
jne 0xb9c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb9c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb9c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb9c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb9c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb9c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb9c136
cmp eax, 0x7d00
jae 0xb9c16d
cmp eax, 0x500
jb 0xb9c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb9c075
cmp eax, 0x7f
ja 0xb9c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb9c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xb9c19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xb9c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x404610
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.0040719c
test esi, esi
jne 0x404648
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004072d8
jmp 0x404666
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404554
mov edi, eax
test esi, esi
je 0x404666
cmp dword [ebx], 0
je 0x404666
dec esi
jmp 0x40464f
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x406474
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x580050], 0
je 0x4064d5
cmp word [0x58032c], 0xd7b2
jne 0x40649d
cmp dword [0x580334], 0
jbe 0x40649d
mov eax, 0x580328
call dword [0x580344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x406500
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x574030], 0
jne 0x4064f1
push 0
push 0x5747a0
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406680
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x574038], 0
je 0x4066a6
mov edx, esi
mov eax, ebx
call dword [0x574038]
jmp 0x4066b5
mov eax, 8
call fcn.00404238
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x580051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x406648
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc

Function at 0x407ca8
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x407cea
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x407d0a
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.004073ac
add esp, 0x41c
pop esi
pop ebx
ret
Function at 0x409228
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40938f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.0040719c
cmp si, word [0x5747e8]
jb 0x4092c2
cmp si, word [0x5749e8]
ja 0x4092c2
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4092c2
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5747e8]
jae 0x40929c
mov edi, ebx
dec edi
jmp 0x4092bd
cmp si, word [ebx*8 + 0x5747e8]
jbe 0x4092ac
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4092bd
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5747ec]
call fcn.00409138
jmp 0x4092c2
cmp edi, dword [ebp - 0xc]
jae 0x409286
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x409371
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x409371
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.004073ac
push dword [ebp - 0x164]
push 0x4093ac
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.004073ac
push dword [ebp - 0x168]
push 0x4093bc
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.004073ac
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00407764
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409396
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00407194
ret