joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100086f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x103a0310], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ebx, 1
jne 0x1000872e
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push 0x813bf4
call esi
lea ecx, [ebp - 4]
push ecx
mov byte [0x813bf4], bl
mov edx, dword [ebp - 4]
push edx
push ebx
push 0x813bf4
call esi
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push 0x4ebd07
call esi
lea ecx, [ebp - 4]
push ecx
mov byte [0x4ebd07], bl
mov edx, dword [ebp - 4]
push edx
push ebx
push 0x4ebd07
call esi
push 0x10008340
push 0x4d9d0e
mov bl, 0xe8
call fcn.100b6700
push 0x10008640
push 0x588277
mov bl, 0xe9
call fcn.100b6700
push 0x10008660
push 0x588460
call fcn.100b6700
push 0x10008680
push 0x588560
call fcn.100b6700
push 0x100086a0
push 0x4f0356
mov bl, 0xe8
call fcn.100b6700
push 0x10008570
push 0x51cb60
mov bl, 0xe9
call fcn.100b6700
push 0x10008460
push 0x51e440
call fcn.100b6700
add esp, 0x38
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100087d0
Capabilities:
Hash data using crc32b

Disassembly:
push ebx
xor edx, edx
push edi
xor eax, eax
test dl, 1
je 0x100087e0
mov eax, 0x80
mov ecx, edx
shr ecx, 1
test cl, 1
je 0x100087ec
or eax, 0x40
shr ecx, 1
test cl, 1
je 0x100087f6
or eax, 0x20
shr ecx, 1
test cl, 1
je 0x10008800
or eax, 0x10
shr ecx, 1
test cl, 1
je 0x1000880a
or eax, 8
shr ecx, 1
test cl, 1
je 0x10008814
or eax, 4
shr ecx, 1
test cl, 1
je 0x1000881e
or eax, 2
test cl, 2
je 0x10008826
or eax, 1
shl eax, 0x18
mov ecx, eax
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
xor edi, edi
mov dword [esi + edx*4], ecx
mov eax, ecx
lea ecx, [edi + 0x1f]
jmp 0x100088e0
test al, 1
je 0x100088ed
mov ebx, 1
shl ebx, cl
or edi, ebx
dec ecx
shr eax, 1
cmp ecx, 0xffffffff
jg 0x100088e0
mov dword [esi + edx*4], edi
inc edx
cmp edx, 0xff
jle 0x100087d4
pop edi
pop ebx
ret
Function at 0x10008910
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x100d9018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push 0x100c59fc
push eax
lea eax, [ebp - 0x408]
push eax
or esi, 0xffffffff
mov dword [ebp - 0x408], 0
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x10008962
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100c06a6
mov esp, ebp
pop ebp
ret 8
push ebx
push edi
mov ecx, dword [ebp - 0x408]
push ecx
push 0x400
lea edx, [ebp - 0x404]
push 1
push edx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
mov ecx, eax
lea edx, [ebp - 0x404]
test eax, eax
je 0x100089aa
mov edi, edi
movzx ebx, byte [edx]
mov edi, esi
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp + 8]
shr esi, 8
xor esi, dword [ebx + edi*4]
inc edx
dec ecx
jne 0x10008990
cmp eax, 0x400
je 0x10008964
mov eax, dword [ebp - 0x408]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
mov eax, esi
pop ebx
xor ecx, ebp
not eax
pop esi
call fcn.100c06a6
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x100c5a04
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [esi], 0xffffffff
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCR100.dll_fopen_s]
add esp, 0xc
test eax, eax
je 0x10008a12
xor al, al
mov esp, ebp
pop ebp
ret 4
push edi
push 0x400
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
jne 0x10008a40
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
push eax
push 0x400
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
je 0x10008aa3
push ebx
lea ebx, [ebx]
mov ecx, eax
mov edx, edi
test eax, eax
je 0x10008a89
mov eax, dword [esi]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp + 8]
shr eax, 8
xor eax, dword [ebx + edi*4]
inc edx
dec ecx
mov dword [esi], eax
jne 0x10008a68
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push ecx
push 0x400
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
jne 0x10008a60
pop ebx
push edi
call dword [sym.imp.MSVCR100.dll_free]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
mov eax, dword [esi]
not eax
add esp, 8
mov dword [esi], eax
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x10008ad0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x100c59fc
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [esi], 0xffffffff
mov dword [ebp - 4], 0
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x10008b02
xor al, al
mov esp, ebp
pop ebp
ret 4
push edi
push 0x400
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
jne 0x10008b30
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
push eax
push 0x400
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
je 0x10008b93
push ebx
lea ebx, [ebx]
mov ecx, eax
mov edx, edi
test eax, eax
je 0x10008b79
mov eax, dword [esi]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp + 8]
shr eax, 8
xor eax, dword [ebx + edi*4]
inc edx
dec ecx
mov dword [esi], eax
jne 0x10008b58
mov edi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
push ecx
push 0x400
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
jne 0x10008b50
pop ebx
push edi
call dword [sym.imp.MSVCR100.dll_free]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
mov eax, dword [esi]
not eax
add esp, 8
mov dword [esi], eax
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp - 4]
push ecx
push 0x40
mov eax, 0x10009360
push 5
sub eax, 0x78b0c1
push 0x78b0bc
mov byte [0x103a0260], 1
mov byte [ebp - 0x10], 0xe8
mov dword [ebp - 0xf], eax
mov dword [ebp - 4], 0
call esi
test eax, eax
je 0x1000929b
mov edx, dword [ebp - 0x10]
mov cl, byte [ebp - 0xc]
mov eax, 0x78b0bc
mov dword [eax], edx
mov byte [eax + 4], cl
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push eax
push 5
push 0x78b0bc
mov dword [ebp - 8], 0
call esi
test eax, eax
jne 0x100092a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x10310534], 1
je 0x100092dd
mov cl, 0xe9
mov eax, 0x100091d0
mov esi, 0x789767
call fcn.100b6500
mov cl, 0xe9
mov eax, 0x100091f0
mov esi, 0x789a63
call fcn.100b6500
mov cl, 0xe9
mov eax, 0x10009210
mov esi, 0x789dac
call fcn.100b6500
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10009600
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
fld dword [0x100d23d0]
push ebx
push esi
fstp dword [0x103ac65c]
fld dword [0x100d2bd4]
xor eax, eax
push 0x100096f0
fstp dword [0x103ac660]
push 0x78b0bc
mov bl, 0xe8
mov dword [0x103ac670], 7
mov dword [0x103ac674], 3
mov byte [0x103ac650], 1
mov dword [0x103ac654], eax
mov dword [0x103ac658], 0x29
mov byte [0x103ac664], al
call fcn.100b6700
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 8
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0xd43944
call esi
lea ecx, [ebp - 4]
push ecx
mov dword [0xd43944], 0x10009a10
mov edx, dword [ebp - 4]
push edx
push 4
push 0xd43944
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0x100096f0
push 0x78b0bc
mov bl, 0xe8
call fcn.100b6700
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 8
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0xd43944
call esi
lea ecx, [ebp - 4]
push ecx
mov dword [0xd43944], 0x10009a10
mov edx, dword [ebp - 4]
push edx
push 4
push 0xd43944
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10011ec0
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x100d9018]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x198]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10011ef9
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100c06a6
mov esp, ebp
pop ebp
ret
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x100d966c], eax
cmp eax, 0xffffffff
je 0x10011ee9
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [0x100d9670], eax
test eax, eax
je 0x10011ee9
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x101d967c], 0x10041680
mov al, 1
call fcn.100c06a6
mov esp, ebp
pop ebp
ret

Function at 0x10011f40
Capabilities:
Connect socket
Create thread
Encode data using xor
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100d9018]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x100d966c], 0xffffffff
push esi
mov esi, ecx
jne 0x10011fb3
push 0x100
push 0
push 0x103e4c78
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
mov cl, byte [eax + 0x100c5c30]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x103e4c78], cl
inc eax
cmp eax, 0x100
jb 0x10011f72
push 0x103e4c78
push 0
mov ecx, 0x1027c400
call fcn.10090540
add esp, 8
xor al, al
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100c06a6
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
mov edx, 2
push eax
mov word [ebp - 0x18], dx
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [ebp - 0x16], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x10011ffb
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x10011ffb
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [ebp - 0x14]
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov eax, dword [0x100d966c]
push 0x10
lea edx, [ebp - 0x18]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x1001205b
call esi
cmp eax, 0x2733
je 0x1001205b
call esi
push eax
mov eax, 2
call fcn.100b6dc0
push eax
push 0
mov ecx, 0x1027c400
call fcn.10090540
add esp, 0xc
mov esi, 0x100d9668
call fcn.10012100
xor al, al
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100c06a6
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x100d9670]
mov edx, dword [0x100d966c]
push 0x23
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x10012080
call esi
push eax
mov eax, 3
jmp 0x10012029
push 0x80000
push 0
push 0x100d9674
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x80000
push 0
push 0x10159678
mov dword [0x10159674], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x103e4844
push 0
push 0x100d9668
push 0x10012610
push 0
push 0
mov dword [0x101d9678], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov dword [0x101d969c], eax
xor ecx, ebp
mov byte [0x101d96a0], 1
mov al, 1
pop esi
call fcn.100c06a6
mov esp, ebp
pop ebp
ret 4
Function at 0x10012100
Capabilities:
Terminate thread

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi + 0x100034], ebx
je 0x10012136
mov dword [0x103e4844], 0xffffffff
mov eax, dword [esi + 0x100034]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x100034]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x100034], ebx
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x1001214c
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1001215d
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [esi + 8], ebx
mov byte [esi + 0x100038], bl
pop ebx
ret
Function at 0x10012170
Capabilities:
Encode data using xor
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [esi + 0x8000c]
xor edi, edi
push edi
mov ecx, 0x80000
sub ecx, eax
push ecx
lea edx, [eax + esi + 0xc]
mov eax, dword [esi + 4]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x100121c0
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x100122ea
call edi
push eax
mov eax, 4
jmp 0x1001232f
add dword [esi + 0x8000c], eax
mov eax, dword [esi + 0x8000c]
cmp eax, 4
jl 0x100122ea
mov al, byte [esi + edi + 0xc]
lea edx, [esi + 0xc]
cmp al, 0xc1
jne 0x100121eb
movzx ebx, byte [edi + esi + 0xd]
mov cl, byte [edi + esi + 0xf]
jmp 0x1001220a
cmp al, 0xc2
jne 0x10012324
movzx ecx, byte [edi + esi + 0xd]
shl cx, 8
movzx ebx, cx
movzx ecx, byte [edi + esi + 0xe]
or ebx, ecx
mov cl, byte [edi + esi + 0x10]
cmp ebx, 4
jl 0x100122f3
cmp ebx, 0x80000
jg 0x100122f3
cmp ebx, dword [esi + 0x8000c]
jg 0x100122c1
cmp al, 0xc1
jne 0x1001225d
mov dl, byte [edi + esi + 0xe]
mov byte [ebp - 4], dl
lea edx, [ebx - 3]
xor eax, eax
lea ecx, [edi + esi + 0xf]
test edx, edx
jle 0x10012289
mov dl, byte [ecx + eax]
add dl, byte [ebp - 4]
lea ecx, [edi + esi + 0xf]
xor dl, 0xa0
mov byte [ecx + eax], dl
inc eax
lea edx, [ebx - 3]
cmp eax, edx
jl 0x10012243
jmp 0x10012289
mov cl, byte [edi + esi + 0xf]
lea edx, [ebx - 4]
xor eax, eax
mov byte [ebp - 4], cl
lea ecx, [edi + esi + 0x10]
test edx, edx
jle 0x10012289
mov dl, byte [ecx + eax]
add dl, byte [ebp - 4]
lea ecx, [edi + esi + 0x10]
xor dl, 0xa0
mov byte [ecx + eax], dl
inc eax
lea edx, [ebx - 4]
cmp eax, edx
jl 0x10012271
mov al, byte [ecx]
mov edx, dword [esi + 0x100014]
mov byte [ebp - 8], al
mov ecx, dword [ebp - 8]
push ebx
lea eax, [esi + edi + 0xc]
push eax
push ecx
call edx
sub dword [esi + 0x8000c], ebx
add esp, 0xc
add edi, ebx
cmp dword [esi + 0x8000c], 0
jg 0x100121d5
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jle 0x100122ea
mov eax, dword [esi + 0x8000c]
test eax, eax
jle 0x100122ea
mov ecx, 0x80000
sub ecx, edi
cmp eax, ecx
jg 0x100122ea
push eax
lea eax, [edi + esi + 0xc]
push eax
push edx
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, cl
push ecx
movzx edx, al
push ebx
push edx
mov eax, 6
call fcn.100b6dc0
push eax
push 0
mov ecx, 0x1027c400
call fcn.10090540
add esp, 0x14
call fcn.10012100
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [edi + esi + 0xc]
push eax
mov eax, 5
call fcn.100b6dc0
push eax
push 0
mov ecx, 0x1027c400
call fcn.10090540
add esp, 0xc
call fcn.10012100
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10012360
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8000c
call fcn.100c1160
mov eax, dword [0x100d9018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x101d9684
mov esi, ecx
mov edi, edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100d966c], 0xffffffff
je 0x10012455
cmp byte [0x101d96a0], 0
je 0x10012455
push esi
lea eax, [ebp - 0x80008]
push edi
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
xor eax, eax
cmp byte [ebp - 0x80008], 0xc1
jne 0x100123ea
mov cl, byte [ebp - 0x80006]
lea edi, [esi - 3]
test edi, edi
jle 0x10012418
lea esp, [esp]
mov dl, byte [ebp + eax - 0x80005]
xor dl, 0xa0
sub dl, cl
mov byte [ebp + eax - 0x80005], dl
inc eax
cmp eax, edi
jl 0x100123d0
jmp 0x10012418
mov cl, byte [ebp - 0x80005]
lea edi, [esi - 4]
test edi, edi
jle 0x10012418
jmp 0x10012400
mov dl, byte [ebp + eax - 0x80004]
xor dl, 0xa0
sub dl, cl
mov byte [ebp + eax - 0x80004], dl
inc eax
cmp eax, edi
jl 0x10012400
mov eax, dword [0x101d9678]
test eax, eax
jle 0x100124ae
lea ecx, [eax + esi]
cmp ecx, 0x80000
jle 0x10012473
mov eax, 7
push ecx
call fcn.100b6dc0
push eax
push 0
mov ecx, 0x1027c400
call fcn.10090540
add esp, 0xc
mov esi, 0x100d9668
call fcn.10012100
push 0x101d9684
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100c06a6
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0x80008]
push ecx
lea edx, [eax + 0x10159678]
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
add dword [0x101d9678], esi
push 0x101d9684
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.100c06a6
mov esp, ebp
pop ebp
ret
xor edi, edi
test esi, esi
jle 0x10012490
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [0x100d966c]
push 0
push esi
lea eax, [ebp + edi - 0x80008]
push eax
push ecx
call ebx
cmp eax, 0xffffffff
je 0x100124dd
sub esi, eax
add edi, eax
test esi, esi
jg 0x100124ba
jmp 0x10012490
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
cmp eax, 0x2733
jne 0x1001251b
mov eax, dword [0x101d9678]
lea ecx, [eax + esi]
cmp ecx, 0x80000
jle 0x10012506
mov eax, 8
jmp 0x10012435
push esi
lea edx, [ebp + edi - 0x80008]
push edx
lea eax, [eax + 0x10159678]
push eax
jmp 0x10012482
call ebx
push eax
mov eax, 9
jmp 0x10012436
Function at 0x10012530
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
push edi
lea ebx, [esi + 0x10001c]
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edi, edi
cmp dword [esi + 0x100010], edi
jle 0x10012589
lea ebx, [esi + 0x80010]
mov eax, dword [esi + 0x100010]
mov edx, dword [esi + 4]
push 0
push eax
lea ecx, [ebx + edi]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10012599
sub dword [esi + 0x100010], eax
add edi, eax
cmp dword [esi + 0x100010], 0
jg 0x10012559
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x100125d2
mov eax, dword [esi + 0x100010]
push eax
lea ecx, [edi + esi + 0x80010]
push ecx
push ebx
call dword [sym.imp.MSVCR100.dll_memmove]
mov edx, dword [ebp - 4]
add esp, 0xc
push edx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, 0xa
call fcn.100b6dc0
push eax
push 0
mov ecx, 0x1027c400
call fcn.10090540
add esp, 0xc
call fcn.10012100
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10012740
Capabilities:
Log keystrokes via application hook

Disassembly:
cmp dword [0x103a0414], 0
push esi
mov esi, dword [sym.imp.USER32.dll_SetWindowsHookExA]
jne 0x10012773
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov eax, dword [0x103a0410]
push eax
push 0x100127b0
push 7
call esi
mov dword [0x103a0414], eax
test eax, eax
jne 0x10012773
xor al, al
pop esi
ret
cmp dword [0x103a0418], 0
jne 0x10012792
push 0
push 0
push 0x100129a0
push 0xd
call esi
mov dword [0x103a0418], eax
test eax, eax
je 0x1001276f
mov cl, 0xe8
mov eax, 0x10012700
mov esi, 0x4d0e2f
call fcn.100b6500
mov al, 1
pop esi
ret

Function at 0x10012a70
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100d9018]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov edi, eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
push edi
push 0
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x104]
push edx
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
push eax
push esi
call dword [sym.imp.USER32.dll_ToAsciiEx]
pop edi
cmp eax, 1
jne 0x10012ad8
mov ax, word [ebp - 0x108]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100c06a6
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.100c06a6
mov esp, ebp
pop ebp
ret
Function at 0x10027af0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0x10025fa0
push 0x4d5691
mov bl, 0xe8
call fcn.100b6700
push 0x10027230
push 0x483246
call fcn.100b6700
push 0x100272b0
push 0x4833d0
mov bl, 0xe9
call fcn.100b6700
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 0x18
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x4d562d
call esi
lea ecx, [ebp - 4]
push ecx
mov dword [0x4d562d], 0x100c93e0
mov edx, dword [ebp - 4]
push edx
push 4
push 0x4d562d
call esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002a140
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push 0x10029ee0
push 0x50d905
mov bl, 0xe8
call fcn.100b6700
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 8
lea eax, [ebp - 4]
push eax
push 0x40
push 7
push 0x5cd07d
call esi
mov eax, 0x90909090
mov ecx, 0x5cd07d
mov dword [ecx], eax
mov word [ecx + 4], ax
mov byte [ecx + 6], al
mov edx, dword [ebp - 4]
lea ecx, [ebp - 4]
push ecx
push edx
push 7
push 0x5cd07d
call esi
push 0x1002a040
push 0x5cd07d
mov bl, 0xe9
call fcn.100b6700
push 0x1002a0e0
push 0x5cf11d
call fcn.100b6700
add esp, 0x10
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1002caa0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push 0x4d
mov eax, 0x861110
call eax
mov edx, 0x85ec20
mov ecx, eax
call edx
test al, al
jne 0x1002cb55
push 0xd
mov eax, 0x861110
call eax
mov edx, 0x85ec20
mov ecx, eax
call edx
test al, al
je 0x1002cae8
push 0x10
mov eax, 0x861110
call eax
mov edx, 0x85ec20
mov ecx, eax
call edx
test al, al
jne 0x1002cb55
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
xor ebx, ebx
mov edx, eax
cmp byte [0x103a3b6d], bl
je 0x1002cbb5
mov eax, 0x9b
mov ecx, 0x103a0f48
call fcn.1006fd20
test al, al
je 0x1002cbb5
cmp edi, 0x201
jne 0x1002cb29
mov al, 1
pop esi
mov byte [0x103a3b24], al
pop ebx
ret
sub edx, dword [0x103a3b20]
mov byte [0x103a3b24], bl
cmp edx, 0x1f4
jb 0x1002cbb5
call esi
mov dword [0x103a3b20], eax
mov byte [0x103a3b6d], bl
pop esi
mov dword [0xe8cb3c], ebx
xor al, al
pop ebx
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
xor ebx, ebx
mov edx, eax
cmp byte [0x103a3b6d], bl
je 0x1002cbb5
mov eax, 0x9a
mov ecx, 0x103a0f48
call fcn.1006fd20
test al, al
je 0x1002cbb5
cmp edi, 0x201
jne 0x1002cb8e
mov al, 1
pop esi
mov byte [0x103a3adc], al
pop ebx
ret
sub edx, dword [0x103a3ad8]
mov byte [0x103a3adc], bl
cmp edx, 0x1f4
jb 0x1002cbb5
call esi
mov dword [0x103a3ad8], eax
mov byte [0x103a3b6d], bl
mov dword [0xe8cb3c], ebx
pop esi
xor al, al
pop ebx
ret