joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a933c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a94e7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x4a94c8
mov dl, 1
mov eax, dword [0x431108]
call fcn.0043d7b8
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
call fcn.00406894
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4a94b7
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.0047aa48
test al, al
je 0x4a94aa
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x4a94f8
lea eax, [ebp - 0x394]
call fcn.0041bc38
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4a94aa
xor eax, eax
push ebp
push 0x4a94a3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x4a9568
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4a948c
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00407264
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
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 + 0x40]
jne 0x4a948c
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.00407264
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a94aa
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4a93ad
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x39], 0
mov dl, 1
call fcn.0043d6f4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a94ee
lea eax, [ebp - 0x3a0]
call fcn.00406894
ret

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

Disassembly:
push ecx
mov eax, dword [0x4bd24c]
cmp byte [eax + 0xad], 0
jne 0x4aa0b6
cmp dword [0x4bd264], 0
jne 0x4aa076
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x4b6e0c]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x4bd264], eax
cmp dword [0x4bd260], 0
jne 0x4aa091
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x4bd260], eax
cmp dword [0x4bd268], 0
jne 0x4aa0b6
push esp
push 0
push 0
mov eax, dword [0x4b6e08]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4bd268], eax
pop edx
ret
Function at 0x4aa3cc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4aa3e3
add esp, 0xfffffff0
call fcn.004053a4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00445f68
mov eax, dword [0x4b6e70]
cmp byte [eax], 0
jne 0x4aa410
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x4b70a0]
cmp word [eax + 2], 0
jne 0x4aa42a
mov eax, dword [0x4b70a0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004ac494
mov eax, dword [0x4b7174]
cmp word [eax + 2], 0
jne 0x4aa444
mov eax, dword [0x4b7174]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004ac698
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x44ce34]
call fcn.004520c8
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4acc10
mov dl, 1
mov eax, dword [0x42e92c]
call fcn.00404e5c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x42e92c]
call fcn.00404e5c
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 [0x45072c]
call fcn.00458f10
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4aa624
mov eax, dword [0x4b6fa4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.004593a4
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4acef8
mov dl, 1
mov eax, dword [0x42e92c]
call fcn.00404e5c
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x4b6fa4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.0041ba60
test eax, eax
je 0x4aa555
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.0041b814
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.0041ba44
test eax, eax
je 0x4aa56d
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.00407264
push ebx
push 0x4abe80
call fcn.004a01dc
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x4b6e70]
cmp byte [eax], 0
jne 0x4aa5be
mov eax, ebx
call fcn.004aa798
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004ad124
mov eax, ebx
call fcn.004add54
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4aa61b
call fcn.004053fc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4aaa64
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4aab06
cmp dword [ebx + 0x94], 0
jne 0x4aab00
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4aa9b0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4aab00
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_GetWindowLongW
test al, 8
je 0x4aaac6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4aab00
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.00439c98
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4aaad5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4aad24
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4bd24c]
cmp dword [eax + 0x170], 0
je 0x4aae89
test bl, bl
jne 0x4aadd7
cmp dword [esi + 0x9c], 0
jne 0x4aadcc
mov eax, esi
call fcn.004adba4
push eax
push 0x4aac30
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4aad9d
mov eax, dword [0x4bd24c]
cmp byte [eax + 0xd3], 0
je 0x4aad9d
mov eax, dword [esi + 0xd8]
call fcn.00408144
mov edi, eax
cmp edi, 0
jl 0x4aad9d
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4aad86
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4aadcc
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00439c98
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4aadac
inc dword [esi + 0x9c]
jmp 0x4aae89
cmp dword [esi + 0x9c], 0
jle 0x4aae89
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4aae89
cmp dword [esi + 0x44], 0
je 0x4aae34
mov eax, dword [0x4bd24c]
cmp byte [eax + 0xd3], 0
je 0x4aae34
mov eax, dword [esi + 0xd8]
call fcn.00408144
mov edi, eax
cmp edi, 0
jl 0x4aae34
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4aae1d
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4aae63
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00439c98
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4aae43
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x49e0b4]
call fcn.00408304
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4abacc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4abb37
cmp byte [ebx + 0xd3], 0
jne 0x4abb37
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004069fc
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4abb24
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4abb44
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406c54
jmp 0x4abb44
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406c54
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4ad30c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4ad37a
mov eax, esi
call fcn.00474bdc
test al, al
je 0x4ad37a
mov eax, dword [ebx + 0x84]
call fcn.0047485c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4ad37a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4ad36e
push 0
mov eax, dword [ebx + 0x84]
call fcn.0047485c
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0046b7d8
jmp 0x4ad37a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004ad144
pop esi
pop ebx
ret
Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..reloc
mov ebx, 0x40c7d0
nop
mov ecx, 0x3d94310e
nop
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..rdata
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x3f285c02
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43206c
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x10001010
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
or eax, 0xffffffff
push esi
mov esi, dword [ebp + 8]
test edx, edx
je 0x1000103c
push ebx
push edi
movzx ebx, byte [esi]
mov edi, eax
and edi, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [ecx + edi*4]
inc esi
dec edx
jne 0x10001023
pop edi
pop ebx
not eax
pop esi
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push 0x1000e38c
mov dword [ebp - 4], ecx
push eax
lea ecx, [ebp + 0xc]
push ecx
mov dword [esi], 0xffffffff
mov dword [ebp + 0xc], 0
call dword [sym.imp.MSVCR100.dll_fopen_s]
add esp, 0xc
test eax, eax
je 0x1000108b
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc
push ebx
mov ebx, dword [ebp + 0x10]
push edi
push ebx
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
test edi, edi
jne 0x100010bb
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
push eax
push ebx
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
je 0x10001111
mov ecx, eax
mov edx, edi
test eax, eax
je 0x100010fc
mov eax, dword [esi]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp - 4]
shr eax, 8
xor eax, dword [ebx + edi*4]
inc edx
dec ecx
mov dword [esi], eax
jne 0x100010d8
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ecx
push ebx
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
jne 0x100010d0
push edi
call dword [sym.imp.MSVCR100.dll_free]
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
mov eax, dword [esi]
add esp, 8
pop edi
not eax
mov dword [esi], eax
pop ebx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10001140
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push 0x1000e390
mov dword [ebp - 4], ecx
push eax
lea ecx, [ebp + 0xc]
push ecx
mov dword [esi], 0xffffffff
mov dword [ebp + 0xc], 0
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x1000117b
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc
push ebx
mov ebx, dword [ebp + 0x10]
push edi
push ebx
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
test edi, edi
jne 0x100011ab
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
pop edi
pop ebx
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
push eax
push ebx
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
je 0x10001201
mov ecx, eax
mov edx, edi
test eax, eax
je 0x100011ec
mov eax, dword [esi]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp - 4]
shr eax, 8
xor eax, dword [ebx + edi*4]
inc edx
dec ecx
mov dword [esi], eax
jne 0x100011c8
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ecx
push ebx
push 1
push edi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
jne 0x100011c0
push edi
call dword [sym.imp.MSVCR100.dll_free]
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
mov eax, dword [esi]
add esp, 8
pop edi
not eax
mov dword [esi], eax
pop ebx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10001230
Capabilities:
Hash data using crc32b

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
xor edx, edx
xor eax, eax
test dl, 1
je 0x10001243
mov eax, 0x80
mov ecx, edx
shr ecx, 1
test cl, 1
je 0x1000124f
or eax, 0x40
shr ecx, 1
test cl, 1
je 0x10001259
or eax, 0x20
shr ecx, 1
test cl, 1
je 0x10001263
or eax, 0x10
shr ecx, 1
test cl, 1
je 0x1000126d
or eax, 8
shr ecx, 1
test cl, 1
je 0x10001277
or eax, 4
shr ecx, 1
test cl, 1
je 0x10001281
or eax, 2
test cl, 2
je 0x10001289
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]
mov edi, edi
test al, 1
je 0x1000134d
mov ebx, 1
shl ebx, cl
or edi, ebx
dec ecx
shr eax, 1
cmp ecx, 0xffffffff
jg 0x10001340
mov dword [esi + edx*4], edi
inc edx
cmp edx, 0xff
jle 0x10001237
pop edi
pop esi
pop ebx
ret

Function at 0x10001380
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x100203e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x194]
push eax
push 0x202
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100013bf
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ab64
mov esp, ebp
pop ebp
ret 4
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x100013ac
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [esi + 8], eax
test eax, eax
je 0x100013ac
mov ecx, dword [ebp + 8]
mov dword [esi + 0x4014], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.1000ab64
mov esp, ebp
pop ebp
ret 4
Function at 0x10001490
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x200c]
xor ebx, ebx
push ebx
mov ecx, 0x2000
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 0x100014e3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x100014d4
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.10001400
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
add dword [esi + 0x200c], eax
cmp dword [esi + 0x200c], 4
jl 0x100014cc
push edi
lea ecx, [esi + 0xc]
lea eax, [ecx + ebx]
mov dword [ebp - 8], eax
mov al, byte [eax]
cmp al, 0xc1
jne 0x10001509
movzx edi, byte [ebx + esi + 0xd]
jmp 0x10001524
cmp al, 0xc2
jne 0x100015e1
movzx edx, byte [ebx + esi + 0xd]
shl dx, 8
movzx edi, dx
movzx edx, byte [ebx + esi + 0xe]
or edi, edx
cmp edi, 4
jl 0x100015e1
cmp edi, 0x2000
jg 0x100015e1
cmp edi, dword [esi + 0x200c]
jg 0x100015af
cmp al, 0xc1
jne 0x1000155f
movzx ecx, byte [ebx + esi + 0xe]
push ecx
lea edx, [edi - 3]
lea eax, [ebx + esi + 0xf]
push edx
push eax
call fcn.100098b0
mov al, byte [ebx + esi + 0xf]
jmp 0x10001577
movzx ecx, byte [ebx + esi + 0xf]
push ecx
lea edx, [edi - 4]
lea eax, [ebx + esi + 0x10]
push edx
push eax
call fcn.100098b0
mov al, byte [ebx + esi + 0x10]
mov ecx, dword [ebp - 8]
add esp, 0xc
mov byte [ebp - 4], al
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x4014]
push edi
push ecx
push edx
call eax
sub dword [esi + 0x200c], edi
add esp, 0xc
add ebx, edi
cmp dword [esi + 0x200c], 0
jg 0x100014f3
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
test ebx, ebx
jle 0x100015d8
mov eax, dword [esi + 0x200c]
test eax, eax
jle 0x100015d8
mov edx, 0x2000
sub edx, ebx
cmp eax, edx
jg 0x100015d8
push eax
lea eax, [ebx + esi + 0xc]
push eax
push ecx
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.10001400
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001600
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.1000ab80
mov eax, dword [0x100203e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x4018]
mov ecx, ebx
mov dword [ebp - 0x200c], eax
mov dword [ebp - 0x2008], ebx
call fcn.10001ae0
cmp dword [esi + 4], 0xffffffff
je 0x10001646
cmp byte [esi + 0x4038], 0
jne 0x10001661
mov ecx, ebx
call fcn.10001af0
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ab64
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x200c]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ecx
lea edx, [ebp - 0x2004]
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
cmp byte [ebp - 0x2004], 0xc1
jne 0x10001696
mov eax, dword [ebp - 0x2002]
lea ecx, [edi - 3]
lea edx, [ebp - 0x2001]
jmp 0x100016a5
mov eax, dword [ebp - 0x2001]
lea ecx, [edi - 4]
lea edx, [ebp - 0x2000]
push eax
push ecx
push edx
call fcn.100098e0
mov eax, dword [esi + 0x4010]
add esp, 0xc
test eax, eax
jle 0x1000170a
lea ecx, [eax + edi]
cmp ecx, 0x2000
jle 0x100016e8
mov ecx, esi
call fcn.10001400
mov ecx, ebx
call fcn.10001af0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ab64
mov esp, ebp
pop ebp
ret 8
push edi
lea edx, [ebp - 0x2004]
push edx
lea eax, [eax + esi + 0x2010]
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
add dword [esi + 0x4010], edi
mov ecx, ebx
jmp 0x10001738
xor ebx, ebx
test edi, edi
jle 0x10001732
mov edx, dword [esi + 4]
push 0
push edi
lea ecx, [ebp + ebx - 0x2004]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x10001752
sub edi, eax
add ebx, eax
test edi, edi
jg 0x10001710
mov ecx, dword [ebp - 0x2008]
call fcn.10001af0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ab64
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10001791
mov eax, dword [esi + 0x4010]
lea ecx, [eax + edi]
cmp ecx, 0x2000
jg 0x10001791
push edi
lea edx, [ebp + ebx - 0x2004]
push edx
lea eax, [eax + esi + 0x2010]
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
add dword [esi + 0x4010], edi
jmp 0x10001732
mov ecx, esi
call fcn.10001400
mov ecx, dword [ebp - 0x2008]
call fcn.10001af0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.1000ab64
mov esp, ebp
pop ebp
ret 8