joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417a50
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x498e85
call fcn.00497330
sub esp, 0x44c
push ebx
push esi
push edi
push 0x208
xor esi, esi
lea eax, [ebp - 0x458]
push esi
push eax
mov ebx, edx
mov edi, ecx
call fcn.00471a50
add esp, 0xc
mov dword [ebp - 0x14], 0x104
lea eax, [ebp - 0x50]
mov dword [ebp - 0x10], esi
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x458]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp dword [ebp - 0x10], esi
jbe 0x417b2f
lea eax, [ebp - 0x50]
mov dword [ebp - 0x18], 0xff
push eax
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x250]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x417b29
and dword [ebp - 0x30], eax
and dword [ebp - 0x20], eax
lea ecx, [ebp - 0x30]
or dword [ebp - 4], 0xffffffff
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x250]
push eax
mov dword [ebp - 0x1c], 7
call fcn.00407b29
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 1
push eax
mov ecx, ebx
call fcn.0040ee5a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004045a0
inc esi
cmp esi, dword [ebp - 0x10]
jb 0x417ac0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x417f3f
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x498f32
call fcn.00497330
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [ebp - 0x10], esi
cmp dword [ebx + 0x10], eax
je 0x418027
cmp dword [edi + 0x70], eax
je 0x418027
push str..bat
lea edx, [edi + 0x60]
lea ecx, [ebp - 0x40]
call fcn.00414777
push eax
mov edx, ebx
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00416814
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
call fcn.004045a0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x8000080
push 2
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x417fe1
and dword [esi], 0
and dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
lea ecx, [ebp - 0x28]
call fcn.004045a0
jmp 0x418038
and dword [ebp + 8], 0
lea eax, [edi + 0x78]
cmp dword [eax + 0x14], 0x10
jb 0x417ff0
mov eax, dword [eax]
push 0
lea ecx, [ebp + 8]
push ecx
push dword [edi + 0x88]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
test eax, eax
je 0x41801c
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00406923
jmp 0x417fd7
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi], 0
jmp 0x417fc7
mov dword [esi], eax
mov dword [esi + 0x10], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4182ae
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
push esi
mov ebx, edx
lea ecx, [esp + 0x24]
push edi
mov edx, 0x4b33d4
call fcn.00417004
cmp dword [esp + 0x3c], 8
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x18]
lea eax, [esp + 0x30]
cmovae eax, dword [esp + 0x30]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4182fe
mov esi, dword [esp + 0x10]
xor eax, eax
mov edi, dword [esp + 0x14]
jmp 0x418308
xor esi, esi
mov edi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x28]
mov dword [ebx], eax
call fcn.004045a0
mov edx, edi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41869b
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push edi
push 0
mov edi, ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x418718
push ebx
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ebx, [edi + 0x10]
mov eax, dword [ebx]
lea eax, [eax*2 + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x4186d6
pop esi
pop ebx
pop edi
jmp dword [sym.imp.USER32.dll_CloseClipboard]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
test ecx, ecx
je 0x418709
cmp dword [edi + 0x14], 8
jb 0x4186eb
mov edi, dword [edi]
mov eax, dword [ebx]
push edi
inc eax
push eax
push ecx
call fcn.00474df5
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop ebx
pop edi
ret
Function at 0x41bc30
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x41bc42
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd4c]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x41bc87
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, 0x7fffffff
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
and dword [esi], 0
pop esi
pop ebx
ret

Function at 0x41e4fd
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
movzx ecx, word [ebp + 8]
xor eax, eax
sub ecx, 0x489
je 0x41e518
sub ecx, 1
je 0x41e518
sub ecx, 0xa
jne 0x41e546
mov ecx, dword [ebp + 0xc]
sub ecx, eax
je 0x41e52f
sub ecx, 1
jne 0x41e546
push 1
push eax
push eax
push str.https:__playgames.pro_privacy_
jmp 0x41e538
push 1
push eax
push eax
push str.https:__playgames.pro_eula_
push 0x4b4870
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov al, 1
pop ebp
ret 8
Function at 0x41f7db
Capabilities:
Get disk size

Disassembly:
mov eax, 0x4996e6
call fcn.00497330
sub esp, 0x5c
xor eax, eax
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
lea edx, [edi + 0x14]
mov dword [ebp - 4], eax
cmp dword [edx + 0x14], 8
mov ecx, edx
jb 0x41f807
mov ecx, dword [edx]
mov eax, dword [edx + 0x10]
lea eax, [ecx + eax*2]
jb 0x41f811
mov edx, dword [edx]
push eax
push edx
push 0x5c
lea edx, [ebp - 0x38]
pop ecx
call fcn.0041fbb7
pop ecx
pop ecx
lea ecx, [edi + 0x25c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x8c]
mov eax, dword [ebp - 0x34]
add eax, 0xffffffe8
push eax
call edx
mov edx, 0x4b33d4
lea ecx, [ebp - 0x50]
call fcn.00417004
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
cmp dword [ebp - 0x3c], 8
lea eax, [ebp - 0x50]
push ecx
cmovae eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x41f8bc
push dword [ebp - 0x18]
lea ecx, [ebp - 0x68]
push dword [ebp - 0x1c]
call fcn.00415a25
pop ecx
pop ecx
lea esi, [edi + 0x1ec]
mov byte [ebp - 4], 2
mov eax, dword [esi]
lea ecx, [ebp - 0x68]
push ecx
mov ecx, esi
call dword [eax + 0x8c]
push 1
mov ecx, esi
call fcn.00406737
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x6f4], ecx
mov ecx, edi
mov dword [edi + 0x6f0], eax
call fcn.0041fb46
lea ecx, [ebp - 0x68]
call fcn.004045a0
lea ecx, [ebp - 0x50]
call fcn.004045a0
lea ecx, [ebp - 0x38]
call fcn.0040e6ef
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x422247
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x497a32
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
push 1
mov dword [ebp - 0x10], esi
lea ebx, [esi + 0x318]
mov dword [esi], 0x4b7e6c
mov ecx, ebx
mov dword [esi + 4], 0x4b7e60
mov dword [esi + 8], 0x4b7e54
mov byte [esi + 0x738], 1
call fcn.004129b0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc]
lea edi, [esi + 0x400]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
add esi, 0x440
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 8]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x10]
call fcn.0042286b
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx + 0x720]
call fcn.004045a0
mov ecx, esi
call fcn.00411f18
mov ecx, edi
call fcn.00413eac
mov ecx, ebx
call fcn.0041293f
mov ebx, dword [ebp - 0x10]
lea ecx, [ebx + 0x170]
call fcn.004221b1
lea esi, [ebx + 0x138]
lea ecx, [esi + 8]
call fcn.0040e4ba
mov ecx, esi
call fcn.00423d28
lea ecx, [ebx + 0x38]
call fcn.004327b6
lea ecx, [ebx + 0x30]
call fcn.0040c4e7
lea ecx, [ebx + 0x14]
call fcn.004045a0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4263e6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
lea esi, [ebx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x426405
mov eax, dword [eax]
push 0
push 0x4cb444
push ecx
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0x4cb444
push 2
push 0x4b7f64
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
pop ebp
ret 4
Function at 0x437820
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
mov eax, 0x49c2b7
call fcn.00497330
sub esp, 0x60
push ebx
push esi
push edi
push dword [ebp + 0x14]
mov eax, ecx
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.00436efe
and dword [ebp - 4], 0
xor esi, esi
and dword [ebp - 0x2c], 0
xor ebx, ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], ebx
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
mov edi, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp + 0x14], eax
cmp edi, eax
je 0x4378ac
push edi
lea ecx, [ebp - 0x20]
call fcn.00421b2f
mov byte [ebp - 4], 2
push eax
cmp esi, ebx
je 0x437889
mov ecx, esi
call fcn.004114f6
add esi, 0x10
mov dword [ebp - 0x28], esi
jmp 0x437898
push esi
lea ecx, [ebp - 0x2c]
call fcn.00425018
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0041149c
add edi, 0x18
cmp edi, dword [ebp + 0x14]
jne 0x437868
lea ecx, [ebp - 0x3c]
call fcn.00421bb1
xor ecx, ecx
mov esi, eax
mov dword [ebp - 0x54], ecx
push 0xf
pop ebx
mov dword [ebp - 0x44], ecx
mov byte [ebp - 0x54], cl
lea ecx, [ebp - 0x54]
push str.programIds
mov dword [ebp - 0x40], ebx
mov byte [ebp - 4], 1
call fcn.00405c0c
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.004118b0
mov esi, dword [eax]
lea ecx, [esi + 0x28]
call fcn.0041149c
push 0xc
mov dword [esi + 0x28], 4
call fcn.0046fd67
pop ecx
mov dword [ebp + 0x14], eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
push ecx
mov ecx, eax
call fcn.0042876d
lea ecx, [ebp - 0x54]
mov dword [esi + 0x30], eax
mov byte [ebp - 4], 1
call fcn.00403b90
push dword [ebp + 0x10]
lea ecx, [ebp - 0x4c]
call fcn.00421b2f
mov edi, eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 6
call fcn.00421bb1
mov esi, eax
xor eax, eax
mov dword [ebp - 0x6c], eax
push str.programInfo
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x6c], al
mov byte [ebp - 4], 6
call fcn.00405c0c
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 8
push eax
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.004118b0
push edi
mov ecx, dword [eax]
add ecx, 0x28
call fcn.00411534
lea ecx, [ebp - 0x6c]
call fcn.00403b90
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.0041149c
push ecx
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x3c]
call fcn.00421da2
mov edx, dword [ebp - 0x10]
xor ecx, ecx
push 1
push ecx
push ecx
lea ecx, [edx + 0x18]
mov byte [ebp - 4], 9
push ecx
mov ecx, dword [ebp + 8]
push eax
lea eax, [edx + 0xb4]
push eax
call fcn.0040414f
lea ecx, [ebp - 0x6c]
call fcn.00403b90
lea ecx, [ebp - 0x2c]
call fcn.00411839
lea ecx, [ebp - 0x3c]
call fcn.0041149c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x43c193
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x49cd16
call fcn.00497330
sub esp, 0x88
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push edi
mov dword [ebp - 0x24], ebx
xor eax, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
mov dword [ebp - 4], 1
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
cmp byte [esi + 0x94], al
je 0x43c292
push ebx
push ebx
push 0xe
push dword [esi + 0x9c]
call edi
mov ecx, 0x3e8
cmp eax, ecx
cmovg eax, ecx
lea ecx, [ebp - 0x24]
cmp eax, dword [ebp - 0x14]
ja 0x43c1fc
push eax
call fcn.0040435b
jmp 0x43c206
sub eax, dword [ebp - 0x14]
push ebx
push eax
call fcn.004067ac
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
push 0x3e8
cmovae eax, dword [ebp - 0x24]
push eax
push dword [esi + 0x9c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x43c292
xor edx, edx
xor ecx, ecx
call fcn.0040c8b0
mov dword [ebp - 0x34], 0xe4
mov dword [ebp - 0x30], 0xd
mov dword [ebp - 0x2c], str.C:BooCodeOffergateMultiSetup_Obfuscated_srcwindowscomplaint_reporting_window.cpp
mov dword [ebp - 0x28], str.ReplacementFor_SendComplaint
mov dword [ebp - 0x4c], ebx
push str.Failed_to_get_complaint_text
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], bl
mov byte [ebp - 4], 1
call fcn.00405c0c
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
push eax
call fcn.0040c937
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.00403b90
push ebx
push ebx
push 0x147
push dword [esi + 0x98]
call edi
push ebx
push eax
push 0x150
push dword [esi + 0x98]
call edi
mov esi, eax
or eax, 0xffffffff
cmp esi, eax
cmove esi, eax
call fcn.00422aac
lea edi, [eax + 0x440]
lea ecx, [eax + 0x170]
lea eax, [ebp - 0x24]
push eax
push esi
lea eax, [ebp - 0x94]
push eax
call fcn.00439a0a
push eax
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.00411fe1
lea ecx, [ebp - 0x94]
call fcn.004041bc
lea ecx, [ebp - 0x24]
call fcn.004045a0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x43dd98
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp byte [ebp + 8], 0
push ebx
push esi
push edi
mov edi, ecx
je 0x43dea2
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x43dea2
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [edi + 0x9fc]
call ebx
push 0
push dword [edi + 0x944]
call ebx
push 1
push dword [edi + 0x9a0]
call ebx
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
push 0x3e9
push dword [edi + 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [ebp - 0x10]
push eax
push dword [edi + 4]
push ebx
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov ebx, dword [esi + 8]
test ebx, ebx
jne 0x43de2a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x3c]
mov dword [esi + 8], eax
mov dword [eax + 0xc], esi
mov ebx, dword [esi + 8]
sub dword [ebp - 0x10], 4
mov ecx, edi
add dword [ebp - 8], 4
mov dword [edi + 0x80], ebx
call fcn.0040537c
mov dword [edi + 0x60], ebx
lea eax, [ebp - 0x10]
push dword [ebx + 4]
mov ecx, edi
push eax
call fcn.00405031
cmp dword [edi + 0x60], 0
je 0x43ded5
push 0
push dword [edi + 0x604]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 0x60]
push dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, dword [edi + 0x60]
push dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [edi + 0x60]
push 1
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov ecx, dword [edi + 0x91c]
push dword [edi + 0x920]
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [edi + 0x80]
push eax
mov edx, dword [ecx]
call dword [edx + 0x38]
jmp 0x43ded5
call fcn.0040537c
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 1
push dword [edi + 0x604]
call esi
push 1
push dword [edi + 0x9fc]
call esi
push 1
push dword [edi + 0x944]
call esi
push 0
push dword [edi + 0x9a0]
call esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x440e85
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
or dword [0x4cc058], 0xffffffff
lea ecx, [ebp - 0x208]
sub esp, 0x208
mov eax, 0x4c9634
cmp dword [0x4c9648], 8
cmovae eax, dword [0x4c9634]
push edi
mov edi, 0x104
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
js 0x440edc
lea ecx, [ebp - 0x208]
call fcn.00416861
test al, al
je 0x440edc
mov dword [0x4cc058], 0xa
jmp 0x440f21
cmp dword [0x4c9660], 8
lea ecx, [ebp - 0x208]
push edi
mov eax, 0x4c964c
cmovae eax, dword [0x4c964c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
js 0x440f21
lea ecx, [ebp - 0x208]
call fcn.00416861
mov ecx, dword [0x4cc058]
test al, al
push 0x14
pop edx
cmovne ecx, edx
mov dword [0x4cc058], ecx
mov eax, 0x4cc058
pop edi
leave
ret
Function at 0x452500
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp byte [edi + 0x70d], 0
je 0x452586
cmp dword [edi + 0x1b0], 0
je 0x45254d
push esi
push 1
push edi
call fcn.00445780
push dword [edi + 0x14c]
mov eax, dword [edi + 0x1b0]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.00445780
add esp, 0x24
mov eax, esi
pop esi
pop edi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x452586
push dword [edi + 0x148]
lea eax, [eax + eax*2]
push 1
add eax, 0x4a12b8
push 2
push eax
call fcn.0047dd05
push dword [edi + 0x148]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.0047dd05
add esp, 0x20
xor eax, eax
pop edi
ret

Function at 0x4528d0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x104
mov eax, dword [0x4c8044]
xor eax, esp
mov dword [esp + 0x100], eax
mov ecx, dword [esp + 0x10c]
push ebx
push ebp
mov ebp, dword [esp + 0x110]
push esi
mov esi, dword [esp + 0x124]
push edi
mov eax, dword [ebp + 0xc]
mov edi, dword [esp + 0x120]
push ecx
push eax
mov ebx, dword [eax + ecx*4 + 0x148]
push ebp
call fcn.00452d40
add esp, 0xc
test eax, eax
je 0x452928
mov dword [esi], 0x1b
or eax, 0xffffffff
jmp 0x45298d
push 0
push dword [esp + 0x128]
push edi
push ebx
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
mov dword [esi], 0
cmp edi, 0xffffffff
jne 0x45298b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x452960
xor edi, edi
mov dword [esi], 0x51
jmp 0x45298b
push 0x100
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00444750
push eax
push str.Send_failure:__s
push ebp
call fcn.00452590
mov dword [ebp + 0x954], ebx
add esp, 0x18
mov dword [esi], 0x37
mov eax, edi
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004705e8
add esp, 0x104
ret

Function at 0x452d40
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push ebx
push esi
lea esi, [edx + 0x17]
mov eax, dword [ecx + 0x298]
mov ebx, dword [ecx + edx*4 + 0x148]
shl esi, 4
add esi, ecx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x44], 3
je 0x452df5
cmp dword [ecx + edx*4 + 0x160], 0x4527f0
jne 0x452df5
cmp dword [esi], 0
je 0x452d86
test edi, edi
je 0x452df5
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.00460010
add esp, 0x14
cmp eax, 0xffffffff
je 0x452df5
test al, 1
je 0x452df5
cmp dword [esi], 0
jne 0x452dde
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x4e8]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [section..data]
add esp, 4
mov dword [esi], eax
test eax, eax
jne 0x452dcd
pop edi
pop esi
mov eax, 0x1b
pop ebx
ret
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x452df5
add dword [esi + 8], eax
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x4531a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x4c8044]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
mov ebx, dword [esp + 0x190]
lea eax, [esp + 8]
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [esp + 0x1a4]
push 0x80
push 0
push eax
mov dword [esp + 0x18], 0x80
call fcn.00471a50
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x1a4]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x453227
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.00444750
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x453268
push edi
push esi
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
call fcn.00452e00
add esp, 0x10
test al, al
jne 0x453271
call fcn.00478641
mov esi, eax
call fcn.00478641
mov edi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push dword [esi]
call fcn.00444750
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00452590
add esp, 0x1c
mov ecx, dword [esp + 0x190]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004705e8
add esp, 0x188
ret

Function at 0x453a20
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x4ca124]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x453a71
push 3
push 2
push eax
push eax
push 6
call fcn.00468550
add esp, 0x14
test al, al
je 0x453a65
mov dword [0x4ca124], 2
add esp, 0xc
ret
mov dword [0x4ca124], 1
jmp 0x453a76
cmp eax, 2
je 0x453abc
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x453aa1
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x453abc
push 4
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
ret