joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10001840
Capabilities:
Clear file content
Delete file
Extract resource via kernel32 functions
Set file attributes
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
push 0x80
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov eax, dword [edi]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
lea ecx, [esp + 0x14]
mov ebp, eax
push ecx
add ebx, 0xfffffffc
push ebp
add edi, 4
push ebx
push edi
call fcn.10003550
add esp, 0x14
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1000191c
mov edi, dword [esp + 0x10]
lea edx, [esp + 0x20]
push 0
push edx
push edi
push ebp
push esi
mov ebx, ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10001901
mov eax, dword [esp + 0x20]
cmp edi, eax
je 0x10001907
add ebx, eax
sub edi, eax
lea eax, [esp + 0x20]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100018e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10002400
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, dword [sym.imp.WS2_32.dll_WSASetEvent]
push edi
mov eax, dword [esi + 0x2b4]
lea edi, [esi + 0x2b4]
test eax, eax
je 0x10002424
mov eax, dword [esi + 0x2ac]
push eax
call ebx
mov ecx, esi
call fcn.100024d0
cmp dword [edi], 0
je 0x10002478
mov ecx, dword [esi + 0x2ac]
push ecx
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
call ebx
push 0x3e8
push 1
push edi
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
jne 0x10002469
mov edx, dword [edi]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xa
call ebx
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
mov ecx, esi
call fcn.10002550
mov eax, dword [esi + 0x2b8]
test eax, eax
je 0x10002492
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esi + 0x18]
mov dword [esi + 0x2b8], 0
cmp eax, 0x18
mov dword [esi + 0x2bc], 0
je 0x100024c0
mov dword [eax*4 + 0x10005488], 0
mov dword [esi + 0x18], 0x18
pop edi
pop esi
pop ebx
ret
Function at 0x100024d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x34
push esi
mov esi, ecx
mov eax, dword [esi + 0x2a8]
cmp eax, 0xffffffff
je 0x1000253f
mov ecx, dword [esi + 0x2b0]
push edi
push 0
push ecx
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
mov edx, dword [esi + 0x2a8]
push 1
push edx
call dword [sym.imp.WS2_32.dll_shutdown]
mov edi, dword [sym.imp.WS2_32.dll_recv]
mov eax, 1
cmp eax, 0xffffffff
je 0x10002527
mov ecx, dword [esi + 0x2a8]
push 0
lea eax, [esp + 0xc]
push 0x32
push eax
push ecx
call edi
test eax, eax
jne 0x1000250c
mov edx, dword [esi + 0x2a8]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x2a8], 0xffffffff
pop edi
pop esi
add esp, 0x34
ret

Function at 0x10002550
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0x64
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10002581
mov ecx, dword [esi + 0x18]
push ecx
call dword [0x10005458]
mov edx, dword [esi + 0x18]
push edx
call dword [0x10005470]
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
Function at 0x10002880
Capabilities:
Check for time delay via gettickcount
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x134
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx + 0x2a8]
cmp edi, 0xffffffff
je 0x10002976
mov eax, 1
xor esi, esi
mov word [esp + 0x14], ax
mov dword [esp + 0x40], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x44]
push esi
push ecx
push esi
push esi
mov dword [esp + 0x24], 0x82020476
mov word [esp + 0x2a], si
mov dword [esp + 0x58], edi
mov dword [esp + 0x34], esi
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x10002976
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, dword [sym.imp.WS2_32.dll_send]
push esi
lea edx, [esp + 0x14]
push 8
push edx
push edi
mov dword [esp + 0x28], eax
call ebp
cmp eax, 0xffffffff
je 0x10002976
mov ebx, dword [sym.imp.USER32.dll_PeekMessageA]
add esi, eax
cmp esi, 8
jge 0x10002976
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x18]
cmp eax, 0x1388
jae 0x10002976
push 1
push 0
push 0
lea eax, [esp + 0x30]
push 0
push eax
call ebx
test eax, eax
je 0x10002957
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
lea eax, [esp + 0x30]
push 0
push eax
call ebx
test eax, eax
jne 0x1000292e
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 8
push 0
sub ecx, esi
lea edx, [esp + esi + 0x14]
push ecx
push edx
push edi
call ebp
cmp eax, 0xffffffff
jne 0x10002903
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x134
ret
Function at 0x10002990
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, 0x1f430
call fcn.10003650
push ebx
push ebp
push esi
push edi
mov ebp, ecx
xor esi, esi
mov ecx, 0xa
xor eax, eax
mov edx, dword [ebp + 0x2a8]
lea edi, [esp + 0x18]
mov dword [esp + 0x14], esi
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x2b0]
lea eax, [esp + 0x14]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
cmp eax, 0xffffffff
jne 0x100029e9
mov eax, dword [ebp + 0x2b0]
push eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1f430
ret
test byte [esp + 0x14], 1
je 0x10002b4d
mov eax, dword [ebp + 0x2bc]
mov ecx, 0x1f400
sub ecx, eax
push esi
lea edx, [esp + eax + 0x44]
mov eax, dword [ebp + 0x2a8]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
mov eax, dword [ebp + 0x2bc]
mov edx, dword [esp + eax + 0x40]
lea ecx, [esp + eax + 0x40]
cmp edx, 0x82020476
mov dword [esp + 0x10], ecx
jne 0x10002a5c
mov eax, dword [ebp + 0x2b8]
cmp eax, esi
je 0x10002a50
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [ebp + 0x2b8], esi
mov dword [ebp + 0x2bc], esi
mov ecx, dword [ebp + 0x2bc]
lea esi, [esp + ecx + 0x40]
jmp 0x10002aa3
mov edx, dword [ebp + 0x2b8]
cmp edx, esi
je 0x10002aa1
mov ecx, eax
mov esi, edx
mov edx, ecx
lea edi, [esp + 0x40]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add ebx, eax
mov eax, dword [ebp + 0x2b8]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [ebp + 0x2b8], eax
mov dword [ebp + 0x2bc], eax
lea esi, [esp + 0x40]
jmp 0x10002aa3
mov esi, ecx
test ebx, ebx
jle 0x10002b4d
cmp ebx, 8
jb 0x10002af4
test ebx, ebx
jle 0x10002ac7
mov eax, dword [esi]
mov dword [esp + 0x10], esi
cmp eax, 0x82020476
je 0x10002ac7
dec ebx
inc esi
test ebx, ebx
jg 0x10002ab4
mov eax, dword [esp + 0x10]
xor edi, edi
mov di, word [eax + 6]
add edi, 8
cmp edi, ebx
jg 0x10002b26
push edi
push esi
mov ecx, ebp
call fcn.10002b60
sub ebx, edi
add esi, edi
test ebx, ebx
jg 0x10002aab
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1f430
ret
push ebx
mov dword [ebp + 0x2bc], ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, ebx
mov edi, eax
mov edx, ecx
mov dword [ebp + 0x2b8], eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1f430
ret
push ebx
mov dword [ebp + 0x2bc], ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ecx, ebx
mov dword [ebp + 0x2b8], eax
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1f430
ret
Function at 0x10002bf0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x14
push esi
push edi
mov esi, ecx
call fcn.100024d0
push 0
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
cmp eax, 0xffffffff
mov dword [esi + 0x2a8], eax
jne 0x10002c24
pop edi
mov eax, 3
pop esi
add esp, 0x14
ret
xor eax, eax
lea edi, [esi + 0x20]
mov dword [esp + 0xc], eax
push edi
mov dword [esp + 0x14], eax
mov word [esp + 0x10], 2
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov cx, word [esi + 0xa0]
mov dword [esp + 0x10], eax
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xe], ax
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x10002c7d
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10002cc6
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0x10], ecx
mov eax, dword [esi + 0x2a8]
push 0
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push 0x10
push edx
push eax
call dword [sym.imp.WS2_32.dll_WSAConnect]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
jne 0x10002cd1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x10002cd1
mov ecx, dword [esi + 0x2a8]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x2a8], 0xffffffff
pop edi
mov eax, 7
pop esi
add esp, 0x14
ret
mov eax, dword [esi + 0x2a8]
lea edx, [esp + 8]
push 4
push edx
push 0x1002
push 0xffff
push eax
mov dword [esp + 0x1c], 0x1f400
call dword [sym.imp.WS2_32.dll_setsockopt]
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
Function at 0x100034e0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 3
mov eax, dword [esi + 0x18]
push eax
call dword [0x100053f8]
mov ecx, dword [esi + 0x18]
push 0
push ecx
call dword [0x100053fc]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x18]
push edx
push eax
call dword [0x1000546c]
mov ecx, dword [esi + 0x18]
push 0x2710
push ecx
call dword [0x10005460]
mov edx, dword [esi + 8]
push 0
push 0x28
push 0x64
push edx
mov dword [esi + 0x7d2e4], 0
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [esi + 8]
push 5
push eax
mov dword [esi + 0x1c], 1
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop esi
ret
Function at 0x10007e90
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010632b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 8
push esi
push edi
mov eax, dword [0x10190120]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
lea esi, [edi + 0xc]
mov dword [edi], vtable.EventInterface.0
lea ecx, [esi + 8]
mov dword [ebp - 0x18], 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 0x10138ca3
mov byte [esi], 0xff
mov dword [esi + 4], 0xffffffff
call fcn.1000a480
mov word [esi + 0x20], 0
mov byte [esi + 0x22], 0
mov ecx, dword [ebx + 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 0x10007f61
cmp dword [eax + 0x14], 0x10
mov edx, dword [eax + 0x10]
jb 0x10007f54
mov eax, dword [eax]
push edx
push eax
lea ecx, [esi + 8]
call fcn.1000a480
mov ecx, dword [ebx + 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 [ebx + 0xc]
mov dword [edi + 8], eax
call fcn.100c1472
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
mov esp, ebx
pop ebx
ret 8

Function at 0x1000a7f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10106570
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10190120]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
push 8
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.100d8756
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.100c18be
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
mov dword [edx], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10021010
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.10021200
mov eax, dword [ebp - 8]
test eax, eax
je 0x10021066
add eax, 0xc
mov esp, ebp
pop ebp
ret 4
push str.invalid_unordered_map_K__T__key
call fcn.100c163a
int3

Function at 0x10021370
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
test esi, esi
je 0x1002139b
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x10021384
pop edi
mov eax, edx
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret
Function at 0x10032a00
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 0x10032b6d
lea eax, [ecx - 1]
mov esi, dword [0x101953fc]
or eax, edi
mov dword [ebp - 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x10195404
lea eax, [edi + edi]
push eax
call fcn.10032420
mov eax, dword [0x101953fc]
lea ebx, [edi - 1]
mov dword [0x10195410], ebx
mov dword [0x10195414], edi
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x10032b64
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 [0x10195404]
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 0x10032ac2
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x10032b2f
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x10032afc
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x10032af4
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 0x10032b2f
cmp ebx, edx
je 0x10032b0c
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x10032b40
cmp ebx, edx
jne 0x10032b00
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 0x10032b64
mov ebx, dword [0x10195410]
jmp 0x10032a70
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 0x10032b2f
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push str.invalid_hash_bucket_count
call fcn.100c161a
int3
Function at 0x1003e7f0
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 0x1003e89f
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 + 0x1014bcc0]
mov edx, dword [ebp + 0xc]
xor eax, dword [ecx*4 + 0x1014c0c0]
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
xor eax, dword [ecx*4 + 0x1014ccc0]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x1014d0c0]
mov ecx, ebx
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x1014b8c0]
mov ecx, edx
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x1014c8c0]
movzx ecx, bl
xor eax, dword [ecx*4 + 0x1014c4c0]
movzx ecx, dl
xor eax, dword [ecx*4 + 0x1014d4c0]
sub dword [ebp + 8], 1
jne 0x1003e817
mov ebx, dword [ebp - 4]
test edi, edi
je 0x1003e8bd
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x1014b8c0]
sub edi, 1
jne 0x1003e8a3
pop edi
not eax
pop esi
mov dword [ebx], eax
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1003e9c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10188788
push 0x100da0c0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x10190120]
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 0x1003ea63
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x1003ea63
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x1003ea63
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x1003ea63
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x1003ea6c
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.100d8712
mov esp, ebp
pop ebp
ret
Function at 0x1003ed80
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x10190120]
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 0x1003ee49
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x1003edc6
sub edi, 0x8000000
jmp 0x1003ee41
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 0x1003ee49
cmp dword [ebp - 0x10], 0x10000
jne 0x1003ee2c
cmp dword [ebp - 0x14], 0x10000
jb 0x1003ee2c
push 0x40
push 0x3000
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1003ef04
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x677
je 0x1003ee49
sub edi, 0x10000
jmp 0x1003ee41
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 0x1003edb1
movzx eax, si
test eax, eax
je 0x1003ee58
sub esi, eax
add esi, 0x10000
mov edi, dword [ebp + 8]
cmp esi, edi
jae 0x1003ef02
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
nop dword [eax]
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x1003ee85
add esi, 0x8000000
jmp 0x1003eefa
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 0x1003ef02
cmp dword [ebp - 0x10], 0x10000
mov ecx, dword [ebp - 0x14]
jne 0x1003eee5
cmp ecx, 0x10000
jb 0x1003eee5
push 0x40
push 0x3000
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x1003ef04
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x677
je 0x1003ef02
add esi, 0x10000
jmp 0x1003eefa
mov esi, dword [ebp - 0x20]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x1003eefa
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, edi
jb 0x1003ee70
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100d8712
mov esp, ebp
pop ebp
ret
Function at 0x1003ef20
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10190120]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10195468], 0
jne 0x1003efa9
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
mov edx, 0x10195468
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x1003efa9
push esi
mov esi, dword [0x10195474]
mov dword [0x1019547c], eax
mov dword [0x10195478], eax
mov dword [0x10195470], eax
push edi
test esi, esi
je 0x1003ef8a
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
push esi
call edi
test eax, eax
je 0x1003efa1
mov esi, dword [esi + 4]
test esi, esi
jne 0x1003ef71
xor eax, eax
pop edi
mov dword [0x10195424], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100d8712
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1003ef8c
mov ecx, dword [ebp - 4]
mov eax, 0x10dd
xor ecx, ebp
call fcn.100d8712
mov esp, ebp
pop ebp
ret
Function at 0x1003f400
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x10195424]
push esi
mov esi, ecx
test eax, eax
jne 0x1003f46e
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp esi, eax
jne 0x1003f41a
xor eax, eax
pop esi
ret
push edi
push 8
call fcn.100d8756
add esp, 4
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1003f45b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 8
push edi
call fcn.100d8743
add esp, 8
mov dword [0x10195424], esi
mov eax, esi
mov dword [0x10195470], 0
pop edi
pop esi
ret
mov eax, dword [0x10195478]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], esi
mov dword [0x10195478], edi
pop edi
pop esi
ret
Function at 0x100409d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x100409f8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0
push 0
push dword [ebp + 8]
push 0x100ab760
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc