joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101039ec
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 0x18]
xor edi, edi
xor esi, esi
push dword [ebp + 0x1c]
inc edi
mov dword [ebp - 8], esi
push edi
call fcn.10113388
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], esi
jne 0x10103a19
xor eax, eax
jmp 0x10103b15
mov eax, dword [ebp - 4]
mov ecx, SysReAllocString
push 0x40
push 0x100a99d7
mov dword [eax + 0x2a4], ecx
mov eax, dword [ebp - 4]
push dword [ebp - 4]
mov dword [eax + 0x2a8], ecx
call fcn.101054d0
push esi
push eax
call fcn.100a99f0
add esp, 0x14
test eax, eax
je 0x10103a54
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 4]
call fcn.10113547
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.101054b2
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.101073f8
add esp, 0x28
test eax, eax
jne 0x10103a8b
mov dword [ebp - 8], edi
mov eax, dword [ebp - 4]
mov dword [eax + 0xb4], 0x2000
cmp dword [ebp - 8], esi
jne 0x10103acc
mov eax, dword [ebp - 4]
push dword [eax + 0xb4]
push dword [ebp - 4]
call fcn.10113518
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xb0], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xb0], esi
jne 0x10103ac7
mov dword [ebp - 8], edi
cmp dword [ebp - 8], esi
je 0x10103afc
mov eax, dword [ebp - 4]
push dword [eax + 0xb0]
push dword [ebp - 4]
call fcn.10113459
push dword [ebp + 0x18]
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
push dword [ebp - 4]
mov dword [eax + 0xb0], esi
call fcn.10113411
add esp, 0x14
jmp 0x10103a12
push esi
push esi
push esi
push dword [ebp - 4]
call fcn.101132d7
push dword [ebp - 4]
call fcn.10103e10
mov eax, dword [ebp - 4]
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10107095
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
je 0x101070cb
push edi
mov edi, 0x10c
cmp dword [ebp + 0xc], edi
jae 0x101070be
push eax
call fcn.101133fd
push 2
call fcn.10113374
pop ecx
pop ecx
mov dword [esi], eax
push edi
push 0
push eax
call fcn.100a7720
add esp, 0xc
pop edi
pop esi
pop ebp
ret
Function at 0x10108dbc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 0x18]
xor edi, edi
xor esi, esi
push dword [ebp + 0x1c]
inc edi
mov dword [ebp - 8], esi
push edi
call fcn.10113388
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], esi
jne 0x10108de9
xor eax, eax
jmp 0x10108f8d
mov eax, dword [ebp - 4]
mov ecx, SysReAllocString
push 0x40
push 0x100a99d7
mov dword [eax + 0x2a4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x2a8], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x2ac], esi
mov eax, dword [ebp - 4]
push dword [ebp - 4]
mov dword [eax + 0x2b0], esi
call fcn.101054d0
push esi
push eax
call fcn.100a99f0
add esp, 0x14
test eax, eax
je 0x10108e36
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 4]
call fcn.10113547
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.101054b2
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.101073f8
add esp, 0x28
test eax, eax
jne 0x10108e6d
mov dword [ebp - 8], edi
cmp dword [ebp - 8], esi
jne 0x10108ea9
mov eax, dword [ebp - 4]
mov dword [eax + 0xb4], 0x2000
mov eax, dword [ebp - 4]
push dword [eax + 0xb4]
push dword [ebp - 4]
call fcn.10113518
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xb0], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xb0], esi
jne 0x10108ea9
mov dword [ebp - 8], edi
mov eax, dword [ebp - 4]
mov dword [eax + 0x98], 0x101075fd
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x9c], fcn.1010764c
mov eax, dword [ebp - 4]
mov dword [eax + 0xa0], ecx
cmp dword [ebp - 8], esi
jne 0x10108f29
mov eax, dword [ebp - 4]
push 0x38
add eax, 0x78
push str.1.2.5
push eax
call fcn.1011c37c
add esp, 0xc
cmp eax, 0xfffffffa
je 0x10108f12
cmp eax, 0xfffffffc
je 0x10108f0b
cmp eax, 0xfffffffe
je 0x10108f04
test eax, eax
je 0x10108f24
push str.Unknown_zlib_error
jmp 0x10108f17
push str.zlib_stream_error
jmp 0x10108f17
push str.zlib_memory_error
jmp 0x10108f17
push str.zlib_version_error
push dword [ebp - 4]
call fcn.101054ec
pop ecx
mov dword [ebp - 8], edi
pop ecx
cmp dword [ebp - 8], esi
je 0x10108f59
mov eax, dword [ebp - 4]
push dword [eax + 0xb0]
push dword [ebp - 4]
call fcn.10113459
push dword [ebp + 0x18]
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
push dword [ebp - 4]
mov dword [eax + 0xb0], esi
call fcn.10113411
add esp, 0x14
jmp 0x10108de2
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
push esi
push esi
mov eax, dword [eax + 0xb0]
mov dword [ecx + 0x84], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
push dword [ebp - 4]
mov eax, dword [eax + 0xb4]
mov dword [ecx + 0x88], eax
call fcn.1010eed5
mov eax, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1011a82a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub edx, dword [edi + 0x74]
add eax, ebx
sub edx, dword [edi + 0x6c]
mov dword [ebp - 8], edx
cmp dword [edi + 0x6c], eax
jb 0x1011a8c6
mov ecx, dword [edi + 0x38]
push ebx
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.100a68e0
mov ecx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
sub dword [edi + 0x5c], ebx
mov edi, ecx
mov dword [ebp - 4], ecx
lea esi, [eax + ecx*2]
lea esi, [esi - 2]
xor ecx, ecx
movzx edx, word [esi]
mov eax, edx
sub eax, ebx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [esi], cx
sub edi, 1
jne 0x1011a87b
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x40]
mov edi, ebx
lea esi, [eax + ebx*2]
lea esi, [esi - 2]
xor ecx, ecx
movzx edx, word [esi]
mov eax, edx
sub eax, ebx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [esi], cx
sub edi, 1
jne 0x1011a8a2
mov edx, dword [ebp - 8]
mov edi, dword [ebp + 8]
add edx, ebx
mov esi, dword [edi]
cmp dword [esi + 4], 0
je 0x1011a9eb
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x1011a8f3
xor eax, eax
jmp 0x1011a93f
sub eax, ecx
mov dword [esi + 4], eax
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x1011a910
push ecx
push dword [esi]
push dword [esi + 0x30]
call fcn.1011e4ba
jmp 0x1011a920
cmp eax, 2
jne 0x1011a929
push ecx
push dword [esi]
push dword [esi + 0x30]
call fcn.1011c7fa
mov ecx, dword [ebp - 4]
add esp, 0xc
mov dword [esi + 0x30], eax
push ecx
push dword [esi]
push dword [ebp - 8]
call fcn.100a68e0
mov eax, dword [ebp - 4]
add esp, 0xc
add dword [esi], eax
add dword [esi + 8], eax
add dword [edi + 0x74], eax
cmp dword [edi + 0x74], 3
jb 0x1011a967
mov edx, dword [edi + 0x6c]
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x58]
movzx esi, byte [edx + eax]
mov dword [edi + 0x48], esi
movzx eax, byte [edx + eax + 1]
shl esi, cl
xor esi, eax
and esi, dword [edi + 0x54]
mov dword [edi + 0x48], esi
cmp dword [edi + 0x74], 0x106
jae 0x1011a97c
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x1011a838
mov ecx, dword [edi + 0x16c0]
mov ebx, dword [edi + 0x3c]
cmp ecx, ebx
jae 0x1011a9eb
mov esi, dword [edi + 0x6c]
add esi, dword [edi + 0x74]
cmp ecx, esi
jae 0x1011a9bb
mov eax, 0x102
sub ebx, esi
cmp ebx, eax
cmova ebx, eax
mov eax, dword [edi + 0x38]
push ebx
add eax, esi
push 0
push eax
call fcn.100a7720
lea eax, [ebx + esi]
add esp, 0xc
mov dword [edi + 0x16c0], eax
jmp 0x1011a9eb
lea eax, [esi + 0x102]
cmp ecx, eax
jae 0x1011a9eb
mov eax, dword [edi + 0x38]
sub esi, ecx
sub ebx, ecx
add esi, 0x102
cmp esi, ebx
cmova esi, ebx
add eax, ecx
push esi
push 0
push eax
call fcn.100a7720
add esp, 0xc
add dword [edi + 0x16c0], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1011c7fa
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x1011c807
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.1011c900
Function at 0x72f80fe1
Capabilities:
Encode data using xor

Disassembly:
sbb cl, al
jg 0x72f80ff1
pop ecx
mov ecx, 0xabcd0311
sbb eax, 0xb5dcee9d
sahf
fstp xword [ebx + 0x4b765322]
xor al, 0xaa
adc byte [edi + 4], dh
invalid

Function at 0x72f8d71d
Capabilities:
Check if file exists
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
push edi
mov esi, ecx
xor ecx, ecx
push ecx
push 0x80
push 3
push ecx
push ecx
mov edi, 0xc0000000
mov dword [eax], ecx
mov eax, dword [esi + 4]
push edi
push eax
mov dword [ebp - 8], edi
call ebx
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x72f8d7af
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x72f8d77f
mov ecx, dword [esi + 4]
xor edx, edx
push edx
push 0x80
push 3
push edx
mov eax, 0x80000000
push edx
push eax
push ecx
mov dword [ebp - 8], eax
call ebx
jmp 0x72f8d7a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x72f8d7c7
mov eax, dword [esi + 4]
xor ecx, ecx
push ecx
push 0x80
push 4
push ecx
push ecx
push edi
push eax
mov dword [ebp - 8], edi
call ebx
mov dword [esi + 0xc], 1
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x72f8d7c7
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
lea eax, [esi + 0x1c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x72f8df06
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp dword [0x72f91304], esi
mov dword [ebp - 4], esi
jne 0x72f8df8e
push 0x72f91308
push dword [ebp + 8]
call fcn.72f8e345
mov dword [ebp - 4], eax
lea eax, [ebp + 8]
push eax
push 0x20019
push esi
push dword [0x72f92718]
mov dword [0x72f91310], esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
mov dword [ebp - 8], 4
jne 0x72f8df89
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push dword [0x72f9271c]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x72f8df80
mov eax, dword [ebp - 0xc]
mov dword [0x72f91310], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], esi
jne 0x72f8df94
inc dword [0x72f91304]
push esi
lea eax, [ebp - 4]
push eax
push 4
push 0x40000004
push 0x20001
call fcn.72f8e27e
mov eax, dword [ebp - 4]
add esp, 0x14
pop esi
leave
ret 4
Function at 0x72f8e27e
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
push esi
mov esi, dword [ebp + 8]
mov eax, esi
push edi
shr eax, 0x10
xor edi, edi
cmp eax, dword [0x72f91310]
ja 0x72f8e301
cmp dword [0x72f9130c], edi
jne 0x72f8e2af
call fcn.72f8e23f
cmp dword [0x72f9130c], edi
je 0x72f8e301
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x72f8e2d2
xor edi, edi
mov dword [ebp - 0x40], eax
inc edi
lea ecx, [ebp + 0x18]
add ecx, 4
mov eax, dword [ecx]
test eax, eax
mov dword [ebp + edi*4 - 0x40], eax
je 0x72f8e2d2
inc edi
cmp edi, 0x10
jb 0x72f8e2bf
push dword [ebp + 0x14]
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 0x10]
and esi, 0xffff
push edi
push 0
push dword [ebp + 0xc]
xor eax, eax
mov ax, word [esi*4 + 0x72f92720]
push 0
push eax
push dword [0x72f9130c]
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
pop edi
pop esi
leave
ret

Function at 0x72f8ec4f
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, eax
je 0x72f8ec6b
push eax
push eax
push eax
push 4
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
pop ebp
ret 4

Function at 0x72f8ec74
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 8
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
test esi, esi
pop ecx
je 0x72f8ecd2
push dword [ebp + 8]
call fcn.72f8ec26
test eax, eax
mov dword [esi], eax
je 0x72f8eccc
cmp eax, 0xffffffff
je 0x72f8eccc
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
je 0x72f8ecc4
push 0
push eax
push 0
push 2
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [esi + 4], eax
je 0x72f8ecc4
mov eax, esi
jmp 0x72f8ecd4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.72f8ebae
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x4010d5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
push esi
push edi
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.0040f890
mov ebx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x94]
push eax
push esi
push esi
push 0x4000020
push esi
push esi
mov dword [ebp - 0x94], edi
mov edi, dword [ebp + 0xc]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401161
push 0x3c
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.0040f890
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x40
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x401166
mov eax, dword [ebp - 8]
jmp 0x401168
mov eax, dword [ebp - 0x50]
jmp 0x401168
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40116d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x420470
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4011d2
push 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x42045c
push dword [ebp - 4]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4011c9
cmp dword [ebp - 8], 1
jne 0x4011c9
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x4011e8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp - 4]
push eax
push 1
xor ebx, ebx
push ebx
push 0x42054c
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
call esi
test eax, eax
jne 0x40123b
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x42053c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x401241
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [ebp - 8], ebx
jne 0x40130b
lea eax, [ebp - 4]
push eax
push 1
push ebx
push 0x42050c
push edi
call esi
mov dword [ebp - 0xc], 4
cmp eax, ebx
jne 0x401281
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x420504
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x401287
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [ebp - 8], ebx
jne 0x40130b
lea eax, [ebp - 4]
push eax
push 1
push ebx
push 0x4204d0
push edi
call esi
mov dword [ebp - 0xc], 4
cmp eax, ebx
jne 0x4012c3
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x420504
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x4012c9
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [ebp - 8], ebx
jne 0x40130b
lea eax, [ebp - 4]
push eax
push 1
push ebx
push 0x420498
push edi
call esi
mov dword [ebp - 0xc], 4
cmp eax, ebx
jne 0x401305
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x420504
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x40130b
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0x40131c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret
Function at 0x402682
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 0x4206b4
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4026e2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x4206a8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4026d9
cmp dword [ebp - 8], 1
jne 0x4026d9
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x40ce0b
Capabilities:
Create process on windows

Disassembly:
push 0x78
mov eax, 0x41fcc6
call fcn.004100e7
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
mov dword [ebp - 0x14], 0xf
call fcn.0040156e
push 0x1c
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0040f890
add esp, 0xc
push 0x4216e4
lea ecx, [ebp - 0x2c]
call fcn.00401de6
push 0x10
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.0040f890
push 0x44
pop esi
push esi
lea eax, [ebp - 0x84]
push ebx
push eax
call fcn.0040f890
add esp, 0x18
mov dword [ebp - 0x84], esi
call fcn.004011e8
cmp eax, 1
jne 0x40cebe
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x40ce87
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x84]
push ecx
push ebx
push ebx
push 0x4000020
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40ced0
push dword [ebp - 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x40]
call esi
mov byte [ebp - 0x2d], 1
jmp 0x40ced0
push ebx
push 0x4216dc
push 0x4216a0
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040161a
mov al, byte [ebp - 0x2d]
call fcn.00410131
ret

Function at 0x40d45f
Capabilities:
Allocate or change rwx memory

Disassembly:
cmp dword [0x42acb4], 0
push esi
jne 0x40d3d2
call fcn.0040d2f8
test eax, eax
je 0x40d415
mov eax, dword [0x42acb4]
cmp eax, 1
jne 0x40d3f3
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40d415
pop esi
ret
push eax
call dword [0x42acbc]
test eax, eax
jne 0x40d45d
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x40d419
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x42acb4]
call dword [0x42acbc]
mov edi, eax
test edi, edi
je 0x40d43e
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40d45a
mov edi, esi
add esi, 0xff0
push edi
push dword [0x42acb4]
call dword [0x42acb8]
add edi, 0x10
cmp edi, esi
jb 0x40d446
mov eax, edi
pop edi
pop esi
ret
jmp 0x40d3bf

Function at 0x40f90a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4296e0]
jne 0x40f914
repz ret
jmp fcn.00412d71
Function at 0x41cc68
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004138f1
and dword [ebp - 4], 0
cmp dword [0x42b6ec], 0
mov ebx, eax
jne 0x41cd19
push 0x420440
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41cdca
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42336c
push edi
call esi
test eax, eax
je 0x41cdca
push eax
call fcn.0041387f
mov dword [esp], 0x42335c
push edi
mov dword [0x42b6ec], eax
call esi
push eax
call fcn.0041387f
mov dword [esp], 0x423348
push edi
mov dword [0x42b6f0], eax
call esi
push eax
call fcn.0041387f
mov dword [esp], 0x42332c
push edi
mov dword [0x42b6f4], eax
call esi
push eax
call fcn.0041387f
pop ecx
mov dword [0x42b6fc], eax
test eax, eax
je 0x41cd19
push 0x423314
push edi
call esi
push eax
call fcn.0041387f
pop ecx
mov dword [0x42b6f8], eax
mov eax, dword [0x42b6f8]
cmp eax, ebx
je 0x41cd71
cmp dword [0x42b6fc], ebx
je 0x41cd71
push eax
call fcn.004138fa
push dword [0x42b6fc]
mov esi, eax
call fcn.004138fa
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41cd71
test edi, edi
je 0x41cd71
call esi
test eax, eax
je 0x41cd68
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41cd68
test byte [ebp - 0xc], 1
jne 0x41cd71
or dword [ebp + 0x10], 0x200000
jmp 0x41cdaa
mov eax, dword [0x42b6f0]
cmp eax, ebx
je 0x41cdaa
push eax
call fcn.004138fa
pop ecx
test eax, eax
je 0x41cdaa
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41cdaa
mov eax, dword [0x42b6f4]
cmp eax, ebx
je 0x41cdaa
push eax
call fcn.004138fa
pop ecx
test eax, eax
je 0x41cdaa
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42b6ec]
call fcn.004138fa
pop ecx
test eax, eax
je 0x41cdca
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41cdcc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret