joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100d8ba0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10112040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x101187f0]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x100d8c01
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e1bd1
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x100d8c22
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x100d8c43
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x100d8c43
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x100d8c3d
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x100d8c43
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, bl
xor eax, eax
add cl, cl
shl bl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor bl, cl
and bl, 4
xor bl, cl
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0x14], bl
xor ecx, ebp
pop esi
pop ebx
call fcn.100e1bd1
mov esp, ebp
pop ebp
ret
Function at 0x100d8ca0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [0x101187f8]
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 4], edi
mov ebx, ecx
test edx, edx
je 0x100d8d91
mov eax, dword [0x101187f0]
add eax, 0x14
movzx ecx, byte [eax]
shr ecx, 1
and ecx, 1
cmp ecx, ebx
jne 0x100d8ce5
inc esi
add eax, 0x2c
cmp esi, edx
jb 0x100d8cc8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x100d8d91
xor eax, eax
lea ecx, [ebp - 0x10]
test ebx, ebx
setne al
or edx, 0xffffffff
push eax
call fcn.100d8a00
mov ecx, dword [0x101187f8]
add esp, 4
cmp esi, ecx
jae 0x100d8d45
imul edi, esi, 0x2c
mov eax, dword [0x101187f0]
movzx eax, byte [edi + eax + 0x14]
shr eax, 1
and eax, 1
cmp eax, ebx
je 0x100d8d3a
mov edx, ebx
mov ecx, esi
call fcn.100d8ba0
mov dword [ebp - 4], eax
test eax, eax
jne 0x100d8d42
mov ecx, dword [0x101187f8]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x100d8d11
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100d8d91
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x100d8d82
mov edi, eax
push dword [edi + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x100d8d76
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x100d8d55
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x101174fc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100dc960
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx + 4]
add ecx, 4
push ebx
push esi
push edi
mov eax, dword [eax + 0x24]
call eax
mov ecx, dword [0x10116054]
push eax
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
call edx
mov ebx, eax
mov edi, 0x811c9dc5
mov ecx, ebx
xor edx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100dc990
sub ecx, esi
je 0x100dc9cf
nop dword [eax + eax]
movsx eax, byte [ebx + edx]
xor eax, edi
imul edi, eax, 0x1000193
mov eax, ebx
inc edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100dc9b2
sub eax, esi
cmp edx, eax
jb 0x100dc9a0
cmp edi, 0x959035c5
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100e1af9
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x100e1b20
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x100e1b23
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.100e1ad5
pop esi
leave
ret 8
Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call main
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call main
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call main
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call main
pop ecx
call sub.kernel32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call main
test eax, eax
jge 0x4032a5
push 8
call main
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x4032c9
push eax
call main
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call main
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call main
jmp 0x4031eb

Function at 0x407550
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x40755f
pop dword [ebp - 0xc]
mov eax, 0xa55c6f3a
add eax, 0x5ae40625
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x390e2
push 0
mov eax, 0x561e9e70
add eax, 0xaa2242b0
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x28e7741
add ecx, 0xfd71ce41
xor esi, esi
add esi, eax
mov edx, 0x417800
add edx, dword [ebp - 0xc]
mov edi, 0x3349e292
sub dword [ebp - 8], 0x72761a6b
mov ebx, dword [edx]
xor dword [ebp - 4], 0xfd02a329
add ebx, edi
mov dword [esi], ebx
sub dword [ebp - 4], eax
add esi, 4
add edx, 4
loop 0x4075b4
add eax, 0x108db
xor ebx, ebx
add ebx, eax
add eax, 0x37b7148e
sub eax, 0x37b71489
mov ecx, 0x93a23792
add ecx, 0x6c9dc86e
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x10005c30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x100473b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov eax, dword [esi + 0x80]
lea edi, [esi + 0x7c]
push eax
xor ebx, ebx
mov ecx, dword [eax]
lea eax, [esp + 0x10]
push ecx
push eax
mov ecx, edi
mov dword [esp + 0x28], ebx
call fcn.10005d30
mov ecx, dword [edi + 4]
push ecx
call fcn.1002ac10
add esp, 4
lea ecx, [esp + 0xc]
mov dword [edi + 4], ebx
mov dword [edi + 0xc], ebx
call fcn.1002b310
mov eax, dword [0x1005680c]
dec eax
mov dword [0x1005680c], eax
jne 0x10005cad
mov edx, dword [0x10056810]
push edx
call fcn.1002ac10
add esp, 4
mov dword [0x10056810], ebx
lea ecx, [esp + 0xc]
call fcn.1002b3ac
mov dword [esi], fcn.100014d0
mov eax, dword [esi + 0x30]
push eax
mov dword [esp + 0x14], eax
call fcn.1002ac10
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov eax, dword [esi + 0x20]
push eax
mov dword [esp + 0x18], eax
call fcn.1002ac10
mov ecx, dword [esp + 0x1c]
add esp, 8
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x10009db0
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
cmp dword [ebp + 0x1c], 0
je 0x10009dd1
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x10], ecx
jmp 0x10009de9
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
push 4
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
je 0x10009e00
xor eax, eax
jmp 0x10009f18
mov edx, dword [ebp - 0xc]
xor eax, eax
mov ax, word [edx]
cmp eax, 0x5a4d
je 0x10009e16
xor eax, eax
jmp 0x10009f18
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0x4550
je 0x10009e34
xor eax, eax
jmp 0x10009f18
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x80]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x18]
jne 0x10009e52
xor eax, eax
jmp 0x10009f18
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xc], 0
je 0x10009f15
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx], 0
je 0x10009f07
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
cmp eax, dword [ebp - 0x10]
jne 0x10009ef9
push 4
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x10009eaa
cmp dword [ebp + 0x18], 0
je 0x10009ea1
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov dword [edx], ecx
mov dword [ebp - 8], 1
jmp 0x10009ef9
lea edx, [ebp - 0x14]
push edx
push 0x40
push 4
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10009ef9
cmp dword [ebp + 0x18], 0
je 0x10009ed0
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x14]
mov dword [ecx], edx
mov dword [ebp - 8], 1
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push 4
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 0x1c]
add ecx, 4
mov dword [ebp - 0x1c], ecx
jmp 0x10009e6b
mov edx, dword [ebp - 4]
add edx, 0x14
mov dword [ebp - 4], edx
jmp 0x10009e52
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x1000adb0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov ecx, 0x10056938
jmp 0x1000d140
push 0xffffffffffffffff
push 0x100478df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esi + 0x10]
mov dword [esp + 0x18], esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov byte [esi + 8], bl
mov dword [esi + 0xc], ebx
call fcn.10028560
mov al, byte [esp + 0x13]
mov dword [esp + 0x38], ebx
mov byte [esi + 0x1c], al
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov cl, byte [esp + 0x13]
mov dword [esp + 0x24], ebx
mov byte [esp + 0x20], cl
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dl, byte [esp + 0x13]
push 0x1000
mov byte [esp + 0x3c], 2
mov byte [esi + 0x2c], dl
call fcn.10037eb7
mov edi, eax
add esp, 4
mov dword [esi + 0x30], eax
mov dword [esp + 0x14], edi
mov ebp, 0x100
mov dword [esp + 0x1c], edi
cmp edi, ebx
mov byte [esp + 0x38], 3
je 0x1000d1f5
mov al, byte [esp + 0x20]
push ebx
mov ecx, edi
mov byte [edi], al
call fcn.10005740
mov ecx, dword [0x1004a20c]
lea edx, [esp + 0x20]
push ecx
push ebx
push edx
mov ecx, edi
call fcn.10007e60
add edi, 0x10
dec ebp
mov byte [esp + 0x38], 2
mov dword [esp + 0x14], edi
jne 0x1000d1c6
mov eax, dword [esi + 0x30]
add eax, 0x1000
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x1000d24a
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x1000d241
cmp al, 0xff
je 0x1000d241
dec al
pop edi
mov byte [ecx], al
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
push ecx
call fcn.1002ac10
add esp, 4
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x1000b2b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, ecx
mov eax, edi
mov ebp, 0x1004a1e8
mov edx, dword [esi + 0x30]
shl eax, 4
add eax, edx
mov eax, dword [eax + 4]
test eax, eax
je 0x1000b2d2
mov ebp, eax
cmp byte [ebp], 0
je 0x1000b395
mov al, byte [ebp + 1]
mov ebx, dword [esp + 0x18]
test al, al
jne 0x1000b307
test bl, bl
je 0x1000b307
mov al, byte [esi + 8]
test al, al
jne 0x1000b395
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1000b307
call eax
test eax, eax
jne 0x1000b395
mov eax, dword [0x10059870]
test eax, eax
je 0x1000b36b
test bl, bl
je 0x1000b36b
mov al, byte [ebp + 1]
test al, al
jne 0x1000b351
mov al, byte [ebp]
cmp al, 0x7e
je 0x1000b351
push 0x10
movsx edi, al
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1000b33d
xor eax, eax
mov al, byte [edi + esi + 0x43c]
mov edi, eax
mov esi, dword [esi + 4]
test esi, esi
je 0x1000b395
push edi
call esi
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
push edi
call fcn.1000af50
add esp, 4
test eax, eax
je 0x1000b36b
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1000b36b
push eax
call ecx
add esp, 4
lea edi, [esi + 0x10]
push ebp
mov ecx, edi
call fcn.10028970
test al, al
je 0x1000b395
mov al, byte [esp + 0x1c]
test al, al
jne 0x1000b395
mov ecx, dword [edi]
mov edx, dword [esi + 0x20]
shl ecx, 4
add edx, ecx
push ebx
push edx
mov ecx, esi
call fcn.1000b100
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x100229b0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 0xffffffff
je 0x100229d7
mov dword [ecx + 0x88], eax
add ecx, 0x8c
push ecx
push 0x40
push eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
ret 8
mov eax, dword [ecx + 0x8c]
mov ecx, dword [ecx + 0x88]
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 8]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
ret 8

