joyce8/EMBER2024-capa huggingface dataset:
Function at 0x496ec0
Capabilities:
Set current directory

Disassembly:
mov dword [ecx], vtable.CPDLDlgPrinterSelectDirect.0
jmp fcn.0041a470

Function at 0x497930
Capabilities:
Access peb ldr_data

Disassembly:
mov dword [ecx], vtable.CPDLFuncSub.0
jmp fcn.00454090

Function at 0x4992e0
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x5047ac
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x630ddc]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
mov dword [esi], vtable.CBaseDirectPrintersSilent.0
mov eax, dword [esi + 0x58]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esp + 0x40], 3
je 0x49932b
push eax
call edi
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x499335
push eax
call edi
mov eax, dword [esi + 0x14]
xor edi, edi
test eax, eax
jle 0x49936a
mov edi, edi
test edi, edi
jl 0x499413
cmp edi, dword [esi + 0x14]
jge 0x499413
mov eax, dword [esi + 0x10]
lea eax, [eax + edi*4]
mov eax, dword [eax]
push eax
call fcn.004a5792
add edi, 1
add esp, 4
cmp dword [esi + 0x14], edi
jg 0x499340
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
mov dword [esp + 0x14], 0x14
push 1
push 0
push 0
push 0
lea ecx, [esp + 0x2c]
push ecx
call edi
test eax, eax
je 0x4993a5
lea edx, [esp + 0x1c]
push edx
call ebx
lea eax, [esp + 0x1c]
push eax
call ebp
sub dword [esp + 0x14], 1
jne 0x499384
lea ecx, [esi + 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esi + 0x40]
mov byte [esp + 0x40], 2
call fcn.004b0e72
lea ecx, [esi + 0x24]
mov byte [esp + 0x40], 1
call fcn.004b25d0
lea ecx, [esi + 0xc]
call fcn.00498e90
mov esi, dword [esi + 4]
sub esi, 0x10
mov dword [esp + 0x40], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4993ff
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret
jmp fcn.004a5890
Function at 0x49f9b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x505e15
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x630ddc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.CBaseInfFile.0
call fcn.004a720f
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x49f9fb
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0xc], eax
mov dword [esp + 0x18], edi
call fcn.004a720f
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x49fa28
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x10], eax
mov byte [esp + 0x18], 1
call fcn.004a720f
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x49fa56
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x14], eax
mov byte [esp + 0x18], 2
call fcn.004a720f
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x49fa84
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi + 0x18], eax
lea ecx, [esi + 0x1c]
mov byte [esp + 0x18], 3
call fcn.004b2b3f
lea ecx, [esi + 0x30]
mov byte [esp + 0x18], 4
call fcn.004b0b7f
lea ecx, [esi + 0x44]
mov byte [esp + 0x18], 5
call fcn.004b0b7f
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
lea ecx, [esi + 0x184]
mov byte [esp + 0x18], 6
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
call fcn.004b0b7f
lea ecx, [esi + 0x198]
mov byte [esp + 0x18], 7
call fcn.004b0b7f
lea ecx, [esi + 0x1ac]
mov byte [esp + 0x18], 8
call fcn.004b0b7f
lea ecx, [esi + 0x1c0]
mov byte [esp + 0x18], 9
call fcn.004b0b7f
lea ecx, [esi + 0x1d4]
mov byte [esp + 0x18], 0xa
call fcn.004b0b7f
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x49fb30
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x505ec3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x630ddc]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.CBaseInfFile.0
mov dword [esp + 0x14], 0xb
call fcn.0049f8e0
lea ecx, [esi + 0x1d4]
mov byte [esp + 0x14], 0xa
call fcn.004b0e72
lea ecx, [esi + 0x1c0]
mov byte [esp + 0x14], 9
call fcn.004b0e72
lea ecx, [esi + 0x1ac]
mov byte [esp + 0x14], 8
call fcn.004b0e72
lea ecx, [esi + 0x198]
mov byte [esp + 0x14], 7
call fcn.004b0e72
lea ecx, [esi + 0x184]
mov byte [esp + 0x14], 6
call fcn.004b0e72
lea ecx, [esi + 0x44]
mov byte [esp + 0x14], 5
call fcn.004b0e72
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 4
call fcn.004b0e72
lea ecx, [esi + 0x1c]
mov byte [esp + 0x14], 3
call fcn.004b2b56
mov eax, dword [esi + 0x18]
sub eax, 0x10
mov byte [esp + 0x14], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49fc06
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x14]
sub eax, 0x10
mov byte [esp + 0x14], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49fc2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x10]
sub eax, 0x10
mov byte [esp + 0x14], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49fc4e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esi + 0xc]
sub esi, 0x10
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x49fc75
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x4a3ec0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x330
mov eax, dword [0x630ddc]
xor eax, esp
mov dword [esp + 0x32c], eax
mov eax, dword [esp + 0x334]
mov ecx, dword [esp + 0x338]
mov edx, dword [str._DevInf]
push ebx
push ebp
mov dword [esp + 0xc], eax
mov eax, dword [0x579490]
mov dword [esp + 0x10], ecx
mov cl, byte [0x579494]
push esi
mov dword [esp + 0x20], edx
mov edx, dword [str..ini]
mov dword [esp + 0x24], eax
mov al, byte [0x5706a4]
mov byte [esp + 0x28], cl
push edi
mov ecx, 0x6322f8
mov dword [esp + 0x1c], edx
mov byte [esp + 0x20], al
xor ebp, ebp
call fcn.00403df0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x28]
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [esp + 0x134]
push ecx
push str.TEMPPATH
mov ecx, eax
call edx
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor esi, esi
lea eax, [esp + 0x1c]
push eax
push esi
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x140]
push edx
lea eax, [esp + 0x40]
push str._s_s_04d_s
push eax
call edi
add esp, 0x18
push 0
push 0x20
push 3
push 0
push 0
push 0x40000000
lea ecx, [esp + 0x48]
push ecx
call ebx
cmp eax, 0xffffffff
je 0x4a400b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x30]
push edx
push 0x104
lea eax, [esp + 0x240]
push eax
push 0x56ab79
push str.Attribute
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x238]
push ecx
lea ecx, [esp + 0x14]
call fcn.0041a6c0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.004b7ea5
add esp, 8
test eax, eax
jne 0x4a3fe9
lea ebp, [eax + 1]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a4010
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4a4010
mov ebp, 1
add esi, 1
test ebp, ebp
je 0x4a3f57
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x33c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b6bdf
add esp, 0x330
ret 8

Function at 0x4a5480
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x1c]
push edi
push 0
push ebx
push 0
mov esi, ecx
mov eax, dword [esi + 4]
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov dword [esi + 8], 0
jne 0x4a54e8
mov ecx, dword [edi]
add ecx, 4
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [esi + 8], eax
je 0x4a54eb
mov edx, dword [esi + 4]
push edi
push eax
push ebx
push 0
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov eax, dword [esi + 8]
je 0x4a54eb
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test eax, eax
jne 0x4a54e8
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x4a5500
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push edx
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [ecx + 4]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 0x10

Function at 0x4a6938
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x630ddc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x4a6978
push 0x5799d8
push 4
push eax
call fcn.004b8268
push eax
call fcn.00401000
add esp, 0x10
jmp 0x4a698a
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4a69f8
push edi
call fcn.004bc02e
mov edi, dword [eax]
call fcn.004bc02e
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.004b7ed4
add esp, 0x18
mov ebx, eax
call fcn.004bc02e
cmp dword [eax], 0
je 0x4a69d8
call fcn.004bc02e
push dword [eax]
call fcn.004a5ad9
pop ecx
jmp 0x4a69df
call fcn.004bc02e
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x4a69f8
cmp ebx, esi
jae 0x4a69f8
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x4a69fa
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004b6bdf
leave
ret
Function at 0x4ae5c8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4ae60b
call fcn.004a63de
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4ae60b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4ae626
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004ae17f
test ebx, ebx
mov esi, eax
je 0x4ae624
test edi, edi
je 0x4ae624
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4aebef
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x50858e
call fcn.004bbe2f
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4aec14
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x4aec60
call fcn.004a720f
push eax
lea ecx, [ebp - 0x10]
call fcn.00405400
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004a58d9
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004037d0
mov eax, esi
call fcn.004bbece
ret 8

Function at 0x4aff14
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x4aff34
cmp dword [edi + 0x54], 0
jne 0x4aff34
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004a63de
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004afedb
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x4b6bdf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x630ddc]
jne 0x4b6be9
repz ret
jmp fcn.004c0388
Function at 0x4bb929
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4bb966
cmp dword [ebp + 0x14], edi
je 0x4bb966
cmp ecx, edi
jne 0x4bb96d
call fcn.004bc02e
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004b83d3
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4bb981
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4bb9a2
cmp ebx, 0xffffffff
je 0x4bb991
push ebx
push edi
push ecx
call fcn.004b79d0
add esp, 0xc
cmp esi, edi
je 0x4bb94e
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4bb94e
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4bb9be
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4bb9c5
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4bbab6
test word [esi + 0xc], 0x10c
je 0x4bba19
mov eax, dword [esi + 4]
test eax, eax
je 0x4bba19
jl 0x4bbb17
cmp ebx, eax
mov edi, ebx
jb 0x4bb9ea
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4bbabe
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004b7765
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4bbaae
cmp ebx, dword [ebp - 0xc]
jb 0x4bba86
cmp dword [ebp - 0xc], 0
je 0x4bba43
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4bba38
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4bba3f
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4bba4e
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4bba4e
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4bbaea
push eax
push dword [ebp - 8]
push esi
call fcn.004be1f9
pop ecx
push eax
call fcn.004ca983
add esp, 0xc
test eax, eax
je 0x4bbb29
cmp eax, 0xffffffff
je 0x4bbb17
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4bbaae
push esi
call fcn.004c5f70
cmp eax, 0xffffffff
pop ecx
je 0x4bbb1b
cmp dword [ebp - 4], 0
je 0x4bbaea
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4bb9cd
mov eax, dword [ebp + 0x14]
jmp 0x4bb968
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4bbad5
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004b79d0
add esp, 0xc
call fcn.004bc02e
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4bb95e
cmp dword [ebp + 0xc], 0xffffffff
je 0x4bbb00
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004b79d0
add esp, 0xc
call fcn.004bc02e
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4bb95e
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4bb968
or dword [esi + 0xc], 0x10
jmp 0x4bbb1b
Function at 0x4c0183
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x6310e8]
je 0x4c019e
inc edi
cmp edi, 0x17
jb 0x4c018f
cmp edi, 0x17
jae 0x4c031e
push ebp
push 3
call fcn.004cbbe3
cmp eax, 1
pop ecx
je 0x4c02ea
push 3
call fcn.004cbbe3
test eax, eax
pop ecx
jne 0x4c01d2
cmp dword [0x630e20], 1
je 0x4c02ea
cmp ebx, 0xfc
je 0x4c031d
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x634438
push ebp
call fcn.004b8268
add esp, 0xc
test eax, eax
je 0x4c0208
push esi
push esi
push esi
push esi
push esi
call fcn.004b82d7
add esp, 0x14
push 0x104
mov esi, 0x634451
push esi
push 0
mov byte [0x634555], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c024c
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004b8268
add esp, 0xc
test eax, eax
je 0x4c024c
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004b82d7
add esp, 0x14
push esi
call fcn.004bbf10
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4c0291
push esi
call fcn.004bbf10
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x63474c
push 0x56ff74
sub ecx, eax
push ecx
push eax
call fcn.004bdc61
add esp, 0x14
test eax, eax
je 0x4c0291
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004b82d7
add esp, 0x14
jmp 0x4c0293
xor esi, esi
push 0x56fb10
push ebx
push ebp
call fcn.004b81f7
add esp, 0xc
test eax, eax
je 0x4c02b3
push esi
push esi
push esi
push esi
push esi
call fcn.004b82d7
add esp, 0x14
push dword [edi*8 + 0x6310ec]
push ebx
push ebp
call fcn.004b81f7
add esp, 0xc
test eax, eax
je 0x4c02d5
push esi
push esi
push esi
push esi
push esi
call fcn.004b82d7
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004cba26
add esp, 0xc
jmp 0x4c031d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4c031d
cmp ebp, 0xffffffff
je 0x4c031d
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x6310ec]
push dword [esi]
call fcn.004bbf10
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4cba26
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004c1492
xor ebx, ebx
cmp dword [0x634d14], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4cbafc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4cbbdc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x57c4f0
push edi
call esi
cmp eax, ebx
je 0x4cbbdc
push eax
call fcn.004c1424
mov dword [esp], 0x57c4e0
push edi
mov dword [0x634d14], eax
call esi
push eax
call fcn.004c1424
mov dword [esp], 0x57c4cc
push edi
mov dword [0x634d18], eax
call esi
push eax
call fcn.004c1424
mov dword [0x634d1c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004bc11b
test eax, eax
pop ecx
pop ecx
je 0x4cbaca
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004b82d7
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4cbafc
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004c1424
cmp eax, ebx
pop ecx
mov dword [0x634d24], eax
je 0x4cbafc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004c1424
pop ecx
mov dword [0x634d20], eax
mov eax, dword [0x634d20]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4cbb81
cmp dword [0x634d24], ecx
je 0x4cbb81
push eax
call fcn.004c149b
push dword [0x634d24]
mov esi, eax
call fcn.004c149b
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4cbb81
cmp edi, ebx
je 0x4cbb81
call esi
cmp eax, ebx
je 0x4cbb4e
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4cbb4e
test byte [ebp - 0x18], 1
jne 0x4cbb81
lea eax, [ebp - 0x10]
push eax
call fcn.004bc152
test eax, eax
pop ecx
je 0x4cbb69
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004b82d7
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4cbb78
or dword [ebp + 0x10], 0x200000
jmp 0x4cbbbc
or dword [ebp + 0x10], 0x40000
jmp 0x4cbbbc
mov eax, dword [0x634d18]
cmp eax, dword [ebp - 8]
je 0x4cbbbc
push eax
call fcn.004c149b
cmp eax, ebx
pop ecx
je 0x4cbbbc
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4cbbbc
mov eax, dword [0x634d1c]
cmp eax, dword [ebp - 8]
je 0x4cbbbc
push eax
call fcn.004c149b
cmp eax, ebx
pop ecx
je 0x4cbbbc
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x634d14]
call fcn.004c149b
cmp eax, ebx
pop ecx
je 0x4cbbdc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4cbbde
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d253e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x630ddc]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004d24d3
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004b79d0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4d258d
cmp dword [ebp - 0x1c], 5
jb 0x4d25a5
jmp 0x4d25a1
cmp dword [ebp - 0x10], 1
jne 0x4d25a5
cmp dword [ebp - 0x1c], 4
ja 0x4d25a1
jne 0x4d25a5
cmp dword [ebp - 0x18], 0
jbe 0x4d25a5
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x57d794
call fcn.004d23a7
test eax, eax
jge 0x4d25c6
mov byte [0x6322c0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004b6bdf
add ebp, 0x78
leave
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404399

Function at 0x40c302
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x40c311
pop dword [ebp - 0xc]
mov eax, 0x40c311
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x33c2e
push 0
mov eax, 0xc581ff15
add eax, 0x3abee1c3
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x7ab99169
add ecx, 0x85469f6d
mov ebx, eax
mov esi, 0x413bc4
add esi, dword [ebp - 0xc]
mov edi, 0x8745b4a8
add dword [ebp - 8], 0x686c443e
mov edx, dword [esi]
xor edx, edi
sub dword [ebp - 4], 0x529591fb
mov dword [ebx], edx
sub dword [ebp - 8], 0x5be517a8
add ebx, 4
add esi, 0x43c15dec
sub esi, 0x43c15de8
loop 0x40c35f
add eax, 0xb62b
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x895562ec
sub ecx, 0x891562ec
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x401240
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp word [eax], 0x22
jne 0x40126d
push esi
lea ecx, [ecx]
mov si, word [eax + 2]
add eax, 2
xor ecx, ecx
cmp si, 0x22
setne cl
xor edx, edx
test si, si
setne dl
test edx, ecx
jne 0x401250
pop esi
cmp word [eax], 0x20
jbe 0x40127c
add eax, 2
cmp word [eax], 0x20
ja 0x401273
mov cx, word [eax]
mov dx, 0x20
cmp dx, cx
push ebx
sbb edx, edx
xor ebx, ebx
add edx, 1
test cx, cx
setne bl
test ebx, edx
je 0x4012bf
jmp 0x4012a0
mov cx, word [eax + 2]
add eax, 2
mov dx, 0x20
cmp dx, cx
sbb edx, edx
xor ebx, ebx
add edx, 1
test cx, cx
setne bl
test ebx, edx
jne 0x4012a0
push 0
push eax
push 0
push 0
call fcn.0048f000
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]