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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x46fbb8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4230e6
cmp byte [ebx], 0xa
jne 0x4230e6
or byte [eax + edi + 0x28], 4
jmp 0x4230eb
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4231e9
mov al, byte [edx]
cmp al, 0x1a
je 0x4231cb
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x42311a
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x42313f
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x423149
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4230fc
jmp 0x4231e9
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4231c6
cmp dword [ebp - 0xc], 0
je 0x4231c6
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x46fbb8]
test byte [eax + edi + 0x28], 0x48
je 0x4231a0
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42318b
mov byte [esi], dl
jmp 0x42319c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x46fbb8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4231e9
cmp byte [ebp - 1], 0xa
jne 0x4231af
cmp esi, ebx
jne 0x4231af
mov byte [esi], 0xa
jmp 0x4231e8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041b1a1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4231e9
mov byte [esi], 0xd
jmp 0x4231e8
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x46fbb8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4231e5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4231e9
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4231f2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x46fbb8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x423235
cmp word [esi], dx
jne 0x423235
or byte [edi + eax + 0x28], 4
jmp 0x42323a
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x42338d
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x42336d
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x42327c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4232b2
cmp eax, edx
jae 0x4232be
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x423254
jmp 0x42338d
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x423369
cmp dword [ebp - 0x14], 0
je 0x423369
mov eax, dword [ebx*4 + 0x46fbb8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x423341
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x42330a
mov word [esi], cx
jmp 0x42333d
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x46fbb8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x46fbb8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x46fbb8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x42338d
pop ebx
cmp word [ebp - 4], bx
jne 0x423352
cmp esi, dword [ebp + 0xc]
jne 0x423352
mov word [esi], bx
jmp 0x42338a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041b1a1
add esp, 0x10
cmp word [ebp - 4], bx
je 0x42338d
push 0xd
jmp 0x423386
mov ecx, dword [ebx*4 + 0x46fbb8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x423384
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42338d
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x401450
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x492e40], 0
jne 0x40146f
push 0
push 0x10001
call fcn.00404890
add esp, 8
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.00403720

Function at 0x402270
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x492e40], 0
jne 0x402289
push 0
push 0x10001
call fcn.00404890
add esp, 8
ret
jmp fcn.004046b0

Function at 0x402cc0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
xor ebx, ebx
call esi
cwde
test eax, eax
jns 0x402cd8
mov ebx, 1
push 0x11
call esi
test ax, ax
jns 0x402ce4
or ebx, 2
push 0x12
call esi
test ax, ax
jns 0x402cf0
or ebx, 4
push edi
push 0x5c
call esi
push 0x5b
movsx edi, ax
call esi
cwde
or eax, edi
pop edi
jns 0x402d05
or ebx, 8
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x402d10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x10
xor ebx, ebx
call esi
cwde
test eax, eax
jns 0x402d28
mov ebx, 1
push 0x11
call esi
test ax, ax
jns 0x402d34
or ebx, 2
push 0x12
call esi
test ax, ax
jns 0x402d40
or ebx, 4
push edi
push 0x5c
call esi
push 0x5b
movsx edi, ax
call esi
cwde
or eax, edi
pop edi
jns 0x402d55
or ebx, 8
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x4046b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4902d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x38]
push eax
call edi
test eax, eax
je 0x404724
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
cmp dword [ebp - 0x34], 0x12
jne 0x404702
mov esi, dword [0x49346c]
test esi, esi
je 0x404712
push esi
call fcn.00401bc0
mov esi, dword [esi]
add esp, 4
test esi, esi
jne 0x4046f1
jmp 0x404712
lea ecx, [ebp - 0x38]
push ecx
call ebx
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x38]
push eax
call edi
test eax, eax
jne 0x4046e1
mov edi, dword [0x493470]
test edi, edi
je 0x4047fe
call fcn.00402d10
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
mov dword [ebp - 0x18], eax
call ebx
movzx esi, ax
push 0xa1
shr esi, 0xf
call ebx
movzx ebx, ax
shr ebx, 0xf
test esi, esi
jne 0x40477b
cmp byte [edi + 0x1d0], 1
jne 0x40477b
mov ecx, dword [ebp - 0x18]
push ecx
push esi
push esi
push 0x154
push edi
call fcn.004010e0
add esp, 0x14
test ebx, ebx
jne 0x40479c
cmp byte [edi + 0x1d4], 1
jne 0x40479c
mov edx, dword [ebp - 0x18]
push edx
push ebx
push ebx
push 0x158
push edi
call fcn.004010e0
add esp, 0x14
cmp dword [edi + 0x70], 0x34003
jne 0x4047fe
mov ecx, dword [edi + 0x258]
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x1c], eax
cmp dword [edi + 0x26c], eax
jne 0x4047db
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
cmp dword [edi + 0x270], eax
je 0x4047fe
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x18], eax
sub esp, 0x10
fild dword [ebp - 0x18]
fstp qword [esp + 8]
fild dword [ebp - 0x1c]
fstp qword [esp]
push edi
call fcn.00403600
add esp, 0x14
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00473fd7
mov esp, ebp
pop ebp
ret

Function at 0x404910
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x492e40], 0
jne 0x404974
push 0xc38
push 0
push 0x4933c0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
call fcn.004084a0
test eax, eax
jne 0x40493e
call fcn.00408530
xor eax, eax
ret
call fcn.00408760
push 0x493478
call fcn.00407470
add esp, 4
mov dword [0x493474], eax
mov dword [0x492e40], 1
call fcn.004065b0
mov dword [0x493480], eax
mov dword [0x493484], edx
call fcn.00401bf0
mov eax, 1
ret
Function at 0x406a70
Capabilities:
Link many functions at runtime

Disassembly:
push 0x47c110
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x493c08], eax
test eax, eax
jne 0x406a99
push str.WGL:_Failed_to_load_opengl32.dll
push 0x10008
call fcn.00404890
add esp, 8
xor eax, eax
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.wglCreateContext
push eax
call esi
mov dword [0x493c0c], eax
mov eax, dword [0x493c08]
push str.wglDeleteContext
push eax
call esi
mov ecx, dword [0x493c08]
push 0x47c0b0
push ecx
mov dword [0x493c10], eax
call esi
mov edx, dword [0x493c08]
push str.wglMakeCurrent
push edx
mov dword [0x493c14], eax
call esi
mov dword [0x493c18], eax
mov eax, dword [0x493c08]
push str.wglShareLists
push eax
call esi
mov dword [0x493c1c], eax
mov eax, 1
pop esi
ret

Function at 0x407290
Capabilities:
Allocate thread local storage

Disassembly:
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x493ff4], eax
cmp eax, 0xffffffff
jne 0x4072b5
push str.Win32:_Failed_to_allocate_TLS_index
push 0x10008
call fcn.00404890
add esp, 8
xor eax, eax
ret
mov eax, 1
mov dword [0x493ff0], eax
ret
Function at 0x407d30
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.winmm.dll
call esi
xor edi, edi
mov dword [0x493bc8], eax
cmp eax, edi
jne 0x407d6a
push str.Win32:_Failed_to_load_winmm.dll
push 0x10008
call fcn.00404890
add esp, 8
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.timeGetTime
push eax
call ebx
push str.user32.dll
mov dword [0x493bcc], eax
call esi
mov dword [0x493be8], eax
cmp eax, edi
jne 0x407da9
push str.Win32:_Failed_to_load_user32.dll
push 0x10008
call fcn.00404890
add esp, 8
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push str.SetProcessDPIAware
push eax
call ebx
mov dword [0x493bec], eax
mov eax, dword [0x493be8]
push str.ChangeWindowMessageFilterEx
push eax
call ebx
push str.dinput8.dll
mov dword [0x493bf0], eax
call esi
mov dword [0x493bd0], eax
cmp eax, edi
je 0x407de5
push str.DirectInput8Create
push eax
call ebx
mov dword [0x493bd4], eax
mov eax, str.xinput1_4.dll
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], str.xinput1_3.dll
mov dword [ebp - 0x10], str.xinput9_1_0.dll
mov dword [ebp - 0xc], str.xinput1_2.dll
mov dword [ebp - 8], str.xinput1_1.dll
mov dword [ebp - 4], edi
lea esp, [esp]
push eax
call esi
mov dword [0x493bdc], eax
test eax, eax
jne 0x407e27
mov eax, dword [ebp + edi*4 - 0x14]
inc edi
test eax, eax
jne 0x407e10
jmp 0x407e47
push str.XInputGetCapabilities
push eax
call ebx
mov ecx, dword [0x493bdc]
push str.XInputGetState
push ecx
mov dword [0x493be0], eax
call ebx
mov dword [0x493be4], eax
push str.dwmapi.dll
call esi
mov dword [0x493bf4], eax
test eax, eax
je 0x407e77
push str.DwmIsCompositionEnabled
push eax
call ebx
mov edx, dword [0x493bf4]
push str.DwmFlush
push edx
mov dword [0x493bf8], eax
call ebx
mov dword [0x493bfc], eax
push str.shcore.dll
call esi
mov dword [0x493c00], eax
test eax, eax
je 0x407e94
push 0x47c5b4
push eax
call ebx
mov dword [0x493c04], eax
pop ebx
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4084a0
Capabilities:
Allocate thread local storage

Disassembly:
call fcn.00407290
test eax, eax
jne 0x4084ac
xor eax, eax
ret
push esi
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
push 0x4934c4
push 0
push 0x2000
call esi
push 2
push 0
push 0
push 0x2001
call esi
call fcn.00407d30
pop esi
test eax, eax
je 0x4084a9
call fcn.00407ea0
mov eax, dword [0x493c04]
test eax, eax
je 0x4084ee
push 2
call eax
jmp 0x4084f9
mov eax, dword [0x493bec]
test eax, eax
je 0x4084f9
call eax
call fcn.00404510
test eax, eax
je 0x4084a9
call fcn.004082e0
mov dword [0x4934c0], eax
test eax, eax
je 0x4084a9
call fcn.004046b0
call fcn.00406a70
test eax, eax
je 0x4084a9
call fcn.00406560
call fcn.00406510
mov eax, 1
ret
Function at 0x40ada0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x40ae01
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x40ade4
cmp edi, 2
jb 0x40ade4
cmp byte [esi], cl
jne 0x40ade4
cmp byte [esi + 1], cl
jne 0x40ade4
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x47dfb0]
jmp 0x40adb5
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x47dfb0]
test edi, edi
jne 0x40adb5
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x40ae30
cmp cl, 0x23
jne 0x40ae17
cmp byte [esi], cl
jne 0x40ae17
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x47dfb0]
test cl, cl
jne 0x40ae08
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x40af40
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 0x40af54
mov dword [ebx], 0
mov edx, 0x47dbcc
call fcn.0040ae40
mov esi, eax
test esi, esi
je 0x40b042
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 0x40b038
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 0x40b038
push esi
call edi
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x40b038
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 0x40b038
mov eax, dword [0x4931e0]
test eax, eax
je 0x40afcc
inc dword [eax + 0xb4]
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 0x40b038
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 0x40b01d
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x4931e0]
add esp, 4
test eax, eax
je 0x40b00a
dec dword [eax + 0xb4]
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 0x40b02f
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 0x40d770
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4902d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov esi, 4
mov eax, dword [edi + 0xe4]
mov ebx, dword [edi + 0xec]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x47dfb0]
sub esi, 1
jne 0x40d7b0
mov eax, dword [edi]
not ebx
cmp dword [eax + 0x3e74], ebx
jne 0x40d7e7
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.0041f0e0
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00473fd7
mov esp, ebp
pop ebp
ret 4
Function at 0x410ef0
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 0x410f2d
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x410f13
cmp byte [esi], bl
jne 0x410f13
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 + 0x47dfb0]
test bl, bl
jne 0x410f04
pop edi
pop esi
not ecx
pop ebx
jmp fcn.00410e90
Function at 0x41dd20
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 + 0x5a7c], 0
lea esi, [edi + 0x5a80]
je 0x41dda2
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x41dd5c
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.0041fbc0
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.0040b1d0
mov edx, dword [esi]
mov ecx, 0x4931dc
push dword [edi + 0x5a7c]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x5a88]
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.0040b1d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41e190
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 [0x4931e0]
test bl, bl
je 0x41e1d6
or edi, 0xffffffff
cmp bl, 0x23
jne 0x41e1b7
cmp byte [esi], bl
jne 0x41e1b7
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 + 0x47dfb0]
test bl, bl
jne 0x41e1a8
mov edi, dword [0x4931e0]
mov esi, dword [edi + 0x5a24]
xor ecx, ecx
not eax
test esi, esi
jle 0x41e1fc
mov edi, dword [edi + 0x5a2c]
lea edx, [edi + 4]
nop dword [eax]
cmp dword [edx], eax
je 0x41e202
inc ecx
add edx, 0x24
cmp ecx, esi
jl 0x41e1f0
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 0x428030
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 0x42806a
mov eax, dword [0x4931e0]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x42805d
dec dword [eax + 0xb4]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x42809b
mov eax, dword [0x4931e0]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x42808e
dec dword [eax + 0xb4]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4280cc
mov eax, dword [0x4931e0]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x4280bf
dec dword [eax + 0xb4]
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 0x428119
mov eax, dword [0x4931e0]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x42810c
dec dword [eax + 0xb4]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x42814a
mov eax, dword [0x4931e0]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x42813d
dec dword [eax + 0xb4]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x42817b
mov eax, dword [0x4931e0]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x42816e
dec dword [eax + 0xb4]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.0042a970
Function at 0x437580
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x4902d4]
xor eax, esp
mov dword [esp + 8], eax
push ebx
push esi
push edi
push 0
push 0
push 0
push 0
mov ebx, ecx
call fcn.00437500
add esp, 0x10
test eax, eax
jne 0x4375c1
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00473fd7
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
jns 0x4375e4
call edi
cmp dword [eax], 9
jne 0x4375e4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00473fd7
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x13]
push 2
push 1
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jns 0x437607
call edi
cmp dword [eax], 4
lea eax, [esp + 0x13]
je 0x4375e8
test esi, esi
mov ecx, dword [esp + 0x14]
setg al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00473fd7
mov esp, ebp
pop ebp
ret
Function at 0x4379b0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x4902d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 0x40c], eax
push edi
mov edi, edx
movzx eax, word [esi]
cmp eax, 2
je 0x4379e3
cmp eax, 0x17
jne 0x437a5f
movzx eax, word [esi + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push 0x401
mov dword [ebx], eax
lea eax, [ebp - 0x408]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x408]
push 2
push 0
push 0
push 0x401
push eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
jne 0x437a5f
lea edx, [ebp - 0x408]
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x437a30
mov ecx, dword [ebp - 0x40c]
lea eax, [ebp - 0x408]
sub edx, esi
push edx
push eax
call fcn.00444990
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00473fd7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00473fd7
mov esp, ebp
pop ebp
ret

Function at 0x438790
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x4902d4]
xor eax, esp
mov dword [esp + 0x118], eax
mov eax, dword [ecx + 0x24]
mov edx, dword [ecx + 0x18]
push ebx
mov ebx, dword [ecx + 4]
push esi
mov esi, dword [ecx + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0x1c]
push edi
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], 1
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], esi
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x20]
push eax
push 0
lea eax, [ebx + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
test esi, esi
jns 0x438809
call edi
cmp dword [eax], 4
je 0x4387e2
test esi, esi
jle 0x438832
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + 4]
call fcn.00437580
test al, al
je 0x438832
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.00473fd7
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x124]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00473fd7
mov esp, ebp
pop ebp
ret