Function at 0x10022ac0
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, 0x1005ab38
jmp 0x10023dc0
push 0xffffffffffffffff
push 0x10047fbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov al, byte [esp + 3]
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov byte [esi + 8], al
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
lea ecx, [esi + 0x18]
mov dword [esp + 0x18], edi
call fcn.10028560
mov cl, byte [esp + 0xb]
mov dl, byte [esp + 0xb]
mov byte [esi + 0x24], cl
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov ecx, esi
mov byte [esi + 0x34], dl
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
call fcn.10023310
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x10022e00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10047ee8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov al, byte [esp + 0x24]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
mov dword [esp + 0xc], ecx
push edi
mov byte [esp + 0x14], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebp, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebx, ecx
lea ecx, [esp + 0x18]
push ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
call fcn.10006480
test al, al
je 0x10022e76
mov edi, dword [esp + 0x18]
mov ecx, ebx
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.100063e0
mov edx, dword [esp + 0x18]
mov dword [esp + 0x2c], ebp
cmp edx, ebp
mov ecx, 0x1004a1e8
je 0x10022e89
mov ecx, edx
mov esi, ecx
mov al, byte [ecx]
cmp al, 0x20
je 0x10022e95
cmp al, 9
jne 0x10022e99
inc ecx
inc esi
jmp 0x10022e8b
mov al, byte [esi]
cmp al, 0x20
jl 0x10022ebc
cmp al, 0x3b
je 0x10022ebc
cmp al, 0x22
jne 0x10022eb5
mov al, byte [esi + 1]
inc esi
test al, al
je 0x10022eb6
cmp al, 0x22
jne 0x10022ea7
jmp 0x10022eb6
inc esi
mov al, byte [esi]
cmp al, 0x20
jge 0x10022e9f
cmp byte [ecx], 0x2f
jne 0x10022ec7
cmp byte [ecx + 1], 0x2f
je 0x10022f0a
cmp ecx, esi
jae 0x10022ee0
mov bl, byte [esi]
push ecx
mov ecx, dword [esp + 0x14]
mov byte [esi], 0
call fcn.10023370
mov byte [esi], bl
mov edx, dword [esp + 0x18]
cmp byte [esi], 0
je 0x10022f20
inc esi
mov ecx, esi
mov al, byte [ecx]
cmp al, 0x20
je 0x10022ef2
cmp al, 9
jne 0x10022ef6
inc ecx
inc esi
jmp 0x10022ee8
mov al, byte [esi]
cmp al, 0x20
jl 0x10022ebc
cmp al, 0x3b
je 0x10022ebc
mov al, byte [esi + 1]
inc esi
cmp al, 0x20
jge 0x10022efc
jmp 0x10022ebc
cmp edx, ebp
je 0x10022f40
mov al, byte [edx - 1]
test al, al
je 0x10022f36
cmp al, 0xff
je 0x10022f36
dec al
mov byte [edx - 1], al
jmp 0x10022f40
cmp edx, ebp
je 0x10022f40
mov al, byte [edx - 1]
test al, al
je 0x10022f36
cmp al, 0xff
je 0x10022f36
dec al
mov byte [edx - 1], al
jmp 0x10022f40
dec edx
push edx
call fcn.1002ac10
add esp, 4
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4

