joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439876
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x469a9b
push eax
mov dword fs:[0], esp
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x54]
test edi, edi
je 0x439891
mov ecx, edi
call fcn.00435930
push edi
call fcn.0045af93
add esp, 4
mov ebx, dword [esp + 0x20]
test ebx, ebx
jne 0x4398c4
push ebx
add esi, 0x34
push str.Sample_rate_was_invalid:__d
push esi
call fcn.00455232
add esp, 0xc
mov eax, 0xfffffff9
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x20
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x4398f7
push edi
add esi, 0x34
push str.Sample_size_was_invalid:__d
push esi
call fcn.00455232
add esp, 0xc
mov eax, 0xfffffff8
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x20
mov eax, dword [esp + 0x38]
lea ecx, [esi + 0x78]
push eax
call fcn.00436c40
test eax, eax
je 0x439939
mov ecx, dword [esi + 0x88]
add esi, 0x34
push ecx
push str.Unable_to_initialize_codec:__s
push esi
call fcn.00455232
add esp, 0xc
mov eax, 0xfffffffa
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x20
push 0x30
call fcn.0045af6a
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov dword [esp + 0x14], 0
je 0x43995c
mov ecx, eax
call fcn.004356b0
jmp 0x43995e
xor eax, eax
push edi
push ebx
mov ecx, eax
mov dword [esp + 0x1c], 0xffffffff
mov dword [esi + 0x54], eax
call fcn.004359b0
push 0x12
call fcn.0045af6a
mov edx, dword [esi + 0x54]
mov dword [esi + 0x3c], eax
add edx, 0xc
add esp, 4
mov ecx, dword [edx]
push 0x10000
mov dword [eax], ecx
push 0
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edx + 0xc]
mov dword [eax + 0xc], ecx
mov dx, word [edx + 0x10]
mov word [eax + 0x10], dx
mov eax, dword [esp + 0x30]
mov edx, dword [esi + 0x3c]
mov ecx, dword [eax + 0x1c]
mov eax, dword [esp + 0x24]
push ecx
push edx
lea ecx, [esi + 0x20]
push eax
push ecx
call dword [sym.imp.WINMM.dll_waveOutOpen]
test eax, eax
je 0x439a12
push eax
lea edx, [esi + 0x34]
push str.Unable_to_open_wave_output_device__res_u
push edx
call fcn.00455232
mov edi, dword [esi + 0x54]
add esp, 0xc
test edi, edi
je 0x4399f2
mov ecx, edi
call fcn.00435930
push edi
call fcn.0045af93
add esp, 4
mov dword [esi + 0x54], 0
mov eax, 0xfffffffb
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 0x20
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x34]
mov dword [esi + 0x60], ecx
mov ecx, dword [esp + 0xc]
mov byte [esi + 1], 1
mov dword [esi + 0x5c], eax
mov dword [esi + 0x68], edx
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 0x20
Function at 0x44cfd3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x48a808
cmp edx, dword [eax]
je 0x44cff5
add eax, 8
inc ecx
cmp eax, 0x48a898
jl 0x44cfe6
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x48a808]
jne 0x44d123
mov eax, dword [0x48d18c]
cmp eax, 1
je 0x44d0fd
test eax, eax
jne 0x44d026
cmp dword [0x487e94], 1
je 0x44d0fd
cmp edx, 0xfc
je 0x44d123
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x44d05d
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0044c070
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00447100
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x44d0a0
lea eax, [ebp - 0x1a4]
push eax
call fcn.00447100
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4726b0
push edi
call fcn.00444b30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0044c070
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0044c080
lea eax, [ebp - 0xa0]
push 0x482ea4
push eax
call fcn.0044c080
push dword [esi + 0x48a80c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0044c080
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0044f793
add esp, 0x2c
pop edi
jmp 0x44d123
lea eax, [ebp + 8]
lea esi, [esi + 0x48a80c]
push 0
push eax
push dword [esi]
call fcn.00447100
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4544d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00445140
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x45459b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x45459b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x45454e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x454559
or bh, 8
and edi, 0x8000000
je 0x454574
mov eax, dword [0x48e91c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x45459b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x454970
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x45499b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4549bf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4549da
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x4573e9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x45740b
cmp dword [edi + 0x3c], 0
jne 0x45740b
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00460f3e
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
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00457438
pop edi
pop esi
pop ebx
ret 8

Function at 0x458a37
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x458a6f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045b6d0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045b6a8
jmp 0x458a7b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45a026
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x45a068
call fcn.00460f3e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45a068
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45a05f
xor eax, eax
jmp 0x45a070
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045a076
pop edi
pop esi
pop ebx
ret 4
Function at 0x4012e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push edi
xor edi, edi
push 0x42e4e4
mov dword [ebp - 4], edi
call fcn.00405040
add esp, 4
cmp byte [0x44b93c], 0
je 0x401314
push 0x42e4c0
call fcn.00405040
add esp, 4
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [section..data], 0xffffffff
je 0x40132f
push 0x42e49c
call fcn.00405040
add esp, 4
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
mov byte [0x44b93c], 1
call fcn.00402730
mov ebx, dword [sym.imp.MSVCR80.dll_free]
mov esi, eax
cmp esi, edi
jne 0x401353
push 0x42e468
jmp 0x401406
push esi
push 0x42e450
push 0
call fcn.004058e0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x40137d
push 0x382
push 0x42e400
push 0x42e3e8
call fcn.00405580
push esi
call ebx
mov eax, edi
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401388
push 0
lea ecx, [ebp - 4]
push ecx
sub eax, edx
push eax
push edi
call fcn.00405500
add esp, 0x10
test al, al
je 0x40140e
push 0x3c
lea edx, [ebp - 0x40]
push 0
push edx
call sub.MSVCR80.dll_memset
mov eax, dword [ebp - 4]
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x3c], 0x40
call fcn.00403260
sub eax, 8
neg eax
sbb eax, eax
not eax
lea ecx, [ebp - 0x40]
and eax, 0x42e3dc
push ecx
mov dword [ebp - 0x34], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x401401
mov edx, dword [ebp - 8]
mov dword [section..data], edx
jmp 0x40140e
push 0x42e3a4
call fcn.00405040
add esp, 4
push edi
call ebx
mov eax, dword [ebp - 4]
push eax
call ebx
add esp, 8
pop esi
pop ebx
mov byte [0x44b93c], 0
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x402730
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push 0x206
lea eax, [ebp - 0x216]
push 0
push eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0x104
mov word [ebp - 0x218], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push 0x42ed20
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x40279c
call fcn.004062b0
push eax
push 0x42ed08
push 0x42ecdc
call fcn.00406ce0
add esp, 0xc
xor eax, eax
mov esp, ebp
pop ebp
ret
push esi
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x42ecc4
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
je 0x4027ec
call fcn.004062b0
push eax
push 0x42ed08
push 0x42ec9c
call fcn.00406ce0
add esp, 0xc
xor eax, eax
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4027f5
sub eax, edx
sar eax, 1
je 0x40281b
cmp word [ebp + eax*2 - 0x21a], 0x5c
lea eax, [ebp + eax*2 - 0x21a]
jne 0x40281b
mov word [eax], cx
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402824
sub eax, edx
sar eax, 1
push 0
lea ecx, [ebp - 8]
push ecx
lea edx, [eax + eax]
push edx
lea eax, [ebp - 0x218]
push eax
call fcn.00405390
add esp, 0x10
test al, al
jne 0x402868
push 0x42ed08
push 0x42ec7c
call fcn.00406ce0
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x402a30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
lea eax, [ebp - 4]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test ebx, ebx
jne 0x402a8a
mov edx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x10c]
push ecx
push ebx
push edx
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402a90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
mov ebx, dword [ebp + 8]
push esi
push 5
push 0
push 0
push ebx
push 0x42edd0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x402b87
lea eax, [ebp - 0x208]
push eax
mov ecx, 0x42edc8
mov edx, 0x80000000
call fcn.00402a30
add esp, 4
test al, al
je 0x402b7a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x42edb4
lea ecx, [ebp - 0x208]
push ecx
call edi
lea edx, [ebp - 0x208]
push edx
mov ecx, edx
mov edx, 0x80000000
call fcn.00402a30
add esp, 4
test al, al
je 0x402b79
lea eax, [ebp - 0x208]
push 0x42edac
push eax
call dword [sym.imp.MSVCR80.dll__mbsstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x402b59
lea ecx, [ebp - 0x208]
push 0x42eda8
push ecx
call dword [sym.imp.MSVCR80.dll_strstr]
mov esi, eax
add esp, 8
test esi, esi
jne 0x402b59
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [ebp + eax - 0x209]
jmp 0x402b5c
mov byte [esi], 0
push 0x42eda4
push esi
call edi
push ebx
push esi
call edi
push 5
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
pop edi
cmp esi, 0x20
ja 0x402b87
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403030
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push ebx
push esi
push edi
push 0x9c
lea eax, [ebp - 0x9c]
push 0
push eax
mov esi, 0x13
call sub.MSVCR80.dll_memset
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [ebp - 0x9c]
push ecx
mov dword [ebp - 0x9c], 0x9c
call edi
mov ebx, eax
test ebx, ebx
jne 0x403097
lea edx, [ebp - 0x9c]
push edx
mov dword [ebp - 0x9c], 0x94
call edi
test eax, eax
jne 0x403097
pop edi
lea eax, [esi - 0xa]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x42f05c
push 0x42f040
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4030bd
lea ecx, [ebp - 0xc0]
push ecx
call eax
jmp 0x4030ca
lea edx, [ebp - 0xc0]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x8c]
sub eax, 1
je 0x403212
sub eax, 1
jne 0x403250
mov eax, dword [ebp - 0x98]
cmp eax, 6
mov ecx, dword [ebp - 0x94]
jne 0x4030fa
mov esi, 0x12
jmp 0x403126
cmp eax, 5
jne 0x40311c
cmp ecx, 2
jb 0x403109
lea esi, [eax + 8]
jmp 0x403126
cmp ecx, 1
jne 0x403113
lea esi, [ecx + 8]
jmp 0x403126
test ecx, ecx
jne 0x403126
lea esi, [ecx + 5]
jmp 0x403126
cmp eax, 4
ja 0x403126
mov esi, 4
test ebx, ebx
je 0x403250
mov dl, byte [ebp - 2]
cmp dl, 1
jne 0x40319f
cmp eax, 4
jne 0x403144
pop edi
mov esi, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x403250
cmp ecx, 2
jne 0x40316e
cmp word [ebp - 0xc0], 9
jne 0x403250
mov esi, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ecx, 1
jne 0x403189
mov esi, dword [ebp - 4]
shr esi, 9
not esi
and esi, ecx
or esi, 0xa
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ecx, ecx
jne 0x403250
mov esi, 6
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dl, 3
jne 0x403250
cmp eax, 5
jne 0x403250
cmp ecx, 2
jne 0x4031f4
mov eax, dword [ebp - 4]
test al, al
jns 0x4031cb
mov esi, 0x11
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test al, 2
je 0x4031dd
mov esi, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
cmp ax, 0x400
setne cl
pop edi
add ecx, 0xe
mov esi, ecx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ecx, ecx
jne 0x403250
mov dl, byte [ebp - 4]
and dl, 2
neg dl
pop edi
sbb edx, edx
neg edx
add edx, 7
mov esi, edx
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x98], 4
jne 0x403250
mov eax, dword [ebp - 0x94]
test eax, eax
jne 0x403233
mov esi, 1
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0xa
jne 0x403246
mov esi, 2
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x5a
jne 0x403250
mov esi, 3
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404bdc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44b0f0]
jne 0x404be6
repz ret
jmp fcn.00404bfe
Function at 0x404d6b
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x44b0f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push 0x4348ec
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404e40
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404e2f
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x404e19
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x404e2f
push eax
push edi
push dword [ebp - 0x110]
call fcn.00404d08
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x404e42
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00404bdc
leave
ret 4

Function at 0x405040
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x44be64], 0
je 0x4050a9
mov ecx, dword [ebp + 8]
push ebx
push esi
lea eax, [ebp + 0xc]
push eax
push ecx
push 0
call fcn.00405730
mov esi, eax
mov eax, dword [0x44be68]
add esp, 0xc
test eax, eax
jne 0x405070
mov eax, 0x4349a4
push esi
push eax
push 0x434998
push 0
call fcn.004058e0
push esi
mov esi, dword [sym.imp.MSVCR80.dll_free]
mov ebx, eax
call esi
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp byte [0x44bd60], 0
je 0x4050a1
call fcn.00404f30
push ebx
call esi
add esp, 4
pop esi
pop ebx
pop ebp
ret

Function at 0x406e60
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [sym.imp.MSVCR80.dll_realloc]
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov eax, 0x10
lea edi, [eax + eax]
push edi
push esi
mov dword [ebp - 4], eax
call ebx
mov esi, eax
add esp, 8
test esi, esi
jne 0x406e90
test edi, edi
jne 0x406eb7
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x406ecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x406eed
mov eax, dword [ebp - 4]
add eax, eax
jmp 0x406e79
push 0x243
push 0x436058
push 0x42eddc
call fcn.00405580
push 1
push 0xffffffffffffffff
push esi
call fcn.00403490
add esp, 0xc
push esi
mov edi, eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 8]
push esi
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret