joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44dab0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push 2
push 0
mov dword [esp + 0x20], ecx
push ebx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebp, eax
test ebp, ebp
je 0x44dc60
mov eax, dword [esp + 0x24]
test eax, eax
je 0x44dc29
push 0xe
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x44dc59
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x44dc59
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x44dc59
xor eax, eax
mov ax, word [edi + 4]
shl eax, 5
add eax, 0x210
push eax
call fcn.00454c47
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x10], esi
je 0x44dc59
xor ecx, ecx
lea edx, [esi + 0x108]
mov cx, word [edi + 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edx
mov dword [esi + 0x20c], ecx
call ebx
lea eax, [esi + 4]
push 0x4b1854
push eax
call ebx
mov eax, dword [esi + 0x20c]
mov dword [esp + 0x24], 0
test eax, eax
jbe 0x44dc29
mov ecx, esi
add edi, 0x12
mov dword [esp + 0x20], edi
lea ebx, [ecx + 0x21c]
mov eax, dword [esp + 0x20]
xor edx, edx
push 3
mov dx, word [eax]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x44dc3e
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x44dc45
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov dword [ebx + 4], eax
call fcn.00454c47
add esp, 4
mov dword [ebx], eax
mov esi, dword [ebx + 4]
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, dword [ebx]
mov ecx, esi
mov esi, eax
mov edx, ecx
lea eax, [ebx - 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
call fcn.0044d970
test eax, eax
je 0x44dc4c
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
inc eax
mov edx, dword [ecx + 0x20c]
add edi, 0xe
add ebx, 0x20
cmp eax, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edi
jb 0x44db8c
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
mov edx, dword [esp + 0x10]
push edx
jmp 0x44dc51
mov eax, dword [esp + 0x10]
push eax
jmp 0x44dc51
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00454b5e
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 8
Function at 0x44dc70
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x10]
push 2
push ecx
push esi
mov dword [esp + 0x1c], 0
call edi
test eax, eax
jne 0x44dca0
pop edi
pop esi
pop ecx
ret 8
cmp dword [esp + 0x10], 2
je 0x44dcaf
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
mov dword [esp + 0x1c], 1
call edi
test eax, eax
jne 0x44dcd2
pop edi
pop esi
pop ecx
ret 8
cmp dword [esp + 0x10], 2
je 0x44dce1
pop edi
xor eax, eax
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
mov dword [esp + 0x1c], ecx
call edi
test eax, eax
jne 0x44dd04
pop edi
pop esi
pop ecx
ret 8
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 2
pop edi
sete al
pop esi
pop ecx
ret 8
Function at 0x44dd50
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
push ebx
mov eax, dword [esp + 0x24]
push ebp
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
mov esi, ecx
push 0x40000000
push eax
mov dword [esp + 0x30], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x10], ebx
je 0x44dec7
mov edi, dword [esp + 0x2c]
mov ecx, dword [edi + 0x20c]
push ecx
push ebx
mov ecx, esi
call fcn.0044dc70
test eax, eax
jne 0x44ddb3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 8
mov eax, dword [edi + 0x20c]
xor ebp, ebp
test eax, eax
jbe 0x44de62
lea esi, [edi + 0x224]
mov al, byte [esi - 0x10]
mov dl, byte [esi - 0x14]
mov byte [esp + 0x19], al
mov eax, dword [esi]
mov byte [esp + 0x18], dl
mov byte [esp + 0x1b], 0
mov cx, word [eax + 0xc]
mov word [esp + 0x1c], cx
mov dx, word [eax + 0xe]
mov word [esp + 0x1e], dx
mov ecx, dword [esp + 0x1e]
mov eax, dword [esp + 0x1c]
and ecx, 0xffff
and eax, 0xffff
imul ecx, eax
cmp ecx, 8
jl 0x44de12
mov byte [esp + 0x1a], 0
jmp 0x44de1a
mov dl, 1
shl dl, cl
mov byte [esp + 0x1a], dl
mov eax, dword [esi - 4]
mov ecx, dword [esp + 0x14]
push ebp
push edi
mov dword [esp + 0x28], eax
call fcn.0044dd20
lea ecx, [esp + 0x30]
push 0
push ecx
lea edx, [esp + 0x20]
push 0x10
push edx
push ebx
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44dec7
cmp dword [esp + 0x30], 0x10
jne 0x44dec7
mov eax, dword [edi + 0x20c]
inc ebp
add esi, 0x20
cmp ebp, eax
jb 0x44ddc9
mov eax, dword [edi + 0x20c]
xor ebx, ebx
test eax, eax
jbe 0x44debc
lea esi, [edi + 0x224]
mov eax, dword [esi]
push 0
mov ebp, dword [eax + 0x14]
mov dword [eax + 0x14], 0
mov ecx, dword [esi - 4]
mov edx, dword [esi - 8]
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44dec7
mov ecx, dword [esp + 0x30]
mov eax, dword [esi - 4]
cmp ecx, eax
jne 0x44dec7
mov edx, dword [esi]
inc ebx
add esi, 0x20
mov dword [edx + 0x14], ebp
mov eax, dword [edi + 0x20c]
cmp ebx, eax
jb 0x44de74
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 8
Function at 0x44dee0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x44df5f
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x44df5f
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x44df5f
push ebx
push ebp
push edi
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [esi + 0x10]
mov esi, dword [esi + 0xc]
mov ebp, eax
mov eax, ecx
mov edi, ebp
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 8]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 8
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
ret 4
xor eax, eax
pop esi
ret 4

Function at 0x44e0e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push 0x80
push 2
push ebp
push ebp
push 0x40000000
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x44e1cd
mov esi, dword [esp + 0x28]
mov ecx, edi
push esi
mov word [esp + 0x14], 0x4d42
mov word [esp + 0x1a], bp
mov word [esp + 0x1c], bp
call fcn.0044e0a0
and eax, 0xffff
push esi
add eax, 0x36
mov ecx, edi
mov dword [esp + 0x1e], eax
call fcn.0044e0b0
imul eax, dword [esi + 8]
mov edx, dword [esp + 0x1a]
lea ecx, [esp + 0x24]
add eax, edx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push ecx
lea edx, [esp + 0x18]
push 0xe
shr eax, 2
push edx
push ebx
mov dword [esp + 0x26], eax
call ebp
test eax, eax
je 0x44e1c6
cmp dword [esp + 0x24], 0xe
jne 0x44e1c6
mov eax, dword [esi + 8]
push esi
cdq
sub eax, edx
mov ecx, edi
sar eax, 1
mov dword [esi + 8], eax
call fcn.0044e0b0
mov edi, eax
mov ecx, dword [esp + 0x1a]
imul edi, dword [esi + 8]
lea eax, [esp + 0x24]
add edi, ecx
push 0
push eax
push edi
push esi
push ebx
call ebp
test eax, eax
je 0x44e1c6
cmp dword [esp + 0x24], edi
jne 0x44e1c6
mov ecx, dword [esi + 8]
push ebx
shl ecx, 1
mov dword [esi + 8], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 8
Function at 0x44f8e0
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x44f92a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x44f959
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x44f99b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x46639d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4663d5
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046443f
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00464417
jmp 0x4663e1
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x467a8b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x467acd
call fcn.0046d544
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x467acd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x467ac4
xor eax, eax
jmp 0x467ad5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00467adb
pop edi
pop esi
pop ebx
ret 4