Function at 0x10024a60
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 0xffffffff
je 0x10024a82
push 0x1005aba4
push 0x40
mov dword [0x1005ab98], eax
push eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
ret
mov edx, dword [0x1005aba4]
mov eax, dword [0x1005ab98]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 8]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
ret
Function at 0x10024ce0
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push edi
mov esi, ecx
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi + 0x10], eax
jne 0x10024d17
call fcn.10039d4f
mov eax, dword [eax]
push eax
call fcn.10039c8c
push eax
push str.Could_not_open_kernel32.dll:__s
push esi
call fcn.10024c00
add esp, 0x10
xor al, al
pop edi
pop esi
ret
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateToolhelp32Snapshot
push eax
call edi
test eax, eax
mov dword [esi + 0x14], eax
jne 0x10024d3f
push str.Could_not_get_CreateToolhelp32Snapshot_address_nIf_you_use_Windows_NT_4__you_need_libloader_for_NT.
push esi
call fcn.10024c00
add esp, 8
xor al, al
pop edi
pop esi
ret
mov ecx, dword [esi + 0x10]
push str.Process32First
push ecx
call edi
test eax, eax
mov dword [esi + 0x18], eax
jne 0x10024d64
push str.Could_not_get_Process32First_address
push esi
call fcn.10024c00
add esp, 8
xor al, al
pop edi
pop esi
ret
mov edx, dword [esi + 0x10]
push str.Process32Next
push edx
call edi
test eax, eax
mov dword [esi + 0x1c], eax
je 0x10024dad
mov eax, dword [esi + 0x10]
push str.Module32First
push eax
call edi
test eax, eax
mov dword [esi + 0x20], eax
jne 0x10024d9b
push str.Could_not_get_Module32First_address
push esi
call fcn.10024c00
add esp, 8
xor al, al
pop edi
pop esi
ret
mov ecx, dword [esi + 0x10]
push str.Module32Next
push ecx
call edi
test eax, eax
mov dword [esi + 0x24], eax
jne 0x10024dc0
push str.Could_not_get_Process32Next_address
push esi
call fcn.10024c00
add esp, 8
xor al, al
pop edi
pop esi
ret
mov edx, dword [esi + 0x10]
push str.VirtualAllocEx
push edx
call edi
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x10]
push str.CloseToolhelp32Snapshot
push eax
call edi
mov dword [esi + 0x28], eax
pop edi
mov al, 1
pop esi
ret
Function at 0x10041efd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10055998
cmp edx, dword [eax]
je 0x10041f1f
add eax, 8
inc ecx
cmp eax, 0x10055a28
jl 0x10041f10
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10055998]
jne 0x1004204d
mov eax, dword [0x1005c53c]
cmp eax, 1
je 0x10042027
test eax, eax
jne 0x10041f50
cmp dword [0x1005c540], 1
je 0x10042027
cmp edx, 0xfc
je 0x1004204d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10041f87
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.1003d110
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10039fb0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10041fca
lea eax, [ebp - 0x1a4]
push eax
call fcn.10039fb0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1004ab40
push edi
call fcn.100398c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.1003d110
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.1003d120
lea eax, [ebp - 0xa0]
push 0x1004ab38
push eax
call fcn.1003d120
push dword [esi + 0x1005599c]
lea eax, [ebp - 0xa0]
push eax
call fcn.1003d120
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1003ceca
add esp, 0x2c
pop edi
jmp 0x1004204d
lea eax, [ebp + 8]
lea esi, [esi + 0x1005599c]
push 0
push eax
push dword [esi]
call fcn.10039fb0
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 0x402ec0
Capabilities:
Query or enumerate registry value

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

Function at 0x403a14
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x42404c], 0
je 0x403a75
cmp word [0x424220], 0xd7b2
jne 0x403a3d
cmp dword [0x424228], 0
jbe 0x403a3d
mov eax, 0x42421c
call dword [0x424238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x42306c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403a9c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x423030], 0
jne 0x403a91
push 0
push 0x423064
push 0x42306c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret