joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46b710
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d3cbb
push eax
mov eax, 0x12b8
mov dword fs:[0], esp
call fcn.004a9610
push esi
mov esi, dword [esp + 0x12cc]
push edi
mov edi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x46b788
mov eax, dword [edi + 0xc0]
push esi
push 0x1fe
lea ecx, [esp + 0x174]
push eax
push ecx
call fcn.00472a10
mov edx, dword [0x4ed220]
mov ecx, dword [edi + 0xc4]
add esp, 0x10
lea eax, [esp + 0x16c]
push 0
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x46b93b
push 1
lea ecx, [esp + 0x10]
call fcn.004b6cd1
mov edx, dword [0x4debf4]
lea ecx, [esp + 0xc]
push edx
push 0x21
push esi
mov dword [esp + 0x12d4], 0
call fcn.004b6dc3
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
test byte [esp + ecx + 0x14], 6
jne 0x46b910
push ebx
push ebp
mov ebp, dword [esp + 0x12dc]
push 0xa
lea edx, [esp + 0x2cc]
push 0x1000
push edx
lea ecx, [esp + 0x20]
call fcn.004b6eb5
lea ecx, [esp + 0x14]
call fcn.004b6e38
cmp byte [esp + 0x2c8], 0x22
jne 0x46b812
lea eax, [esp + 0x2c9]
push 0x22
push eax
lea esi, [esp + 0x2d1]
call fcn.004a8857
add esp, 8
jmp 0x46b847
lea ecx, [esp + 0x2c8]
push 0x4f0668
push ecx
lea esi, [esp + 0x2d0]
call fcn.004a7bde
add esp, 8
test eax, eax
jne 0x46b84f
lea edx, [esp + 0x2c8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + eax + 0x2c8]
test eax, eax
je 0x46b8f3
dec eax
sub eax, esi
inc eax
je 0x46b8f3
mov ecx, eax
lea edi, [esp + 0x70]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x70], 0
lea eax, [esp + 0x70]
push eax
call fcn.00470f80
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x46b8f3
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea edx, [ecx + 1]
cmp esi, edx
jne 0x46b8e3
mov eax, dword [ebp + 0x14]
add eax, ecx
lea ecx, [eax*4 + 4]
push ecx
call fcn.004bd49b
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 4]
mov ebx, eax
lea ecx, [edx*4 + 4]
mov edi, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 4]
push eax
call fcn.004bd4c4
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
add esp, 8
add eax, ecx
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x10]
mov dword [ebp + 4], ebx
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 4]
mov dword [ecx + edx*4], eax
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 4]
test byte [esp + edx + 0x1c], 7
jne 0x46b90e
mov eax, edx
test byte [esp + eax + 0x1c], 6
je 0x46b7cc
pop ebp
pop ebx
lea ecx, [esp + 0xc]
call fcn.004b6e05
lea ecx, [esp + 0x18]
mov dword [esp + 0x12c8], 0xffffffff
call fcn.004b6d82
lea ecx, [esp + 0x18]
call fcn.004b6c58
mov eax, 1
mov ecx, dword [esp + 0x12c0]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x12c4
ret 8
Function at 0x46b980
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x2f0]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x46b9a7
mov ecx, ebx
call fcn.0049d8a0
test eax, eax
je 0x46b9a7
mov edi, ebx
jmp 0x46b9c0
mov ecx, dword [esi + 0x3d8]
test ecx, ecx
je 0x46b9c0
call fcn.0049d8a0
test eax, eax
je 0x46b9c0
mov edi, dword [esi + 0x3d8]
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov bx, ax
shr ebx, 0xf
and ebx, 1
test edi, edi
jne 0x46b9e8
test ebx, ebx
jne 0x46b9e8
mov ecx, esi
call fcn.00465950
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov ecx, dword [0x4f83ec]
mov edx, dword fs:[0x2c]
mov eax, dword [edx + ecx*4]
xor ecx, ecx
mov dl, byte [eax + 0x521]
test dl, dl
setne cl
add ecx, 4
test edi, edi
mov ebp, ecx
je 0x46ba1b
mov ecx, edi
call fcn.0049d8b0
mov dword [esp + 0x10], eax
jmp 0x46ba23
mov dword [esp + 0x10], 0
mov edx, dword [esi + 0xc8]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x46bab2
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x14], 5
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0xc8]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [esp + 0x30]
push eax
push ebp
push 0x40a
push ecx
call edi
test ebx, ebx
je 0x46ba6b
inc dword [esp + 0x30]
mov edx, dword [esi + 0xc8]
push edx
call dword [sym.imp.USER32.dll_GetDC]
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
push 0
push 0x2b
push edx
mov dword [esp + 0x50], eax
call edi
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi + 0xc8]
push eax
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov edx, dword [esi + 0xc8]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
Function at 0x46d610
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d3d18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
mov eax, dword [esp + 0x2c]
push ebx
push esi
mov esi, ecx
push edi
push eax
lea edi, [esi + 0x668]
mov ecx, edi
call fcn.0041d730
push 0x80
mov ebx, eax
mov dword [esp + 0x10], vtable.Table_class_DirEntry_.0
call fcn.004bd49b
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0x1f
mov dword [esp + 0x20], 0x40
mov dword [esp + 0xc], vtable.DirTable.0
mov ecx, dword [esi + 0x3e0]
mov edx, dword [esi + 0x3c4]
cmp ecx, edx
mov dword [esp + 0x30], 0
mov dword [esp + 0x1c], 0
jge 0x46d6b6
test ecx, ecx
jl 0x46d6b6
mov edx, dword [esi + 0x3c0]
mov ecx, dword [edx + ecx*4]
test ecx, ecx
je 0x46d6b6
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0xc4]
lea eax, [esp + 0xc]
push ebx
push eax
push ecx
mov ecx, edi
call fcn.0041d780
test eax, eax
je 0x46d6d7
push 1
mov ecx, esi
call fcn.00466210
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], 0xffffffff
test eax, eax
mov dword [esp + 0xc], vtable.Table_class_DirEntry_.0
je 0x46d71b
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
jle 0x46d71b
cmp esi, eax
jge 0x46d716
test esi, esi
jl 0x46d716
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + esi*4]
test ecx, ecx
je 0x46d716
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jl 0x46d6fd
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004bd4c4
mov ecx, dword [esp + 0x2c]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret 4

Function at 0x46d7d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x310
push esi
mov esi, ecx
mov eax, dword [esi + 0x3e0]
mov ecx, dword [esi + 0x3c4]
cmp eax, ecx
jge 0x46d8c4
test eax, eax
jl 0x46d8c4
mov ecx, dword [esi + 0x3c0]
mov ecx, dword [ecx + eax*4]
test ecx, ecx
je 0x46d8c4
push 0
push 0
lea edx, [esp + 0x218]
push 0
push edx
call fcn.00425910
test eax, eax
je 0x46d8c4
mov dx, word [0x4ede20]
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], dx
rep stosd dword es:[edi], eax
mov ecx, 0x40
lea edi, [esp + 0x112]
mov word [esp + 0x110], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x110]
lea ecx, [esp + 0x214]
push eax
push ecx
call fcn.00471240
add esp, 8
lea edx, [esp + 0x214]
lea eax, [esp + 9]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 8]
push 0x4ede20
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edx, dword [esp + 0x31c]
mov ecx, 0x4f55b0
push edx
call fcn.00450180
test eax, eax
pop edi
je 0x46d8c4
lea ecx, [esp + 0x10c]
push 5
lea edx, [esp + 8]
push ecx
push edx
push eax
mov eax, dword [esi + 0x1c]
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop esi
add esp, 0x310
ret 4
Function at 0x46f0d0
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4d3db8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push str.SoftwareACD_SystemsACDInTouch
push DrawStatusTextA
lea ecx, [esp + 0x10]
call fcn.0046fdd0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 4]
push eax
push ecx
push str.UserID
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0
mov dword [esp + 0x10], 0x10
call fcn.004701a0
neg eax
sbb eax, eax
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x24], 0xffffffff
call fcn.0046ffb0
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 4

Function at 0x46f150
Capabilities:
Create process on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f02
push 0
call edi
mov ebx, dword [sym.imp.USER32.dll_SetCursor]
push eax
call ebx
mov esi, eax
mov eax, dword [esp + 0x14]
push 1
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor ecx, ecx
cmp eax, 0x1f
setg cl
dec ecx
test esi, esi
mov ebp, ecx
je 0x46f1a0
mov eax, esi
push eax
call ebx
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret 4
push 0x7f00
push 0
call edi
push eax
call ebx
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4702b0
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebx
push ebp
push esi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x10]
push edi
mov edi, ecx
mov esi, 0x3f5
mov eax, dword [edi + 8]
test eax, eax
je 0x4702e1
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
push ebp
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov edi, dword [edi + 0xc]
test edi, edi
je 0x4702f4
test esi, esi
jne 0x4702fd
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
push ebp
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x470840
Capabilities:
Delete registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x10]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x47085a
push edi
push eax
call ebx
mov eax, dword [esi + 8]
push edi
push eax
call ebx
pop edi
pop esi
pop ebx
ret 4
Function at 0x470870
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
mov ecx, dword [esp + 0xc]
push 0x4d3ddb
mov edx, dword [esp + 0xc]
push eax
mov dword fs:[0], esp
sub esp, 0x130
lea eax, [esp]
push ebx
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor ebx, ebx
cmp eax, ebx
jne 0x470a47
push ebp
push esi
push edi
push 0x80
mov dword [esp + 0x1c], vtable.Table_char_.0
call fcn.004bd49b
mov edi, 0x1f
add esp, 4
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], 0x40
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x38]
push 0x105
push eax
push ebx
push ecx
mov dword [esp + 0x158], ebx
mov dword [esp + 0x38], 1
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x4709ae
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call fcn.004bd49b
add esp, 4
mov ebp, eax
lea eax, [esp + 0x38]
mov dword [esp + 0x34], ebp
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
test ebp, ebp
je 0x470987
lea esi, [edi + 1]
cmp ebx, esi
jne 0x47097a
lea ecx, [edi*4 + 0x104]
push ecx
call fcn.004bd49b
mov edx, dword [esp + 0x20]
mov ebp, eax
mov ecx, esi
mov esi, dword [esp + 0x20]
mov edi, ebp
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.004bd4c4
mov eax, dword [esp + 0x2c]
add esp, 8
add eax, 0x40
mov dword [esp + 0x1c], ebp
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x24], eax
mov edi, eax
mov eax, dword [esp + 0x1c]
inc ebx
mov dword [esp + 0x20], ebx
mov dword [eax + ebx*4 - 4], ebp
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x38]
inc eax
push 0x105
push ecx
push eax
push edx
mov dword [esp + 0x24], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x47090d
xor edi, edi
test ebx, ebx
jle 0x4709dd
mov ebp, dword [esp + 0x1c]
cmp edi, ebx
jge 0x4709c5
test edi, edi
jl 0x4709c5
mov eax, dword [ebp]
jmp 0x4709c7
xor eax, eax
push eax
mov eax, dword [esp + 0x14]
push eax
call fcn.00470870
add esp, 8
inc edi
add ebp, 4
cmp edi, ebx
jl 0x4709bc
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x154]
mov eax, dword [esp + 0x150]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
xor edi, edi
mov esi, eax
test ebx, ebx
mov dword [esp + 0x148], 0xffffffff
jle 0x470a35
mov ebp, dword [esp + 0x1c]
cmp edi, ebx
jge 0x470a22
test edi, edi
jl 0x470a22
mov eax, dword [ebp]
jmp 0x470a24
xor eax, eax
push eax
call fcn.004bd4c4
add esp, 4
inc edi
add ebp, 4
cmp edi, ebx
jl 0x470a19
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.004bd4c4
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x134]
pop ebx
mov dword fs:[0], ecx
add esp, 0x13c
ret
Function at 0x470b20
Capabilities:
Set registry value

Disassembly:
sub esp, 0x30
mov edx, dword [esp + 0x34]
lea eax, [esp]
lea ecx, [esp + 0x34]
push eax
push ecx
push 0
push 0x20006
push 0
push 0x4f55a8
push 0
push edx
push DrawStatusTextA
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x470b8f
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 4]
push eax
push ecx
mov dword [esp + 0xc], 0x2c
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
lea edx, [esp + 4]
push 0x2c
push edx
push 3
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x30
ret

Function at 0x470ba0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x34
lea eax, [esp + 0x38]
push esi
push eax
push 0x20019
push 0
push ecx
push DrawStatusTextA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x470bdb
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push esi
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, esi
pop esi
add esp, 0x34
ret
push edi
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov eax, 0x2c
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
lea edx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x48]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x40]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop edi
je 0x470c40
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
push esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, esi
pop esi
add esp, 0x34
ret
mov eax, dword [esp + 0x14]
cmp eax, 6
mov esi, eax
je 0x470c50
cmp eax, 2
jne 0x470c58
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x48]
cmp eax, 0xa
je 0x470c65
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowPlacement]
mov eax, esi
pop esi
add esp, 0x34
ret
Function at 0x470d90
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x4f6104]
sub esp, 0x120
test eax, eax
push ebx
push esi
push edi
jne 0x470e6f
mov ecx, 6
xor eax, eax
mov edi, 0x4f6090
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
rep stosd dword es:[edi], eax
mov dword [0x4f6090], eax
lea eax, [esp + 0x2c]
push 0x100
push eax
push 0x12
push 0x400
call esi
lea ecx, [esp + 0x2c]
push ecx
call fcn.004a95fb
add esp, 4
lea edx, [esp + 0x2c]
mov dword [0x4f6094], eax
push 0x100
push edx
push 0x10
push 0x400
call esi
lea eax, [esp + 0x2c]
push eax
call fcn.004a95fb
add esp, 4
mov dword [0x4f6098], eax
push 0xa
push 0x4f60b8
push 0xe
push 0x400
call esi
push 0xa
push 0x4f60dc
push 0xf
push 0x400
mov dword [0x4f609c], 0x4f60b8
call esi
lea ecx, [esp + 0x2c]
push 0x100
push ecx
push 0x1010
push 0x400
mov dword [0x4f60a0], 0x4f60dc
call esi
lea edx, [esp + 0x2c]
push edx
call fcn.004a95fb
add esp, 4
mov dword [0x4f60a4], eax
mov dword [0x4f6104], 1
mov ebx, dword [esp + 0x134]
mov edi, dword [esp + 0x130]
push 0
push 0x3b9aca00
push ebx
push edi
call fcn.004a8c20
mov esi, eax
or eax, edx
je 0x470eb6
push 0
push 0x3b9aca00
push ebx
push edi
call fcn.004aa650
push eax
push esi
lea ecx, [esp + 0x14]
push str._d_09d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x470eca
push edi
lea edx, [esp + 0x10]
push 0x4f07d8
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [esp + 0x13c]
mov ecx, dword [esp + 0x138]
push eax
push ecx
lea edx, [esp + 0x14]
push 0x4f6090
push edx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
pop edi
pop esi
pop ebx
add esp, 0x120
ret

Function at 0x470f00
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push esi
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x470f2f
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x14]
test eax, eax
je 0x470f43
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x470f61
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 0xc]
mov dword [edi], eax
mov dword [edi + 4], edx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x471310
Capabilities:
Get geographical location

Disassembly:
mov al, byte [0x4f6108]
sub esp, 0x50
test al, al
jne 0x471330
push 0xa
push 0x4f6108
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
push esi
push edi
test eax, eax
jg 0x471365
jl 0x471348
cmp ecx, 0x3e8
jae 0x471365
push ecx
lea eax, [esp + 0xc]
push 0x4f07d8
push eax
call fcn.004a8cca
add esp, 0xc
mov edi, 0x4f07ec
jmp 0x4713fa
test eax, eax
jg 0x4713d3
jl 0x471373
cmp ecx, 0xfa000
jae 0x47139c
fild qword [esp + 0x5c]
sub esp, 8
lea ecx, [esp + 0x10]
fmul dword [0x4daa38]
fstp qword [esp]
push str._.1f
push ecx
call fcn.004a8cca
add esp, 0x10
mov edi, 0x4ee6cc
jmp 0x4713fa
test eax, eax
jg 0x4713d3
jl 0x4713aa
cmp ecx, 0x3e800000
jae 0x4713d3
fild qword [esp + 0x5c]
sub esp, 8
lea edx, [esp + 0x10]
fmul dword [0x4daa34]
fstp qword [esp]
push str._.1f
push edx
call fcn.004a8cca
add esp, 0x10
mov edi, 0x4f07e8
jmp 0x4713fa
fild qword [esp + 0x5c]
sub esp, 8
lea eax, [esp + 0x10]
fmul dword [0x4daa30]
fstp qword [esp]
push str._.1f
push eax
call fcn.004a8cca
add esp, 0x10
mov edi, 0x4f07e4
mov cl, byte [0x4f6108]
test cl, cl
je 0x471424
cmp cl, 0x2e
je 0x471424
mov dl, byte [esp + 8]
lea eax, [esp + 8]
test dl, dl
je 0x471424
cmp byte [eax], 0x2e
jne 0x47141c
mov byte [eax], cl
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x471415
mov esi, dword [esp + 0x64]
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
pop edi
pop esi
add esp, 0x50
ret

Function at 0x4716f0
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1004
call fcn.004a9610
mov ecx, dword [esp + 0x1008]
lea eax, [esp + 0x100c]
push esi
push eax
lea edx, [esp + 0xc]
push ecx
push edx
call fcn.004aa74f
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 0xc
lea eax, [esp + 8]
push 0x4f07f4
push eax
call esi
push 0
lea ecx, [esp + 8]
push 0
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x471758
pop esi
add esp, 0x1004
ret
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push edx
push eax
call esi
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 1
pop esi
add esp, 0x1004
ret
Function at 0x4718c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x100
call fcn.004bd49b
push 0x100
mov ebx, eax
call fcn.004bd49b
mov ebp, dword [esp + 0x1c]
add esp, 8
mov esi, eax
push ebp
push ebx
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x4ed924
push ebx
call fcn.004a88ee
mov cx, word [ebp]
mov edi, eax
mov eax, 0x4ed920
add esp, 8
cmp cx, word [eax]
jne 0x47192a
push edi
push 0x4ed918
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x4ed924
push 0
call fcn.004a88ee
add esp, 0x14
mov edi, eax
test edi, edi
je 0x471990
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp byte [esi], 0
jne 0x471942
mov edx, dword [esp + 0x14]
cmp byte [edx], 0x5c
jne 0x47194a
push 0x4ed924
push esi
call ebp
push edi
push esi
call ebp
push 0x4ed924
push 0
call fcn.004a88ee
mov edi, eax
mov al, byte [esi]
add esp, 8
test al, al
je 0x47198c
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + esi - 1], 0x3a
je 0x47198c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x47198c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4719a9
test edi, edi
jne 0x471934
push ebx
call fcn.004bd4c4
push esi
call fcn.004bd4c4
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x4719f6
push 0
lea eax, [esp + 0x18]
push 0
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
je 0x4719f6
mov ecx, dword [esp + 0x14]
push 0x40
push 0x4f0814
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x471ac0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x128
lea eax, [esp + 0x20]
push edi
mov edi, dword [esp + 0x134]
push 0
push eax
push 0x105
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [esp + eax + 0x23]
lea eax, [esp + eax + 0x23]
cmp cl, 0x5c
jne 0x471afc
mov byte [eax], 0
lea edx, [esp + 0x24]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edx
call esi
cmp eax, 0xffffffff
jne 0x471b31
lea eax, [esp + 0x28]
push 0x5c
push eax
call fcn.004a7c73
add esp, 8
test eax, eax
je 0x471b31
lea ecx, [esp + 0x28]
mov byte [eax], 0
push ecx
call esi
cmp eax, 0xffffffff
je 0x471b0f
mov edx, dword [esp + 0x134]
mov eax, dword [esp + 0x13c]
mov dword [esp + 8], edx
lea edx, [esp + 8]
lea ecx, [esp + 0x28]
push edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 0x471a90
mov dword [esp + 0x24], ecx
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
test eax, eax
pop esi
je 0x471b94
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov eax, 1
pop edi
add esp, 0x128
ret
xor eax, eax
pop edi
add esp, 0x128
ret