joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414c0f
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x423384]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x414c58
call ebp
mov esi, eax
cmp esi, ebx
je 0x414c3e
mov dword [0x423384], 1
jmp 0x414c5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x414c53
push 2
pop eax
mov dword [0x423384], eax
jmp 0x414c58
mov eax, dword [0x423384]
cmp eax, 1
jne 0x414cb5
cmp esi, ebx
jne 0x414c70
call ebp
mov esi, eax
cmp esi, ebx
jne 0x414c70
xor eax, eax
jmp 0x414d5c
cmp word [esi], bx
mov eax, esi
je 0x414c85
inc eax
inc eax
cmp word [eax], bx
jne 0x414c77
inc eax
inc eax
cmp word [eax], bx
jne 0x414c77
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.0040de5c
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x414ca8
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x414d5c
push ebp
push esi
push edi
call fcn.0040d3f0
add esp, 0xc
jmp 0x414c9a
cmp eax, 2
je 0x414cbe
cmp eax, ebx
jne 0x414c69
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x414c69
cmp byte [ebp], bl
mov esi, ebp
je 0x414cf4
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x414c69
push esi
add edi, eax
call fcn.0040cc00
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x414cd1
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.0040de5c
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x414d6d
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x414d4e
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x414d63
push edi
call fcn.0040cc00
push esi
lea edi, [edi + eax + 1]
call fcn.0040d82d
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x414d14
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.0040cd88
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x414c69
Function at 0x414d79
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x423388]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x414db9
call esi
test eax, eax
je 0x414d9e
mov dword [0x423388], 1
jmp 0x414dbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x414db5
mov dword [0x423388], 2
jmp 0x414dc7
xor eax, eax
jmp 0x414e15
cmp eax, 1
jne 0x414dc2
call esi
jmp 0x414e15
cmp eax, 2
jne 0x414db5
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x414e0d
lea eax, [esi + esi]
push eax
call fcn.0040de5c
mov ebp, eax
test ebp, ebp
pop ecx
je 0x414e0d
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x414e11
push ebp
call fcn.0040cd88
pop ecx
xor eax, eax
jmp 0x414e13
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x41520b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x415239
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x415240
cmp ebx, dword [eax + 4]
jae 0x415240
xor eax, eax
jmp 0x415430
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x415251
xor eax, eax
inc eax
jmp 0x41542f
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x415267
cmp ecx, edx
jae 0x4153ac
cmp dword [eax + 4], 0
je 0x415270
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x415258
cmp dword [ebp + 8], 0
je 0x415292
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4153ac
cmp eax, esi
jae 0x4153ac
mov eax, dword [0x423390]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4152b7
cmp dword [esi*4 + 0x423398], edi
je 0x4153b0
inc esi
cmp esi, eax
jl 0x4152a5
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41542c
cmp dword [ebp - 8], 0x1000000
jne 0x41542c
test byte [ebp - 0xc], 0xcc
je 0x415335
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41542c
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41542c
cmp word [eax + 0x18], 0x10b
jne 0x41542c
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41542c
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x415335
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x415335
test byte [ecx + 0x27], 0x80
jne 0x4153ac
push 1
push 0x4233d8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x415249
mov ecx, dword [0x423390]
test ecx, ecx
mov edx, ecx
jle 0x415369
lea eax, [ecx*4 + 0x423394]
cmp dword [eax], edi
je 0x415369
dec edx
sub eax, 4
test edx, edx
jg 0x41535d
test edx, edx
jne 0x41539a
push 0xf
pop ebx
cmp ecx, ebx
jg 0x415376
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41538e
lea eax, [edx*4 + 0x423398]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41537c
cmp ecx, 0x10
jge 0x41539a
inc ecx
mov dword [0x423390], ecx
push 0
push 0x4233d8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x415249
xor eax, eax
jmp 0x41542f
test esi, esi
jle 0x415249
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4233d8
call ebx
test eax, eax
jne 0x415249
cmp dword [esi*4 + 0x423398], edi
je 0x415406
mov eax, dword [0x423390]
lea esi, [eax - 1]
test esi, esi
jl 0x4153f4
cmp dword [esi*4 + 0x423398], edi
je 0x4153f0
dec esi
jns 0x4153e4
test esi, esi
jge 0x415404
cmp eax, 0x10
jge 0x4153ff
inc eax
mov dword [0x423390], eax
lea esi, [eax - 1]
jmp 0x415406
je 0x41541e
xor ecx, ecx
test esi, esi
jl 0x41541e
lea eax, [ecx*4 + 0x423398]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41540c
push 0
push 0x4233d8
call ebx
jmp 0x415249
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416bfd
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x416c2b
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x416c30
cmp eax, 1
je 0x416c30
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x416d1f
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00415020
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x416dba
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x422ebc]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x416dba
cmp eax, 1
je 0x416ddb
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x416dba
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x416d87
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x416db6
xor eax, eax
inc eax
jmp 0x416dfa
cmp edi, eax
jae 0x416dbe
xor eax, eax
jmp 0x416dfa
cmp eax, esi
jae 0x416dc5
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x422ebc]
jmp 0x416dde
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x416e02
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4220b8]
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 4], eax
je 0x416e81
push esi
call fcn.00416bfd
test eax, eax
pop ecx
jne 0x416e49
call fcn.00410bc8
mov dword [eax], 0xf
call fcn.00410bbf
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.0040f65e
leave
ret
and word [ebp - 6], 0
lea eax, [ebp - 0x218]
push eax
add esi, 0x40
lea eax, [ebp - 0x214]
push eax
mov word [ebp - 0xc], si
mov esi, 0x104
push esi
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], 0x3a
mov word [ebp - 8], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
jmp 0x416e94
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x416e3c
inc eax
cmp eax, esi
ja 0x416e3c
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x416ecb
cmp eax, dword [ebp + 0x10]
jg 0x416eac
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
call fcn.0040de5c
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x416ee0
call fcn.00410bbf
mov dword [eax], 0xc
jmp 0x416e3c
cmp eax, dword [ebp + 0x10]
jle 0x416ee0
call fcn.00410bbf
mov dword [eax], 0x22
jmp 0x416e3c
lea eax, [ebp - 0x214]
push eax
push ecx
call fcn.0040f3f4
pop ecx
pop ecx
jmp 0x416e3e

Function at 0x417cca
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x42346c], ebx
push esi
push edi
jne 0x417d4a
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x417d85
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x42346c], eax
je 0x417d85
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x423470], eax
call esi
cmp dword [0x422ebc], 2
mov dword [0x423474], eax
jne 0x417d4a
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x42347c], eax
je 0x417d4a
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x423478], eax
mov eax, dword [0x423478]
test eax, eax
je 0x417d8f
call eax
test eax, eax
je 0x417d76
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x42347c]
test eax, eax
je 0x417d76
test byte [ebp - 8], 1
jne 0x417d8f
cmp dword [0x422ec8], 4
jb 0x417d89
or byte [ebp + 0x12], 0x20
jmp 0x417dae
xor eax, eax
jmp 0x417dbe
or byte [ebp + 0x12], 4
jmp 0x417dae
mov eax, dword [0x423470]
test eax, eax
je 0x417dae
call eax
mov ebx, eax
test ebx, ebx
je 0x417dae
mov eax, dword [0x423474]
test eax, eax
je 0x417dae
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x42346c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418287
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00415020
mov eax, dword [0x4220b8]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00413a6e
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x4183ba
push 2
push esi
push dword [ebp + 8]
call fcn.00413a6e
add esp, 0xc
cmp eax, ebx
je 0x4183ba
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x41835a
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0040cae0
push 0x8000
push dword [ebp + 8]
call fcn.00418891
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x418310
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00413cef
add esp, 0xc
cmp eax, 0xffffffff
je 0x418330
sub edi, eax
test edi, edi
jg 0x418308
jmp 0x418348
call fcn.00410bc8
cmp dword [eax], 5
jne 0x418345
call fcn.00410bbf
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00418891
pop ecx
pop ecx
jmp 0x4183a2
jge 0x4183a2
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00413a6e
push dword [ebp + 8]
call fcn.0041788b
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4183a2
call fcn.00410bbf
mov dword [eax], 0xd
call fcn.00410bc8
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00413a6e
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4183bc
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0040f65e
leave
ret
Function at 0x4183c8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x41859c
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x424560]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41859c
test cl, 0x48
je 0x418433
cmp byte [eax + 5], 0xa
je 0x418433
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x418485
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x41846d
call fcn.00410bbf
mov dword [eax], 9
call fcn.00410bc8
mov dword [eax], esi
jmp 0x41847d
cmp eax, 0x6d
je 0x41859c
push eax
call fcn.00410bd1
pop ecx
or eax, 0xffffffff
jmp 0x41859e
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x418597
test eax, eax
je 0x4184ac
cmp byte [ebx], 0xa
jne 0x4184ac
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4184b5
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x418591
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x418581
cmp al, 0xd
je 0x4184e7
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x418573
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x418501
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4184fc
add dword [ebp + 0x10], 2
jmp 0x418555
mov dword [ebp + 0x10], eax
jmp 0x41856f
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x418529
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41856f
cmp dword [ebp - 0xc], 0
je 0x41856f
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41854a
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x418555
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x418572
cmp ebx, dword [ebp + 0xc]
jne 0x41855a
cmp byte [ebp - 1], 0xa
jne 0x41855a
mov byte [ebx], 0xa
jmp 0x418572
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00413a6e
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x418573
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4184cb
jmp 0x418591
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x418591
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x41859e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x418d4b
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x418d64
or eax, 0xffffffff
jmp 0x418dc5
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x418dc1
push 0x3d
push esi
call fcn.0040e5db
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x418dc1
cmp esi, eax
je 0x418dc1
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x422edc]
sete cl
cmp eax, dword [0x422ee0]
mov dword [ebp - 8], ecx
jne 0x418da7
mov edi, eax
call fcn.00418cea
mov dword [0x422edc], eax
cmp eax, ebx
jne 0x418e00
cmp dword [ebp + 0xc], ebx
je 0x418dc9
cmp dword [0x422ee4], ebx
je 0x418dc9
call fcn.004185f1
test eax, eax
je 0x418e00
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x418dd2
xor eax, eax
jmp 0x418dc4
push 4
call fcn.0040de5c
cmp eax, ebx
pop ecx
mov dword [0x422edc], eax
je 0x418dc1
mov dword [eax], ebx
cmp dword [0x422ee4], ebx
jne 0x418e00
push 4
call fcn.0040de5c
cmp eax, ebx
pop ecx
mov dword [0x422ee4], eax
je 0x418dc1
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x422edc]
call fcn.00418c9d
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x418e61
cmp dword [esi], ebx
je 0x418e61
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0040cd88
cmp dword [ebp - 8], ebx
pop ecx
jne 0x418e44
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x418ea2
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x418e3b
mov eax, edi
shl eax, 2
push eax
push dword [0x422edc]
call fcn.0040f7c1
cmp eax, ebx
pop ecx
pop ecx
je 0x418ea2
jmp 0x418e9d
cmp dword [ebp - 8], ebx
jne 0x418f0d
cmp edi, ebx
jge 0x418e70
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x422edc]
call fcn.0040f7c1
cmp eax, ebx
pop ecx
pop ecx
je 0x418dc1
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x422edc], eax
cmp dword [ebp + 0xc], ebx
je 0x418ef7
push dword [ebp - 4]
call fcn.0040cc00
inc eax
inc eax
push eax
call fcn.0040de5c
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x418ef7
push dword [ebp - 4]
push esi
call fcn.0040cc90
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x418ef0
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0040cd88
pop ecx
cmp dword [ebp - 8], ebx
je 0x418f05
push dword [ebp - 4]
call fcn.0040cd88
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x418dc4
push dword [ebp - 4]
call fcn.0040cd88
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x418dce
Function at 0x40a5f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47153b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00464371
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40a672
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00461e27
mov eax, dword [eax]
push 0x6fa1d8
push eax
call fcn.00454b74
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004645fc
test bl, bl
je 0x40a672
push 0x6fa1d8
lea ecx, [esp + 0xc]
call fcn.004649d8
push 0x6fdd38
lea ecx, [esp + 0xc]
call fcn.004649d8
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40a6ae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004645fc
jmp 0x40a779
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40a732
lea edx, [esp + 0x7c]
push 0x6fdd34
push edx
call fcn.00454b74
add esp, 8
test eax, eax
je 0x40a732
lea eax, [esp + 0x7c]
push 0x6fdd30
push eax
call fcn.00454b74
add esp, 8
test eax, eax
je 0x40a732
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40a6c2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004645fc
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40b9d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40ba32
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x40ba40
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47169b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x704c10]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40bb78
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40baa6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004645fc
xor eax, eax
jmp 0x40bbef
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00464785
push esi
lea ecx, [esp + 0xc]
call fcn.00464a14
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40bbcd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocStringLen
call fcn.0040b9d0
test eax, eax
jne 0x40bbcd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push SysReAllocStringLen
mov ecx, edi
call fcn.0040b9d0
test eax, eax
jne 0x40bbcd
lea eax, [esp + 0x14]
push 0x6fdd4c
push eax
call fcn.00455c50
mov esi, eax
add esp, 8
test esi, esi
jne 0x40bbac
lea ecx, [esp + 0x14]
push 0x6fdd48
push ecx
call fcn.00455bd0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40bbac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40bbaf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00464735
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40babe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004645fc
xor eax, eax
jmp 0x40bbef
mov byte [esi], 0
push 0x6fdd44
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004645fc
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4