joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404c8b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x409040]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x409ae8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
jae 0x404e1b
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x409b00]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x18], ebx
je 0x404e1b
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
jne 0x404cea
xor eax, eax
jmp 0x404e2f
test al, 0x20
je 0x404cfb
push 2
push edi
push edi
push ecx
call fcn.00405bcc
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x404db7
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
jbe 0x404def
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
cmp ecx, dword [ebp + 0x10]
jae 0x404d51
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x404d42
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x18]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x404d27
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404d91
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
cmp eax, edi
jl 0x404d9a
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x404d1b
jmp 0x404d9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x404e16
cmp dword [ebp + 8], edi
je 0x404def
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x404de4
mov dword [0x4096e0], eax
jmp 0x404e22
push edi
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404dd9
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
jmp 0x404d9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x404d9c
push dword [ebp + 8]
call fcn.00405b6d
pop ecx
jmp 0x404e2c
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x404e04
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x404ce3
mov dword [0x4096dc], 0x1c
mov dword [0x4096e0], edi
jmp 0x404e2c
sub eax, dword [ebp - 0x14]
jmp 0x404e2f
and dword [0x4096e0], 0
mov dword [0x4096dc], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.004016a2
leave
ret
Function at 0x406017
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.004016b0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4060ac
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x4096e8]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4060ac
cmp eax, 1
je 0x4060c4
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4060ac
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x406081
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4060a8
xor eax, eax
inc eax
jmp 0x4060e0
cmp esi, ebx
jae 0x4060b0
xor eax, eax
jmp 0x4060e0
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4096e8]
jmp 0x4060c6
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40279c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x41c00c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402834
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402814
xor eax, eax
push ebp
push 0x40280d
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 0x402850
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 0x402814
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x41c00c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x41c00c], ax
mov esp, ebp
pop ebp
ret

Function at 0x402e7c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41d034], 0
je 0x402edd
cmp word [0x41d208], 0xd7b2
jne 0x402ea5
cmp dword [0x41d210], 0
jbe 0x402ea5
mov eax, 0x41d204
call dword [0x41d220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41c054
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 0x402f04
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41c018], 0
jne 0x402ef9
push 0
push 0x41c04c
push 0x41c054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4035ec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x403652
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403164
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402630
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40363c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403659
lea eax, [ebp - 0x10]
call fcn.00402ff8
ret
Function at 0x4044a8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4045b2
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x4044fb
push 0x105
lea eax, [ebp - 0x109]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x109]
mov eax, dword [ebp - 4]
call fcn.004030e8
jmp 0x404599
call sub.kernel32.dll_GetCommandLineA_1
mov ebx, eax
mov eax, ebx
call fcn.0040445c
mov ebx, eax
mov edi, ebx
mov eax, ebx
call fcn.0040447c
mov ebx, eax
test esi, esi
je 0x404523
dec esi
test esi, esi
jl 0x404523
cmp edi, ebx
jne 0x404502
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x110]
mov edx, edi
call fcn.00403128
mov eax, dword [ebp - 0x110]
mov ecx, ebx
sub ecx, edi
mov edx, 1
call fcn.004033d4
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040317c
cmp eax, 2
jl 0x404599
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp byte [eax], 0x22
jne 0x404599
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040317c
mov edx, dword [ebp - 4]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x22
jne 0x404599
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040317c
mov ecx, eax
sub ecx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 2
call fcn.004033d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4045b9
lea eax, [ebp - 0x110]
call fcn.00402ff8
ret

Function at 0x404660
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4046ca
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.00403128
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.00404648
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4046d1
lea eax, [ebp - 0x10c]
call fcn.00402ff8
ret

Function at 0x404778
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov esi, edx
mov ebx, eax
mov dword [esp + 8], 4
xor eax, eax
mov dword [esp], eax
test ebx, ebx
je 0x4047bc
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
mov eax, esi
call fcn.0040337c
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4047bc
cmp dword [esp + 4], 4
je 0x4047c1
xor eax, eax
mov dword [esp], eax
mov eax, dword [esp]
add esp, 0xc
pop esi
pop ebx
ret
Function at 0x4047cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.0040337c
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete al
pop ebp
ret

Function at 0x404958
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
test ebx, ebx
je 0x404985
lea eax, [esp + 4]
push eax
push 0
lea eax, [esp + 8]
push eax
push 0
mov eax, esi
call fcn.0040337c
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x404989
xor eax, eax
jmp 0x40498b
mov al, 1
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x404a08
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x404ac8
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00409aa4
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push edi
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
jne 0x404ab2
cmp dword [ebp - 8], 0
jbe 0x404ab0
mov eax, dword [ebp - 8]
inc eax
call fcn.00402438
mov ebx, eax
xor esi, esi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
jmp 0x404a8e
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00403128
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00409a94
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
inc esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push edi
call sub.advapi32.dll_RegEnumKeyExA
cmp eax, 0x103
jne 0x404a71
mov eax, ebx
call fcn.00402458
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404acf
lea eax, [ebp - 0x10]
call fcn.00402ff8
ret
Function at 0x404ad8
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x404b98
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.00409aa4
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
jne 0x404b82
cmp dword [ebp - 8], 0
jbe 0x404b80
mov eax, dword [ebp - 8]
inc eax
call fcn.00402438
mov ebx, eax
xor esi, esi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
jmp 0x404b5e
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00403128
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.00409a94
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
inc esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push edi
call sub.advapi32.dll_RegEnumValueA
cmp eax, 0x103
jne 0x404b41
mov eax, ebx
call fcn.00402458
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404b9f
lea eax, [ebp - 0x10]
call fcn.00402ff8
ret
Function at 0x406728
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x40688b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov ebx, 0x10
test esi, esi
jne 0x406765
or ebx, 0x8000000
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x44
call fcn.00402610
mov dword [ebp - 0x54], 0x44
mov word [ebp - 0x24], si
mov dword [ebp - 0x28], 1
cmp dword [ebp + 8], 0
je 0x406793
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
xor esi, esi
cmp dword [ebp - 8], 0
je 0x4067a5
mov eax, dword [ebp - 8]
call fcn.0040337c
mov esi, eax
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
call fcn.00403090
mov edx, dword [ebp - 0x10]
mov eax, 0x4068a8
call fcn.0040345c
test eax, eax
jle 0x4067ec
mov edx, dword [ebp - 0x10]
mov eax, 0x4068b4
call fcn.0040345c
test eax, eax
jg 0x4067ec
push 0x4068b4
push dword [ebp - 0x10]
push 0x4068b4
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040323c
cmp dword [ebp - 0x10], 0
je 0x406803
test edi, edi
je 0x406803
lea eax, [ebp - 0x10]
mov edx, 0x4068a8
call fcn.00403184
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push 0
push ebx
push 0
push 0
push 0
lea eax, [ebp - 0x68]
mov ecx, edi
mov edx, dword [ebp - 0x10]
call fcn.004031c8
mov eax, dword [ebp - 0x68]
call fcn.0040337c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x40686d
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
jne 0x406856
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_CloseHandle
mov byte [ebp - 9], 1
jmp 0x406864
cmp dword [ebp + 8], 0
je 0x406864
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x64]
mov dword [eax], edx
mov eax, dword [ebp - 0x60]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406892
lea eax, [ebp - 0x68]
call fcn.00402ff8
lea eax, [ebp - 0x10]
call fcn.00402ff8
ret

Function at 0x4079e4
Capabilities:
Get file attributes

Disassembly:
call fcn.00403ea0
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x4079f8
dec eax
and al, 0x10
sete al
ret

Function at 0x408d90
Capabilities:
Hide graphical window

Disassembly:
and byte [eax + 0x37], 0xef
test dl, dl
je 0x408d9c
or byte [eax + 0x37], 0x10
mov byte [eax + 0x52], dl
mov ecx, dword [eax + 0x28]
jecxz 0x408db8
push eax
je 0x408db9
call dword [0x41c12c]
pop eax
push 5
push dword [eax + 0x28]
call sub.user32.dll_ShowWindow
ret
mov byte [eax + 0x177], dl
push 0
push ecx
call sub.user32.dll_ShowWindow
pop eax
call dword [0x41c12c]
ret
Function at 0x414254
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
mov edi, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.0040336c
xor eax, eax
push ebp
push 0x41436a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040337c
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x414347
mov eax, dword [ebp - 8]
call fcn.00407964
mov ebx, eax
push ebx
mov eax, dword [ebp - 8]
push eax
push 0
push esi
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x414378
push ebx
call sub.version.dll_VerQueryValueA
push 0x41439c
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
mov edx, 4
call fcn.00407754
push dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00403ca8
movzx eax, ax
lea ecx, [ebp - 0x20]
mov edx, 4
call fcn.00407754
push dword [ebp - 0x20]
push 0x4143b8
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.0040323c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
call fcn.0040337c
push eax
push ebx
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x41433d
mov eax, edi
mov edx, dword [ebp - 0x10]
call fcn.00403128
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00402458
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414371
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.0040301c
lea eax, [ebp - 4]
call fcn.00402ff8
ret
Function at 0x414524
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.0040336c
xor eax, eax
push ebp
push 0x414689
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040304c
lea eax, [ebp - 0x110]
push eax
mov ecx, 1
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004033d4
mov eax, dword [ebp - 0x110]
mov edx, 0x4146a0
call fcn.004032c8
jne 0x41465b
lea ecx, [ebp - 0x114]
mov edx, 2
mov eax, dword [ebp - 4]
call fcn.004078d4
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 4]
call fcn.00403090
lea ecx, [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 0x4146ac
call fcn.00404390
mov eax, dword [ebp - 4]
call fcn.00407828
neg eax
mov dword [ebp - 8], eax
mov eax, 0x105
call fcn.00407964
mov ebx, eax
push 0x104
push ebx
mov eax, dword [ebp - 0xc]
call fcn.0040337c
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.00403128
mov eax, dword [ebp - 0x118]
call fcn.004079e4
test al, al
je 0x41464d
push ebx
call sub.kernel32.dll_LoadLibraryA
mov edi, eax
push 0xfe
lea eax, [ebp - 0x10b]
push eax
mov eax, dword [ebp - 8]
push eax
push edi
call sub.user32.dll_LoadStringA
push edi
call sub.kernel32.dll_FreeLibrary_1
mov eax, esi
lea edx, [ebp - 0x10b]
mov ecx, 0xff
call fcn.00403164
jmp 0x414654
mov eax, esi
call fcn.00402ff8
mov eax, ebx
call fcn.00402458
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414690
lea eax, [ebp - 0x118]
mov edx, 3
call fcn.0040301c
lea eax, [ebp - 0xc]
call fcn.00402ff8
lea eax, [ebp - 4]
call fcn.00402ff8
ret
Function at 0x41b0e4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x140], ecx
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.0040336c
lea esi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x41b255
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 2
call fcn.0040a684
mov ebx, eax
mov dword [esi], 0x128
mov edx, esi
mov eax, ebx
call fcn.0040a6a4
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x41b227
lea eax, [ebp - 0x138]
lea edx, [esi + 0x24]
mov ecx, 0x104
call fcn.00403164
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00407a18
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.004078ac
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, 0x41b26c
call fcn.004078ac
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.004032c8
je 0x41b203
lea eax, [ebp - 0x144]
lea edx, [esi + 0x24]
mov ecx, 0x104
call fcn.00403164
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.004078ac
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.004078ac
mov edx, dword [ebp - 0x148]
pop eax
call fcn.004032c8
jne 0x41b218
push 0
mov eax, dword [esi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov edx, esi
mov eax, ebx
call fcn.0040a6c4
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x41b162
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b25c
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.0040301c
lea eax, [ebp - 4]
call fcn.00402ff8
ret
Function at 0x402a04
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.00404398
test esi, esi
jne 0x402a3a
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.00404488
jmp 0x402a58
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402918
mov edi, eax
test esi, esi
je 0x402a58
cmp dword [ebx], 0
je 0x402a58
dec esi
jmp 0x402a41
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4034a4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x47100c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40353c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40351c
xor eax, eax
push ebp
push 0x403515
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 0x403558
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 0x40351c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x47100c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x47100c], ax
mov esp, ebp
pop ebp
ret

Function at 0x40421c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x473048], 0
je 0x40427d
cmp word [0x47321c], 0xd7b2
jne 0x404245
cmp dword [0x473224], 0
jbe 0x404245
mov eax, 0x473218
call dword [0x473234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x471054
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 0x4042a4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47101c], 0
jne 0x404299
push 0
push 0x471074
push 0x471054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret