joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406790
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push ebx
push edi
mov edi, eax
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [edi]
cmp eax, ecx
je 0x4067b8
cmp esi, dword [edi + 0x148]
je 0x4067b8
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 0x148]
cmp esi, eax
je 0x4068c7
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
test eax, eax
je 0x406833
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 8], 0x14
mov dword [esp + 0xc], esi
call ebx
mov ecx, dword [edi + 0x148]
mov dword [esp + 0x10], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x108]
lea edx, [esp + 8]
push edx
call eax
mov ecx, dword [edi + 0x148]
push 0
push 0
push str.killfocus
call fcn.00407190
mov dword [edi + 0x148], 0
test esi, esi
je 0x4068c7
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
cmp eax, edi
jne 0x4068c7
mov edx, dword [esi]
mov eax, dword [edx + 0xc8]
mov ecx, esi
call eax
test al, al
je 0x4068c7
mov edx, dword [esi]
mov eax, dword [edx + 0xd4]
mov ecx, esi
call eax
test al, al
je 0x4068c7
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [edi + 0x148], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 8], 0x15
mov dword [esp + 0xc], esi
call ebx
mov ecx, dword [edi + 0x148]
mov dword [esp + 0x10], eax
mov edx, dword [ecx]
mov edx, dword [edx + 0x108]
lea eax, [esp + 8]
push eax
call edx
mov ecx, dword [edi + 0x148]
push 0
push 0
push str.setfocus
call fcn.00407190
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41ca30
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x77734b
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x84dfc0]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
mov eax, dword [0x84dfc0]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov edx, dword [0x85f598]
mov ebx, dword [esp + 0xa8]
push 0xffffffffffffffff
lea eax, [esp + 0x18]
xor ecx, ecx
push edx
lea esi, [esp + 0x18]
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], cx
call fcn.00401410
mov dword [esp + 0xa0], 0
test ebx, ebx
je 0x41caa9
push ebx
mov eax, esi
push eax
call fcn.004012d0
mov ecx, dword [esp + 0x10]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41cb25
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi], eax
test eax, eax
jne 0x41cae8
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
cmp eax, ecx
jmp 0x41cb2f
push eax
mov dword [esp + 0x10], 0
call fcn.00481e79
add esp, 4
push 0
mov ebx, eax
mov eax, dword [edi]
lea edx, [esp + 0x10]
push edx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xc]
cmp ecx, dword [edi]
je 0x41cb3e
push ebx
call fcn.00481e6e
add esp, 4
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
cmp eax, edx
je 0x41cb3a
push eax
call fcn.0048f6ed
add esp, 4
xor eax, eax
jmp 0x41cb55
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
cmp eax, ecx
je 0x41cb53
push eax
call fcn.0048f6ed
add esp, 4
mov eax, ebx
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.0048d1f2
add esp, 0x98
ret

Function at 0x41cd10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [0x869088]
push ebp
mov ebp, dword [esp + 8]
push esi
test eax, eax
jne 0x41cd24
mov eax, dword [0x869084]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x41cd36
pop esi
pop ebp
ret
mov eax, dword [0x869088]
test eax, eax
jne 0x41cd44
mov eax, dword [0x869084]
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x41cd60
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop esi
xor eax, eax
pop ebp
ret
mov eax, dword [0x869088]
test eax, eax
jne 0x41cd6e
mov eax, dword [0x869084]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp], eax
test eax, eax
je 0x41cd5a
push edi
push eax
call fcn.00481e79
add esp, 4
mov edi, eax
mov eax, dword [ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push edi
call fcn.004909c0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x41cdb0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41cddd
pop esi
xor eax, eax
pop ebx
pop ecx
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx], eax
test eax, eax
je 0x41cdd7
push edi
push eax
mov dword [esp + 0x10], 0
call fcn.00481e79
mov edx, dword [ebx]
add esp, 4
push 0
lea ecx, [esp + 0x10]
push ecx
push edx
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xc]
cmp eax, dword [ebx]
je 0x41ce2c
push edi
call fcn.00481e6e
add esp, 4
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x422ff0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x109c], 0
je 0x423074
push ebx
mov ebx, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
cmp edi, 0x100
jne 0x423052
cmp bx, 0xd
jne 0x423052
cmp byte [esi + 0x10a2], 0
je 0x423033
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x423052
cmp byte [esi + 0x10a3], 0
jne 0x423052
mov edi, dword [esi + 0x40]
test edi, edi
je 0x42304a
push 0
push 0
push str.return
mov ecx, esi
call fcn.00407190
pop edi
pop ebx
xor eax, eax
pop esi
ret 0x10
mov eax, dword [esi + 0x109c]
mov ecx, dword [eax + 0xc]
mov eax, dword [esp + 0x1c]
mov edx, dword [ecx]
mov edx, dword [edx + 0xc]
push eax
mov eax, dword [esp + 0x1c]
push eax
push ebx
push edi
call edx
pop edi
pop ebx
pop esi
ret 0x10
mov eax, 1
pop esi
ret 0x10
Function at 0x42b290
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x84dfc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x10], 0
je 0x42b2ff
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
inc esi
lea eax, [esi + esi]
call fcn.0049b530
mov ebx, esp
test ebx, ebx
je 0x42b2ff
mov ecx, dword [edi + 4]
push esi
push ebx
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, dword [edi + 0x10]
push 0xffffffffffffffff
add esi, 0x1b8
push ebx
call fcn.00401410
mov esi, dword [edi + 0x10]
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
push 0
push 0
push str.textchanged
mov ecx, esi
call eax
mov ecx, esi
mov edi, eax
call fcn.00407190
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048d1f2
mov esp, ebp
pop ebp
ret
Function at 0x434a30
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x98
push ebx
mov dword [edi + 0x10], eax
push ebp
mov dword [eax + 0x14dc], 0
cmp dword [edi + 4], 0
push esi
jne 0x434aba
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x30]
call edx
mov ecx, dword [eax + 4]
mov ebp, dword [eax]
mov esi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x14], ecx
mov ecx, dword [edi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
call eax
mov ecx, dword [esp + 0x14]
push 0
sub ebx, ecx
push ebx
sub esi, ebp
push esi
push ecx
mov ecx, dword [eax]
push ebp
push 0
push 0x40000000
push 0
push ecx
mov ecx, edi
call fcn.004021a0
mov ecx, dword [edi + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x1c]
mov ebx, dword [ecx + 0x106c]
call eax
mov esi, eax
mov eax, ebx
call fcn.00407980
mov ecx, dword [eax]
mov edx, dword [edi + 4]
push 1
push ecx
push 0x30
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [esp + 0x20]
push edx
call eax
mov ecx, dword [eax]
cmp word [ecx], 0
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
sete bl
cmp eax, edx
je 0x434ae7
push eax
call fcn.0048f6ed
add esp, 4
test bl, bl
je 0x434afa
mov eax, dword [edi + 0x10]
add eax, 0x14cc
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 4]
add ecx, 0x14cc
push ecx
push 0
push 0x1002
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 4]
push 4
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 4]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
pop esi
pop ebp
mov byte [edi + 0x18], 1
pop ebx
add esp, 0x98
ret
Function at 0x434b90
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
cmp ebx, 0x4e
jne 0x434bd8
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp + 0x10]
mov ecx, dword [edi + 4]
mov edx, dword [edi + 8]
push eax
push esi
push ebx
push ecx
push edx
call dword [sym.imp.USER32.dll_CallWindowProcW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp ebx, 8
jne 0x434cc3
push 0
push str.SysMonthCal32
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x434c73
xor eax, eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea edx, [esp + 0x1c]
push edx
push esi
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [esp + 0x18]
push eax
push 0
push 0x100e
push esi
mov dword [esp + 0x28], 0x20
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esp + 0x24]
cmp eax, 0x1010003
je 0x434c65
cmp eax, 0x2010003
jne 0x434d66
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [edi + 4]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x18]
jl 0x434cad
cmp eax, dword [esp + 0x20]
jg 0x434cad
cmp eax, dword [esp + 0x1c]
jl 0x434cad
cmp eax, dword [esp + 0x24]
jle 0x434d66
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push 8
call fcn.00434d80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp ebx, 0x101
jne 0x434bbb
cmp esi, 0x2e
je 0x434cd9
cmp esi, 8
jne 0x434d1f
mov ecx, dword [ebp + 0x10]
mov edx, dword [edi + 4]
push ecx
push esi
push 0x101
push edx
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ebx, eax
mov eax, dword [edi + 0x10]
mov dword [eax + 0x14dc], 2
mov esi, dword [edi + 0x10]
call fcn.00434ef0
mov ecx, dword [edi + 4]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp esi, 0x1b
jne 0x434bbb
mov edx, dword [ebp + 0x10]
mov eax, dword [edi + 4]
push edx
push esi
push 0x101
push eax
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, dword [edi + 0x10]
push 0
push 0
mov dword [ecx + 0x14dc], 3
mov edx, dword [edi + 4]
push 0x10
push edx
mov esi, eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x43d570
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push esi
push edi
mov edi, eax
mov eax, dword [edi + 8]
mov esi, eax
and esi, 7
je 0x43d592
cmp eax, esi
jge 0x43d58a
mov edx, edi
call fcn.0043ce30
mov ecx, esi
shr dword [edi + 0xc], cl
sub dword [edi + 8], esi
xor eax, eax
cmp dword [edi + 8], eax
jle 0x43d5ba
lea ecx, [eax - 8]
lea esp, [esp]
mov dl, byte [edi + 0xc]
shr dword [edi + 0xc], 8
add dword [edi + 8], ecx
mov byte [esp + eax + 8], dl
inc eax
cmp dword [edi + 8], 0
jg 0x43d5a0
cmp eax, 4
jge 0x43d5d7
mov esi, dword [edi + 4]
mov edx, dword [edi]
nop
cmp edx, esi
jb 0x43d5c8
xor cl, cl
jmp 0x43d5cb
mov cl, byte [edx]
inc edx
mov byte [esp + eax + 8], cl
inc eax
cmp eax, 4
jl 0x43d5c0
mov dword [edi], edx
mov eax, dword [esp + 8]
movzx ecx, byte [esp + 0xb]
movzx edx, byte [esp + 0xa]
movzx esi, ah
movzx eax, al
shl esi, 8
add esi, eax
shl ecx, 8
mov eax, esi
add ecx, edx
xor eax, 0xffff
cmp ecx, eax
je 0x43d610
mov dword [0x869078], str.zlib_corrupt
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov ecx, dword [edi]
add ecx, esi
cmp ecx, dword [edi + 4]
jbe 0x43d629
pop edi
mov dword [0x869078], 0x80b924
xor eax, eax
pop esi
pop ecx
ret
mov eax, dword [edi + 0x10]
lea edx, [eax + esi]
cmp edx, dword [edi + 0x18]
jbe 0x43d641
push esi
call fcn.0043cf30
add esp, 4
test eax, eax
je 0x43d60a
push ebx
mov ebx, dword [edi]
push ebp
mov ebp, dword [edi + 0x10]
push esi
push ebx
push ebp
call fcn.004909c0
add esp, 0xc
add ebx, esi
add ebp, esi
mov dword [edi + 0x10], ebp
pop ebp
mov dword [edi], ebx
pop ebx
pop edi
mov eax, 1
pop esi
pop ecx
ret
Function at 0x444970
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
test ecx, ecx
jne 0x44497b
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x444a54
mov esi, edx
shr esi, 3
push edi
lea ecx, [ecx]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x808218]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x808218]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x808218]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x808218]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x808218]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x808218]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x808218]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x808218]
inc ecx
sub edx, 8
sub esi, 1
jne 0x444990
pop edi
test edx, edx
je 0x444a7b
jmp 0x444a60
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x808218]
inc ecx
sub edx, 1
jne 0x444a60
not eax
pop esi
ret

Function at 0x445210
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ebx
imul esi, dword [esp + 0x10]
cmp byte [edi], 0
je 0x445248
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44523d
mov byte [edi + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
pop esi
div ebx
pop ebx
ret
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 0x14]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x44525b
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x10]
push esi
add eax, ecx
push eax
push edx
call fcn.004909c0
add dword [edi + 0x18], esi
add esp, 0xc
mov eax, esi
xor edx, edx
pop esi
div ebx
pop ebx
ret
Function at 0x445470
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x4454b5
cmp byte [esi + 1], 0
je 0x4454bd
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x4454d1
cmp byte [esi + 1], 0
je 0x4454c3
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x4454da
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x18], ecx
jmp 0x44548e
xor eax, eax
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x4454da
mov eax, dword [esi + 0x18]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x4454ee
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.004915f4
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x445509
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0
cmp edi, eax
jbe LeaveCriticalSection
jmp 0x44552c
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x44553d
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x20], eax
cmp ebp, 0x404
jbe 0x445556
mov ebp, 0x404
cmp byte [esi], 0
je 0x44557b
cmp byte [esi + 1], 0
je LeaveCriticalSection
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x44557e
mov dword [esi + 0x18], eax
cmp byte [esi], 0
mov edi, ebp
je 0x4455a6
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4455a0
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp reloc.KERNEL32.dll_ReleaseSemaphore
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x4455b7
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x10]
push edi
add ecx, eax
push ecx
push ebx
call fcn.004909c0
add esp, 0xc
add dword [esi + 0x18], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x44561c
lea eax, [ebp - 3]
test eax, eax
jle 0x44560e
lea esp, [esp]
dec eax
cmp byte [eax + ebx], 0x50
jne 0x4455fc
cmp byte [eax + ebx + 1], 0x4b
jne 0x4455fc
cmp byte [eax + ebx + 2], 5
jne 0x4455fc
cmp byte [eax + ebx + 3], 6
je 0x445602
test eax, eax
jg reloc.KERNEL32.dll_CloseHandle
jmp 0x44560e
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
jne 0x44561c
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x445520
push ebx
call fcn.0048f6ed
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x4462c0
Capabilities:
Get common file path

Disassembly:
cmp dword [esi], 0
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0xc]
push edi
jne wsprintfW
cmp dword [esi + 4], 0xffffffff
jne 0x446353
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add edi, 0xfffffffe
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4462f0
mov eax, dword [0x80be84]
mov dword [edi], eax
cmp ebx, 1
jne 0x44631e
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, ebx
je GetWindowLongW
mov eax, 0x2000000
pop edi
pop ebp
pop ebx
ret 0xc
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edx
push ebp
mov edi, ebx
call fcn.004450d0
add esp, 0xc
test eax, eax
jne 0x446341
mov eax, dword [esp + 0x18]
pop edi
pop ebp
pop ebx
ret 0xc
call fcn.00445630
mov dword [esi], eax
mov eax, dword [0x8690d0]
pop edi
pop ebp
pop ebx
ret 0xc
pop edi
pop ebp
mov eax, 0x1000000
pop ebx
ret 0xc

Function at 0x446f53
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x84dfc0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x446fa3
movzx cx, byte [ebp + 0xc]
lea eax, [ebp - 0x194]
push eax
movzx ax, byte [ebp + 0x10]
shl ax, 8
or ax, cx
movzx eax, ax
push eax
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0048d1f2
leave
ret

Function at 0x448653
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push edi
or edi, 0xffffffff
cmp dword [ebp + 8], edi
jne 0x448673
mov ecx, dword [ebp + 0x20]
push 0x2719
call fcn.00447afc
mov eax, edi
jmp 0x44871c
cmp dword [ebp + 0x10], 0xa5100000
push esi
mov esi, dword [ebp + 0x14]
jne 0x4486c7
cmp esi, 2
je 0x448690
cmp esi, 1
jne 0x4486de
cmp dword [ebp + 0x1c], 4
je 0x4486a1
mov ecx, dword [ebp + 0x20]
push 0x2726
call fcn.00447afc
mov eax, edi
jmp 0x44871b
mov eax, dword [ebp + 0x18]
cmp dword [eax], 0
mov eax, dword [ebp + 0xc]
je 0x4486b1
or byte [eax], 4
jmp 0x4486b4
and byte [eax], 0xfb
xor esi, esi
call fcn.005be2b0
mov ecx, dword [ebp + 0x20]
mov dword [ecx + 4], eax
mov dword [ecx], esi
xor eax, eax
jmp 0x44871b
cmp dword [ebp + 0x10], 0xffff
jne 0x4486de
cmp esi, 0x80
jne 0x4486de
mov eax, dword [ebp + 0xc]
or byte [eax], 8
push ebx
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, dword [ebp + 0x20]
push esi
push eax
call fcn.00447b15
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x448718
xor edi, edi
call fcn.005be2b0
mov dword [esi], edi
mov dword [esi + 4], eax
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4498c3
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0xffffffff
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
je 0x4499b6
cmp byte [ebp + 0x10], 0
je 0x44991a
mov esi, dword [ebp + 0xc]
test byte [esi], 8
je 0x44991a
xor eax, eax
mov word [ebp - 4], ax
mov word [ebp - 2], ax
call fcn.005be2b0
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 4]
push eax
push 0x80
push 0xffff
push esi
push dword [ebp + 8]
call fcn.00448653
add esp, 0x1c
mov esi, dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
call esi
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
push ebx
push dword [ebp + 8]
call edi
push eax
call fcn.00447b15
pop ecx
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x4499b6
call fcn.005be2b0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x2733
push ebx
mov dword [ebp - 0xc], ecx
call fcn.00446cf6
pop ecx
pop ecx
test al, al
jne 0x44997f
call fcn.005be2b0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x4d5
push ebx
mov dword [ebp - 0xc], ecx
call fcn.00446cf6
pop ecx
pop ecx
test al, al
je 0x4499b0
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x8004667e
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp + 0xc]
and byte [eax], 0xfc
push 0
call esi
push ebx
push dword [ebp + 8]
call edi
push eax
call fcn.00447b15
pop ecx
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4499c2
xor esi, esi
call fcn.005be2b0
mov dword [ebx], esi
mov dword [ebx + 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x449b99
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov dword [esi], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
push dword [0x860598]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov dword [esi + 8], eax
push dword [0x860598]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, esi
pop esi
ret 8