joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2503dee4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x2503def6
add esp, 0xfffffff0
call fcn.24ff3b40
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.2500a1e8
mov eax, dword [0x25047778]
mov dword [eax + 4], ebx
mov dword [eax], 0x2503e288
mov eax, dword [0x25047784]
mov dword [eax + 4], ebx
mov dword [eax], 0x2503e294
mov eax, ebx
call fcn.2503e2a0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x25001fe4]
call fcn.24ff3804
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x25001fe4]
call fcn.24ff3804
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x25001fe4]
call fcn.24ff3804
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x25001fe4]
call fcn.24ff3804
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x25001fe4]
call fcn.24ff3804
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x25039d38
push eax
push 0
push 0
mov eax, dword [0x250478c0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x2500dcdc]
call fcn.2500f1fc
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x2500dcdc]
call fcn.2500f1fc
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x2500dcdc]
call fcn.2500f1fc
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.2503e6d0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x2503e5a0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x2503e5a0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x2503e5a0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x2503e033
call fcn.24ff3b98
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x2503e384
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x2503e52f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x2503e510
mov dl, 1
mov eax, dword [0x25002408]
call fcn.24ff3804
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.24ff4648
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x2503e4ff
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.25031344
test al, al
je 0x2503e4f2
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x2503e540
lea eax, [ebp - 0x254]
call fcn.24ff9334
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x2503e4f2
xor eax, eax
push ebp
push 0x2503e4eb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x2503e578
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x2503e4d4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.24ff48b8
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x2503e4d4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.24ff48b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2503e4f2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x2503e3f5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.250060e8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x2503e536
lea eax, [ebp - 0x260]
call fcn.24ff4648
ret

Function at 0x2503eea8
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x2504b57c]
cmp byte [eax + 0xad], 0
jne 0x2503ef19
cmp dword [0x2504b594], 0
jne 0x2503eeda
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x2503ee64
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x2504b594], eax
cmp dword [0x2504b590], 0
jne 0x2503eef5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x2504b590], eax
cmp dword [0x2504b598], 0
jne 0x2503ef19
push esp
push 0
push 0
push 0x2503ee08
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x2504b598], eax
pop edx
ret
Function at 0x2503f0ec
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x2503f103
add esp, 0xfffffff0
call fcn.24ff3b40
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.2500a1e8
mov eax, dword [0x250478ac]
cmp word [eax + 2], 0
jne 0x2503f12b
mov eax, dword [0x250478ac]
mov dword [eax + 4], ebx
mov dword [eax], fcn.25040b9c
mov eax, dword [0x2504794c]
cmp word [eax + 2], 0
jne 0x2503f145
mov eax, dword [0x2504794c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.25040da8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x25001fe4]
call fcn.24ff3804
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x25001fe4]
call fcn.24ff3804
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x25001fe4]
call fcn.24ff3804
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x2500e4b8]
call fcn.25014300
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x2503f2fc
mov eax, dword [0x250477dc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.250146d4
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x25041468
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x250477dc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.24ffca44
test eax, eax
je 0x2503f24c
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.24ff8cec
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.24ffca78
test eax, eax
je 0x2503f260
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.24ff48b8
mov byte [ebx + 0xd4], 0
push ebx
push 0x250406fc
call fcn.2500b364
mov dword [ebx + 0xc8], eax
mov eax, dword [0x250476e8]
cmp byte [eax], 0
jne 0x2503f2b1
mov eax, ebx
call fcn.2503f440
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.25041644
mov eax, ebx
call fcn.250421a4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x2503f2f1
call fcn.24ff3b98
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x2503f6c0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x2504b57c]
cmp dword [eax + 0x30], 0
je 0x2503f76a
cmp dword [ebx + 0x94], 0
jne 0x2503f764
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x2503f650
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x2503f764
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x2503f72a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x2503f764
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.25004390
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x2503f739
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x25040484
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x250404b9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.24ff4738
jmp 0x250404c6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.24ff469c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x25041828
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x25041896
mov eax, esi
call fcn.2502c200
test al, al
je 0x25041896
mov eax, dword [ebx + 0x84]
call fcn.2502bf04
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x25041896
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x2504188a
push 0
mov eax, dword [ebx + 0x84]
call fcn.2502bf04
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.25024448
jmp 0x25041896
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.25041664
pop esi
pop ebx
ret
Function at 0x4097c8
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40989b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4098b4
push ebx
push 0x4098c0
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040336c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402750
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004033cc
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409848
mov al, 0x62
call fcn.004093a0
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040979c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409851
call fcn.0040979c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4098a2
lea eax, [ebp - 4]
call fcn.00403150
ret

Function at 0x409934
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4099e8
jmp 0x4099dd
cmp dword [esi + 0x10], 0x1000
jne 0x4099c9
test byte [esi + 0x15], 1
jne 0x4099c9
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409988
cmp eax, 2
je 0x409988
cmp eax, 0x10
je 0x409988
cmp eax, 0x20
jne 0x40999d
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40999d
mov bl, 1
xor ebp, ebp
jmp 0x4099ae
mov eax, dword [esi]
add eax, ebp
call fcn.0040992c
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x4099a1
test bl, bl
je 0x4099c9
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4099e8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409960
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x43b668
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x43b3c1
mov edi, edi
call fcn.0043b698
sub edi, ecx
add edi, 1
dec edi
xor dword [edx], ebx
add edi, 0xdde77688
dec ecx
mov edi, edi
inc edx
inc edi
cmp edx, eax
jne fcn.0043b668
mov ecx, edi
add ecx, ecx
ret
Function at 0xa9a1c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x55a000]
push edi
or ebp, 0xffffffff
jmp 0xa9a1e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xa9a1e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa9a1d8
mov eax, 1
add ebx, ebx
jne 0xa9a1fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xa9a20c
jne 0xa9a22b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa9a22b
dec eax
add ebx, ebx
jne 0xa9a218
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xa9a1f0
add ebx, ebx
jne 0xa9a227
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xa9a27d
xor ecx, ecx
sub eax, 3
jb 0xa9a243
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xa9a2b2
sar eax, 1
mov ebp, eax
jmp 0xa9a24e
add ebx, ebx
jne 0xa9a24e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa9a21c
inc ecx
add ebx, ebx
jne 0xa9a25c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xa9a21c
add ebx, ebx
jne 0xa9a269
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xa9a25e
jne 0xa9a27a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xa9a25e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xa9a29c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xa9a28e
jmp 0xa9a1de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xa9a29c
add edi, ecx
jmp 0xa9a1de
pop esi
mov edi, esi
mov ecx, 0x13041
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xa9a2ba
cmp byte [edi], 0x2c
jne 0xa9a2ba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xa9a2bf
lea edi, [esi + 0x697000]
mov eax, dword [edi]
or eax, eax
je 0xa9a337
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x69bd1c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x69be5c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xa9a2ec
mov ecx, edi
jns 0xa9a31b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x69be60]
or eax, eax
je 0xa9a331
mov dword [ebx], eax
add ebx, 4
jmp 0xa9a309
call dword [esi + 0x69be70]
mov ebp, dword [esi + 0x69be64]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xa9a36b
sub esp, 0xffffff80
jmp 0x638e00
Function at 0x10016990
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Packed with generic packer

Disassembly:
xor edi, edi
je 0x1001699a
popal
jmp 0x4051b6e4
mov edx, 0x4c
cmp byte [esp + 8], 1
jne 0x10016b88
pushal
mov esi, section..rdata
xor edi, edi
je 0x100169ba
popal
jmp 0x4051b704
lea edi, [esi - 0xb000]
xor ecx, ecx
je 0x100169ca
popal
jmp 0x4051b714
mov eax, 0x7d
cmp edx, eax
mov eax, 0x4c
not eax
jne 0x10016a19
mov eax, dword fs:[0x30]
test eax, eax
js 0x10016a07
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [eax + 0x20], 0x1000
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx eax, byte [eax + 2]
test eax, eax
jne 0x10016a18
jmp 0x10016a19
xor eax, eax
mov al, byte fs:[0x20]
test eax, eax
jne 0x10016a18
jmp 0x10016a19
popal
push edi
or ebp, 0xffffffff
jmp 0x10016a2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10016a31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10016a20
mov eax, 1
add ebx, ebx
jne 0x10016a43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10016a38
jne 0x10016a54
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10016a38
xor ecx, ecx
sub eax, 3
jb 0x10016a68
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10016ada
mov ebp, eax
add ebx, ebx
jne 0x10016a73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10016a80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10016aa4
inc ecx
add ebx, ebx
jne 0x10016a90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10016a85
jne 0x10016aa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10016a85
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10016ac4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10016ab5
jmp 0x10016a26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10016ac4
add edi, ecx
jmp 0x10016a26
pop esi
mov edi, esi
mov ecx, 0xc9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10016ae2
cmp byte [edi], 1
jne 0x10016ae2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x10016ae7
lea edi, [esi + 0x14000]
mov eax, dword [edi]
or eax, eax
je 0x10016b56
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x16000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x16028]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10016b14
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1602c]
or eax, eax
je 0x10016b50
mov dword [ebx], eax
add ebx, 4
jmp 0x10016b31
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10016b87
cmp al, 0xef
ja 0x10016b7a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10016b5c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10016b69
popal
jmp loc.10001ac9
Function at 0x100010b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x1c
push esi
push edi
push 0x1c
mov esi, ecx
mov ecx, dword [esi]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [esp + 0x1c]
push edx
push 0x40
push eax
push ecx
call edi
test eax, eax
je 0x10001153
mov eax, dword [esi]
push ebx
lea edx, [esi + 0x14]
mov ecx, eax
mov ebx, dword [ecx]
mov dword [edx], ebx
mov ebx, dword [ecx + 4]
mov dword [edx + 4], ebx
mov ebx, dword [ecx + 8]
mov dword [edx + 8], ebx
mov ecx, dword [ecx + 0xc]
mov dword [edx + 0xc], ecx
add esi, 4
mov edx, dword [esi]
mov dword [eax], edx
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
mov edx, dword [esi + 8]
mov dword [eax + 8], edx
mov ecx, dword [esi + 0xc]
mov dword [eax + 0xc], ecx
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
push edx
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push eax
push ecx
call edi
test eax, eax
pop ebx
je 0x10001153
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret

Function at 0x10001160
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x1c
push esi
push edi
push 0x1c
mov esi, ecx
mov ecx, dword [esi]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [esp + 0x1c]
push edx
push 0x40
push eax
push ecx
call edi
test eax, eax
je 0x100011e6
mov eax, dword [esi]
lea edx, [esi + 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
push eax
push ecx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0xc]
push eax
push ecx
push edx
call edi
test eax, eax
je 0x100011e6
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret
Function at 0x10002a30
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10015220
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
push 0x40
mov dword [ebp - 0x14], esi
mov byte [esi + 0xb5], bl
mov byte [esi + 0xb4], 1
mov byte [esi + 0x1fa], bl
mov dword [ebp - 4], ebx
call fcn.10008efb
add esp, 4
mov dword [esi + 0xa0], eax
jmp 0x10002acd
mov eax, dword [esi + 0xa0]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x9c], eax
mov dword [esi + 0x1c0], ebx
mov dword [esi + 0x1c4], ebx
pop edi
mov dword [esi + 0xa4], 0x67452301
mov dword [esi + 0xa8], 0xefcdab89
mov dword [esi + 0xac], 0x98badcfe
mov dword [esi + 0xb0], 0x10325476
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10004a10
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push eax
mov esi, ecx
call fcn.100057f0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10004ab0
push 0
push 1
push 2
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 0x4040], eax
je 0x10004ab0
push 4
lea ecx, [esp + 0x10]
push ecx
push 0x80
push 0xffff
push eax
mov word [esp + 0x20], 1
mov word [esp + 0x22], 0
call sub.WS2_32.dll_setsockopt
test eax, eax
jne 0x10004aa9
mov eax, dword [esp + 0x10]
push edi
lea edi, [esi + 0x4044]
push eax
mov word [edi], 2
call sub.WS2_32.dll_htons
push ebx
mov word [esi + 0x4046], ax
call sub.WS2_32.dll_inet_addr
mov ecx, dword [esi + 0x4040]
push 0x10
push edi
push ecx
mov dword [esi + 0x4048], eax
call dword [0x1001c160]
cmp eax, 0xffffffff
pop edi
jne 0x10004ab7
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
pop esi
xor eax, eax
pop ebx
ret 8
pop esi
mov eax, 1
pop ebx
ret 8

Function at 0x100057f0
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
je 0x10005804
mov eax, esi
pop esi
ret
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x1000581d
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call sub.WS2_32.dll_inet_ntoa
pop esi
ret
xor eax, eax
pop esi
ret