joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412a4a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x250
mov eax, dword [0x4bca50]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push edi
xor edi, edi
push edi
push 0x1f4
mov ebx, ecx
push 0x64
mov dword [esi + 0xe4], edi
push dword [ebx + 4]
mov dword [esp + 0x1c], ebx
call dword [sym.imp.USER32.dll_SetTimer]
xor eax, eax
push 0x206
mov word [esp + 0x4c], ax
lea eax, [esp + 0x4e]
push edi
push eax
call fcn.00470920
add esp, 0xc
cmp dword [esi + 0x154], 8
jb 0x412ab0
mov ecx, dword [esi + 0x140]
jmp 0x412ab6
lea ecx, [esi + 0x140]
cmp dword [esi + 0x138], 8
jb 0x412ac7
mov eax, dword [esi + 0x124]
jmp 0x412acd
lea eax, [esi + 0x124]
push ecx
push eax
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
cmp dword [esi + 0xfc], edi
je 0x412b3f
cmp dword [esi + 0x154], 8
jb 0x412b01
mov ecx, dword [esi + 0x140]
jmp 0x412b07
lea ecx, [esi + 0x140]
cmp dword [esi + 0x138], 8
jb 0x412b18
mov edx, dword [esi + 0x124]
jmp 0x412b1e
lea edx, [esi + 0x124]
lea eax, [esi + 0xe8]
cmp dword [eax + 0x18], 8
jb 0x412b2f
mov eax, dword [eax + 4]
jmp 0x412b32
add eax, 4
push ecx
push eax
mov ecx, esi
call fcn.00412f5a
cmp eax, edi
je 0x412b99
cmp dword [esi + 0x118], edi
je 0x412b95
cmp dword [esi + 0x154], 8
jb 0x412b58
mov ebx, dword [esi + 0x140]
jmp 0x412b5e
lea ebx, [esi + 0x140]
cmp dword [esi + 0x138], 8
jb 0x412b6f
mov edx, dword [esi + 0x124]
jmp 0x412b75
lea edx, [esi + 0x124]
lea eax, [esi + 0x104]
cmp dword [eax + 0x18], 8
jb 0x412b86
mov eax, dword [eax + 4]
jmp 0x412b89
add eax, 4
push eax
mov ecx, esi
call fcn.00412e35
mov ebx, dword [esp + 0xc]
cmp eax, edi
jne 0x412c01
mov eax, dword [esi + 0xdc]
cmp eax, 1
je 0x412ba8
cmp eax, edi
jne 0x412bb7
mov eax, dword [esi + 0x2c]
mov eax, dword [eax + 0x16c]
mov dword [esi + 0x164], eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], vtable.WTL::CMessageLoop.0
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call fcn.00411629
push 0x64
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_KillTimer]
lea ecx, [esp + 0x20]
call fcn.00411bf3
lea ecx, [esp + 0x14]
call fcn.00411bf3
xor eax, eax
jmp 0x412c28
push 0x64
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, esi
call fcn.0041346c
push 0x64
push 1
push 0x65a
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
inc eax
mov ecx, dword [esp + 0x254]
pop edi
pop ebx
xor ecx, esp
call fcn.0047099a
mov esp, ebp
pop ebp
ret
Function at 0x413aa6
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x13c
mov eax, dword [0x4bca50]
xor eax, esp
mov dword [esp + 0x138], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov esi, edx
mov dword [esp + 0xc], eax
cmp eax, edi
je 0x413c42
cmp ebx, edi
je 0x413c42
cmp ecx, edi
je 0x413c42
push ebx
mov dword [esi + 8], ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x413b07
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
push 1
call dword [eax]
xor eax, eax
jmp 0x413c45
push 0x4acb48
push dword [esp + 0x10]
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x413b24
mov esi, dword [esi + 8]
mov eax, dword [esi]
push edi
mov ecx, esi
jmp 0x413afe
lea eax, [esp + 0x58]
push eax
push ebx
call fcn.00475996
pop ecx
pop ecx
test eax, eax
jne 0x413b1a
mov eax, dword [esp + 0x78]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x8c]
push eax
call fcn.0047562b
pop ecx
pop ecx
test eax, eax
jne 0x413b1a
lea eax, [esp + 0x18]
push eax
call fcn.00473e29
pop ecx
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0xb0]
push eax
call fcn.00473b4a
pop ecx
pop ecx
test eax, eax
jne 0x413b1a
cmp dword [esi + 4], edi
jne 0x413bba
push 0x58
call fcn.004709c4
pop ecx
cmp eax, edi
je 0x413b9a
mov ecx, eax
call fcn.004262d7
jmp 0x413b9c
xor eax, eax
mov dword [esi + 4], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov ecx, dword [esi + 4]
push eax
call fcn.0042635f
mov eax, dword [esi + 4]
mov dword [eax + 0x28], esi
mov eax, dword [esi + 4]
mov dword [eax + 0x3c], edi
push 0x70
lea eax, [esp + 0xd4]
push edi
push eax
call fcn.00470920
add esp, 0xc
lea eax, [esp + 0x88]
push eax
push 0x4ad864
lea eax, [esp + 0xd8]
push 0x38
push eax
call fcn.00475fec
add esp, 0x10
lea eax, [esp + 0xd0]
push eax
lea ecx, [esp + 0x24]
call fcn.004018f6
push dword [esp + 0xc]
lea ecx, [esp + 0x40]
call fcn.004018f6
lea eax, [esp + 0x3c]
push eax
push esi
lea ecx, [esp + 0x28]
call fcn.00413e5d
mov ebx, eax
neg ebx
push edi
sbb bl, bl
push 1
lea ecx, [esp + 0x44]
inc bl
call fcn.00401a58
push edi
push 1
lea ecx, [esp + 0x28]
call fcn.00401a58
xor eax, eax
test bl, bl
setne al
jmp 0x413c45
xor eax, eax
inc eax
mov ecx, dword [esp + 0x144]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0047099a
mov esp, ebp
pop ebp
ret 8
Function at 0x413cfb
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x4bca50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
push 7
pop esi
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x10]
mov edi, ecx
push 0
lea ecx, [ebp - 0x3c]
mov ebx, edx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x24], esi
call fcn.00401cdf
push 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 8], esi
call fcn.00401cdf
push ebx
lea ebx, [ebp - 0x3c]
mov eax, edi
call fcn.00413c5c
cmp dword [ebp - 0x24], 8
mov eax, dword [ebp - 0x38]
jae 0x413d58
lea eax, [ebp - 0x38]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x413d5b
mov ecx, dword [ebp - 0x38]
sub eax, edx
sar eax, 1
cmp dword [ebp - 0x24], 8
jae 0x413d75
lea ecx, [ebp - 0x38]
mov ebx, dword [ebp - 0x48]
push ebx
push eax
push ecx
call fcn.0040b34b
add esp, 0xc
cmp dword [edi + 0x18], 8
jb 0x413d8e
mov edi, dword [edi + 4]
jmp 0x413d91
add edi, 4
push esi
push str.http:__
push edi
call fcn.004760f3
add esp, 0xc
test eax, eax
jne 0x413da7
add edi, 0xe
mov esi, 0x4ad8a8
push esi
push edi
call fcn.004736b5
pop ecx
pop ecx
lea ecx, [ebp - 0x20]
test eax, eax
jne 0x413dbf
push esi
jmp 0x413dc0
push eax
call fcn.00401a34
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x413dd1
lea eax, [ebp - 0x1c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x413dd4
mov ecx, dword [ebp - 0x1c]
sub eax, edx
sar eax, 1
cmp dword [ebp - 8], 8
jae 0x413dee
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x44]
push eax
push ecx
call fcn.0040b34b
add esp, 0xc
cmp dword [ebx + 0x18], 0x10
lea esi, [ebx + 4]
jb 0x413e08
mov eax, dword [esi]
jmp 0x413e0a
mov eax, esi
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x413e26
cmp dword [ebx + 0x18], 0x10
jb 0x413e1d
mov esi, dword [esi]
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
jmp 0x413e2d
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x40]
push 0
mov dword [ecx], eax
push 1
lea ecx, [ebp - 0x20]
call fcn.00401a58
push 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.00401a58
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0047099a
leave
ret 0xc
Function at 0x4161d2
Capabilities:
Set current directory

Disassembly:
push ebx
push edi
push 0x4ca960
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
dec dword [esi + 0x60]
mov eax, dword [esi + 0x60]
xor ebx, ebx
cmp eax, ebx
jle 0x416200
xor ebx, ebx
inc ebx
push 0x4ca960
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, ebx
pop ebx
ret 4
cmp dword [esi + 0x58], ebx
je 0x4161ee
lea edi, [esi + 0x3c]
cmp dword [edi + 0x18], 8
jb 0x416213
mov eax, dword [edi + 4]
jmp 0x416216
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, edi
call fcn.00403990
push dword [esp + 0xc]
mov eax, esi
call fcn.00416170
test eax, eax
jne 0x4161ee
push dword [esi + 0x58]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x4161ee
mov dword [esi + 4], ebx
mov dword [esi], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x58], ebx
jmp 0x4161eb

Function at 0x41804d
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x3bc]
sub esp, 0x43c
mov eax, dword [0x4bca50]
xor eax, ebp
mov dword [ebp + 0x3b8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x3c4]
push 0x4c9a34
mov ecx, edi
mov dword [ebp - 0x64], edi
call fcn.00417b99
lea eax, [ebp + 0x1b0]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4180aa
lea eax, [ebp + 0x1b0]
push eax
push edi
call fcn.00419bbb
push edi
call fcn.00418361
mov ebx, fcn.0041804d
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
test eax, eax
jne 0x41814d
push 0x1c
lea eax, [ebp - 0x80]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
push esi
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x41814d
lea eax, [ebp - 0x58]
push eax
lea esi, [ebp - 0x60]
call fcn.00419ab9
mov ebx, dword [ebp - 0x60]
push 0x5c
push ebx
call fcn.00476210
pop ecx
pop ecx
test eax, eax
je 0x418145
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x418145
lea edi, [eax + 1]
test edi, edi
jge 0x41810c
xor edi, edi
cmp edi, dword [ebx - 0xc]
lea eax, [ebp - 0x60]
jl 0x41811f
push eax
lea ecx, [ebp - 0x5c]
call fcn.004198e5
jmp 0x41812f
call fcn.004186b2
push ebx
mov ecx, eax
lea esi, [ebp - 0x5c]
call fcn.00418660
mov edi, dword [ebp - 0x64]
lea eax, [ebp - 0x5c]
call fcn.0041831e
mov ecx, dword [ebp - 0x5c]
add ecx, 0xfffffff0
call fcn.00417bbe
lea ecx, [ebx - 0x10]
call fcn.00417bbe
mov ecx, dword [ebp + 0x3b8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047099a
add ebp, 0x3bc
leave
ret
Function at 0x419903
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41991a
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x41994f
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x41994b
cmp edi, eax
jae 0x41994f
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x41993d
cmp edi, eax
jb 0x419953
xor eax, eax
jmp 0x41995c
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x41a1c7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x850
mov eax, dword [0x4bca50]
xor eax, esp
mov dword [esp + 0x84c], eax
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x18]
lea eax, [esi + 0x1c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
test edi, edi
je 0x41a2f0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x41a2f0
lea eax, [esp + 0x10]
push eax
push edi
lea ecx, [esp + 0x38]
call fcn.0041abf3
mov eax, esi
mov ecx, ebx
call fcn.0041a304
xor eax, eax
push 0x7fe
push eax
mov word [esp + 0x58], ax
lea eax, [esp + 0x5a]
push eax
call fcn.00470920
add esp, 0xc
push 0x401
lea eax, [esp + 0x54]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x50]
push eax
lea esi, [esp + 0x10]
call fcn.00419ab9
mov edi, dword [ebx + 0x5c]
add edi, 0x48
mov eax, esi
call fcn.0041831e
mov ecx, dword [esp + 0xc]
add ecx, 0xfffffff0
call fcn.00417bbe
mov eax, ebx
call fcn.0041a353
mov ecx, dword [ebx + 0x5c]
push dword [esp + 0x30]
mov esi, ebx
mov dword [ecx + 0x4c], eax
call fcn.0041e206
push dword [esp + 0x30]
lea eax, [esp + 0x14]
push dword [ebx + 0x5c]
call fcn.0041fefe
cmp dword [ebx + 0x30], 0
je 0x41a2e7
mov eax, dword [esp + 0x10]
add eax, 2
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
add eax, 2
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffffe
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffffe
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x34]
call dword [sym.imp.USER32.dll_DrawFocusRect]
lea ecx, [esp + 0x30]
call fcn.0041ab71
mov ecx, dword [esp + 0x854]
pop edi
pop esi
xor ecx, esp
call fcn.0047099a
mov esp, ebp
pop ebp
ret
Function at 0x421116
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
xor ecx, ecx
push esi
mov esi, dword [eax*4 + 0x4ca910]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
cmp esi, ecx
jne 0x42113e
mov eax, 0x86180002
jmp 0x421252
mov eax, dword [ebp + 0xc]
cmp eax, ecx
je 0x421147
mov dword [eax], ecx
lea eax, [esi + 0x4094]
push edi
mov edi, dword [eax]
cmp edi, dword [esi + 0x405c]
jae 0x42124f
lea edx, [edi + 1]
mov dword [eax], edx
mov dword [esi + edi*4 + 0x40a4], ecx
mov ecx, dword [esi + 0x70a4]
mov ebx, edi
lea ecx, [esi + ecx*2 + 0x60a4]
shl ebx, 5
add ebx, dword [esi + 0x4050]
lea eax, [esi + 0x4040]
push ecx
mov edx, edi
call fcn.00422b19
mov eax, dword [ebp + 0xc]
pop ecx
test eax, eax
je 0x42119e
lea ecx, [esi + 0x60a4]
mov dword [eax], ecx
cmp dword [ebp + 0x10], 0
je 0x42124f
cmp byte [ebx + 0x19], 0
jne 0x4211fa
push 0x4bec58
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [esi + 0x40a0]
push eax
lea eax, [esi + 0x409c]
push eax
lea eax, [esi + 0x4098]
push eax
lea eax, [esi + 0x24]
push edi
push eax
lea eax, [esi + 0x4040]
call fcn.0042352a
add esp, 0x20
test eax, eax
je 0x4211fa
xor ecx, ecx
cmp eax, 2
setne cl
lea ecx, [ecx + ecx - 0x79e7fffd]
mov eax, ecx
jmp 0x421251
mov eax, dword [esi + 0x70a4]
lea edi, [esi + eax*2 + 0x60a4]
cmp word [edi], 0
je 0x42123c
mov dword [ebp + 8], edi
cmp word [edi], 0x2f
jne 0x42122e
xor eax, eax
mov word [edi], ax
lea eax, [esi + 0x60a4]
push eax
call fcn.0042174f
pop ecx
push 0x5c
pop eax
mov word [edi], ax
mov edi, dword [ebp + 8]
inc edi
inc edi
cmp word [edi], 0
mov dword [ebp + 8], edi
jne 0x421210
cmp byte [ebx + 0x19], 0
je 0x421256
add esi, 0x60a4
push esi
call fcn.0042174f
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
lea eax, [esi + 0x60a4]
push eax
mov dword [ebp - 0xc], eax
lea eax, [ebp + 8]
push eax
xor eax, eax
inc eax
call fcn.00421768
pop ecx
pop ecx
test eax, eax
jne 0x4212b5
mov eax, dword [esi + 0x409c]
add eax, dword [ebp - 8]
mov edi, dword [ebp - 4]
push eax
lea eax, [ebp + 8]
push eax
lea esi, [ebp - 4]
call fcn.0042181d
pop ecx
pop ecx
test eax, eax
jne 0x4212b5
cmp edi, dword [ebp - 4]
jne 0x4212b5
lea esi, [ebp + 8]
call fcn.004217aa
test eax, eax
jne 0x4212b5
cmp byte [ebx + 0x1d], al
je 0x42124f
push dword [ebx + 0x14]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x42124f
mov eax, 0x86180003
jmp 0x421251
Function at 0x4217c8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [esi]
test edi, edi
je 0x421810
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x4217e1
mov eax, edi
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add dword [ebp + 0xc], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x421815
test ecx, ecx
je 0x421810
test edi, edi
ja 0x4217d6
xor eax, eax
pop edi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x421812

Function at 0x42181d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [esi]
test edi, edi
je 0x421865
and dword [esi], 0
mov eax, 0x400000
cmp edi, eax
ja 0x421836
mov eax, edi
and dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
add dword [ebp + 0xc], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x42186a
test ecx, ecx
je 0x421865
test edi, edi
ja 0x42182b
xor eax, eax
pop edi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x421867

Function at 0x423848
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor ecx, ecx
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x423850
mov dword [ecx*4 + 0x4cc240], eax
inc ecx
cmp ecx, 0x100
jb 0x42384b
mov edx, 0x800
jmp 0x42389d
mov eax, dword [ecx*4 + 0x4cbe40]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4cc240]
inc ecx
mov dword [ecx*4 + 0x4cc23c], eax
cmp ecx, edx
jb 0x42387c
mov dword [0x4ca8fc], 0x4240e7
call fcn.00424245
test eax, eax
jne 0x4238be
mov dword [0x4ca8fc], 0x424183
pop esi
ret
Function at 0x42464d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x424664
leave
ret
or dword [ebp - 4], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 8], ecx
lea edi, [eax + esi]
jmp 0x424683
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x424688
inc edi
cmp edi, dword [ebp - 8]
jb 0x42467a
mov eax, edi
sub eax, esi
cmp edi, dword [ebp - 8]
jae 0x424777
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x42470a
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x4246b4
cmp cl, 0xff
jne 0x424739
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
sub esi, eax
sub esi, 5
mov ebx, esi
mov dword [ebp - 0xc], ebx
test edx, edx
je 0x42474a
movzx esi, byte [edx + 0x4ae300]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
shr ebx, cl
test bl, bl
je 0x4246fa
cmp bl, 0xff
jne 0x424747
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, dword [ebp - 0xc]
jmp 0x4246d2
dec ecx
shl edx, cl
and edx, 7
je 0x4246a1
movzx ecx, byte [edx + 0x4ae300]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x4ae2f8], 0
mov cl, byte [ebx + 4]
je 0x424736
test cl, cl
je 0x424736
cmp cl, 0xff
jne 0x4246a1
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x424675
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x424675
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0xc]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret
Function at 0x4263c3
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4bca50]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [esi + 0x30], ebx
jne 0x4263fb
push 0x20000
call fcn.0046f72f
pop ecx
mov dword [esi + 0x30], eax
cmp eax, ebx
jne 0x4263fb
xor eax, eax
jmp 0x42656d
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
and dword [ebp - 0x18], ebx
test eax, eax
jbe 0x42642f
push dword [ebp - 0x18]
mov ecx, edi
call fcn.0040f61e
add ebx, dword [eax + 0x14]
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], eax
jb 0x42640e
inc ebx
inc ebx
cmp ebx, 0x20000
ja 0x4263f4
call fcn.0042657e
push 2
pop eax
push dword [ebp + 0x10]
mov word [ebp - 0x14], ax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
push 6
push 1
push 2
mov word [ebp - 0x12], ax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x2c], eax
cmp eax, 0xffffffff
je 0x4263f4
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x42648e
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.0042657e
jmp 0x4263f4
push 0x21
push 0x478
push dword [esi + 4]
push dword [esi + 0x2c]
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
and dword [ebp - 0x18], 0
test eax, eax
jbe 0x4264f6
push dword [ebp - 0x18]
mov ecx, edi
call fcn.0040f61e
cmp dword [eax + 0x14], 0x20000
jbe 0x4264d4
and dword [ebp - 0x1c], 0
jmp 0x4264e2
push dword [ebp - 0x1c]
mov edx, eax
call fcn.00429346
pop ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 0xc]
push 0x1c
cdq
pop ecx
idiv ecx
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], eax
jb 0x4264bb
push 0x4ad8c0
lea ecx, [ebp - 0x38]
call fcn.004024f8
cmp dword [ebp - 0x24], 0x20000
ja 0x426518
push dword [ebp - 0x1c]
lea edx, [ebp - 0x38]
call fcn.00429346
pop ecx
xor edi, edi
push edi
push 1
lea ecx, [ebp - 0x38]
call fcn.004028c7
test ebx, ebx
jbe 0x42655d
push 0
mov eax, ebx
sub eax, edi
push eax
mov eax, dword [esi + 0x30]
add eax, edi
push eax
push dword [esi + 0x2c]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x426557
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x426484
jmp 0x426559
add edi, eax
cmp edi, ebx
jb 0x426529
and dword [esi + 0x44], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x48], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047099a
leave
ret 0xc