joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45afc4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4b7764]
cmp byte [eax + 0xc], 0
je 0x45b131
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45b12a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4b7b3c], 0
jne 0x45b018
push 0x45b138
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x45b140
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4b7b3c], eax
cmp dword [0x4b3450], 0
jne 0x45b113
push 0x45b150
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x4b3450], eax
cmp dword [0x4b3450], 0
je 0x45b113
push 0x45b15c
mov eax, dword [0x4b3450]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4b7b40], eax
push 0x45b16c
mov eax, dword [0x4b3450]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4b7b44], eax
push 0x45b180
mov eax, dword [0x4b3450]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4b7b48], eax
push 0x45b198
mov eax, dword [0x4b3450]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4b7b4c], eax
push 0x45b1b0
mov eax, dword [0x4b3450]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4b7b50], eax
push 0x45b1c4
mov eax, dword [0x4b3450]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4b7b54], eax
push 0x45b1dc
mov eax, dword [0x4b3450]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4b7b58], eax
push 0x45b1f4
mov eax, dword [0x4b3450]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4b7b5c], eax
push 0x45b210
mov eax, dword [0x4b3450]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4b7b60], eax
push 0x45b21c
mov eax, dword [0x4b3450]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4b7b64], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45b131
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x45fd78
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 0x45fe50
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4b7b78], 0
jne 0x45fe34
lea eax, [ebp - 4]
mov edx, 0x45fe68
call fcn.004969c4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00496ddc
mov esi, eax
push esi
call sub.VERSION.DLL_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x45fe34
mov eax, ebx
call fcn.00494b6c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x45fe2d
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 0x45fe17
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x45fe78
mov eax, dword [ebp - 0xc]
push eax
call sub.VERSION.DLL_VerQueryValueA
test eax, eax
je 0x45fe17
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x4b7b78], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fe34
mov eax, dword [ebp - 0xc]
call fcn.00494b8c
ret
mov ebx, dword [0x4b7b78]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fe57
lea eax, [ebp - 4]
call fcn.0049692c
ret

Function at 0x46e180
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x4b7b9c], 0
jne 0x46e1a3
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x46e0f4
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x4b7b9c], eax
ret

Function at 0x47fae0
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0047f964
dec esi
jne 0x47fb02
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x480c2c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4b7cd4
cmp dword [edi], 0
jne 0x480ca8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x4b7cd0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4b372c
mov ecx, 2
call fcn.00494dd0
mov edx, 0x480c04
lea eax, [esi + 5]
call fcn.00480c24
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00480c24
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x480c7d
mov dword [0x4b7cd0], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x482060
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4821c9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.004969c4
mov eax, dword [ebp - 0x10]
call fcn.00481dc8
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
jne 0x4820b2
lea eax, [ebp - 0x10]
mov ecx, 1
mov edx, 1
call fcn.00496e7c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00482468
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x482187
xor eax, eax
push ebp
push 0x482180
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
call fcn.00481f38
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 4]
call fcn.004821f8
test al, al
je 0x48215e
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 0x14]
xor edx, edx
call fcn.00496a1c
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x48215e
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00496ddc
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegEnumKeyExA
test eax, eax
jne 0x482158
mov eax, dword [ebp - 0x14]
call fcn.00496ddc
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.00496b1c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00482060
dec ebx
cmp ebx, 0xffffffff
jne 0x482111
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x482187
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.00481f38
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 0x10]
call fcn.00496ddc
push eax
mov dl, byte [ebp - 9]
mov eax, dword [ebp - 4]
call fcn.00481f24
push eax
call sub.ADVAPI32.DLL_RegDeleteKeyA
test eax, eax
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4821d0
lea eax, [ebp - 0x3c]
call fcn.0049692c
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00496950
ret

Function at 0x4821f8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x1c
call fcn.004954b8
lea eax, [ebx + 0x14]
push eax
push 0
lea eax, [ebx + 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
lea eax, [ebx + 8]
push eax
push 0
lea eax, [ebx + 4]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [esi + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryInfoKeyA
test eax, eax
sete al
mov edx, dword [0x4b7764]
cmp byte [edx + 0xc], 0
je 0x48225c
mov edx, dword [0x4b7750]
cmp dword [edx], 2
jne 0x48225c
mov edx, dword [ebx + 4]
add dword [ebx + 4], edx
mov edx, dword [ebx + 0xc]
add dword [ebx + 0xc], edx
pop esi
pop ebx
ret
Function at 0x48237c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00481ddc
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00496ddc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
je 0x4823da
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4b772c]
mov dl, 1
mov eax, dword [0x481cd4]
call fcn.0048878c
call fcn.004963c8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4823e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00496ddc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x48243c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4b7728]
mov dl, 1
mov eax, dword [0x481cd4]
call fcn.0048878c
call fcn.004963c8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00481e0c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00496ddc
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x485215
test al, 0x10
jne 0x485219
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x485220
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00496ddc
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x485242
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x487ee8
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 0x487f21
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00496a1c
jmp 0x487f2a
mov eax, ebx
mov edx, esi
call fcn.00496980
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x487f34
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 0x487f55
mov al, byte [esp]
jmp 0x487f57
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4885dc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x488454
mov eax, dword [0x4b7928]
cmp byte [eax], 0
je 0x488649
mov eax, dword [0x4b792c]
call fcn.00495338
call fcn.00494d3c
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00485498
push eax
lea eax, [esp + 0x50]
push eax
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 0x488690
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x48867f
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4b77e0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b798c]
call fcn.00498078
push eax
call sub.USER32.DLL_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.USER32.DLL_MessageBoxA
add esp, 0x444
ret

Function at 0x4893ac
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x489410
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00496b94
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.00484fc4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489417
lea eax, [ebp - 0xc]
call fcn.0049692c
ret

Function at 0x494f5c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0049692c
test esi, esi
jne 0x494f92
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00496a1c
jmp 0x494fb0
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00494e10
mov edi, eax
test esi, esi
je 0x494fb0
cmp dword [ebx], 0
je 0x494fb0
dec esi
jmp 0x494f99
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x495a6c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4b3c70]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x495b04
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x495ae4
xor eax, eax
push ebp
push 0x495add
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 0x495b20
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 0x495ae4
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x4b3c70]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4b3c70], ax
mov esp, ebp
pop ebp
ret
Function at 0x49672c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b7ff8], 0
je 0x49678d
cmp word [0x4b81cc], 0xd7b2
jne 0x496755
cmp dword [0x4b81d4], 0
jbe 0x496755
mov eax, 0x4b81c8
call dword [0x4b81e4]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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 0x4967b4
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x4b3c80], 0
jne 0x4967a9
push 0
push 0x4b3cd8
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret

Function at 0x4968e0
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.00494b6c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4b7ff9], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4968a8
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x49826c
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 0xf0019
push 0
push 0x49849c
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x4982ef
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x49849c
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x4982ef
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4984b8
push SysReAllocStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x498378
xor eax, eax
push ebp
push 0x498371
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004980b4
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x498356
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4984d8
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x498356
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498378
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpynA
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 0x498492
cmp byte [ebp - 0xd], 0
jne 0x4983bf
cmp byte [ebp - 0x12], 0
je 0x498492
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4983d8
dec ebx
cmp byte [ebx], 0x2e
je 0x4983e7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4983d7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x498492
inc ebx
cmp byte [ebp - 0x12], 0
je 0x498424
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x498492
cmp byte [ebp - 0xd], 0
je 0x498492
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x498492
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpynA
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 0x498c10
Capabilities:
Accept command line arguments

Disassembly:
sub dword [0x4b856c], 1
jae 0x498c96
mov byte [0x4b3c6c], 2
mov dword [0x4b7fbc], 0x4a574c
mov dword [0x4b7fc0], 0x4a576a
mov byte [0x4b7ffa], 2
mov dword [0x4b7fa8], 0x49789c
call fcn.00495a3c
test al, al
je 0x498c53
call fcn.00495a6c
call fcn.00495b30
mov word [0x4b8000], 0xd7b0
mov word [0x4b81cc], 0xd7b0
mov word [0x4b8398], 0xd7b0
call fcn.0049777c
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x4b7fec], eax
call fcn.00493808
mov dword [0x4b7fe8], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x4b7fe0], eax
ret

