joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002f770
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10091ec6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
push 8
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.100684b8
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10069525
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x10], ecx
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x34], esi
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov ecx, edi
mov eax, dword [edi + 0x20]
push 0
push dword [ebp + 8]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov dword [edi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
call fcn.1002f5e0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x1002fd50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10091ec6
push eax
mov dword fs:[0], esp
push esi
push edi
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.100684b8
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10069525
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100306e0
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov edx, 0x80
xor ecx, ecx
mov dword [ebp - 4], ecx
xor eax, eax
test cl, 1
cmovne eax, edx
shr ecx, 1
test cl, 1
je 0x10030706
bts eax, 6
shr ecx, 1
test cl, 1
je 0x10030711
bts eax, 5
shr ecx, 1
test cl, 1
je 0x1003071c
bts eax, 4
shr ecx, 1
test cl, 1
je 0x10030727
bts eax, 3
shr ecx, 1
test cl, 1
je 0x10030732
bts eax, 2
shr ecx, 1
test cl, 1
je 0x1003073d
bts eax, 1
test cl, 2
je 0x10030746
bts eax, 0
shl eax, 0x18
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
add eax, eax
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
and edx, 0x80000000
neg edx
lea eax, [ecx + ecx]
sbb edx, edx
and edx, 0x4c11db7
xor edx, eax
mov ecx, edx
and ecx, 0x80000000
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
and edx, 0x80000000
neg edx
lea eax, [ecx + ecx]
sbb edx, edx
and edx, 0x4c11db7
xor edx, eax
mov ecx, edx
and ecx, 0x80000000
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
and edx, 0x80000000
neg edx
lea eax, [ecx + ecx]
sbb edx, edx
and edx, 0x4c11db7
xor edx, eax
mov ecx, edx
and ecx, 0x80000000
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x4c11db7
xor ecx, eax
mov ebx, ecx
and ebx, 0x80000000
neg ebx
lea eax, [ecx + ecx]
sbb ebx, ebx
and ebx, 0x4c11db7
xor ebx, eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [edi + eax*4], ebx
lea esi, [edi + eax*4]
lea ecx, [edx + 1]
nop
test bl, 1
je 0x1003081f
mov eax, 0x20
sub eax, ecx
bts edx, eax
inc ecx
shr ebx, 1
cmp ecx, 0x21
jl 0x10030810
mov ecx, dword [ebp - 4]
inc ecx
mov dword [esi], edx
mov dword [ebp - 4], ecx
mov edx, 0x80
cmp ecx, 0xff
jle 0x100306f3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10030850
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
push 0x100a786c
push dword [ebp + 8]
lea eax, [ebp - 4]
mov dword [ebp - 8], ecx
push eax
or ebx, 0xffffffff
mov dword [ebp - 4], 0
call fcn.10074068
add esp, 0xc
test eax, eax
je 0x10030889
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
push edi
nop dword [eax + eax]
push dword [ebp - 4]
lea eax, [ebp - 0x408]
push 0x400
push 1
push eax
call fcn.1007621d
mov edi, eax
lea esi, [ebp - 0x408]
add esp, 0x10
mov dword [ebp + 8], edi
mov edx, edi
test edi, edi
je 0x100308d9
mov edi, dword [ebp - 8]
nop dword [eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [edi + ecx*4]
sub edx, 1
jne 0x100308c0
mov edi, dword [ebp + 8]
cmp edi, 0x400
je 0x10030890
push dword [ebp - 4]
call fcn.10073320
add esp, 4
not ebx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10030900
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push 0x1009dfcc
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push eax
mov dword [edi], 0xffffffff
mov dword [ebp + 0xc], 0
call fcn.100740af
add esp, 0xc
test eax, eax
je 0x10030939
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0xc
push ebx
push 0x400
call fcn.1007ada5
add esp, 4
mov ebx, eax
mov dword [ebp + 8], ebx
push dword [ebp + 0xc]
test ebx, ebx
jne 0x10030965
call fcn.10073320
add esp, 4
xor al, al
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
push 0x400
push 1
push ebx
call fcn.1007621d
add esp, 0x10
test eax, eax
je 0x100309bf
push esi
nop word [eax + eax]
mov esi, ebx
test eax, eax
je 0x100309a7
mov ebx, dword [edi]
lea esi, [esi + 1]
movzx ecx, byte [esi - 1]
movzx edx, bl
xor edx, ecx
shr ebx, 8
mov ecx, dword [ebp - 4]
xor ebx, dword [ecx + edx*4]
mov dword [edi], ebx
sub eax, 1
jne 0x10030986
mov ebx, dword [ebp + 8]
push dword [ebp + 0xc]
push 0x400
push 1
push ebx
call fcn.1007621d
add esp, 0x10
test eax, eax
jne 0x10030980
pop esi
push ebx
call fcn.1007604c
push dword [ebp + 0xc]
call fcn.10073320
not dword [edi]
add esp, 8
mov al, 1
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100309e0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push 0x100a786c
push dword [ebp + 8]
mov dword [ebp - 4], ecx
push eax
mov dword [edi], 0xffffffff
mov dword [ebp + 0xc], 0
call fcn.10074068
add esp, 0xc
test eax, eax
je 0x10030a19
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0xc
push ebx
push 0x400
call fcn.1007ada5
add esp, 4
mov ebx, eax
mov dword [ebp + 8], ebx
push dword [ebp + 0xc]
test ebx, ebx
jne 0x10030a45
call fcn.10073320
add esp, 4
xor al, al
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
push 0x400
push 1
push ebx
call fcn.1007621d
add esp, 0x10
test eax, eax
je 0x10030a9f
push esi
nop word [eax + eax]
mov esi, ebx
test eax, eax
je 0x10030a87
mov ebx, dword [edi]
lea esi, [esi + 1]
movzx ecx, byte [esi - 1]
movzx edx, bl
xor edx, ecx
shr ebx, 8
mov ecx, dword [ebp - 4]
xor ebx, dword [ecx + edx*4]
mov dword [edi], ebx
sub eax, 1
jne 0x10030a66
mov ebx, dword [ebp + 8]
push dword [ebp + 0xc]
push 0x400
push 1
push ebx
call fcn.1007621d
add esp, 0x10
test eax, eax
jne 0x10030a60
pop esi
push ebx
call fcn.1007604c
push dword [ebp + 0xc]
call fcn.10073320
not dword [edi]
add esp, 8
mov al, 1
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10030b10
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10030b37
xor al, al
mov esp, ebp
pop ebp
ret 4
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x100cd31c], eax
cmp eax, 0xffffffff
je 0x10030b2f
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [0x100cd320], eax
test eax, eax
je 0x10030b2f
mov dword [0x101cd32c], 0x10031630
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x10030b70
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [0x100cd31c], 0xffffffff
push esi
jne 0x10030ba6
mov ecx, 1
call fcn.10064250
push eax
push 0
push 0x101cd6e8
call fcn.1005bcf0
add esp, 0xc
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
mov eax, 2
mov word [esp + 0xc], ax
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [ebp + 8]
push esi
mov word [esp + 0xe], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x10030bf3
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10030bf3
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
push ecx
push dword [eax]
lea eax, [esp + 0x14]
push eax
call fcn.1006f680
add esp, 0xc
push 0x10
lea eax, [esp + 0xc]
push eax
push dword [0x100cd31c]
call dword [sym.imp.WS2_32.dll_connect]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x10030c1a
call esi
cmp eax, 0x2733
jne 0x10030c50
push 0x23
push dword [0x100cd320]
push dword [0x100cd31c]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x10030c63
call esi
push eax
mov ecx, 3
call fcn.10064250
push eax
push 0
push 0x101cd6e8
call fcn.1005bcf0
add esp, 0x10
mov ecx, 0x100cd318
call fcn.10030cd0
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x80000
push 0
push 0x100cd324
call fcn.1006fc00
add esp, 0xc
mov dword [0x1014d324], 0
push 0x80000
push 0
push 0x1014d328
call fcn.1006fc00
add esp, 0xc
mov dword [0x101cd328], 0
push 0
push 0x101d9a2c
push ecx
push 0x100cd318
push 0x10031170
sub esp, 8
push dword [0x101cd34c]
call fcn.10062550
mov byte [0x101cd350], 1
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x10030cd0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x100034], 0
je 0x10030d0a
push 0
mov dword [0x101d9a2c], 0xffffffff
push dword [esi + 0x100034]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x100034]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x100034], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x10030d20
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
test eax, eax
je 0x10030d35
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 8], 0
mov byte [esi + 0x100038], 0
pop esi
ret
Function at 0x10030d40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], 0
push edi
push 0
mov eax, 0x80000
mov ecx, dword [esi + 0x8000c]
sub eax, ecx
push eax
lea eax, [esi + 0xc]
add eax, ecx
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x10030d95
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x10030e93
call edi
mov ecx, 4
jmp 0x10030ed9
add dword [esi + 0x8000c], eax
cmp dword [esi + 0x8000c], 4
jl 0x10030e93
xor ecx, ecx
lea edi, [esi + 0xc]
lea eax, [edi + ecx]
mov dword [ebp - 0xc], eax
mov al, byte [eax]
cmp al, 0xc1
jne 0x10030dc6
movzx ebx, byte [ecx + esi + 0xd]
mov dl, al
mov al, byte [ecx + esi + 0xf]
jmp 0x10030de7
cmp al, 0xc2
jne 0x10030ecf
mov dl, al
movzx eax, byte [ecx + esi + 0xd]
shl ax, 8
movzx ebx, ax
movzx eax, byte [ecx + esi + 0xe]
or ebx, eax
mov al, byte [ecx + esi + 0x10]
cmp ebx, 4
jl 0x10030e9c
cmp ebx, 0x80000
jg 0x10030e9c
cmp ebx, dword [esi + 0x8000c]
jg 0x10030e6a
lea edi, [ecx + esi]
cmp dl, 0xc1
jne 0x10030e22
movzx eax, byte [ecx + esi + 0xe]
lea edx, [ebx - 3]
push eax
lea ecx, [edi + 0xf]
call fcn.10062fb0
mov al, byte [edi + 0xf]
jmp 0x10030e36
movzx eax, byte [ecx + esi + 0xf]
lea edx, [ebx - 4]
push eax
lea ecx, [edi + 0x10]
call fcn.10062fb0
mov al, byte [edi + 0x10]
add esp, 4
mov byte [ebp - 4], al
mov eax, dword [esi + 0x100014]
push ebx
push dword [ebp - 0xc]
push dword [ebp - 4]
call eax
mov ecx, dword [ebp - 8]
add esp, 0xc
sub dword [esi + 0x8000c], ebx
add ecx, ebx
cmp dword [esi + 0x8000c], 0
mov dword [ebp - 8], ecx
jle 0x10030e93
jmp 0x10030daa
test ecx, ecx
jle 0x10030e93
mov eax, dword [esi + 0x8000c]
test eax, eax
jle 0x10030e93
mov edx, 0x80000
sub edx, ecx
cmp eax, edx
jg 0x10030e93
push eax
lea eax, [esi + 0xc]
add eax, ecx
push eax
push edi
call fcn.1006dc80
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, al
mov ecx, 6
push eax
movzx eax, dl
push ebx
push eax
call fcn.10064250
push eax
push 0
push 0x101cd6e8
call fcn.1005bcf0
add esp, 0x18
mov ecx, esi
call fcn.10030cd0
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [ecx + esi + 0xc]
mov ecx, 5
push eax
call fcn.10064250
push eax
push 0
push 0x101cd6e8
call fcn.1005bcf0
add esp, 0x10
mov ecx, esi
call fcn.10030cd0
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10030f00
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x80004
call fcn.1008e5d0
push ebx
push esi
push edi
push 0x101cd334
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x100cd31c]
cmp ebx, 0xffffffff
je 0x10030fc0
cmp byte [0x101cd350], 0
je 0x10030fc0
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push esi
push dword [ebp + 8]
push eax
call fcn.1006f680
mov al, byte [esp + 0x1c]
add esp, 0xc
cmp al, 0xc1
jne 0x10030f63
push dword [esp + 0x12]
lea edx, [esi - 3]
lea ecx, [esp + 0x17]
jmp 0x10030f7f
cmp al, 0xc3
jne 0x10030f74
push dword [esp + 0x15]
lea edx, [esi - 6]
lea ecx, [esp + 0x1a]
jmp 0x10030f7f
push dword [esp + 0x13]
lea edx, [esi - 4]
lea ecx, [esp + 0x18]
call fcn.10063050
mov eax, dword [0x101cd328]
add esp, 4
test eax, eax
jle 0x10031007
lea ecx, [eax + esi]
cmp ecx, 0x80000
jle 0x10030fd6
push ecx
mov ecx, 7
call fcn.10064250
push eax
push 0
push 0x101cd6e8
call fcn.1005bcf0
add esp, 0x10
mov ecx, 0x100cd318
call fcn.10030cd0
push 0x101cd334
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
lea ecx, [esp + 0x14]
push ecx
lea eax, [eax + 0x1014d328]
push eax
call fcn.1006f680
add esp, 0xc
add dword [0x101cd328], esi
push 0x101cd334
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor edi, edi
test esi, esi
jle 0x10030ff1
nop dword [eax]
push 0
push esi
lea eax, [esp + 0x18]
add eax, edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10031036
sub esi, eax
add edi, eax
test esi, esi
jle 0x10030ff1
mov ebx, dword [0x100cd31c]
jmp 0x10031010
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp eax, 0x2733
jne 0x10031093
mov ecx, dword [0x101cd328]
lea eax, [ecx + esi]
cmp eax, 0x80000
jle 0x10031060
push eax
mov ecx, 8
jmp 0x10030fa1
lea eax, [esp + 0x10]
add eax, edi
push esi
push eax
lea eax, [ecx + 0x1014d328]
push eax
call fcn.1006f680
add dword [0x101cd328], esi
add esp, 0xc
push 0x101cd334
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
call ebx
push eax
mov ecx, 9
jmp 0x10030fa1
Function at 0x100310a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x10001c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
cmp dword [esi + 0x100010], edi
jle 0x100310f2
lea eax, [esi + 0x80010]
push 0
push dword [esi + 0x100010]
add eax, edi
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x100310ff
sub dword [esi + 0x100010], eax
add edi, eax
cmp dword [esi + 0x100010], 0
lea eax, [esi + 0x80010]
jg 0x100310c2
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10031137
push dword [esi + 0x100010]
lea eax, [esi + 0x80010]
add eax, edi
push eax
lea eax, [esi + 0x80010]
push eax
call fcn.1006dc80
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov ecx, 0xa
call fcn.10064250
push eax
push 0
push 0x101cd6e8
call fcn.1005bcf0
add esp, 0x10
mov ecx, esi
call fcn.10030cd0
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x10031420
Capabilities:
Check if file exists
Encode data using xor
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
push esi
mov dword [esp + 0x10], 0
mov edx, 0xf
xor ecx, ecx
nop dword [eax]
mov al, byte [ecx + str.LMEZZQY_KEYnnnqmSLLVPH]
xor al, dl
mov byte [esp + ecx + 0x34], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x18
jb 0x10031440
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x50], 0
call esi
test eax, eax
jne 0x10031515
mov edx, 0x15
xor ecx, ecx
nop dword [eax]
mov al, byte [ecx + str.V_Kxnz_pg_wHDF]
xor al, dl
mov byte [esp + ecx + 0x14], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0xf
jb 0x10031480
lea eax, [esp + 0x14]
mov byte [esp + 0x23], 0
push eax
call esi
test eax, eax
jne 0x10031515
mov edx, 6
xor ecx, ecx
nop
mov al, byte [ecx + str.BTMk]
xor al, dl
mov byte [esp + ecx + 0x24], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0xf
jb 0x100314b0
lea eax, [esp + 0x24]
mov byte [esp + 0x33], 0
push eax
call esi
test eax, eax
jne 0x10031515
mov eax, 0x100a78d0
lea ecx, [esp + 0x70]
sub eax, 0x32593faf
push eax
call fcn.10033620
push eax
call esi
test eax, eax
jne 0x10031515
mov eax, str.S_Kxnz_pg_wHDF
lea ecx, [esp + 0x80]
sub eax, 0x43f2140e
push eax
call fcn.10033660
push eax
call esi
test eax, eax
jne 0x10031515
xor al, al
jmp 0x10031517
mov al, 1
test al, al
jne 0x10031621
mov edx, 6
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ecx + str.UHN__JHRByr_gzpcDNsuxrilbWQV_HSLXXEB_s_ZWSDdBKPRLZ2]
xor al, dl
mov byte [esp + ecx + 0x34], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x3b
jb 0x10031530
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
lea eax, [esp + 0x40]
mov byte [esp + 0x7b], 0
push eax
push closesocket
call esi
test eax, eax
jne 0x100315a6
push 4
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 4
push 0
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x75526f4e
push eax
push dword [esp + 0x1c]
mov word [esp + 0x30], 0x6e
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, 0xa1
xor ecx, ecx
nop dword [eax]
mov al, byte [ecx + 0x100a792c]
xor al, dl
mov byte [esp + ecx + 0x34], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x2a
jb 0x100315b0
lea eax, [esp + 0x10]
mov byte [esp + 0x5e], 0
push eax
push 0xf003f
push 0
lea eax, [esp + 0x40]
push eax
push closesocket
call esi
test eax, eax
jne 0x10031621
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x14]
push 4
lea eax, [esp + 0x10]
push eax
push 4
mov eax, 0x100a7958
push 0
sub eax, 0x38d41ae2
push eax
call fcn.100336a0
push eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10031780
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov al, byte [edi + 4]
test al, al
jne 0x100318f5
mov dword [0x101d9230], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, dword [edi + 8]
mov dword [0x101d92b4], eax
mov eax, dword [edi + 0xc]
mov dword [0x101d91b8], eax
mov eax, dword [edi + 0x10]
mov dword [0x101d9234], eax
mov eax, dword [edi + 0x14]
mov dword [0x101d9278], eax
mov eax, dword [edi + 0x18]
mov dword [0x101d92bc], eax
mov eax, dword [edi + 0x1c]
mov dword [0x101d9220], eax
mov eax, dword [edi + 0x20]
mov dword [0x101d92b8], eax
mov eax, dword [edi + 0x24]
mov dword [0x101d9290], eax
mov eax, dword [edi + 0x28]
mov dword [0x101d9210], eax
movzx eax, byte [edi + 0x2c]
mov dword [0x101d9204], eax
movzx eax, byte [edi + 0x2d]
mov dword [0x101d9274], eax
movzx eax, byte [edi + 0x30]
mov dword [0x101d9238], eax
movzx eax, byte [edi + 0x31]
mov dword [0x101d91c0], eax
movzx eax, byte [edi + 0x2f]
mov dword [0x101d920c], eax
mov eax, dword [edi + 0x5c]
mov dword [0x101cd428], eax
lea eax, [edi + 0x4b]
push eax
push 0x1009e034
push 0x101cd45b
call fcn.1002c420
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
add esp, 0xc
push eax
push 0x40
push 0x20
push 0x101d9294
call esi
push 0x20
push 0x101d2744
push 0x101d9294
call fcn.1006f680
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 0x20
push 0x101d9294
call esi
mov eax, dword [0x101cd6a0]
mov dword [0x101d921c], eax
movzx eax, byte [edi + 0x32]
inc al
mov byte [0x101d9268], al
movzx eax, byte [edi + 0x34]
add al, 2
mov byte [0x101d9269], al
movzx eax, byte [edi + 0x35]
add al, 3
mov byte [0x101d926a], al
movzx eax, byte [edi + 0x37]
add al, 4
mov byte [0x101d926b], al
movzx eax, byte [edi + 0x38]
add al, 5
mov byte [0x101d926c], al
mov eax, dword [0x101cd6a4]
mov dword [0x101d9264], eax
lea eax, [ebp - 4]
push eax
push 0x40
push 0x11
push 0x101d927c
call esi
movups xmm0, xmmword [edi + 0x3a]
movups xmmword [0x101d927c], xmm0
movzx eax, byte [edi + 0x4a]
mov byte [0x101d928c], al
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 0x11
push 0x101d927c
call esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
movzx eax, al
dec eax
cmp eax, 4
ja case.default.0x100318fe
jmp dword [eax*4 + 0x10031958]
push 0x1388
push 8
jmp 0x10031939
push 0x1388
push 9
jmp 0x10031939
push 0x1388
push 0xa
jmp 0x10031939
push 0x1388
push 0xb
jmp 0x10031939
push 0x1388
push 0xc
jmp 0x10031939
push 0x1388
push 0xd
call fcn.1005c200
push eax
push ecx
mov edx, 1
mov ecx, 0x101d7640
call fcn.10063180
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100326e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
mov ecx, 0x1e
movzx eax, byte [esi + 4]
push eax
call fcn.10064250
push eax
push 0
push 0x101cd6e8
call fcn.1005bcf0
movzx eax, byte [esi + 4]
add esp, 0x10
cmp eax, 0x10
ja case.0x10032715.7
jmp dword [eax*4 + 0x100328bc]
push 0x1388
push 0xf
jmp 0x1003289c
push 0x1388
push 0x10
jmp 0x1003289c
push 0x1388
push 0x11
jmp 0x1003289c
push 0x1388
push 0x12
jmp 0x1003289c
push 0x1388
push 0x13
jmp 0x1003289c
push 0x1388
push 0x16
jmp 0x1003289c
push 0x1388
push 0x18
jmp 0x1003289c
push 0x1388
push 0x19
jmp 0x1003289c
push 0x7d0
push 0x1a
call fcn.1005c200
push eax
push 1
mov edx, 2
mov ecx, 0x101d7768
call fcn.10063180
add esp, 0xc
call fcn.10062b40
pop esi
mov esp, ebp
pop ebp
ret
push 0xf1
push 0xc1
mov eax, 0x404b90
mov ecx, 0x101d91c4
call eax
push 2
mov esi, 0x4050d0
mov ecx, 0x101d91c4
call esi
push 2
mov ecx, 0x101d91c4
call esi
push 0
push 1
mov eax, 0x404d70
mov ecx, 0x101d91c4
call eax
push 0x32
push 0
push 0x101d91c4
call fcn.1006fc00
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret
call fcn.10031420
mov edx, 0xad
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ecx + 0x100a7ab0]
xor al, dl
mov byte [ebp + ecx - 0x11], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x10
jb 0x10032810
lea eax, [ebp - 0x11]
mov byte [ebp - 1], 0
push eax
call fcn.1007b838
add esp, 4
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x101d9a6c], 0
jne case.0x10032715.0
mov dword [0x101d9a6c], 0xe
push 0
push 0
push ecx
push 0
push 0x10031c70
sub esp, 8
push 0
call fcn.10062550
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x101d9a6c], 0
jne case.0x10032715.0
mov dword [0x101d9a6c], 0xf
jmp 0x10032850
cmp dword [0x101d9a6c], 0
jne case.0x10032715.0
mov dword [0x101d9a6c], 0x10
jmp 0x10032850
push 0x1388
push 0x15
call fcn.1005c200
push eax
push 1
mov edx, 2
mov ecx, 0x101d7768
call fcn.10063180
add esp, 0xc
pop esi
mov esp, ebp
pop ebp
ret