Function at 0x46da74
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46daa2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46dac0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046d9da
jmp 0x46dac0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46dac0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046d9da
test edi, edi
mov eax, edi
jne 0x46daaa
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4014e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 4
lea ebx, [esi + 0x5b]
push edi
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
add ebx, eax
je 0x4015f6
push ebx
call fcn.00414cfb
mov edi, eax
add esp, 4
test edi, edi
je 0x4015f6
push ebx
push 0
push edi
call fcn.0041e930
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [edi + 4], eax
push 0x43a1c8
lea eax, [ebp + 0xc]
push eax
lea ebx, [edi + 0x18]
push ebx
mov edx, esi
mov dword [edi + 8], 0
mov dword [ebp + 0xc], 0
call fcn.0040b770
add esp, 0x18
test eax, eax
jne 0x401566
mov eax, dword [ebp + 0xc]
cmp eax, esi
jae 0x401566
mov dword [edi + 0x10], 1
mov dword [edi + 0x14], esi
add eax, 0x18
jmp 0x40157d
push esi
push dword [ebp + 8]
mov dword [edi + 0x10], 0
push ebx
call fcn.0041bfc0
add esp, 0xc
lea eax, [esi + 0x18]
mov dword [edi], eax
call fcn.0041575b
mov esi, eax
shl esi, 0x10
call fcn.0041575b
or eax, esi
mov dword [edi + 0xc], eax
mov eax, dword [edi]
sub eax, 0x18
je 0x4015c2
mov esi, ebx
mov ebx, 0xffffffe8
xor ecx, ecx
sub ebx, edi
mov eax, dword [edi + 0xc]
shr eax, cl
lea esi, [esi + 1]
add ecx, 8
lea edx, [ebx + esi]
xor byte [esi - 1], al
mov eax, dword [edi]
sub eax, 0x18
cmp edx, eax
jb 0x4015a5
lea ebx, [edi + 0x18]
mov edx, dword [edi]
sub edx, 0x18
mov ecx, ebx
call fcn.00409ed0
push dword [edi]
mov dword [edi + 8], eax
push edi
push dword [ebp - 8]
call fcn.00410bb0
mov esi, eax
test esi, esi
jle 0x4015e4
mov esi, dword [edi]
push edi
call fcn.00414cc3
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401600
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x438170]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x28], ecx
push 0x18
lea ecx, [ebp - 0x1c]
push ecx
push eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x20], eax
call fcn.00410cd0
test eax, eax
jle 0x401773
mov edi, dword [ebp - 0x1c]
cmp edi, 0x18
jb 0x401773
cmp edi, 0x6400000
ja 0x401773
test edi, edi
je 0x401773
push edi
call fcn.00414cfb
mov esi, eax
add esp, 4
test esi, esi
je 0x401773
push edi
push 0
push esi
call fcn.0041e930
add esp, 0xc
lea ebx, [edi - 0x18]
push ebx
push esi
push dword [ebp - 0x20]
call fcn.00410cd0
test eax, eax
jg 0x4016a8
push esi
call fcn.00414cc3
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004144c7
mov esp, ebp
pop ebp
ret
mov edx, ebx
mov ecx, esi
call fcn.00409ed0
cmp dword [ebp - 0x14], eax
jne 0x40168b
xor edx, edx
test ebx, ebx
je 0x4016d1
xor ecx, ecx
mov edi, edi
mov eax, dword [ebp - 0x10]
shr eax, cl
inc edx
add ecx, 8
xor byte [esi + edx - 1], al
cmp edx, ebx
jb 0x4016c0
cmp dword [ebp - 0xc], 0
jne 0x4016fc
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
mov dword [eax], ebx
mov dword [ecx], esi
mov ecx, dword [ebp - 0x18]
mov dword [edx], ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004144c7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
call fcn.00409c80
mov dword [ebp - 0x20], eax
test eax, eax
je 0x40168b
push ecx
lea ecx, [ebp - 0x30]
push ecx
push eax
mov edx, ebx
mov ecx, esi
mov dword [ebp - 0x30], 0
call fcn.0040b860
add esp, 0xc
test eax, eax
jne 0x401761
mov ebx, dword [ebp - 0x30]
cmp ebx, dword [ebp - 8]
jne 0x401761
push esi
call fcn.00414cc3
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x2c]
mov dword [eax], ebx
mov eax, dword [ebp - 0x20]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004144c7
mov esp, ebp
pop ebp
ret
push esi
call fcn.00414cc3
mov eax, dword [ebp - 0x20]
push eax
call fcn.00414cc3
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.004144c7
mov esp, ebp
pop ebp
ret
Function at 0x403930
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0x438170]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, ecx
push 0x80
lea eax, [edi + 0x10]
push 0x44a3e0
push eax
mov dword [ebp - 0x24], edi
mov esi, 5
mov dword [edi + 0xeb3c], 0
call fcn.004154d0
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov byte [edi + 0x8f], 0
push 0x40
mov dword [edi + 0x90], eax
lea eax, [edi + 0x94]
push 0x44a460
push eax
call fcn.004154d0
add esp, 0xc
mov byte [edi + 0xd3], 0
push 0x10114
call fcn.00414cfb
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x403b82
push 0x10114
push 0
push ebx
call fcn.0041e930
mov byte [ebx + 8], 0
add esp, 0xc
mov dword [ebx], 0x4352dc
mov eax, dword [ebx]
mov dword [ebx + 0x108], 0
mov dword [ebx + 0x10c], 0
mov dword [ebx + 0x110], 0
mov dword [ebx + 4], 0
push dword [edi + 0x90]
lea ecx, [edi + 0x10]
push ecx
mov ecx, ebx
call dword [eax + 0xc]
test eax, eax
jle 0x403b5c
push 0x10
lea eax, [edi + 0x94]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004154d0
mov eax, dword [edi + 0x2dc]
add esp, 0xc
mov byte [ebp - 0x11], 0
push str.Auth_...
push edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 1
call fcn.00401a80
mov eax, dword [ebx]
add esp, 8
lea ecx, [ebp - 0x20]
push 0x18
push ecx
push 2
mov ecx, ebx
call dword [eax + 0x10]
test eax, eax
jle 0x403b5c
push str.Wait_Authack_...
push edi
call fcn.00401a80
add esp, 8
mov ecx, ebx
push 0x1388
call fcn.004010d0
test eax, eax
jle 0x403b5c
push str.Read_Authack_...
push edi
call fcn.00401a80
mov eax, dword [ebx]
add esp, 8
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, ebx
call dword [eax + 0x14]
test eax, eax
jle 0x403b5c
cmp dword [ebp - 0x2c], 2
jne 0x403b5c
cmp dword [ebp - 0x28], 0xac
jb 0x403b5c
push 0x434240
push edi
call fcn.00401a80
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx]
add esp, 8
mov esi, edx
mov ecx, 0x2b
lea edi, [ebp - 0xe4]
rep movsd dword es:[edi], dword [esi]
push edx
mov ecx, ebx
call dword [eax + 0x18]
cmp dword [ebp - 0xe4], 0
je 0x403b54
mov edx, dword [ebp - 0x24]
push 0
mov ecx, dword [edx + 0x2dc]
mov eax, ecx
imul eax, eax, 0xa8
lea edi, [edx + 0x2e0]
add edi, eax
lea eax, [ecx + 1]
push 0
mov dword [edx + 0x2dc], eax
mov ecx, 0x2a
lea esi, [ebp - 0xe0]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, edx
push edi
push 0x4014a0
push 0
push 0
call esi
mov dword [edi + 0xeb90], eax
push 0
push 0
push edi
push 0x4014c0
push 0
push 0
call esi
mov dword [edi + 0xeb94], eax
xor esi, esi
jmp 0x403b5c
mov edi, dword [ebp - 0x24]
mov esi, 0x56
push 0x433da8
push edi
call fcn.00401a80
add esp, 8
test esi, esi
je 0x403b78
mov edx, dword [ebx]
push 1
mov ecx, ebx
call dword [edx]
jmp 0x403b82
mov dword [edi + 4], ebx
mov dword [edi + 0xc], 6
mov ecx, dword [ebp - 8]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004144c7
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403ba0
Capabilities:
Create thread
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe4
mov eax, dword [0x438170]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
push 0x80
lea eax, [ebx + 0x10]
push 0x44a3e0
push eax
mov esi, 5
mov dword [ebx + 0xeb3c], 0
call fcn.004154d0
add esp, 0xc
lea eax, [ebx + 0x94]
push 0x40
push 0x44a460
mov byte [ebx + 0x8f], 0
push eax
mov dword [ebx + 0x90], 0
call fcn.004154d0
add esp, 0xc
mov byte [ebx + 0xd3], 0
cmp byte [0x44a3e0], 0
je 0x403c5d
push 0x44a3e0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
je 0x403c48
movsx eax, word [ecx + 0xa]
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
lea eax, [ebp - 0x20]
push eax
call fcn.0041bfc0
mov eax, dword [ebp - 0x20]
xor ecx, ecx
add esp, 0xc
cmp eax, 0xffffffff
cmove eax, ecx
jmp 0x403c5f
push 0x44a3e0
call dword [sym.imp.WS2_32.dll_inet_addr]
xor ecx, ecx
cmp eax, 0xffffffff
cmove eax, ecx
jmp 0x403c5f
xor eax, eax
push eax
call fcn.00410920
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
jle 0x403dfd
push 0x10
lea eax, [ebx + 0x94]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004154d0
mov eax, dword [ebx + 0x2dc]
add esp, 0xc
mov byte [ebp - 0xd], 0
push str.Auth_...
push ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 1
call fcn.00401a80
lea eax, [ebp - 0x1c]
push 0x18
push eax
mov edx, 2
mov ecx, edi
call fcn.004014e0
add esp, 0x10
test eax, eax
jle 0x403dda
push str.Wait_Authack_...
push ebx
call fcn.00401a80
mov eax, dword [0x43a1c0]
mov ecx, edi
imul ecx, ecx, 0x384a0
add eax, 0xfffc7b68
add eax, ecx
add esp, 8
cmp dword [eax + 0x18], 0
jne 0x403dda
push eax
mov ecx, 0x1388
call fcn.00410b50
test eax, eax
jle 0x403dda
push str.Read_Authack_...
push ebx
call fcn.00401a80
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.00401600
add esp, 0x10
test eax, eax
jle 0x403dda
cmp dword [ebp - 0x28], 2
jne 0x403dda
cmp dword [ebp - 0x24], 0xac
jb 0x403dda
push 0x434240
push ebx
call fcn.00401a80
mov eax, dword [ebp - 0x2c]
mov esi, eax
mov ecx, 0x2b
lea edi, [ebp - 0xe0]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00414cc3
add esp, 0xc
cmp dword [ebp - 0xe0], 0
je 0x403dd2
mov ecx, dword [ebx + 0x2dc]
mov eax, ecx
imul eax, eax, 0xa8
push 0
push 0
push ebx
lea edi, [ebx + 0x2e0]
add edi, eax
lea eax, [ecx + 1]
push 0x4014a0
mov dword [ebx + 0x2dc], eax
mov ecx, 0x2a
lea esi, [ebp - 0xdc]
push 0
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
call esi
mov dword [ebx + 0xeb90], eax
push 0
push 0
push ebx
push 0x4014c0
push 0
push 0
call esi
mov dword [ebx + 0xeb94], eax
xor esi, esi
jmp 0x403dd7
mov esi, 0x56
mov edi, dword [ebp - 0x20]
push 0x433da8
push ebx
call fcn.00401a80
add esp, 8
test esi, esi
je 0x403dfa
mov ecx, dword [0x43a1c0]
push edi
call fcn.00410e10
jmp 0x403dfd
mov dword [ebx + 8], edi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
mov dword [ebx + 0xc], 1
xor ecx, ebp
pop ebx
call fcn.004144c7
mov esp, ebp
pop ebp
ret 8