Function at 0x49aa90
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 0x49aaac
call fcn.0049be14
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x49aac8
test bl, 1
je 0x49aac8
call fcn.0049f83c
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x49acac
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.0049b9b0
test byte [ebp + 0xd], 0xc0
jne 0x49acd0
mov eax, dword [0x4b4ab4]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x49acdd
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x49ad0a
je 0x49ad1c
sub ecx, 0x100
je 0x49ad2a
sub ecx, 0x100
je 0x49ad31
sub ecx, 0x100
je 0x49ad23
jmp 0x49ad38
sub ecx, 0x600
je 0x49ad31
sub ecx, 0x100
je 0x49ad1c
jmp 0x49ad38
mov edi, 1
jmp 0x49ad3d
mov edi, 2
jmp 0x49ad3d
mov edi, 4
jmp 0x49ad3d
mov edi, 5
jmp 0x49ad3d
mov edi, 3
test byte [ebp + 0xd], 1
je 0x49ad64
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x4b452c]
test al, 0x80
je 0x49ad5d
mov ebx, 0x80
jmp 0x49ad76
mov ebx, 1
jmp 0x49ad76
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x49ad76
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x49ad88
je 0x49ad91
dec eax
je 0x49ad9a
jmp 0x49ada3
mov dword [ebp - 4], SysStringLen
jmp 0x49adb2
mov dword [ebp - 4], 0x40000000
jmp 0x49adb2
mov dword [ebp - 4], 0xc0000000
jmp 0x49adb2
push 1
call fcn.0049bda8
pop ecx
mov ebx, eax
jmp 0x49aea2
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x49adce
sub eax, 0x10
je 0x49add5
sub eax, 0x10
je 0x49adde
sub eax, 0x10
je 0x49ade7
jmp 0x49ade7
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x49adee
mov dword [ebp - 8], 1
jmp 0x49adee
mov dword [ebp - 8], 2
jmp 0x49adee
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 0x49ae5b
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x49ae50
test byte [ebp + 0xd], 1
je 0x49ae4b
mov ebx, 0x50
jmp 0x49ae50
mov ebx, 2
push ebx
call fcn.0049bda8
pop ecx
mov ebx, eax
jmp 0x49aea2
mov edi, esi
push edi
call fcn.0049ac10
pop ecx
test eax, eax
je 0x49ae6f
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x49ae7b
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0049bad0
add esp, 8
mov ebx, eax
inc eax
jne 0x49aea2
push 4
call fcn.0049bda8
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.0049b9e4
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49f7d4
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 0x80
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 0x49f836
call fcn.0049f784
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004998dc
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.004998dc
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 0x49f8b4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4b5a54], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x49f98e
cmp dword [0x4b5a50], 0
jne 0x49f98e
cmp dword [0x4b5c54], 0
je 0x49f948
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.0049f684
add esp, 8
mov ebx, eax
test eax, eax
jne 0x49f92e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0049f684
add esp, 8
mov ebx, eax
test eax, eax
jne 0x49f92e
lea ebx, [ebp - 0x84]
jmp 0x49f92f
inc ebx
call fcn.0049f870
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x49f9c9
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4b5a58
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004998dc
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4b5a5b
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x49f9c9
cmp dword [0x4b5a50], 0
je 0x49f9a8
cmp dword [0x4b5a50], 0xffffffff
je 0x49f9c9
push esi
call dword [0x4b5a50]
pop ecx
mov eax, dword [0x4b5a54]
test eax, eax
je 0x49f9c9
cmp dword [0x4b5a54], 0xffffffff
je 0x49f9c9
cmp byte [eax], 0
je 0x49f9c9
push esi
push eax
call fcn.0049f7d4
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret