joyce8/EMBER2024-capa huggingface dataset:
Function at 0x190ce8f
Capabilities:
Check http status code

Disassembly:
mov eax, 0x11fd073
call fcn.0191ef0c
sub esp, 0x598
push ebx
push esi
push edi
sub esp, 0xc
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x28], esp
push eax
mov dword [ebp - 4], 1
call fcn.01916d9b
lea eax, [ebp - 0xa4]
push eax
call fcn.0190c731
add esp, 0x10
push 0xf
pop ecx
push 0x5f5e0ff
mov esi, eax
xor ebx, ebx
lea edi, [ebp - 0x68]
push ebx
rep movsd dword es:[edi], dword [esi]
call dword [0x141e164]
push eax
call dword [0x141e0fc]
push ebx
push ebx
xor edi, edi
push ebx
inc edi
push ebx
lea ecx, [ebp + 0x14]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], edi
call fcn.01916f9b
push eax
call dword [0x141e060]
push dword [0x140d338]
mov dword [ebp - 0x18], eax
push dword [ebp - 0x64]
xor esi, esi
call dword [0x141e13c]
test eax, eax
jne 0x190cf21
mov esi, edi
cmp dword [ebp - 0x18], ebx
je 0x190d055
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x50]
push dword [ebp - 0x58]
push dword [ebp - 0x18]
call dword [0x141e160]
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x190d04c
mov eax, esi
neg eax
push ebx
sbb eax, eax
and eax, 0x800000
add eax, 0x400100
push eax
push ebx
push ebx
push dword [0x140d188]
push dword [ebp - 0x3c]
push 0x120374c
push dword [ebp - 0x24]
call dword [0x141e194]
mov edi, eax
cmp edi, ebx
je 0x190d045
cmp esi, ebx
je 0x190cf99
or dword [ebp - 0x20], 0x10300
push 4
lea eax, [ebp - 0x20]
push eax
push 0x1f
push edi
call dword [0x141df68]
push ebx
push ebx
push ebx
push ebx
push edi
call dword [0x141e128]
push ebx
mov esi, eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x1a4]
push eax
push 0x13
push edi
mov dword [ebp - 0x28], 0x100
call dword [0x141e1ac]
test eax, eax
jne 0x190cfe9
lea ecx, [ebp + 8]
xor esi, esi
mov byte [ebp - 4], bl
call fcn.01916dcf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.01916dcf
mov eax, dword [ebp - 0x2c]
mov edx, esi
jmp 0x190d07b
lea eax, [ebp - 0x1a4]
push eax
call fcn.01917f6e
pop ecx
cmp eax, 0xc8
jne 0x190cfc6
cmp esi, ebx
je 0x190d045
jmp 0x190d040
lea eax, [ebp - 0x10]
push eax
push 0x400
lea eax, [ebp - 0x5a4]
push eax
push edi
call dword [0x141e088]
xor esi, esi
cmp dword [ebp - 0x10], ebx
jbe 0x190d045
push 1
lea eax, [ebp + esi - 0x5a4]
push eax
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x1c]
push eax
call fcn.01917fbf
inc dword [ebp - 0x14]
inc esi
cmp esi, dword [ebp - 0x10]
jb 0x190d021
cmp dword [ebp - 0x10], ebx
ja 0x190d003
push edi
call dword [0x141e05c]
push dword [ebp - 0x24]
call dword [0x141e05c]
push dword [ebp - 0x18]
call dword [0x141e05c]
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call fcn.01916dcf
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.01916dcf
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x190dbe3
Capabilities:
Check http status code

Disassembly:
mov eax, 0x11fd281
call fcn.0191ef0c
sub esp, 0x978
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x14], ebx
sub esp, 0xc
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov dword [ebp - 4], 2
call fcn.01916d9b
lea eax, [ebp - 0xb4]
push eax
call fcn.0190c731
add esp, 0x10
push 0xf
pop ecx
mov esi, eax
lea edi, [ebp - 0x78]
rep movsd dword es:[edi], dword [esi]
push 0x1203726
lea ecx, [ebp - 0x30]
call fcn.01916d64
push ebx
push ebx
push ebx
push 1
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 3
call fcn.01916f9b
push eax
call dword [0x141e060]
push dword [0x140d338]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x74]
xor esi, esi
call dword [0x141e13c]
test eax, eax
jne 0x190dc6a
inc esi
cmp dword [ebp - 0x10], ebx
je 0x190ddae
push ebx
push ebx
push 3
push ebx
push ebx
push dword [ebp - 0x60]
push dword [ebp - 0x68]
push dword [ebp - 0x10]
call dword [0x141e160]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x190dda5
mov eax, esi
neg eax
push ebx
sbb eax, eax
and eax, 0x800000
add eax, 0x400100
push eax
push ebx
push ebx
push dword [0x140d188]
push dword [ebp - 0x4c]
push 0x1203854
push dword [ebp - 0x1c]
call dword [0x141e194]
mov edi, eax
cmp edi, ebx
je 0x190dd9c
cmp esi, ebx
je 0x190dce2
or dword [ebp - 0x20], 0x10300
push 4
lea eax, [ebp - 0x20]
push eax
push 0x1f
push edi
call dword [0x141df68]
push ebx
push ebx
push ebx
push ebx
push edi
call dword [0x141e128]
push ebx
mov esi, eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1b4]
push eax
push 0x13
push edi
mov dword [ebp - 0x18], 0x100
call dword [0x141e1ac]
test eax, eax
jne 0x190dd21
mov ecx, dword [ebp + 8]
push 0x1203858
call fcn.01916d64
jmp 0x190ddba
lea eax, [ebp - 0x1b4]
push eax
call fcn.01917f6e
pop ecx
cmp eax, 0xc8
jne 0x190ddf6
cmp esi, ebx
je 0x190dd95
mov esi, 0x7cf
jmp 0x190dd7e
mov eax, dword [ebp - 0x24]
cmp eax, ebx
je 0x190dd95
mov byte [ebp + eax - 0x984], bl
lea eax, [ebp - 0x984]
push eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x30]
call fcn.01916edd
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 4
call fcn.01916e22
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.01916dcf
lea eax, [ebp - 0x24]
push eax
push esi
lea eax, [ebp - 0x984]
push eax
push edi
call dword [0x141e088]
cmp eax, ebx
jne 0x190dd44
push edi
call dword [0x141e05c]
push dword [ebp - 0x1c]
call dword [0x141e05c]
push dword [ebp - 0x10]
call dword [0x141e05c]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x30]
push eax
call fcn.01916d9b
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], 2
call fcn.01916dcf
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.01916dcf
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], bl
call fcn.01916dcf
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
mov ecx, dword [ebp + 8]
push 0x1203860
call fcn.01916d64
jmp 0x190ddba
Function at 0x190e66e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push dword [ebp + 0xc]
push 0x40
push 0
push esi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
jne 0x190e68c
xor eax, eax
inc eax
jmp 0x190e71e
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x190e71b
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x190e71b
push dword [ebp + 0xc]
lea edi, [esi + 0x40]
push 0xf8
push eax
push edi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
je 0x190e684
cmp dword [edi], 0x4550
jne 0x190e71b
mov eax, 0x10b
cmp word [esi + 0x58], ax
jne 0x190e71b
movzx eax, word [esi + 0x46]
test ax, ax
je 0x190e71b
imul eax, eax, 0x28
push eax
mov dword [esi + 0x140], eax
call fcn.01917ff2
pop ecx
mov dword [esi + 0x138], eax
test eax, eax
jne 0x190e6f2
push 3
jmp 0x190e71d
push dword [ebp + 0xc]
movzx ecx, word [esi + 0x54]
mov edx, dword [esi + 0x3c]
push dword [esi + 0x140]
lea ecx, [ecx + edx + 0x18]
push ecx
push eax
mov dword [esi + 0x13c], ecx
call dword [ebp + 8]
add esp, 0x10
neg eax
sbb eax, eax
inc eax
jmp 0x190e71e
push 2
pop eax
pop edi
pop ebp
ret

Function at 0x190ed04
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x190ed3e
mov eax, dword [ecx + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x190ed3e
mov edx, 0x10b
cmp word [eax + ecx + 0x18], dx
jne 0x190ed3e
push dword [ebp + 0xc]
push ecx
push dword [eax + ecx + 0x78]
call fcn.0190ec68
add esp, 0xc
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1919e12
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x11fec48
call fcn.0191ef0c
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.01916d9b
and dword [ebp - 4], 0
lea eax, [edi + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.01916d9b
lea eax, [edi + 0x18]
push eax
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.01916d9b
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x30]
add edi, 0x34
push edi
lea ecx, [esi + 0x34]
mov byte [ebp - 4], 2
mov dword [esi + 0x30], eax
call fcn.01916d9b
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x10001cd0
Capabilities:
Log keystrokes via application hook

Disassembly:
cmp dword [esp + 4], 1
push esi
jne 0x10001d29
mov eax, dword [0x1000c010]
test eax, eax
mov esi, dword [sym.imp.USER32.dll_SetWindowsHookExA]
jne 0x10001d01
mov eax, dword [0x1000a900]
push 0
push eax
push 0x100013d0
push 0xe
call esi
test eax, eax
mov dword [0x1000c010], eax
je 0x10001d25
mov eax, dword [0x1000c014]
test eax, eax
jne 0x10001d85
mov ecx, dword [0x1000a900]
push 0
push ecx
push 0x10001410
push 0xd
call esi
test eax, eax
mov dword [0x1000c014], eax
jne 0x10001d85
xor eax, eax
pop esi
ret
mov eax, dword [0x1000c010]
test eax, eax
mov esi, dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
je 0x10001d45
push eax
call esi
mov dword [0x1000c010], 0
mov eax, dword [0x1000c014]
test eax, eax
je 0x10001d85
push eax
call esi
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push 0
push 2
push 1
push 0x1b
mov dword [0x1000c014], 0
call esi
push 0
push 2
push 0x38
push 0xa4
call esi
push 0
push 2
push 0x38
push 0xa5
call esi
mov eax, 1
pop esi
ret

Function at 0x10001d90
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x10001dca
mov eax, dword [0x1000c01c]
test eax, eax
jne 0x10001e10
mov eax, dword [0x1000a900]
push 0
push eax
push 0x10001450
push 0xd
mov dword [0x1000d33c], 0
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
test eax, eax
mov dword [0x1000c01c], eax
jne 0x10001e10
ret
mov eax, dword [0x1000c01c]
test eax, eax
je 0x10001e10
push esi
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov esi, dword [sym.imp.USER32.dll_keybd_event]
push 0
push 2
push 1
push 0x1b
mov dword [0x1000c01c], 0
call esi
push 0
push 2
push 0x38
push 0xa4
call esi
push 0
push 2
push 0x38
push 0xa5
call esi
pop esi
mov eax, 1
ret
Function at 0x10002840
Capabilities:
Accept command line arguments
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x1000292d
mov eax, 0x94
call fcn.10003790
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x100029a2
mov ecx, dword [esi + 0x10]
mov dword [0x1000a920], ecx
mov eax, dword [esi + 4]
mov dword [0x1000a92c], eax
mov edx, dword [esi + 8]
mov dword [0x1000a930], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x1000a924], esi
je 0x100028ab
or esi, 0x8000
mov dword [0x1000a924], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x1000a928], eax
call fcn.100036b3
test eax, eax
pop ecx
je 0x100029a2
call fcn.10002e35
test eax, eax
jne 0x100028d8
call fcn.10003704
jmp 0x100029a2
call fcn.10003611
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1000b0d4], eax
call fcn.100034ef
mov dword [0x1000a90c], eax
call fcn.10002fd0
test eax, eax
jl 0x10002926
call fcn.1000344d
test eax, eax
jl 0x10002921
call fcn.1000321a
test eax, eax
jl 0x10002921
call fcn.10002ad0
test eax, eax
jne 0x10002921
inc dword [0x1000a908]
jmp 0x100029b3
call fcn.100031ce
call fcn.10002c28
jmp 0x100028ce
test eax, eax
jne 0x1000295d
cmp dword [0x1000a908], eax
jle 0x100029a2
dec dword [0x1000a908]
cmp dword [0x1000a95c], eax
jne 0x1000294c
call fcn.10002c19
call fcn.100031ce
call fcn.10002c28
call fcn.10003704
jmp 0x100029b3
cmp eax, 2
jne 0x100029a6
push 0x88
push 1
call fcn.10002f15
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x100029a2
push esi
push dword [0x1000a044]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
push esi
je 0x1000299c
call fcn.10002c46
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x100029b3
call fcn.10002ea4
pop ecx
xor eax, eax
jmp 0x100029b6
cmp eax, 3
jne 0x100029b3
push 0
call fcn.10002cca
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x10002b35
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.10003aaf
xor esi, esi
inc esi
cmp dword [0x1000a960], esi
pop ecx
jne 0x10002b5d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x1000a95c], esi
mov byte [0x1000a958], al
jne 0x10002bc3
mov ecx, dword [0x1000b0c8]
test ecx, ecx
je 0x10002ba4
mov eax, dword [0x1000b0c4]
sub eax, 4
cmp eax, ecx
jmp 0x10002b9d
mov eax, dword [eax]
test eax, eax
je 0x10002b8f
call eax
mov eax, dword [0x1000b0c4]
sub eax, 4
cmp eax, dword [0x1000b0c8]
mov dword [0x1000b0c4], eax
jae 0x10002b87
mov eax, 0x1000a030
mov esi, 0x1000a034
cmp eax, esi
mov edi, eax
jae 0x10002bc3
mov eax, dword [edi]
test eax, eax
je 0x10002bbc
call eax
add edi, 4
cmp edi, esi
jb 0x10002bb4
mov eax, 0x1000a038
mov esi, 0x1000a03c
cmp eax, esi
mov edi, eax
jae 0x10002be2
mov eax, dword [edi]
test eax, eax
je 0x10002bdb
call eax
add edi, 4
cmp edi, esi
jb 0x10002bd3
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x10002bf3
push 8
call fcn.10003a1b
jmp 0x10002c05
push dword [ebp + 8]
mov dword [0x1000a960], 1
call fcn.10002a8e
pop ecx
pop ebp
ret
Function at 0x100037cd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x1000a540]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1000a070]
je 0x100037fa
inc eax
cmp eax, 0x12
jb 0x100037eb
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1000a070]
jne 0x1000392e
mov eax, dword [0x1000a914]
cmp eax, 1
je 0x10003909
cmp eax, edx
jne 0x1000382a
cmp dword [0x1000a918], 1
je 0x10003909
cmp ecx, 0xfc
je 0x1000392e
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10003863
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.10004fe0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.100050e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x100038a5
lea eax, [ebp - 0x10c]
push eax
call fcn.100050e0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x100085e0
push edi
call fcn.100055b0
add esp, 0x10
push edi
call fcn.100050e0
push dword [esi + 0x1000a074]
mov ebx, eax
call fcn.100050e0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10003790
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10004fe0
push edi
push ebx
call fcn.10004ff0
push 0x100085c0
push ebx
call fcn.10004ff0
push dword [esi + 0x1000a074]
push ebx
call fcn.10004ff0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.100054ad
add esp, 0x2c
jmp 0x1000392e
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x1000a074]
push dword [esi]
call fcn.100050e0
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]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.10005705
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100054ad
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1000abe4], ebx
push esi
push edi
jne 0x1000552d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10005568
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x1000abe4], eax
je 0x10005568
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x1000abe8], eax
call esi
cmp dword [0x1000a920], 2
mov dword [0x1000abec], eax
jne 0x1000552d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x1000abf4], eax
je 0x1000552d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x1000abf0], eax
mov eax, dword [0x1000abf0]
test eax, eax
je 0x10005572
call eax
test eax, eax
je 0x10005559
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1000abf4]
test eax, eax
je 0x10005559
test byte [ebp - 8], 1
jne 0x10005572
cmp dword [0x1000a92c], 4
jb 0x1000556c
or byte [ebp + 0x12], 0x20
jmp 0x10005591
xor eax, eax
jmp 0x100055a1
or byte [ebp + 0x12], 4
jmp 0x10005591
mov eax, dword [0x1000abe8]
test eax, eax
je 0x10005591
call eax
mov ebx, eax
test ebx, ebx
je 0x10005591
mov eax, dword [0x1000abec]
test eax, eax
je 0x10005591
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1000abe4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10006aae
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.10003790
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10006b43
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 [0x1000a920]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x10006b43
cmp eax, 1
je 0x10006b5b
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 0x10006b43
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x10006b18
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x10006b3f
xor eax, eax
inc eax
jmp 0x10006b77
cmp esi, ebx
jae 0x10006b47
xor eax, eax
jmp 0x10006b77
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1000a920]
jmp 0x10006b5d
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 0x410040
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x499b2b
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.0048e516
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4100c2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0048c42d
mov eax, dword [eax]
push 0x4b61f8
push eax
call fcn.0047e5b4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0048e7a1
test bl, bl
je 0x4100c2
push 0x4b61f8
lea ecx, [esp + 0xc]
call fcn.0048eb31
push 0x4b9ec4
lea ecx, [esp + 0xc]
call fcn.0048eb31
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 0x4100fe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0048e7a1
jmp 0x4101c9
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 0x410182
lea edx, [esp + 0x7c]
push 0x4b9ec0
push edx
call fcn.0047e5b4
add esp, 8
test eax, eax
je 0x410182
lea eax, [esp + 0x7c]
push 0x4b9ebc
push eax
call fcn.0047e5b4
add esp, 8
test eax, eax
je 0x410182
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 0x410112
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.0048e7a1
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 0x4109c0
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 0x410a22
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 0x410a30
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x499bab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4c90b0]
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 0x410b68
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x410a96
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0048e7a1
xor eax, eax
jmp 0x410bdf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0048e8de
push esi
lea ecx, [esp + 0xc]
call fcn.0048eb6d
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 0x410bbd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.004109c0
test eax, eax
jne 0x410bbd
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 SysReAllocString
mov ecx, edi
call fcn.004109c0
test eax, eax
jne 0x410bbd
lea eax, [esp + 0x14]
push 0x4b9ed8
push eax
call fcn.0047f700
mov esi, eax
add esp, 8
test esi, esi
jne 0x410b9c
lea ecx, [esp + 0x14]
push 0x4b9ed4
push ecx
call fcn.0047f680
mov esi, eax
add esp, 8
test esi, esi
jne 0x410b9c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x410b9f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0048e88e
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x410aae
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0048e7a1
xor eax, eax
jmp 0x410bdf
mov byte [esi], 0
push 0x4b9ed0
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.0048e7a1
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