joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4059f2
Capabilities:
Print debug messages
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x870
mov eax, dword [0x40c090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x86c], edx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
mov edi, eax
cmp dword [0x40c0c4], 0xffffffff
jne 0x405ac5
lea eax, [ebp - 0x868]
mov dword [0x40c0c4], ebx
push eax
push ecx
push ecx
mov edx, 0x4014f8
mov dword [ebp - 0x868], ebx
call fcn.00402f5e
add esp, 0xc
test eax, eax
jne 0x405ac5
lea eax, [ebp - 0x858]
mov dword [ebp - 0x860], 0x28
mov dword [ebp - 0x864], eax
lea eax, [ebp - 0x870]
push eax
lea eax, [ebp - 0x858]
mov dword [ebp - 0x870], 0x50
push eax
push ebx
push ebx
push 0x401554
push dword [ebp - 0x868]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405aa4
mov eax, dword [ebp - 0x864]
mov eax, dword [eax]
and eax, 3
mov dword [0x40c0c4], eax
push dword [ebp - 0x868]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x860], 0x28
jle 0x405ac5
push dword [ebp - 0x864]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x40c914], ebx
je 0x405b6b
cmp dword [ebp - 0x86c], ebx
je 0x405b6b
mov eax, 0x20006
mov dword [ebp - 0x868], ebx
cmp byte [0x40cd9a], bl
jne 0x405afd
cmp byte [0x40cab5], bl
je 0x405afd
mov eax, 0x20106
push ebx
lea ecx, [ebp - 0x868]
push ecx
push ebx
push eax
push ebx
push ebx
push ebx
push 0x401560
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x405b6b
push 4
lea eax, [ebp - 0x86c]
push eax
push 4
push ebx
push 0x4015d0
push dword [ebp - 0x868]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push ebx
push 0x4015e4
push dword [ebp - 0x868]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x868]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test dword [0x40c0c4], 3
je 0x405bda
push 0x802
lea eax, [ebp - 0x808]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x808]
push esi
cmp dword [ebp - 0x86c], ebx
je 0x405bb6
push dword [ebp - 0x86c]
push 0x401608
push 0x401
push eax
call fcn.00402e35
add esp, 0x14
jmp 0x405bc9
push 0x40162c
push 0x401
push eax
call fcn.00402e35
add esp, 0x10
test eax, eax
js 0x405bda
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004095e0
leave
ret
Function at 0x409330
Capabilities:
Encrypt data using rc4 prga

Disassembly:
pushal
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
mov edi, 3
xor esi, esi
inc esi
mov dword [ebp - 0x14], 0x4121c9
and dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x14]
movzx edx, byte [edx + 2]
shl edx, 9
add dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x14]
movzx edx, byte [edx + 1]
shl edx, 0xc
add dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
xor eax, 0x4d
mov byte [ebp - 0x21], al
mov dword [ebp - 4], 3
jmp 0x409390
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x14]
movzx edx, byte [eax]
movzx ecx, byte [ebp - 0x21]
xor edx, ecx
mov byte [eax], dl
inc dword [ebp - 4]
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 4], eax
jb 0x40937c
mov dword [ebp - 0x20], 0x42c000
mov dword [ebp - 0x28], 0x4125c9
mov eax, esi
dec eax
mov dword [ebp - 8], eax
jmp 0x4093c0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
mov cl, byte [ecx + eax]
mov byte [edx + eax], cl
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x11940
jb 0x4093ae
mov dword [ebp - 0x2c], 0x44a000
mov dword [ebp - 0x30], 0x423fc9
mov eax, esi
add eax, edi
sub eax, 4
mov dword [ebp - 0xc], eax
jmp 0x4093f5
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov cl, byte [ecx + eax]
mov byte [edx + eax], cl
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x59f4
jb 0x4093e3
mov dword [ebp - 0x34], 0x10000000
mov ebx, 0x429dc9
mov dword [ebp - 0x38], 0x1000
mov dword [ebp - 0x3c], 0x1f000
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
mov eax, edi
sub eax, 3
mov dword [ebp - 0x10], eax
jmp 0x4094d5
lea eax, [edi + ebx + 5]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x44], eax
mov ax, word [eax]
mov word [ebp - 0x40], ax
mov eax, esi
dec eax
movzx edx, word [ebp - 0x40]
cmp eax, edx
je 0x4094e1
movzx edx, word [ebp - 0x40]
lea ecx, [esi + esi + 0xa]
sar edx, cl
mov word [ebp - 0x46], dx
movzx edx, word [ebp - 0x40]
mov ecx, edi
inc ecx
shl edx, cl
mov word [ebp - 0x3e], dx
movzx edx, word [ebp - 0x3e]
mov ecx, esi
add ecx, edi
sar edx, cl
mov word [ebp - 0x3e], dx
mov eax, edi
sub eax, 3
cmp dword [ebp - 0x10], eax
je 0x40948c
movzx eax, word [ebp - 0x3e]
mov edx, esi
dec edx
cmp eax, edx
je 0x4094e1
mov eax, dword [ebx]
add eax, dword [ebp - 0x18]
movzx edx, word [ebp - 0x3e]
add eax, edx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx]
movzx edx, word [ebp - 0x3e]
add eax, edx
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x4c]
sub ecx, eax
mov dword [ebp - 0x54], ecx
mov eax, esi
add eax, edi
dec eax
movzx edx, word [ebp - 0x46]
cmp eax, edx
jne 0x4094cf
movzx eax, word [ebp - 0x3e]
add eax, dword [ebx]
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x58], eax
mov edx, ecx
add edx, dword [eax]
mov dword [eax], edx
mov eax, edi
dec eax
add dword [ebp - 0x10], eax
mov eax, dword [ebx + 4]
cmp dword [ebp - 0x10], eax
jb 0x40942e
add ebx, dword [ebx + 4]
cmp ebx, 0x42b851
jb 0x40940a
pop edi
pop esi
pop ebx
leave
jmp 0x435fd8
Function at 0x409c24
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x40a350
call fcn.00409ee8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x409c84
cmp eax, 0xffffffff
je 0x409c84
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x409c7d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x409c7d
cmp edx, 0x10000000
jae 0x409c7d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x409c7a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x409cf0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x409d2e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x409d26
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x409d30
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x409d16
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x409e00
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x409e31
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x409e31
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x409e31
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4050d2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax + eax]
add byte [eax], al
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.004047f6
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004047ab
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.004047f6
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004047ab
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.004047e6
push esi
cdq
and dword [edi - 0x80], ebx
movsd dword es:[edi], dword [esi]
int3

Function at 0x406883
Capabilities:
Contain obfuscated stackstrings

Disassembly:
je 0x406887
jmp 0x40688c
jmp 0x406188
Function at 0x101c745
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x11c
cmp dword [esp + 0x128], 0
je 0x101c90a
push ebp
push esi
mov esi, dword [esp + 0x12c]
xor ebp, ebp
mov dword [esp + 0x14], ebp
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x101c908
push ebx
mov edx, esi
push edi
mov eax, dword [edx]
mov ebx, dword [esp + 0x130]
add eax, ebx
mov dword [esp + 0x18], eax
mov eax, dword [edx + 0x10]
add eax, ebx
lea edi, [ecx + ebx]
mov dword [esp + 0x20], eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x101c7b0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
mov dword [esp + 0x10], eax
push 0x104
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.01014f12
add esp, 0xc
test ebx, ebx
je 0x101c8b0
mov eax, dword [esp + 0x18]
and dword [esp + 0x14], 0
mov eax, dword [eax]
test eax, eax
je 0x101c899
mov esi, dword [esp + 0x10]
xor edi, edi
mov ebp, dword [esp + 0x130]
test eax, eax
jns 0x101c7f5
movzx ebx, ax
jmp 0x101c7fa
lea ebx, [ebp + 2]
add ebx, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x20]
mov dword [edi + ecx], eax
test eax, eax
jne 0x101c871
cmp dword [0x10235f0], 1
jne 0x101c871
push 0x104
push eax
lea eax, [esp + 0x30]
push eax
call fcn.01014f12
lea eax, [esp + 0x34]
push eax
call fcn.0101c9ee
lea eax, [esp + 0x38]
push 0x1013fa4
push eax
call fcn.01014f40
lea eax, [esp + 0x40]
push ebx
push eax
call fcn.01014f40
add esp, 0x20
lea eax, [esp + 0x24]
push 0
push eax
lea eax, [esp + 0x30]
push eax
call fcn.01014f67
pop ecx
push eax
lea eax, [esp + 0x34]
push eax
push dword [0x1023590]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc ecx
mov edi, ecx
mov dword [esp + 0x14], ecx
shl edi, 2
mov eax, dword [edi + eax]
test eax, eax
jne 0x101c7ee
mov esi, dword [esp + 0x134]
mov ebp, dword [esp + 0x1c]
inc ebp
imul edx, ebp, 0x14
mov dword [esp + 0x1c], ebp
add edx, esi
mov ecx, dword [edx + 0xc]
test ecx, ecx
jne 0x101c777
jmp 0x101c906
lea eax, [esp + 0x28]
push eax
call fcn.0101c9ee
lea eax, [esp + 0x2c]
mov dword [esp], 0x1013f88
push eax
call fcn.01014f40
lea eax, [esp + 0x30]
push edi
push eax
call fcn.01014f40
add esp, 0x10
cmp dword [0x10235f0], 1
jne 0x101c906
push 0
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.01014f67
pop ecx
push eax
lea eax, [esp + 0x34]
push eax
push dword [0x1023590]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop ebx
pop esi
pop ebp
xor eax, eax
add esp, 0x11c
ret
Function at 0x101c940
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push 0x208
lea eax, [ebp - 0x410]
push eax
call fcn.0101c9bc
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1023460], eax
push 0
push 0
push 0
push 2
push 0
push dword [0x1023460]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [0x1023464], eax
push 0
push 0
push 0
push 4
push dword [0x1023464]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
add eax, dword [0x10235f8]
leave
ret
Function at 0x101ca44
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
cmp dword [ebp + 0x14], 0
jne 0x101ca57
xor eax, eax
jmp 0x101cbdb
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
and dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
movzx eax, word [eax + 4]
cmp eax, 0x14c
jne 0x101ca95
mov eax, dword [ebp - 8]
add eax, 0xf8
mov dword [ebp - 0xc], eax
jmp 0x101caae
mov eax, dword [ebp - 8]
movzx eax, word [eax + 4]
cmp eax, 0x8664
jne 0x101caae
mov eax, dword [ebp - 8]
add eax, 0x108
mov dword [ebp - 0xc], eax
and dword [ebp - 0x10], 0
jmp 0x101cabb
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x10], eax
je 0x101caf4
imul eax, dword [ebp - 0x10], 0x28
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x24]
push eax
push 0x40
imul eax, dword [ebp - 0x10], 0x28
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 8]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x101cab4
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x2c]
jae 0x101cb94
mov eax, dword [ebp + 0xc]
add eax, 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
sub eax, 8
shr eax, 1
mov dword [ebp - 0x30], eax
and dword [ebp - 4], 0
jmp 0x101cb24
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x30]
je 0x101cb83
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
test eax, eax
jne 0x101cb3c
jmp 0x101cb1d
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
and eax, 0xfff
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
add ecx, eax
add ecx, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
sar eax, 0xc
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 3
je 0x101cb74
jmp 0x101cb81
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
add eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
jmp 0x101cb1d
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 4]
mov dword [ebp + 0xc], ecx
jmp 0x101caf4
and dword [ebp - 0x14], 0
jmp 0x101cba1
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x14], eax
je 0x101cbd9
imul eax, dword [ebp - 0x14], 0x28
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x38], edx
push 0
push dword [ebp - 0x24]
imul eax, dword [ebp - 0x14], 0x28
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 8]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x101cb9a
xor eax, eax
leave
ret
Function at 0x101cd7e
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x6c]
push ebx
push esi
push edi
mov esi, dword [eax]
xor edi, edi
call fcn.0101cd41
push esi
call fcn.0101cf2c
push dword [esp + 0x80]
mov esi, eax
call fcn.0101cf2c
push 0x58
mov dword [esp + 0x20], eax
lea eax, [esp + 0x28]
push edi
push eax
call fcn.01014f12
lea eax, [esp + 0x30]
push eax
push 5
push esi
call fcn.0101cc5b
mov ebx, eax
add esp, 0x20
cmp ebx, 5
jb 0x101cf13
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esp + 0x28]
push esi
call fcn.0101cf61
mov edi, eax
add esp, 0x14
test edi, edi
je 0x101cf13
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [esp + 0x14], 0
mov ebp, eax
and dword [esp + 0x10], 0
lea eax, [esp + 0x14]
push eax
push 0x40
push ebx
push esi
push ebp
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x101cef6
lea eax, [esp + 0x10]
push eax
push 0x40
push 0x6c
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x101cedb
lea eax, [edi + 0x2c]
mov ebp, esi
xor ecx, ecx
mov edx, eax
sub ebp, eax
mov al, byte [edx + ebp]
mov byte [edx], al
mov byte [edi + ecx + 0x4c], al
inc ecx
inc edx
cmp ecx, ebx
jb 0x101ce47
lea eax, [ebx + esi]
push eax
lea eax, [ebx + 0x2c]
add eax, edi
push eax
call fcn.0101ccfc
mov edx, dword [esp + 0x20]
mov eax, edx
mov ebp, dword [esp + 0x24]
sub eax, esi
pop ecx
pop ecx
mov ecx, esi
sub ecx, edx
cmp edx, esi
cmovb eax, ecx
cmp eax, 0x7fff0000
jbe 0x101cea5
lea eax, [edi + 0xc]
push edx
push eax
call fcn.0101ccfc
pop ecx
sub eax, edi
pop ecx
sub eax, 0xc
push eax
lea eax, [edi + 0xc]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [edi + 0xc]
jmp 0x101cea7
mov eax, edx
push eax
push esi
call fcn.0101ccfc
mov eax, dword [esp + 0x20]
pop ecx
pop ecx
mov dword [edi + 8], eax
lea eax, [edi + 0x2c]
push ebx
push eax
push ebp
mov dword [edi + 4], ebx
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push 0x6c
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp dword [edi], 0
pop ebp
je 0x101cf07
mov ecx, dword [esp + 0x78]
lea eax, [edi + 0x2c]
mov dword [ecx], eax
jmp 0x101cf13
push 1
push edi
call fcn.0101d055
pop ecx
pop ecx
xor edi, edi
push 0x102346c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
add esp, 0x68
ret
Function at 0x101cf61
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x40
push ebx
xor ebx, ebx
cmp dword [0x1023484], 0x40
jae 0x101d04e
mov ecx, dword [esp + 0x48]
push ebp
push esi
mov esi, dword [esp + 0x54]
mov ebp, 0xfff80000
add esi, ecx
add ecx, dword [esp + 0x5c]
push edi
cmp ecx, 0x80000000
lea edi, [esp + 0x2c]
push 9
lea eax, [ecx + 0x7ff80000]
cmovb ebp, eax
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
lea edi, [esi - 0x7fff0000]
inc eax
cmp esi, 0x80000000
cmovb edi, eax
cmp edi, ebp
jae 0x101d04b
push 0x1c
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x101d026
cmp dword [esp + 0x20], 0x10000
jne 0x101d018
mov eax, dword [esp + 0x1c]
cmp eax, 0x6c
jb 0x101d01c
mov ecx, dword [esp + 0x48]
cmp eax, ecx
jb 0x101d01c
lea eax, [ecx - 1]
xor edx, edx
add eax, edi
div ecx
push 0x20
imul eax, ecx
push 0x3000
push 0x6c
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x101d02a
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
add edi, eax
cmp edi, ebp
jb 0x101cfc9
test ebx, ebx
je 0x101d04b
xor eax, eax
cmp dword [eax*4 + 0x1023488], 0
je 0x101d03e
inc eax
cmp eax, 0x40
jb 0x101d02c
jmp 0x101d04b
inc dword [0x1023484]
mov dword [eax*4 + 0x1023488], ebx
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x40
ret
Function at 0x101eae0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x10c
push ebx
push ebp
mov ebp, dword [esp + 0x11c]
push esi
push edi
lea ebx, [eax + ebp]
cmp eax, 8
jbe 0x101ec97
mov edi, dword [esp + 0x120]
lea esi, [ebp + 8]
push 0x800
lea eax, [edi + 0x5410]
push eax
mov eax, ebx
sub eax, esi
push eax
lea eax, [edi + 0x140c]
push esi
push eax
call fcn.01022110
add esp, 0x14
cmp eax, 0xffffff88
ja 0x101ec97
add esi, eax
mov dword [esp + 0x14], 0x1c
mov eax, ebx
sub eax, esi
push eax
push esi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0101ece0
add esp, 0x14
mov dword [esp + 0x10], eax
cmp eax, 0xffffff88
ja 0x101ec97
mov eax, dword [esp + 0x1c]
cmp eax, 8
ja 0x101ec97
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x34]
push eax
lea eax, [edi + 0x804]
push eax
call fcn.0101f110
add esp, 0x10
cmp eax, 0xffffff88
ja 0x101ec97
add esi, dword [esp + 0x10]
mov eax, ebx
sub eax, esi
mov dword [esp + 0x18], 0x34
push eax
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0xc0]
push eax
call fcn.0101ece0
add esp, 0x14
mov dword [esp + 0x10], eax
cmp eax, 0xffffff88
ja 0x101ec97
mov eax, dword [esp + 0x20]
cmp eax, 9
ja 0x101ec97
push eax
push dword [esp + 0x1c]
lea eax, [esp + 0xb8]
push eax
lea eax, [edi + 0xc08]
push eax
call fcn.0101f110
add esp, 0x10
cmp eax, 0xffffff88
ja 0x101ec97
add esi, dword [esp + 0x10]
mov eax, ebx
sub eax, esi
mov dword [esp + 0x10], 0x23
push eax
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.0101ece0
add esp, 0x14
mov dword [esp + 0x28], eax
cmp eax, 0xffffff88
ja 0x101ec97
mov eax, dword [esp + 0x24]
cmp eax, 9
ja 0x101ec97
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x70]
push eax
push edi
call fcn.0101f110
add esp, 0x10
cmp eax, 0xffffff88
ja 0x101ec97
add esi, dword [esp + 0x28]
lea eax, [esi + 0xc]
cmp eax, ebx
ja 0x101ec97
sub ebx, esi
xor edx, edx
sub ebx, 0xc
add edi, 0x5c10
nop
mov ecx, dword [esi]
add esi, 4
test ecx, ecx
je 0x101ec97
cmp ecx, ebx
jae 0x101ec97
mov dword [edi], ecx
inc edx
add edi, 4
cmp edx, 3
jl 0x101ec70
sub esi, ebp
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
pop edi
pop esi
pop ebp
mov eax, 0xffffffe2
pop ebx
add esp, 0x10c
ret
Function at 0x1021d40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
shr eax, 8
test al, al
je 0x1021d56
mov dword [esp + 0x14], ecx
jmp fcn.01020f60
mov dword [esp + 0x14], ecx
jmp fcn.01020320