joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000efe0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x1000eff4
mov dword [ebx], 0
mov edx, 0x100fad6c
call fcn.1000eee0
mov esi, eax
test esi, esi
je 0x1000f0e2
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call edi
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x1000f0d8
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1000f0d8
push esi
call edi
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x1000f0d8
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x1000f0d8
mov eax, dword [0x1014ec70]
test eax, eax
je 0x1000f06c
inc dword [eax + 0xb0]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x1000f0d8
push esi
push dword [ebp + 8]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x1000f0bd
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x1014ec70]
add esp, 4
test eax, eax
je 0x1000f0aa
dec dword [eax + 0xb0]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x1000f0cf
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100116d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1010300c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov edx, ecx
push esi
push edi
lea esi, [ebp - 0x18]
mov edi, 0x10
movss xmm1, dword [edx + 0xe4]
movss xmm0, dword [eax]
movss xmm2, dword [edx + 0xe8]
subss xmm0, xmm1
mov ecx, dword [edx + 0xc8]
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, xmm2
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, xmm1
movss dword [ebp - 0x10], xmm0
movss xmm0, dword [eax + 0xc]
mov eax, dword [edx + 0xd0]
subss xmm0, xmm2
mov edx, dword [eax + ecx*4 - 4]
movss dword [ebp - 0xc], xmm0
not edx
nop dword [eax + eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x100c43c0]
sub edi, 1
jne 0x10011750
mov ecx, dword [ebp - 8]
not edx
pop edi
xor ecx, ebp
mov eax, edx
pop esi
call fcn.1008dd76
mov esp, ebp
pop ebp
ret 4
Function at 0x10016850
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x1001688d
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x10016873
cmp byte [esi], bl
jne 0x10016873
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x100c43c0]
test bl, bl
jne 0x10016864
pop edi
pop esi
not ecx
pop ebx
jmp fcn.100167f0
Function at 0x1001c210
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1010300c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1014ec70]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0x3e18]
mov esi, 4
mov eax, dword [edi + 0xc8]
add edi, 0xc8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
mov ebx, dword [edi + 8]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x100c43c0]
sub esi, 1
jne 0x1001c251
mov eax, dword [0x1014ec70]
not ebx
cmp dword [eax + 0x3e38], ebx
jne 0x1001c28b
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.100239f0
add esp, 8
mov ecx, dword [edi + 4]
mov esi, dword [edi]
cmp esi, ecx
jne 0x1001c2b6
inc esi
test ecx, ecx
je 0x1001c2a4
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1001c2a9
mov eax, 8
cmp eax, esi
mov ecx, edi
cmovg esi, eax
push esi
call fcn.100241f0
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov dword [eax + ecx*4], ebx
inc dword [edi]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008dd76
mov esp, ebp
pop ebp
ret
Function at 0x10022900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x5254], 0
lea esi, [edi + 0x5258]
je 0x10022982
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x1002293c
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.100246e0
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.1000f760
mov edx, dword [esi]
mov ecx, 0x1014ec12
push dword [edi + 0x5254]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5260]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.1000f760
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10022e90
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push esi
lea esi, [ecx + 1]
push edi
mov edi, dword [0x1014ec70]
test bl, bl
je 0x10022ed6
or edi, 0xffffffff
cmp bl, 0x23
jne 0x10022eb7
cmp byte [esi], bl
jne 0x10022eb7
cmp byte [esi + 1], bl
cmove eax, edi
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x100c43c0]
test bl, bl
jne 0x10022ea8
mov edi, dword [0x1014ec70]
mov esi, dword [edi + 0x5218]
xor ecx, ecx
not eax
test esi, esi
jle 0x10022efc
mov edi, dword [edi + 0x5220]
lea edx, [edi + 4]
nop dword [eax]
cmp dword [edx], eax
je 0x10022f02
inc ecx
add edx, 0x24
cmp ecx, esi
jl 0x10022ef0
pop edi
pop esi
xor eax, eax
pop ebx
ret
lea eax, [ecx + ecx*8]
lea eax, [edi + eax*4]
pop edi
pop esi
pop ebx
ret
Function at 0x1002c500
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1002c53a
mov eax, dword [0x1014ec70]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x1002c52d
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1002c56b
mov eax, dword [0x1014ec70]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x1002c55e
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x1002c59c
mov eax, dword [0x1014ec70]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x1002c58f
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x1002c5e9
mov eax, dword [0x1014ec70]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x1002c5dc
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x1002c61a
mov eax, dword [0x1014ec70]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x1002c60d
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x1002c64b
mov eax, dword [0x1014ec70]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x1002c63e
dec dword [eax + 0xb0]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.1002f560
Function at 0x10077370
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x1010300c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1021b038], 0
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
jne 0x10077440
mov ecx, dword [edi]
lea eax, [ecx - 1]
cmp eax, 5
ja case.default.0x100773a1
jmp dword [eax*4 + 0x10077508]
push str.Left_Mouse
jmp 0x100773fa
push str.Right_Mouse
jmp 0x100773fa
push str.Middle_Mouse
jmp 0x100773fa
push str.XButton1
jmp 0x100773fa
push str.XButton2
jmp 0x100773fa
push str.UNKNOWN
jmp 0x100773fa
push 0x80
lea eax, [ebp - 0x88]
push eax
push 0
push ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
shl eax, 0x10
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
test eax, eax
jg 0x1007740f
push str.INVALID
lea eax, [ebp - 0x88]
push 0x80
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
push ecx
mov edx, esi
lea ecx, [ebp - 0x88]
call fcn.1003f360
add esp, 4
test al, al
je 0x100774f6
mov byte [0x1021b038], 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008dd76
mov esp, ebp
pop ebp
ret
push ecx
mov ecx, 0x100fa41c
call fcn.1003f360
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
add esp, 4
mov esi, 8
nop dword [eax]
push esi
call ebx
bt ax, 0xf
jb 0x10077475
inc esi
cmp esi, 0xff
jle 0x10077460
jmp 0x1007747e
mov dword [edi], esi
mov byte [0x1021b038], 0
push 1
call ebx
bt ax, 0xf
jae 0x10077496
mov dword [edi], 1
mov byte [0x1021b038], 0
push 2
call ebx
bt ax, 0xf
jae 0x100774ae
mov dword [edi], 2
mov byte [0x1021b038], 0
push 4
call ebx
bt ax, 0xf
jae 0x100774c6
mov dword [edi], 4
mov byte [0x1021b038], 0
push 5
call ebx
bt ax, 0xf
jae 0x100774de
mov dword [edi], 5
mov byte [0x1021b038], 0
push 6
call ebx
bt ax, 0xf
jae 0x100774f6
mov dword [edi], 6
mov byte [0x1021b038], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008dd76
mov esp, ebp
pop ebp
ret
Function at 0x10082880
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1010300c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x24], edx
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x1008297a
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x10082973
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x20], 0x10
jb 0x10082959
call ebx
cmp dword [ebp - 0x14], eax
jne 0x10082959
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x10082959
mov edx, dword [esi]
test edx, edx
jne 0x10082922
push 0x200
push edx
push dword [0x1014ec84]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10082973
jmp 0x1008294d
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1008294d
shl eax, 3
push eax
push edx
push 0
push dword [0x1014ec84]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10082973
mov eax, dword [esi + 4]
add eax, eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x100828e1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x100829bf
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x100829bf
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x100829b9
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 0x24]
mov ecx, ebx
call fcn.10082710
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x10082986
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008dd76
mov esp, ebp
pop ebp
ret
Function at 0x100829d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1010300c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x1021ba30]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10082a31
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008dd76
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x10082a52
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x10082a73
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x10082a73
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x10082a6d
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x10082a73
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, byte [esi + 0x14]
and bl, 1
and cl, 0xfd
mov al, bl
add al, al
shl bl, 2
or cl, al
xor eax, eax
and cl, 0xfb
or cl, bl
mov byte [esi + 0x14], cl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008dd76
mov esp, ebp
pop ebp
ret
Function at 0x10082ad0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [0x1021ba38]
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 4], edi
mov ebx, ecx
test edx, edx
je 0x10082bc1
mov eax, dword [0x1021ba30]
add eax, 0x14
movzx ecx, byte [eax]
shr ecx, 1
and ecx, 1
cmp ecx, ebx
jne 0x10082b15
inc esi
add eax, 0x2c
cmp esi, edx
jb 0x10082af8
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x10082bc1
xor eax, eax
lea ecx, [ebp - 0x10]
test ebx, ebx
setne al
or edx, 0xffffffff
push eax
call fcn.10082880
mov ecx, dword [0x1021ba38]
add esp, 4
cmp esi, ecx
jae 0x10082b75
imul edi, esi, 0x2c
mov eax, dword [0x1021ba30]
movzx eax, byte [edi + eax + 0x14]
shr eax, 1
and eax, 1
cmp eax, ebx
je 0x10082b6a
mov edx, ebx
mov ecx, esi
call fcn.100829d0
mov dword [ebp - 4], eax
test eax, eax
jne 0x10082b72
mov ecx, dword [0x1021ba38]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x10082b41
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10082bc1
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x10082bb2
mov edi, eax
push dword [edi + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10082ba6
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x10082b85
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x1014ec84]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10082f60
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
xor esi, esi
push edi
mov edi, edx
mov dword [ebp - 4], ebx
mov edx, 1
mov ecx, 0x1014ec80
xor eax, eax
lock cmpxchg dword [ecx], edx
test eax, eax
je 0x10082fb5
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
cmp esi, 0x20
jae 0x10082f99
push 0
jmp 0x10082f9b
push 1
call ebx
inc esi
mov ecx, 1
xor eax, eax
mov edx, 0x1014ec80
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x10082f90
mov ebx, dword [ebp - 4]
cmp dword [0x1014ec84], 0
je 0x10083088
test ebx, ebx
jne 0x10082fd4
mov ecx, edi
call fcn.10082ad0
mov edi, eax
jmp 0x1008308d
mov ecx, dword [0x1021ba38]
xor esi, esi
test ecx, ecx
je 0x10082ff4
mov edx, dword [0x1021ba30]
mov eax, edx
cmp ebx, dword [eax]
je 0x10082ffe
inc esi
add eax, 0x2c
cmp esi, ecx
jb 0x10082fe8
mov edi, 4
jmp 0x1008308d
cmp esi, 0xffffffff
je 0x10082ff4
imul eax, esi, 0x2c
movzx eax, byte [eax + edx + 0x14]
shr eax, 1
and eax, 1
cmp eax, edi
je 0x1008307f
push 1
mov edx, esi
lea ecx, [ebp - 0x10]
call fcn.10082880
add esp, 4
mov edx, edi
mov ecx, esi
call fcn.100829d0
mov edi, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], edi
test eax, eax
je 0x1008308d
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x1008306e
mov edi, eax
push dword [edi + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10083062
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x10083041
mov edi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x1014ec84]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1008308d
neg edi
sbb edi, edi
add edi, 6
jmp 0x1008308d
mov edi, 2
xor eax, eax
mov ecx, 0x1014ec80
xchg dword [ecx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10088a50
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp esi, 0xcc
ja 0x10088a76
lea eax, [edi + 8]
lea ebx, [edi + 4]
mov dword [ecx], eax
mov dword [ebx], esi
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov eax, 0x7fffffff
cmp esi, eax
cmovl eax, esi
mov esi, eax
cmp esi, 0xccccccc
ja 0x10088aac
test esi, esi
jle 0x10088aac
nop
lea eax, [esi + esi*4]
shl eax, 2
push 0x100925b0
push eax
call fcn.1008e5e2
add esp, 8
test eax, eax
jne 0x10088ad1
shr esi, 1
jne 0x10088a90
xor eax, eax
lea ebx, [edi + 4]
push eax
call fcn.1008e637
mov ecx, edi
lea eax, [edi + 8]
mov esi, 0xcc
add esp, 4
mov dword [ecx], eax
mov eax, edi
mov dword [ebx], esi
pop edi
pop esi
pop ebx
pop ebp
ret 4
lea ebx, [edi + 4]
cmp esi, 0xcc
jbe 0x10088ab1
mov ecx, edi
mov dword [ecx], eax
mov eax, edi
pop edi
mov dword [ebx], esi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x10001952
Capabilities:
Connect socket

Disassembly:
push ecx
mov eax, dword [edi + 0x18]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
je 0x1000196e
call fcn.100328c6
mov esi, dword [edi + 0x18]
call fcn.10032866
mov dword [edi + 0x18], ebx
mov eax, dword [edi + 0x1c]
cmp eax, 0xffffffff
je 0x10001981
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [edi + 0x1c], 0xffffffff
mov ecx, dword [edi + 0x2c]
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10004139
mov ecx, dword [edi + 0x30]
add esp, 0x14
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10004139
add esp, 0x14
xor eax, eax
inc eax
push 6
push eax
push 2
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], ebx
mov dword [edi + 0x13f0], ebx
mov dword [edi + 0x13ec], ebx
mov dword [edi + 0x3dc], ebx
mov dword [edi + 0x3e0], ebx
mov dword [edi + 0x3e4], ebx
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [edi + 0x1c], eax
je 0x10001a3e
push 0x10
push edi
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x10001a3e
mov eax, dword [edi + 0x40]
push str.http:
push dword [eax]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10001a02
mov eax, dword [edi + 0x24]
jmp 0x10001a43
push dword [edi + 0x14]
call fcn.1003281f
cmp eax, ebx
pop ecx
mov dword [edi + 0x18], eax
je 0x10001a3e
mov ecx, dword [edi + 0x1c]
lea edx, [eax + 0xf8]
lea esi, [eax + 0xfc]
mov dword [edx], ecx
mov dword [esi], ecx
mov dword [eax + 0x110], edx
mov dword [eax + 0x114], esi
mov eax, dword [edi + 0x18]
call fcn.10032b38
cmp eax, 1
je 0x100019fd
mov dword [edi + 0x24], ebx
xor eax, eax
pop esi
pop ebx
pop ecx
ret

Function at 0x10001a47
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [edi + 0x24], 0
push esi
jne 0x10001a58
xor eax, eax
jmp 0x10001acf
mov eax, dword [ebx + 4]
and dword [ebp - 4], 0
test eax, eax
mov dword [ebp - 8], eax
jle 0x10001acc
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 4]
mov eax, 0x1000
cmp ecx, eax
jl 0x10001a77
mov ecx, eax
mov eax, dword [ebx]
mov esi, dword [edi + 0x18]
add eax, dword [ebp - 4]
test esi, esi
je 0x10001a95
push ecx
push eax
call fcn.10035a11
test eax, eax
pop ecx
pop ecx
jge 0x10001aa2
or esi, 0xffffffff
jmp 0x10001aa4
push 0
push ecx
push eax
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test esi, esi
jle 0x10001ad2
mov eax, dword [edi + 0x3e8]
test eax, eax
je 0x10001ac1
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10001ad2
add dword [ebp - 4], esi
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jl 0x10001a66
xor eax, eax
inc eax
pop esi
leave
ret
and dword [edi + 0x24], 0
jmp 0x10001a54
Function at 0x10001adb
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push ecx
cmp dword [esi + 0x24], 0
push ebx
push ebp
push edi
jne 0x10001aed
xor eax, eax
jmp 0x10001bc4
mov edi, dword [esi + 0x13f0]
mov eax, edi
cdq
mov ebx, bind
add eax, ebx
adc edx, 0
mov dword [esp + 0x10], edx
mov ebp, 0x1000
js 0x10001b51
jg 0x10001b11
cmp eax, ebp
jbe 0x10001b51
mov ecx, dword [esi + 0x13ec]
test ecx, ecx
je 0x10001b51
cmp edi, ebp
je 0x10001b28
mov eax, edi
sub eax, ecx
cmp eax, 0x10
jg 0x10001b51
mov eax, edi
sub eax, ecx
push eax
mov dword [esi + 0x13f0], eax
lea eax, [ecx + esi + 0x3ec]
push eax
lea eax, [esi + 0x3ec]
push eax
call sub.MSVCRT.dll_memmove
add esp, 0xc
and dword [esi + 0x13ec], 0
mov eax, dword [esi + 0x13f0]
mov ecx, ebp
sub ecx, eax
cmp ecx, ebx
jle 0x10001b61
mov ecx, ebx
mov edx, dword [esi + 0x18]
xor ebx, ebx
cmp edx, ebx
lea eax, [eax + esi + 0x3ec]
je 0x10001b7e
push ecx
push eax
push edx
call fcn.1003289f
add esp, 0xc
jmp 0x10001b8a
push ebx
push ecx
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, ebx
jge 0x10001b98
mov dword [esi + 0x24], ebx
jmp 0x10001ae6
mov eax, dword [esi + 0x3e8]
cmp eax, ebx
je 0x10001bb0
push ebx
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10001b90
add dword [esi + 0x13f0], edi
cmp edi, ebx
jne 0x10001bc1
mov dword [esi + 0x28], 1
mov eax, dword [esi + 0x24]
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x10002ad8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, eax
mov ecx, edi
and ecx, 0xff00
mov edx, edi
shl edx, 0x10
or ecx, edx
shl ecx, 8
movzx edx, di
or ecx, edx
xor ecx, 0xb11924e1
movsx esi, cl
mov edx, ecx
shr edx, 8
movsx edx, dl
mov ebx, esi
mov ebp, dword [esp + 0x14]
shl ebx, 5
add ebx, esi
add edx, ebx
mov esi, edx
shl esi, 5
add esi, edx
mov edx, ecx
shr edx, 0x10
movsx edx, dl
add esi, edx
shr ecx, 0x18
mov edx, esi
shl edx, 5
add edx, esi
movsx ecx, cl
mov ebx, edi
and ebx, 3
mov eax, 0x96438af7
lea ecx, [ecx + edx + 0x7c5d0f85]
mov dword [esp + 0x14], ebx
je 0x10002b9a
mov esi, ebp
jmp 0x10002b53
mov edx, ecx
and edx, 0xff
add eax, dword [edx*4 + 0x10058188]
mov ebp, ecx
not ebp
shl ebp, 0x15
mov dl, al
add dl, cl
xor dl, byte ds:[esi]
add ebp, 0x2611501
shr ecx, 0xb
or ecx, ebp
mov ebp, eax
shl ebp, 5
add ebp, eax
movzx eax, dl
mov byte ds:[esi], dl
add esi, 1
sub ebx, 1
lea eax, [ebp + eax + 3]
jne 0x10002b53
sub edi, dword [esp + 0x14]
mov ebp, esi
test edi, edi
mov esi, ebp
je 0x10002be1
jmp 0x10002ba4
mov edx, ecx
and edx, 0xff
add eax, dword [edx*4 + 0x10058188]
mov ebx, ecx
not ebx
shl ebx, 0x15
lea edx, [eax + ecx]
xor edx, dword ds:[esi]
add ebx, 0x3938731
shr ecx, 0xb
or ecx, ebx
mov ebx, eax
shl ebx, 5
add ebx, edx
mov dword ds:[esi], edx
add esi, 4
sub edi, 4
lea eax, [ebx + eax + 3]
jne 0x10002ba4
pop edi
pop esi
pop ebp
pop ebx
ret