joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.100062eb
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100062eb
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.100062eb
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.100062eb
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.100062eb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.100062eb
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.100062eb
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.100062eb
push 0xd008
push edi
call fcn.100062eb
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.100062eb
int3

Function at 0x100062eb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x100062fa
pop dword [ebp - 0x28]
mov eax, 0x55c9cc2e
add eax, 0xba3696cc
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x39490
push 0
mov eax, 0x84145593
sub eax, 0x7413152f
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x6b3f40c0
sub ecx, 0x6b3ef7b3
xor ebx, ebx
add ebx, eax
mov edi, 0x48f7805d
sub edi, 0x38f5fa5d
add edi, dword [ebp - 0x28]
mov edx, 0x5d8bce68
add edx, 0x45b004c0
add dword [ebp - 0x14], edx
mov esi, dword [edi]
mov dword [ebp - 0xc], 0xbcd95e8c
xor esi, edx
mov dword [ebx], esi
add ebx, 0x159c1d2e
sub ebx, 0x159c1d2a
add edi, 0xdb19e8ac
add edi, 0x24e61758
loop 0x1000635b
add eax, 0x59165524
sub eax, 0x59153e1d
mov ebx, eax
add eax, 5
mov ecx, 0xa1942227
sub ecx, 0x91942227
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x40ef97
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x40efa6
pop dword [ebp - 0x4c]
mov eax, 0x3b4d550f
add eax, 0xc4f39a97
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0x6b15c529
sub dword [ebp - 0x5c], 0x1cc37fde
mov dword [ebp - 0x58], 0xb2b85c82
sub dword [ebp - 0x58], 0x8085103d
mov dword [ebp - 0x54], 0xee633e52
sub dword [ebp - 0x54], 0xa216fa24
mov dword [ebp - 0x50], 0xf968858b
sub dword [ebp - 0x50], 0xf968858b
lea eax, [ebp - 0x5c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0xd6c8f67f
add dword [ebp - 0x5c], 0x9da972d7
mov dword [ebp - 0x58], 0xf36a256b
sub dword [ebp - 0x58], 0xb1fdc3f6
mov dword [ebp - 0x54], 0xb1a82e01
sub dword [ebp - 0x54], 0x4e38c195
mov dword [ebp - 0x50], 0xc1951808
add dword [ebp - 0x50], 0x3e6ae7f8
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0xfabee4e2
add eax, 0x584bb56
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3f504
push 0
call eax
mov ecx, 0x3c44bc8a
add ecx, 0xc3bb8f73
mov ebx, eax
mov edx, 0x457a00
add edx, dword [ebp - 0x4c]
mov edi, 0xf505340e
add edi, 0xe77a1c16
sub dword [ebp - 0x30], esi
mov esi, dword [edx]
sub dword [ebp - 0x3c], 0xa519d1ef
sub esi, edi
mov dword [ebx], esi
xor dword [ebp - 0x40], 0xd6c1e149
add ebx, 4
add edx, 4
loop 0x40f0bd
add eax, 0x3a822e56
sub eax, 0x3a810b8f
mov ebx, eax
add eax, 5
mov ecx, 0x4a8aed39
add ecx, 0xb5b512c7
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x4128d9
Capabilities:
Get common file path

Disassembly:
push 0x264
mov eax, 0x4375ca
call fcn.00433ea9
mov edi, ecx
xor esi, esi
push 0x20a
lea eax, [ebp - 0x224]
push esi
push eax
mov dword [ebp - 0x258], esi
call dword [sym.imp.MSVCR110.dll_memset]
add esp, 0xc
call fcn.0040ef97
test al, al
je 0x41299a
push str.IE_is_protected_mode_
lea ecx, [ebp - 0x23c]
call fcn.0040ef97
push str.LogSession
lea ecx, [ebp - 0x254]
mov dword [ebp - 4], esi
call fcn.0040ef97
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 1
call fcn.0040c42d
push 0x43f9ae
lea ecx, [ebp - 0x270]
mov esi, eax
call fcn.0040ef97
push eax
mov byte [ebp - 4], 2
mov edx, dword [esi]
lea eax, [ebp - 0x23c]
push eax
mov ecx, esi
call dword [edx + 0x40]
lea ecx, [ebp - 0x270]
call fcn.004023b1
lea ecx, [ebp - 0x254]
call fcn.004023b1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x23c]
call fcn.004023b1
mov ecx, edi
call fcn.0041283a
jmp 0x4129c7
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push 0x801a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edx, 0x43fc28
test eax, eax
lea ecx, [ebp - 0x224]
cmovne ecx, edx
push ecx
mov ecx, edi
call fcn.0040ef97
mov eax, edi
call fcn.00433e58
ret
Function at 0x1000cac3
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword fs:[0x2c]
push ebx
push esi
mov esi, dword [0x100139e8]
mov ebx, ecx
push edi
mov edi, edx
mov dword [ebp - 8], edi
mov esi, dword [eax + esi*4]
mov eax, dword [0x10013e80]
cmp eax, dword [esi + 4]
jg 0x1000cb78
lea eax, [ebx + edi]
cmp eax, ebx
ja 0x1000cb01
mov eax, 0x10dd
jmp 0x1000cb71
mov eax, dword [0x10013e7c]
cmp edi, eax
jbe 0x1000cb0f
push 0x32
pop eax
jmp 0x1000cb71
mov edi, dword [ebp + 8]
lea ecx, [ebp - 4]
and dword [ebp - 4], 0
lea esi, [eax - 1]
push ecx
not esi
push dword [edi]
and esi, ebx
push eax
push esi
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x1000cb37
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x1000cb71
mov ecx, dword [0x10013e7c]
mov eax, dword [ebp - 8]
dec ecx
mov edx, dword [ebp - 4]
dec eax
add eax, ebx
mov dword [edi], edx
not ecx
and ecx, eax
cmp ecx, esi
je 0x1000cb6c
lea eax, [ebp - 4]
push eax
push dword [edi + 4]
push dword [0x10013e7c]
push ecx
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
je 0x1000cb2f
mov edx, dword [ebp - 4]
mov dword [edi + 4], edx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov esi, 0x10013e80
push esi
call fcn.1000cd54
cmp dword [0x10013e80], 0xffffffff
pop ecx
jne 0x1000caf3
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x28]
push esi
mov dword [0x10013e7c], eax
call fcn.1000cd54
mov edi, dword [ebp - 8]
pop ecx
jmp 0x1000caf3

Function at 0x1000cd54
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x1000cd63
pop dword [ebp - 0x24]
mov eax, 0x1000cd63
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x3ae0b
push 0
mov eax, 0x9310d055
sub eax, 0x830f8ff1
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0x4f79
mov ebx, eax
mov edx, 0xb5aa78c8
sub edx, 0xa5a8f2c8
add edx, dword [ebp - 0x24]
mov edi, 0xbda40d7e
add edi, 0xb7750f46
xor dword [ebp - 0x10], 0xb3554ae
mov esi, dword [edx]
add dword [ebp - 0x10], 0xe414745d
xor esi, edi
sub dword [ebp - 0x20], 0x204342e7
mov dword [ebx], esi
add dword [ebp - 4], 0x6db339cc
add ebx, 0xede0ccd7
sub ebx, 0xede0ccd3
add edx, 4
loop 0x1000cdb7
add eax, 0x130b7
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x10a78de0
add ecx, 0xff587220
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x401cc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x64
mov eax, dword [esp + 0x7c]
mov edi, dword [ecx + 0xc]
test edi, edi
je 0x401e99
mov ebx, dword [esp + 0x78]
mov esi, dword [ecx]
lea eax, [esp + 0x30]
mov dword [esp], eax
call fcn.00401af0
lea eax, [esp + 0x24]
mov dword [esp], eax
call fcn.00401ed0
movsd xmm0, qword [ebx + 4]
movsd qword [esp + 0x5c], xmm0
movsd qword [esp], xmm0
call fcn.004035dc
dec edi
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], 0
and eax, edi
lea edx, [eax + eax*4]
lea ecx, [esi + edx*8]
mov dword [esp + 0x10], ecx
mov ecx, dword [ebx + 4]
mov ebp, dword [esi + edx*8 + 4]
mov edx, dword [esi + edx*8 + 8]
mov dword [esp + 0x1c], edx
cmp ebp, 0xfffffffe
je 0x401d50
cmp ebp, 0xffffffff
jne 0x401d60
mov bl, 1
cmp ecx, 0xffffffff
je 0x401e3d
jmp 0x401d95
mov bl, 1
cmp ecx, 0xfffffffe
je 0x401e3d
jmp 0x401d95
mov edx, dword [ebx + 8]
cmp edx, dword [esp + 0x1c]
jne 0x401d95
mov bl, 1
test edx, edx
je 0x401e3d
mov dword [esp + 8], edx
mov dword [esp + 4], ebp
mov dword [esp], ecx
mov dword [esp + 0x20], eax
call sub.api_ms_win_crt_private_l1_1_0.dll_memcmp
mov ecx, eax
mov eax, dword [esp + 0x20]
test ecx, ecx
je 0x401e3d
mov ebx, eax
mov dword [esp + 0x54], ebp
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x4c], eax
movsd xmm0, qword [esp + 0x4c]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0x54]
movsd qword [esp], xmm0
call fcn.00401f90
test al, al
jne 0x401ead
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], eax
movsd xmm0, qword [esp + 0x3c]
movsd qword [esp + 8], xmm0
movsd xmm0, qword [esp + 0x44]
movsd qword [esp], xmm0
call fcn.00401f90
mov ecx, dword [esp + 0x14]
test ecx, ecx
cmovne ebp, ecx
test al, al
cmovne ecx, ebp
mov dword [esp + 0x14], ecx
mov eax, ebx
mov ecx, dword [esp + 0x18]
add eax, ecx
inc ecx
mov dword [esp + 0x18], ecx
mov ebx, dword [esp + 0x78]
jmp 0x401d1a
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov esi, dword [esp + 0x24]
mov dword [esp + 0x24], 0
test esi, esi
je 0x401e6f
test byte [esi], 1
je 0x401e67
mov eax, dword [esi + 8]
mov dword [esp], eax
call sub.libc.dll_operator_delete_void_
mov dword [esp], esi
call sub.libc.dll_operator_delete_void_
mov esi, dword [esp + 0x30]
mov dword [esp + 0x30], 0
test esi, esi
je 0x401ea1
test byte [esi], 1
je 0x401e8f
mov eax, dword [esi + 8]
mov dword [esp], eax
call sub.libc.dll_operator_delete_void_
mov dword [esp], esi
call sub.libc.dll_operator_delete_void_
jmp 0x401ea1
mov dword [eax], 0
xor ebx, ebx
mov eax, ebx
add esp, 0x64
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov eax, dword [esp + 0x14]
test eax, eax
mov ecx, dword [esp + 0x10]
cmovne ecx, eax
xor ebx, ebx
mov eax, dword [esp + 0x7c]
jmp 0x401e45
Function at 0x403030
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
cmp eax, 3
ja case.default.0x403041
jmp dword [eax*4 + 0x4043e8]
cmp dword [0x4060d4], 0
je 0x403150
push 0x4060d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4060f0]
test edi, edi
je 0x403145
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40308b
mov edi, dword [edi + 8]
test edi, edi
je 0x403145
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x403080
test esi, esi
je 0x403080
mov ecx, dword [edi + 4]
call dword [0x4044b4]
push esi
call ecx
add esp, 4
jmp 0x403080
call fcn.00402800
jmp case.default.0x403041
cmp dword [0x4060d4], 0
je case.default.0x403041
push 0x4060d8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4060f0]
test edi, edi
je 0x403138
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4030f7
mov edi, dword [edi + 8]
test edi, edi
je 0x403138
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x4030f0
test esi, esi
je 0x4030f0
mov ecx, dword [edi + 4]
call dword [0x4044b4]
push esi
call ecx
add esp, 4
jmp 0x4030f0
cmp dword [0x4060d4], 0
jne 0x40312c
push 0x4060d8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4060d4], 1
jmp case.default.0x403041
push 0x4060d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp case.default.0x403041
push 0x4060d8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x4060d4]
cmp eax, 1
jne case.default.0x403041
mov eax, dword [0x4060f0]
test eax, eax
je 0x403182
nop word cs:[eax + eax]
mov esi, dword [eax + 8]
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
add esp, 4
mov eax, esi
test esi, esi
jne 0x403170
mov dword [0x4060f0], 0
mov dword [0x4060d4], 0
push 0x4060d8
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4032e0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push edi
push esi
mov esi, dword [0x404004]
movzx ecx, word [esi]
xor eax, eax
cmp ecx, 0x5a4d
jne 0x403346
mov ecx, dword [esi + 0x3c]
cmp dword [esi + ecx], 0x4550
jne 0x403346
add esi, ecx
movzx ecx, word [esi + 0x18]
cmp ecx, 0x10b
jne 0x403346
movzx ecx, word [esi + 6]
test ecx, ecx
je 0x403346
mov edx, dword [esp + 0xc]
sub edx, dword [0x404004]
movzx edi, word [esi + 0x14]
add esi, edi
add esi, 0x18
jmp 0x403336
add esi, 0x28
dec ecx
je 0x403346
mov edi, dword [esi + 0xc]
cmp edi, edx
ja 0x403330
add edi, dword [esi + 8]
cmp edi, edx
jbe 0x403330
mov eax, esi
pop esi
pop edi
ret
Function at 0x40247c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405120
push 0x402620
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x432640], 0xffffffff
or dword [0x432644], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x43200c]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x432008]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x432648], eax
call fcn.004025cb
cmp dword [0x406020], 0
jne 0x4024ff
push 0x4025c8
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.004025b0
push 0x40600c
push 0x406008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x432004]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x432000]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x406004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call section..text
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret

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

Disassembly:
pushal
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
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
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp int.00401219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4423b8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4817d4
cmp dword [edi], 0
jne 0x442434
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4817d0]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47e978
mov ecx, 2
call fcn.00402a20
mov edx, 0x442390
lea eax, [esi + 5]
call fcn.004423b0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004423b0
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x442409
mov dword [0x4817d0], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x442558
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4425a8]
test si, 4
je 0x44256c
or bl, 1
test si, 8
je 0x442576
or bl, 4
test si, 1
je 0x442580
or bl, 8
test si, 2
je 0x44258a
or bl, 0x10
test si, 0x10
je 0x442594
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4425a3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4425ac
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4425e4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4425c5
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4425d4
or bl, 4
test esi, 0x20000000
je 0x4425df
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44a5e8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x8c], 0
je 0x44a61d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403d58
jmp 0x44a627
mov eax, esi
mov edx, dword [ebx + 0x74]
call fcn.00403d0c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44b4fc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x44b534
mov eax, esi
call fcn.004348dc
test al, al
je 0x44b534
mov eax, dword [ebx + 0x6c]
call fcn.004344b4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44b534
push 0
mov eax, dword [ebx + 0x6c]
call fcn.004344b4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x404900
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5429da
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x5a5d48]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1a8], ecx
mov ecx, dword [ebp - 0x1a8]
call fcn.004055a0
mov eax, dword [ebp - 0x1a8]
mov dword [eax], vtable.CTcpSocket.0
mov ecx, dword [ebp - 0x1a8]
add ecx, 0x2c
call fcn.00401000
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1a8]
add ecx, 0x3c
call fcn.00401000
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x1a8]
add ecx, 0x4c
call fcn.00401000
mov byte [ebp - 4], 2
push str.CTcpSocket::CTcpSocket
push 0x553f5c
call fcn.00405600
add esp, 8
lea ecx, [ebp - 0x1a4]
push ecx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [ebp - 0x1a8]
mov dword [edx + 4], eax
push 0
mov eax, dword [ebp - 0x1a8]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 0x1a8]
mov dword [ecx + 0x64], 0xffffffff
mov edx, dword [ebp - 0x1a8]
mov dword [edx + 0x5c], 0
mov eax, dword [ebp - 0x1a8]
mov dword [eax + 0x60], 0
mov ecx, dword [ebp - 0x1a8]
mov dword [ecx + 0x14], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1a8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052bd2a
mov esp, ebp
pop ebp
ret

Function at 0x404a30
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
push str.CTcpSocket::Disconnect
push 0x553f78
call fcn.00405600
add esp, 8
mov eax, dword [ebp - 8]
cmp dword [eax + 0x18], 0
jne 0x404a56
jmp 0x404ac2
mov ecx, 1
mov word [ebp - 4], cx
xor edx, edx
mov word [ebp - 2], dx
push 4
lea eax, [ebp - 4]
push eax
push 0x80
push 0xffff
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x64]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_CancelIo]
push 0
mov edx, dword [ebp - 8]
add edx, 0x18
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x64]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x64], 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x4051b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0xf
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
jmp 0x4051ec
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp + 0x10]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0x10]
jl 0x40525d
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x18], 0
jmp 0x40520d
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x10]
jge 0x405239
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x64]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x405237
jmp 0x405239
jmp 0x405204
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x10]
jne 0x405249
or eax, 0xffffffff
jmp 0x4052c9
mov edx, dword [ebp - 4]
add edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0xc]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
jmp 0x4051e3
cmp dword [ebp - 0x14], 0
jle 0x4052b7
mov dword [ebp - 0x1c], 0
jmp 0x405275
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x10]
jge 0x4052a1
push 0
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x64]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x40529f
jmp 0x4052a1
jmp 0x40526c
mov ecx, dword [ebp - 0x1c]
cmp ecx, dword [ebp - 0x10]
jne 0x4052ae
or eax, 0xffffffff
jmp 0x4052c9
mov edx, dword [ebp - 4]
add edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jne 0x4052c6
mov eax, dword [ebp - 4]
jmp 0x4052c9
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 0xc