joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49b210
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x49b240
push esi
call fcn.0049b710
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x49b239
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x49b2c3
mov eax, dword [esi + 0x1a0]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x49b2af
mov eax, dword [esi + 8]
test eax, eax
je 0x49b264
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1a0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x49b2ab
cmp eax, 2
je 0x49b2af
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x49b257
cmp eax, 3
je 0x49b28a
cmp eax, 1
jne 0x49b257
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x49b257
mov edx, dword [esi + 0x120]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x49b257
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.0049b2f0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x49b2e3
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.0049b2f0
add esp, 4
pop esi
ret
Function at 0x4bb08a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4bb0c2
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b972c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b9703
jmp 0x4bb0ce
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4bb0d2
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x57d680
mov ecx, edi
call fcn.004b9405
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x4bb125
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x4bb138
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.004b972c
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004b9703
jmp 0x4bb138
mov ecx, esi
call fcn.004bd263
test eax, eax
je 0x4bb138
push edi
mov ecx, eax
call fcn.004bb08a
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x4bc9db
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4bca1d
call fcn.004cd8a0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x4bca1d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4bca14
xor eax, eax
jmp 0x4bca25
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004bca2b
pop edi
pop esi
pop ebx
ret 4
Function at 0x4cefbe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.004cd8a0
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4ceffb
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4ceffb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4cefff
xor eax, eax
jmp 0x4cf07d
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.004b985d
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x4cf037
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x4cf021
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.004cf16e
push ebx
mov edi, eax
call fcn.004b9886
test edi, edi
pop ecx
je 0x4cf079
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.004cef37
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.004cf082
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x10007e50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010abfb
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x101911c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea esi, [edi + 0xc]
mov dword [edi], vtable.EventInterface.0
lea ecx, [esi + 8]
mov dword [ebp - 0x14], esi
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
push 0
mov dword [ebp - 4], 0
push 0x1013c2d2
mov byte [esi], 0xff
mov dword [esi + 4], 0xffffffff
call fcn.10009d80
mov word [esi + 0x20], 0
mov byte [esi + 0x22], 0
mov ecx, dword [ebp + 8]
lea edx, [esi + 8]
mov dword [ebp - 4], 1
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov al, byte [ecx]
mov byte [esi], al
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
lea eax, [ecx + 8]
cmp edx, eax
je 0x10007f0d
cmp dword [eax + 0x14], 0xf
mov edx, dword [eax + 0x10]
jbe 0x10007f00
mov eax, dword [eax]
push edx
push eax
lea ecx, [esi + 8]
call fcn.10009d80
mov ecx, dword [ebp + 8]
movzx eax, byte [ecx + 0x20]
mov byte [esi + 0x20], al
movzx eax, byte [ecx + 0x21]
mov byte [esi + 0x21], al
movzx eax, byte [ecx + 0x22]
mov byte [esi + 0x22], al
mov eax, dword [ebp + 0xc]
mov dword [edi + 8], eax
call fcn.100c4d21
mov dword [edi + 0x30], eax
mov eax, edi
mov dword [edi + 0x34], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x1000bdc0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010ae80
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x101911c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.100dd060
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.100c5100
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.1000bfd0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100205a0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
push eax
push edx
lea eax, [ebp - 0xc]
push eax
call fcn.10020790
mov eax, dword [ebp - 8]
test eax, eax
je 0x100205f6
add eax, 0xc
mov esp, ebp
pop ebp
ret 4
push str.invalid_unordered_map_K__T__key
call fcn.100c4e94
int3
Function at 0x100208b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
xor ecx, ecx
push edi
mov edi, dword [ebp + 0xc]
test esi, esi
je 0x100208db
mov edx, dword [ebp + 8]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x100208c4
pop edi
mov eax, edx
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret
Function at 0x10030c40
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fffffff
sub esp, 0x10
bsr ecx, eax
push ebx
push esi
push edi
mov edi, 1
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x10030dad
lea eax, [ecx - 1]
mov esi, dword [0x101963f0]
or eax, edi
mov dword [ebp - 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x101963f8
lea eax, [edi + edi]
push eax
call fcn.10030660
mov eax, dword [0x101963f0]
lea ebx, [edi - 1]
mov dword [0x10196404], ebx
mov dword [0x10196408], edi
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x10030da4
nop word [eax + eax]
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
mov edx, dword [0x101963f8]
imul edi, edi, 0x1000193
and edi, ebx
mov ebx, dword [edx + edi*8]
lea edx, [edx + edi*8]
mov dword [ebp - 0xc], edx
cmp ebx, esi
jne 0x10030d02
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x10030d6f
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x10030d3c
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x10030d34
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], eax
jmp 0x10030d6f
cmp ebx, edx
je 0x10030d4c
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x10030d80
cmp ebx, edx
jne 0x10030d40
mov ebx, dword [eax + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edi
mov dword [edx], eax
mov eax, ecx
cmp ecx, esi
je 0x10030da4
mov ebx, dword [0x10196404]
jmp 0x10030cb0
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x10030d6f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.invalid_hash_bucket_count
call fcn.100c4e74
int3
Function at 0x1003bae0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [ebx]
mov edi, dword [ebp + 0xc]
not eax
mov dword [ebp - 4], ebx
cmp edi, 8
jb 0x1003bb8f
mov ecx, edi
shr ecx, 3
mov dword [ebp + 8], ecx
mov ebx, dword [esi + 4]
sub edi, 8
mov ecx, dword [esi]
add esi, 8
xor ecx, eax
mov eax, ebx
shr eax, 0x10
movzx edx, al
mov eax, ebx
mov dword [ebp + 0xc], ecx
shr eax, 8
movzx ecx, al
mov eax, dword [edx*4 + 0x10148ad0]
mov edx, dword [ebp + 0xc]
xor eax, dword [ecx*4 + 0x10148ed0]
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10149ad0]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10149ed0]
mov ecx, ebx
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x101486d0]
mov ecx, edx
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x101496d0]
movzx ecx, bl
xor eax, dword [ecx*4 + 0x101492d0]
movzx ecx, dl
xor eax, dword [ecx*4 + 0x1014a2d0]
sub dword [ebp + 8], 1
jne 0x1003bb07
mov ebx, dword [ebp - 4]
test edi, edi
je 0x1003bbad
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x101486d0]
sub edi, 1
jne 0x1003bb93
pop edi
not eax
pop esi
mov dword [ebx], eax
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1003bcb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10188d88
push 0x100dea00
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x101911c0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
push 0x1c
lea eax, [ebp - 0x38]
push eax
push ecx
call dword [sym.imp.KeRnEl32.DlL_VirtualQuery]
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x34]
cmp word [ecx], ax
jne 0x1003bd53
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x1003bd53
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x1003bd53
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x1003bd53
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x1003bd5c
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.100dd01c
mov esp, ebp
pop ebp
ret
Function at 0x1003c050
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x101911c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
lea ecx, [esi - 0x10000]
movzx eax, cx
mov edi, ecx
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
jbe 0x1003c119
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x1003c096
sub edi, 0x8000000
jmp 0x1003c111
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KeRnEl32.DlL_VirtualQuery]
test eax, eax
je 0x1003c119
cmp dword [ebp - 0x10], 0x10000
jne 0x1003c0fc
cmp dword [ebp - 0x14], 0x10000
jb 0x1003c0fc
push pe_nt_image_headers32
push 0x3000
push 0x10000
push edi
call dword [sym.imp.KeRnEl32.DlL_VirtualAlloc]
test eax, eax
jne 0x1003c1d4
call dword [sym.imp.KeRnEl32.DlL_GetLastError]
cmp eax, 0x677
je 0x1003c119
sub edi, 0x10000
jmp 0x1003c111
mov ecx, dword [ebp - 0x1c]
add ecx, 0xffff0000
mov edi, ecx
movzx eax, di
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
ja 0x1003c081
movzx eax, si
test eax, eax
je 0x1003c128
sub esi, eax
add esi, 0x10000
mov edi, dword [ebp + 8]
cmp esi, edi
jae 0x1003c1d2
mov ebx, dword [sym.imp.KeRnEl32.DlL_VirtualQuery]
nop dword [eax]
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x1003c155
add esi, 0x8000000
jmp 0x1003c1ca
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call ebx
test eax, eax
je 0x1003c1d2
cmp dword [ebp - 0x10], 0x10000
mov ecx, dword [ebp - 0x14]
jne 0x1003c1b5
cmp ecx, 0x10000
jb 0x1003c1b5
push pe_nt_image_headers32
push 0x3000
push 0x10000
push esi
call dword [sym.imp.KeRnEl32.DlL_VirtualAlloc]
test eax, eax
jne 0x1003c1d4
call dword [sym.imp.KeRnEl32.DlL_GetLastError]
cmp eax, 0x677
je 0x1003c1d2
add esi, 0x10000
jmp 0x1003c1ca
mov esi, dword [ebp - 0x20]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x1003c1ca
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, edi
jb 0x1003c140
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100dd01c
mov esp, ebp
pop ebp
ret
Function at 0x1003c1f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x101911c0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1019645c], 0
jne 0x1003c279
call dword [sym.imp.KeRnEl32.DlL_GetCurrentThreadId]
mov ecx, eax
mov edx, 0x1019645c
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x1003c279
push esi
mov esi, dword [0x10196468]
mov dword [0x10196470], eax
mov dword [0x1019646c], eax
mov dword [0x10196464], eax
push edi
test esi, esi
je 0x1003c25a
mov edi, dword [sym.imp.KeRnEl32.DlL_VirtualProtect]
lea eax, [ebp - 8]
push eax
push pe_nt_image_headers32
push 0x10000
push esi
call edi
test eax, eax
je 0x1003c271
mov esi, dword [esi + 4]
test esi, esi
jne 0x1003c241
xor eax, eax
pop edi
mov dword [0x10196458], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100dd01c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KeRnEl32.DlL_GetLastError]
jmp 0x1003c25c
mov ecx, dword [ebp - 4]
mov eax, 0x10dd
xor ecx, ebp
call fcn.100dd01c
mov esp, ebp
pop ebp
ret
Function at 0x1003c6c0
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x10196458]
push esi
mov esi, ecx
test eax, eax
jne 0x1003c72e
call dword [sym.imp.KeRnEl32.DlL_GetCurrentThread]
cmp esi, eax
jne 0x1003c6da
xor eax, eax
pop esi
ret
push edi
push 8
call fcn.100dd060
add esp, 4
mov edi, eax
push esi
call dword [sym.imp.KeRnEl32.DlL_SuspendThread]
cmp eax, 0xffffffff
jne 0x1003c71b
call dword [sym.imp.KeRnEl32.DlL_GetLastError]
mov esi, eax
push 8
push edi
call fcn.100dd04d
add esp, 8
mov dword [0x10196458], esi
mov eax, esi
mov dword [0x10196464], 0
pop edi
pop esi
ret
mov eax, dword [0x1019646c]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], esi
mov dword [0x1019646c], edi
pop edi
pop esi
ret
Function at 0x1003dba0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub eax, 0
je 0x1003dbd8
sub eax, 1
jne 0x1003dbe4
push dword [ebp + 8]
call dword [sym.imp.KeRnEl32.DlL_DisableThreadLibraryCalls]
push 0
push 0
push dword [ebp + 8]
push 0x100c4820
push 0
push 0
call dword [sym.imp.KeRnEl32.DlL_CreateThread]
mov eax, 1
pop ebp
ret 0xc
push dword [0x10195a10]
call dword [sym.imp.KeRnEl32.DlL_FreeLibrary]
mov eax, 1
pop ebp
ret 0xc
Function at 0x10047360
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x10047392
jl 0x10047385
test ecx, ecx
jne 0x10047392
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x1004746f
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
je 0x100473c2
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x100473c4
xor eax, eax
cdq
mov dword [esp + 0x1c], edx
mov esi, eax
test edx, edx
jl 0x10047418
jg 0x100473d5
test esi, esi
je 0x10047418
mov eax, dword [esp + 0x10]
cmp eax, edx
jg 0x100473e9
jl 0x100473e3
cmp ecx, esi
jae 0x100473e9
mov esi, ecx
mov dword [esp + 0x1c], eax
push esi
push dword [esp + 0x1c]
push edi
call fcn.100dee40
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
sub ecx, esi
mov eax, dword [eax]
sbb edx, dword [esp + 0x1c]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x14]
jmp 0x1004743c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x10047458
mov ecx, dword [esp + 0xc]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
lea eax, [ebx + 0x2c]
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
test edx, edx
jg 0x100473a7
jl 0x10047458
test ecx, ecx
jne 0x100473a7
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x100474ad
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x100474ad
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.100dee40
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x10047517
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x100474d3
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x10047502
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.100e9841
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10047517
cmp edi, eax
ja 0x100474e0
test edi, edi
je 0x10047517
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.100e9841
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc