joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48a5e4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x48a615
je 0x48a66f
sub eax, 7
je 0x48a636
dec eax
je 0x48a660
sub eax, 0x17
je 0x48a714
jmp 0x48a752
add eax, 0xffffff00
sub eax, 9
jb 0x48a700
add eax, 0xffffff09
sub eax, 0xb
jb 0x48a6c8
jmp 0x48a752
mov eax, ebx
call fcn.00474138
mov edi, eax
test edi, edi
je 0x48a7b2
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x48a7bb
jmp 0x48a7b2
test byte [ebx + 0x44], 0x20
jne 0x48a7bb
jmp 0x48a7b2
mov edx, esi
mov eax, ebx
call fcn.00487be4
cmp dword [esi + 0xc], 0xffffffff
jne 0x48a7bb
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.004b2fec
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.00486700
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.0048a4bc
test eax, eax
je 0x48a7bb
mov dword [esi + 0xc], 1
jmp 0x48a7bb
mov edx, esi
mov eax, ebx
call fcn.0048a550
test al, al
je 0x48a7b2
cmp dword [esi + 0xc], 0
jne 0x48a7bb
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
mov eax, ebx
call fcn.0048cc4c
push eax
call sub.USER32.DLL_DefWindowProcA
jmp 0x48a7bb
mov eax, ebx
call fcn.00487280
test al, al
jne 0x48a7bb
jmp 0x48a7b2
mov eax, ebx
call fcn.0048cc4c
mov edi, eax
call sub.USER32.DLL_GetCapture
cmp edi, eax
jne 0x48a7b2
cmp dword [0x5149ec], 0
je 0x48a7b2
mov eax, dword [0x5149ec]
cmp ebx, dword [eax + 0x24]
jne 0x48a7b2
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x5149ec]
call fcn.00487b18
jmp 0x48a7b2
mov eax, dword [0x529914]
cmp byte [eax + 0x20], 0
je 0x48a7b2
mov eax, dword [0x529914]
cmp dword [eax + 0x1c], 0
je 0x48a7b2
mov eax, dword [esi]
mov edx, dword [0x529914]
cmp eax, dword [edx + 0x1c]
jne 0x48a7b2
lea eax, [ebp - 0x110]
push eax
call sub.USER32.DLL_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.0047407c
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb7
call fcn.004bb0d0
jmp 0x48a7bb
mov edx, esi
mov eax, ebx
call fcn.00487be4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48ac7c
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1e8], 0
je 0x48ac98
cmp dword [esi + 4], 0
je 0x48acc5
test byte [ebx + 0x45], 1
jne 0x48acb7
mov eax, ebx
call fcn.00489bb4
test eax, eax
jne 0x48acb7
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x48add5
mov edx, esi
mov eax, ebx
call fcn.0048a8f4
jmp 0x48add5
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x48adce
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0048cc4c
push eax
call sub.USER32.DLL_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00487b18
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0048ac7c
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.GDI32.DLL_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0048cc4c
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48add5
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x497158
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x497230
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x529998], 0
jne 0x497214
lea eax, [ebp - 4]
mov edx, 0x497248
call fcn.004bbc28
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004bbfd4
mov esi, eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x497214
mov eax, ebx
call fcn.004ba7d4
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x49720d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoA
test eax, eax
je 0x4971f7
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x497258
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x4971f7
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x529998], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497214
mov eax, dword [ebp - 0xc]
call fcn.004ba7ec
ret
mov ebx, dword [0x529998]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x497237
lea eax, [ebp - 4]
call fcn.004bbb90
ret

Function at 0x4a478c
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x5299bc], 0
jne 0x4a47af
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x4a4710
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x5299bc], eax
ret

Function at 0x4b63cc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x4b6405
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004bbc78
jmp 0x4b640e
mov eax, ebx
mov edx, esi
call fcn.004bbbe4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4b6418
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x4b6439
mov al, byte [esp]
jmp 0x4b643b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4baa18
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x4baa47
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004bbc78
jmp 0x4baa65
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.004ba9a0
mov edi, eax
test ebx, ebx
je 0x4baa65
cmp dword [esi], 0
je 0x4baa65
dec ebx
jmp 0x4baa4e
add esp, 0x108
pop edi
pop esi
pop ebx
ret
Function at 0x4bad6c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x514f40]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4bae04
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4bade4
xor eax, eax
push ebp
push 0x4baddd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4bae20
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bade4
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x514f40]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x514f40], ax
mov esp, ebp
pop ebp
ret

Function at 0x4bbb44
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004ba7d4
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x529c51], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4bbb0c
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4bd4c4
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4bd680
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x4bd525
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4bd69c
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4bd597
xor eax, eax
push ebp
push 0x4bd590
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.004bd31c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x4bd579
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4bd6bc
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bd597
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4bd678
cmp byte [ebp - 0xd], 0
jne 0x4bd5d9
cmp byte [ebp - 0x12], 0
je 0x4bd678
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4bd5f2
dec ebx
cmp byte [ebx], 0x2e
je 0x4bd601
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4bd5f1
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4bd678
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4bd62e
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4bd678
cmp byte [ebp - 0xd], 0
je 0x4bd678
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4bd678
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bda6c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x4bdb54
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x52a034], 1
jae 0x4bdb46
xor eax, eax
mov dword [0x529c40], eax
xor eax, eax
mov dword [0x529c48], eax
xor eax, eax
mov dword [0x529c4c], eax
mov byte [0x529c52], 2
mov byte [0x529c53], 2
mov byte [0x529c54], 3
mov word [0x529ffc], 0
mov word [0x52a00c], 1
mov word [0x52a01c], 0xa
mov dword [0x52a024], 0x80020004
mov dword [0x529ff0], 0x4bc854
mov dword [0x529ff4], 0x4bc84c
mov dword [0x529ff8], 0x4bc854
call fcn.004bad3c
test al, al
je 0x4bdb05
call fcn.004bad6c
call fcn.004bae30
mov eax, 0x529c58
mov edx, 0x4bdb60
call fcn.004b8512
mov eax, 0x529e24
mov edx, 0x4bdb60
call fcn.004b8512
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x529c38], eax
call fcn.004b9490
mov dword [0x529c34], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x529c2c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bdb5b
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4c0eb0
call fcn.004c2374
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x4c0ecc
test bl, 1
je 0x4c0ecc
call fcn.004c9360
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4c10b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.004c1f10
test byte [ebp + 0xd], 0xc0
jne 0x4c10d4
mov eax, dword [0x517424]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4c10e1
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4c110e
je 0x4c1120
sub ecx, 0x100
je 0x4c112e
sub ecx, 0x100
je 0x4c1135
sub ecx, 0x100
je 0x4c1127
jmp 0x4c113c
sub ecx, 0x600
je 0x4c1135
sub ecx, 0x100
je 0x4c1120
jmp 0x4c113c
mov edi, 1
jmp 0x4c1141
mov edi, 2
jmp 0x4c1141
mov edi, 4
jmp 0x4c1141
mov edi, 5
jmp 0x4c1141
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4c1168
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x516e9c]
test al, 0x80
je 0x4c1161
mov ebx, 0x80
jmp 0x4c117a
mov ebx, 1
jmp 0x4c117a
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4c117a
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4c118c
je 0x4c1195
dec eax
je 0x4c119e
jmp 0x4c11a7
mov dword [ebp - 4], 0x80000000
jmp 0x4c11b6
mov dword [ebp - 4], 0x40000000
jmp 0x4c11b6
mov dword [ebp - 4], 0xc0000000
jmp 0x4c11b6
push 1
call fcn.004c2308
pop ecx
mov ebx, eax
jmp 0x4c12a6
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4c11d2
sub eax, 0x10
je 0x4c11d9
sub eax, 0x10
je 0x4c11e2
sub eax, 0x10
je 0x4c11eb
jmp 0x4c11eb
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4c11f2
mov dword [ebp - 8], 1
jmp 0x4c11f2
mov dword [ebp - 8], 2
jmp 0x4c11f2
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x4c125f
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4c1254
test byte [ebp + 0xd], 1
je 0x4c124f
mov ebx, 0x50
jmp 0x4c1254
mov ebx, 2
push ebx
call fcn.004c2308
pop ecx
mov ebx, eax
jmp 0x4c12a6
mov edi, esi
push edi
call fcn.004c1014
pop ecx
test eax, eax
je 0x4c1273
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4c127f
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004c2030
add esp, 8
mov ebx, eax
inc eax
jne 0x4c12a6
push 4
call fcn.004c2308
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.004c1f44
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c56ac
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.004bfca8
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.004bfd38
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.004bfd38
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x518145
lea ecx, [ebp - 0x200]
push ecx
call fcn.004bfca8
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.004bfd38
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.004c689c
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x4c57bd
push esi
call fcn.004bfd38
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.004bfd38
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.004be33c
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x4c5794
xor eax, eax
jmp 0x4c5844
push esi
call fcn.004bfd38
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.004bfd38
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.004bfc04
add esp, 0xc
jmp 0x4c57fd
mov edi, dword [ebx + 0x24]
push edi
call fcn.004bfd38
pop ecx
push eax
push esi
call fcn.004bfd38
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.004bfd38
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.004be35c
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x4c57fd
xor eax, eax
jmp 0x4c5844
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.004bfca8
add esp, 8
push 0x518147
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004bfca8
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.004bfca8
add esp, 8
push 0x518149
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004bfca8
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c92f8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x86
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x4c935a
call fcn.004c92a8
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004bfd38
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004bfd38
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4c93d8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x518870], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4c94b2
cmp dword [0x51886c], 0
jne 0x4c94b2
cmp dword [0x518a74], 0
je 0x4c946c
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004c916c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4c9452
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004c916c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4c9452
lea ebx, [ebp - 0x84]
jmp 0x4c9453
inc ebx
call fcn.004c9394
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4c94ed
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x518874
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004bfd38
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x518877
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4c94ed
cmp dword [0x51886c], 0
je 0x4c94cc
cmp dword [0x51886c], 0xffffffff
je 0x4c94ed
push esi
call dword [0x51886c]
pop ecx
mov eax, dword [0x518870]
test eax, eax
je 0x4c94ed
cmp dword [0x518870], 0xffffffff
je 0x4c94ed
cmp byte [eax], 0
je 0x4c94ed
push esi
push eax
call fcn.004c92f8
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ca0a0
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x52a93c], 0
jne 0x4ca121
cmp dword [0x52a95c], 0
jne 0x4ca0d0
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x52a95c], eax
test eax, eax
jne 0x4ca0d0
push str.GetEnvironmentStrings_failed
call fcn.004c9504
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x52a95c]
jmp 0x4ca0e4
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004bfd38
pop ecx
mov edi, eax
test eax, eax
jne 0x4ca0dc
lea edi, [ebp + 1]
push edi
call fcn.004be33c
pop ecx
mov ebx, eax
mov dword [0x52a940], ebx
test ebx, ebx
jne 0x4ca10e
xor eax, eax
jmp 0x4ca1e4
push edi
mov edx, dword [0x52a95c]
push edx
push ebx
call fcn.004bfb94
add esp, 0xc
jmp 0x4ca141
xor esi, esi
mov ebx, dword [0x52a93c]
jmp 0x4ca13b
push eax
call fcn.004bfd38
pop ecx
test eax, eax
jne 0x4ca137
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4ca12b
lea ebx, [esi + 4]
push 4
mov dword [0x52a944], ebx
inc ebx
push ebx
call fcn.004bdb64
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x4ca164
xor eax, eax
jmp 0x4ca1e4
cmp dword [0x52a93c], 0
jne 0x4ca195
xor esi, esi
mov ebx, dword [0x52a940]
mov eax, dword [esp]
mov ebp, eax
jmp 0x4ca186
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004bfd38
pop ecx
mov edi, eax
test eax, eax
jne 0x4ca17c
jmp 0x4ca1c6
xor esi, esi
mov ebx, dword [0x52a93c]
mov eax, dword [esp]
mov edi, eax
jmp 0x4ca1c0
push eax
call fcn.004bfd38
pop ecx
test eax, eax
je 0x4ca1b5
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4ca1b9
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4ca1a4
mov eax, dword [0x52a93c]
test eax, eax
je 0x4ca1d6
push eax
call fcn.004be34c
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x52a93c], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret