joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000ddc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x10017040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1000ddf0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f55e
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x1000de2c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x1000de2c
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f55e
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x1000df03
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1000de54
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1000de60
movsx eax, bl
jmp 0x1000de98
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x1000dec2
sub eax, 1
je 0x1000dec2
sub eax, 2
jne 0x1000df03
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmove ebx, ecx
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f55e
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1000dee0
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1000df03
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f55e
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000f55e
mov esp, ebp
pop ebp
ret 4
Function at 0x1000e1b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10017040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1000e26c
cmp byte [esi + 0x3d], 0
je 0x1000e26c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1000e25a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x1000e221
sub eax, 1
je 0x1000e225
sub eax, 2
jne 0x1000e25a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f55e
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1000e243
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1000e25a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f55e
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f55e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1000f55e
mov esp, ebp
pop ebp
ret
Function at 0x401c30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
cmp eax, 3
ja case.default.0x401c41
jmp dword [eax*4 + 0x40b2c8]
cmp dword [0x40d1e4], 0
je 0x401d3d
push 0x40d1e8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x40d200]
test edi, edi
je 0x401d32
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401c8b
mov edi, dword [edi + 8]
test edi, edi
je 0x401d32
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x401c80
test esi, esi
je 0x401c80
mov eax, dword [edi + 4]
push esi
call eax
add esp, 4
jmp 0x401c80
cmp dword [0x40d1e4], 0
jne 0x401cba
push 0x40d1e8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x40d1e4], 1
jmp case.default.0x401c41
call fcn.00401650
jmp case.default.0x401c41
cmp dword [0x40d1e4], 0
je case.default.0x401c41
push 0x40d1e8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x40d200]
test edi, edi
je 0x401d83
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401d17
mov edi, dword [edi + 8]
test edi, edi
je 0x401d83
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x401d10
test esi, esi
je 0x401d10
mov eax, dword [edi + 4]
push esi
call eax
add esp, 4
jmp 0x401d10
push 0x40d1e8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x40d1e4]
cmp eax, 1
jne case.default.0x401c41
mov eax, dword [0x40d200]
test eax, eax
je 0x401d62
mov esi, dword [eax + 8]
push eax
call sub.msvcrt.dll_free
add esp, 4
mov eax, esi
test esi, esi
jne 0x401d50
mov dword [0x40d200], 0
mov dword [0x40d1e4], 0
push 0x40d1e8
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp case.default.0x401c41
push 0x40d1e8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401ec0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push edi
push esi
mov esi, dword [0x40b040]
movzx ecx, word [esi]
xor eax, eax
cmp ecx, 0x5a4d
jne 0x401f28
mov ecx, dword [esi + 0x3c]
cmp dword [esi + ecx], 0x4550
jne 0x401f28
add esi, ecx
movzx ecx, word [esi + 0x18]
cmp ecx, 0x10b
jne 0x401f28
movzx ecx, word [esi + 6]
test ecx, ecx
je 0x401f28
mov edx, dword [esp + 0xc]
sub edx, dword [0x40b040]
movzx edi, word [esi + 0x14]
add esi, edi
add esi, 0x18
jmp 0x401f18
add esi, 0x28
add ecx, 0xffffffff
je 0x401f28
mov edi, dword [esi + 0xc]
cmp edi, edx
ja 0x401f10
add edi, dword [esi + 8]
cmp edi, edx
jbe 0x401f10
mov eax, esi
pop esi
pop edi
ret
Function at 0x404d80
Capabilities:
Encode data using xor

Disassembly:
push esi
sub esp, 0x48
mov edx, ecx
lea esi, [esp + 0x20]
mov ecx, esi
call fcn.00404c74
mov ecx, esp
mov edx, esi
call fcn.00404dbd
xor eax, eax
xor edx, edx
mov cl, byte [eax + 0x40b720]
xor cl, byte [esp + eax]
or cl, dl
inc eax
mov edx, ecx
cmp eax, 0x20
jne 0x404d9e
xor eax, eax
test cl, cl
setne al
add esp, 0x48
pop esi
ret
Function at 0x408617
Capabilities:
Create thread

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
push 0x40bbe8
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryA]
xor esi, esi
inc esi
test eax, eax
je 0x4087aa
push 0x800
call dword [sym.imp.KERNEL32.dll_SetDefaultDllDirectories]
test eax, eax
je 0x4087aa
mov ebx, dword [esp + 0x3c]
lea eax, [esp + 4]
mov dword [eax], 8
mov dword [eax + 4], 0x20
push eax
call dword [sym.imp.COMCTL32.DLL_InitCommonControlsEx]
sub esp, 0x30
xor esi, esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
movaps xmm0, xmmword [0x40b390]
movups xmmword [esp + 0xc], xmm0
mov dword [esp], esi
mov dword [esp + 0x1c], 0x80000000
mov dword [esp + 8], str.WireGuard_Installer
mov dword [esp + 4], str.msctls_progress32
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x411324], eax
push esi
push esi
push 0x4087b6
push eax
call sub.COMCTL32.DLL_SetWindowSubclass
push dword [0x411324]
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0x5a
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
xorps xmm0, xmm0
cvtsi2ss xmm0, eax
divss xmm0, dword [0x40b3a0]
movss dword [esp], xmm0
push edi
push dword [0x411324]
call dword [sym.imp.USER32.dll_ReleaseDC]
push 7
push ebx
call dword [sym.imp.USER32.dll_LoadIconA]
mov edi, eax
xor eax, eax
inc eax
mov ebp, 0x80
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push edi
push eax
push ebp
push dword [0x411324]
call ebx
push edi
push esi
push ebp
push dword [0x411324]
call ebx
push esi
xor eax, eax
inc eax
push eax
push 0x40a
push dword [0x411324]
call ebx
movss xmm0, dword [0x40b3a4]
movss xmm1, dword [esp]
mulss xmm0, xmm1
cvttss2si eax, xmm0
mulss xmm1, dword [0x40b3a8]
cvttss2si ecx, xmm1
xor edx, edx
dec edx
push 0x42
push ecx
push eax
push edx
push edx
push edx
push dword [0x411324]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0x408974
call sub.msvcrt.dll__onexit
add esp, 4
push esi
push esi
push esi
push 0x408a03
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea edi, [esp + 0xc]
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
push esi
push esi
push edi
call ebx
test eax, eax
je 0x4087aa
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call ebp
jmp 0x408794
mov eax, esi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
Function at 0x409559
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov dword [esp + 8], edx
mov byte [esp + 3], 0
mov edx, 0xfffffffe
mov dword [esp + 0xc], ecx
mov dword [esp + 4], edx
mov eax, dword [esp + 8]
movzx ebx, byte [eax + edx + 2]
mov edi, ebx
xor edi, 0x30
mov ecx, 0xfff6
lea esi, [edi + ecx]
shr esi, 8
and bl, 0xdf
add bl, 0xc9
movzx ebx, bl
lea ebp, [ebx + ecx]
mov ecx, 0xfff0
lea edx, [ebx + ecx]
xor ebp, edx
shr ebp, 8
mov edx, ebp
or edx, esi
mov ecx, 0xff
and edx, ecx
mov ecx, 0xff
dec edx
or byte [esp + 3], dh
and esi, edi
and ebp, ebx
or ebp, esi
mov edx, dword [esp + 4]
movzx ebx, byte [eax + edx + 3]
mov edx, ebx
xor edx, 0x30
mov eax, 0xfff6
lea esi, [edx + eax]
shr esi, 8
and bl, 0xdf
add bl, 0xc9
movzx edi, bl
lea ebx, [edi + eax]
mov eax, 0xfff0
add eax, edi
xor ebx, eax
shr ebx, 8
mov eax, ebx
or eax, esi
and eax, ecx
dec eax
or byte [esp + 3], ah
mov ecx, dword [esp + 0xc]
and esi, edx
mov edx, dword [esp + 4]
and ebx, edi
or ebx, esi
shl ebp, 4
or ebx, ebp
mov byte [ecx], bl
add edx, 2
inc ecx
cmp edx, 0x3e
jb 0x40956e
movzx eax, byte [esp + 3]
dec eax
shr eax, 8
and eax, 1
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x409bbc
Capabilities:
Check os version

Disassembly:
push edi
push esi
sub esp, 0xc
mov eax, esp
lea esi, [esp + 4]
lea edi, [esp + 8]
push eax
push esi
push edi
call dword [sym.imp.ntdll.dll_RtlGetNtVersionNumbers]
cmp dword [edi], 6
sete cl
cmp dword [esi], 3
setb al
and al, cl
add esp, 0xc
pop esi
pop edi
ret
Function at 0x417e10
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc0
push esi
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, dword [0x4c6adc]
push ecx
call sub.IMM32.dll_ImmGetContext
test esi, esi
mov dword [0x4c6adc], eax
je 0x417e53
lea edx, [esp + 4]
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
pop esi
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0xe]
invalid
test byte [esp + eax*8], ah

Function at 0x437697
Capabilities:
Encode data using xor

Disassembly:
jmp 0x8f1f40e3
pop esi
jo 0x437647
push edi
sal dword [edx + 0x1b], cl
jg 0x4376a0
sbb edi, dword [edi - 1]
jmp dword [ecx]
and dword [ebp - 0x20c64a98], eax
cmp edi, ebx
xchg ecx, eax
xor eax, 0xffc97741
jno 0x43769e
jns 0x4376e8
pop ss
popal
or eax, 0x3dd8cc47
dec ebp
clc
push esp
sbb byte [ecx - 0x22], dh
loop 0x4376a5
pop ecx
mov al, 0x81
mov fs, word [ecx + edx*8]
and dword [ebx + 0x17c36fcb], edx
int 0x3d
daa
push ss
jae 0x4376f1
iretd
Function at 0x45c557
Capabilities:
Check for software breakpoints

Disassembly:
add dword [esi + 0x35277cd4], ebp
jne 0x45c5ce
mov esp, 0x70be868a
int 0x8a
ljmp 0x4b10
out 0x52, eax
invalid
invalid
dec ebx

Function at 0x45c5af
Capabilities:
Check for software breakpoints

Disassembly:
por mm7, qword [esi + 0x19]
xor byte [ebx], 0xbb
invalid
invalid
fist word [ecx]
mov ebx, 0x357b11df
jnp 0x45c5ea
fdivr qword [ecx + 0x51]
ja 0x45c5d1
fbld tbyte [ebx - 0x77]
and eax, 0xc8e9a4cf
mov al, byte [0xfed34ff]
cmp byte [eax], 0xcc
loope 0x45c5aa
push ecx
and al, 0x6a
jle 0x45c5ec
jno 0x45c5b0

Function at 0x48abee
Capabilities:
Encode data using xor

Disassembly:
fidiv word [edi - 0x5a]
mov edx, 0x3ba68665
dec ebx
in eax, 0x45
inc ebp
sbb eax, 0xcfa093d5
aad 1
bound ebx, qword [0xc2e52c7b]
fcom dword [eax + 0x1f2219b4]
sbb byte [ecx - 0x1d], 0x30
mov esp, 0x7395d036
fnsave dword [eax + 0x69]
dec esi
mov ecx, 0xae335184
xor dword [ebp + 0x13dcd13f], eax
sub edx, dword [edi - 0x12]
push edi
out dx, al
push edi
out dx, al
mov ebp, 0xf7e19d71
push es
aam 0xc3
in eax, dx
xchg byte [0x88a2b0a6], dl
jge 0x48abb6
lds edx, [eax]
sbb eax, 0xc280e2fc
nop
aaa
fdiv st(6)
mov ah, 0xa6
mov edi, 0xfd04241b
pop esp
stc
pop esi
push edi
add eax, 0x27a735d1
ffreep st(0)
out dx, al
and ch, byte [edx - 0x5e]
xor eax, 0x10997677
out 0xc8, al
lcall 0x8b98, 0x2938ab9e
xchg dword [eax + 0x74], esp
xor esi, dword [ebx + esi*4 + 0x7ef40d7a]
inc eax
test eax, 0x5ea66271
fcom qword [eax]
into
jl 0x48acb7
push ss
aas
sti
dec ebp
retf 0xfa66
sub esi, dword [esi]
loope 0x48ac44
int3

Function at 0x4bb3b5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c3390
cmp edx, dword [eax]
je 0x4bb3d7
add eax, 8
inc ecx
cmp eax, 0x4c3420
jl 0x4bb3c8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c3390]
jne 0x4bb505
mov eax, dword [0x4c7d1c]
cmp eax, 1
je 0x4bb4df
test eax, eax
jne 0x4bb408
cmp dword [0x4c32b8], 1
je 0x4bb4df
cmp edx, 0xfc
je 0x4bb505
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bb43f
lea eax, [ebp - 0x1a4]
push 0x4c0848
push eax
call fcn.004bbda0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bc230
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bb482
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bc230
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c0844
push edi
call fcn.004be100
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4c0828
push eax
call fcn.004bbda0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bbdb0
lea eax, [ebp - 0xa0]
push 0x4c0824
push eax
call fcn.004bbdb0
push dword [esi + 0x4c3394]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bbdb0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4c07fc
push eax
call fcn.004be074
add esp, 0x2c
pop edi
jmp 0x4bb505
lea eax, [ebp + 8]
lea esi, [esi + 0x4c3394]
push 0
push eax
push dword [esi]
call fcn.004bc230
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4015c8
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [esp], eax
call sub.msvcrt.dll_srand
mov word [ebp - 0xa], 0x202
movzx eax, word [ebp - 0xa]
lea edx, [ebp - 0x1a0]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_WSAStartup]
call eax
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x401616
mov eax, 0
jmp 0x40164a
movzx eax, word [ebp - 0x1a0]
cmp al, 2
jne 0x401630
movzx eax, word [ebp - 0x1a0]
shr ax, 8
cmp al, 2
je 0x40163e
mov eax, dword [sym.imp.WS2_32.dll_WSACleanup]
call eax
mov eax, 0
jmp 0x40164a
mov byte [0x44b044], 1
mov eax, 1
leave
ret

Function at 0x40164c
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x54
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp], 0x433068
mov ecx, eax
call fcn.00424240
sub esp, 8
test eax, eax
setne al
test al, al
je 0x4016ee
lea eax, [ebp - 0x11]
mov dword [ebp - 0x10], eax
nop
nop
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x11]
mov dword [esp + 8], edx
mov dword [esp + 4], 4
mov dword [esp], str.panyan
mov ecx, eax
call fcn.0042d7c0
sub esp, 0xc
lea eax, [ebp - 0x44]
lea edx, [ebp - 0x2c]
mov dword [esp + 8], edx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0042eff0
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x44]
mov dword [esp], edx
mov ecx, eax
call fcn.0042e450
sub esp, 4
lea eax, [ebp - 0x44]
mov ecx, eax
call fcn.0042e3f0
lea eax, [ebp - 0x2c]
mov ecx, eax
call fcn.0042e3f0
lea eax, [ebp - 0x11]
mov ecx, eax
call fcn.0042a0fc
nop
mov eax, dword [ebp + 8]
mov ecx, eax
call fcn.00424400
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_gethostbyname]
call eax
sub esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401715
mov eax, 0
jmp 0x401746
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x401746
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x4020dc
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
lea edx, [ebp - 9]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_recv]
call eax
sub esp, 0x10
shr eax, 0x1f
test al, al
je 0x40213f
mov dword [esp], 4
call fcn.0042f5c0
mov dword [eax], 6
mov dword [esp + 8], 0
mov dword [esp + 4], 0x436f54
mov dword [esp], eax
call fcn.0042f940
movzx eax, byte [ebp - 9]
leave
ret

Function at 0x402293
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 8]
mov ecx, eax
call fcn.00424400
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call eax
sub esp, 4
mov eax, dword [ebp + 8]
mov ecx, eax
call fcn.00424400
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
call eax
sub esp, 0x1c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
sub esp, 0x14
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
call eax
sub esp, 4
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
nop
leave
ret
Function at 0x40dbc0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004192d0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004192d0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x40dc20
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x44b078]
test esi, esi
jle 0x40dd40
mov eax, dword [0x44b07c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x40dc54
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40dcd7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x40dc40
mov dword [esp], ebx
call fcn.0040e620
mov edi, eax
test eax, eax
je 0x40dd67
mov eax, dword [0x44b07c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0040e760
mov edx, dword [0x44b07c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40dd47
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x40dcd0
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x40dce0
add dword [0x44b078], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x44b07c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40dcd0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0040dbc0
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x40dc5e
mov eax, dword [0x44b07c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.0040dbc0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0040dbc0
lea esi, cs:[esi]
nop
Function at 0x40e290
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x44b094
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x44b08c]
sub esp, 4
test ebx, ebx
je 0x40e2e5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x40e2de
test eax, eax
jne 0x40e2de
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40e2c0
mov dword [esp], 0x44b094
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40e620
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x40e645
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x40e650
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x40e645
push esi
push ebx
mov ebx, dword [esp + 0xc]
movzx eax, word [ecx + 0x400014]
movzx esi, word [ecx + 0x400006]
sub ebx, 0x400000
lea eax, [edx + eax + 0x18]
test si, si
je 0x40e698
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40e68e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40e69a
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x40e680
xor eax, eax
pop ebx
pop esi
ret