joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402f60
Capabilities:
Accept command line arguments
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov edx, 2
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x3c]
cmp word [eax + ecx + 0x5c], 2
je 0x402fb0
mov edx, 1
mov dword [esp], edx
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x402fd0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x54
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x403027
xor ecx, ecx
xor edx, edx
jmp 0x403009
cmp ax, 0x5c
jne 0x403098
add edx, 1
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x403027
cmp ax, 9
je 0x403015
cmp ax, 0x20
jne 0x402ff0
test ecx, ecx
je 0x403083
movzx eax, word [ebx + 2]
add ebx, 2
xor edx, edx
test ax, ax
jne 0x403009
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x20], 1
je 0x4030b8
movzx esi, word [ebp - 0x1c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00401550
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x403080
cmp ax, 0x20
je 0x403080
jmp 0x403027
cmp ax, 0x22
jne 0x403019
and edx, 1
jne 0x403019
xor ecx, 1
jmp 0x402ffd
mov eax, 1
mov esi, 1
mov word [ebp - 0x1c], ax
jmp 0x403040
Function at 0x402fd0
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov edx, 2
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x3c]
cmp word [eax + ecx + 0x5c], 2
je 0x402fb0
mov edx, 1
mov dword [esp], edx
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x402fd0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x54
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x403027
xor ecx, ecx
xor edx, edx
jmp 0x403009
cmp ax, 0x5c
jne 0x403098
add edx, 1
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x403027
cmp ax, 9
je 0x403015
cmp ax, 0x20
jne 0x402ff0
test ecx, ecx
je 0x403083
movzx eax, word [ebx + 2]
add ebx, 2
xor edx, edx
test ax, ax
jne 0x403009
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x20], 1
je 0x4030b8
movzx esi, word [ebp - 0x1c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00401550
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x403080
cmp ax, 0x20
je 0x403080
jmp 0x403027
cmp ax, 0x22
jne 0x403019
and edx, 1
jne 0x403019
xor ecx, 1
jmp 0x402ffd
mov eax, 1
mov esi, 1
mov word [ebp - 0x1c], ax
jmp 0x403040

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x230b3144
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x3bd500ad
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x407510
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
fld dword [0x452018]
fld1
fadd st(1), st(0)
fxch st(1)
fstp dword [0x452018]
fld dword [0x4520bc]
fld dword [0x452018]
fsub qword [0x44c2c0]
fsubp st(1)
fstp dword [0x4520bc]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0x67452301
dec dword [0x45205c]
mov eax, dword [0x45205c]
add eax, 0xb7e92a6
mov dword [0x452028], eax
mov dword [ecx + 0xc], 0xefcdab89
mov dword [ecx + 0x10], 0x98badcfe
mov dword [ecx + 0x14], 0x10325476
mov ecx, dword [0x4520f0]
sub ecx, 0x51bf0b3b
mov dword [ebp - 4], ecx
fild dword [ebp - 4]
fadd dword [0x452390]
fadd dword [0x452458]
fstp dword [0x452458]
fadd dword [0x452390]
fstp dword [0x452390]
inc dword [0x4520f0]
mov esp, ebp
pop ebp
ret
Function at 0x409640
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
fld qword [0x452068]
mov ecx, dword [ebp + 8]
fsub qword [0x44cee8]
sub esp, 0x428
fadd qword [0x4522d8]
fstp qword [0x4522d8]
fld qword [0x452068]
fadd qword [0x44c2c8]
fstp qword [0x452068]
call fcn.00412bb0
cmp eax, 0x8000
jbe 0x409903
push ebx
push esi
lea eax, [ebp - 0x118]
push edi
push eax
call fcn.0041d9e0
mov esi, eax
call fcn.00409b30
movzx ecx, al
and ecx, 0x80000003
jns 0x4096ac
dec ecx
or ecx, 0xfffffffc
inc ecx
add ecx, 7
push ecx
lea edx, [ebp + esi - 0x118]
push edx
call fcn.00414680
push 5
push 0x11f8
call fcn.00417330
add esp, 0x14
mov ebx, eax
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4096d0
lea edi, [ebp - 0x118]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4096e0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov ax, word [0x4522fc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x4523bc]
mov edx, dword [0x452430]
cwde
sub eax, ecx
mov ecx, dword [0x452080]
add eax, edx
add ecx, eax
push 3
mov word [0x4522fc], cx
dec dword [0x4523bc]
push 0x3ab4
call fcn.00417330
mov edx, dword [0x452228]
movzx ecx, word [0x45247c]
mov esi, eax
mov eax, 0xd225b7b9
sub eax, edx
imul ecx, eax
push ebx
mov word [0x45247c], cx
dec dword [0x452228]
push 5
call fcn.00411ac0
lea edx, [ebp - 0x118]
push esi
push edx
call fcn.0041fa75
push esi
push 3
mov edi, eax
call fcn.00411ac0
fld qword [0x452470]
fsub qword [0x44cee0]
add esp, 0x20
fstp qword [0x452470]
test edi, edi
je 0x4098ce
mov eax, dword [0x4520f0]
mov esi, dword [ebp + 8]
mov ecx, 0x9866ce9e
sub ecx, eax
cvtsi2sd xmm0, ecx
push edi
movsd qword [0x452210], xmm0
inc dword [0x4520f0]
push 1
mov ecx, esi
call fcn.00412bb0
push eax
mov ecx, esi
call fcn.00419e00
push eax
call fcn.0042015d
push edi
call fcn.0041ff7f
add esp, 0x14
mov ecx, esi
call fcn.00407b20
push 0x104
lea edx, [ebp - 0x220]
push edx
push 0
mov byte [ebp - 0x11c], 0
call dword [0x453b0c]
fld dword [0x4522a8]
fadd qword [0x44ced8]
movsd xmm0, qword [0x44ced0]
push 0x15
mov byte [ebp - 0x221], 0
fstp dword [0x4522a8]
movsd qword [0x4523a8], xmm0
push 0x1ba
call fcn.00417330
fld qword [0x452388]
fmul qword [0x452360]
mov ecx, dword [0x453f1c]
mov esi, eax
mov eax, dword [0x453ec0]
push eax
fstp qword [0x452360]
push ecx
lea edx, [ebp - 0x220]
push edx
push esi
lea eax, [ebp - 0x428]
push 0x207
push eax
call fcn.004202d3
push esi
push 0x15
call fcn.00411ac0
mov ecx, dword [0x453ec0]
push ecx
call fcn.00410670
lea edx, [ebp - 0x428]
push edx
lea eax, [ebp - 0x118]
push eax
call fcn.00410490
push 0x208
lea ecx, [ebp - 0x428]
push 0
push ecx
call fcn.0041e5d0
add esp, 0x40
push 0x105
lea edx, [ebp - 0x220]
push 0
push edx
call fcn.0041e5d0
add esp, 0xc
push 0x15f90
call dword [0x453b20]
lea eax, [ebp - 0x118]
push eax
call dword [0x454170]
push 0x118
lea ecx, [ebp - 0x118]
push 0
mov dword [0x452058], 0x64c51133
push ecx
call fcn.0041e5d0
fld dword [0x4522f8]
fmul qword [0x44cec8]
add esp, 0xc
pop edi
pop esi
fstp dword [0x4522f8]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417330
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ax, word [0x4522b8]
mov edx, dword [ebp + 0xc]
push ebx
movsx ecx, ax
push esi
add ecx, 0x5fbba4ba
add edx, 4
push edi
cvtsi2sd xmm0, ecx
push edx
movsd qword [0x452008], xmm0
call fcn.0041e95d
mov edi, dword [ebp + 8]
mov esi, eax
add esp, 4
mov dword [ebp - 4], esi
fld1
fld qword [0x4522b0]
fadd qword [0x44c368]
fsub dword [0x4524c0]
fld qword [0x44c360]
fld dword [0x4524c0]
fsub st(3)
fstp dword [0x4524c0]
fld qword [0x4522b0]
fsub st(3)
fstp qword [0x4522b0]
fxch st(1)
fucompi st(1)
fstp st(0)
lahf
test ah, 0x44
jp 0x4173bb
mov eax, dword [0x45204c]
add eax, dword [0x452278]
mov dword [0x452278], eax
mov al, byte [edi + 0x448288]
mov byte [esi], al
mov ecx, dword [0x453ed0]
mov dl, byte [ecx + edi]
xor dl, al
mov byte [esi], dl
movzx eax, byte [edi + 0x448289]
inc edi
inc esi
mov byte [esi], al
mov cx, word [0x452130]
movsx edx, cx
mov dword [ebp + 8], edx
fild dword [ebp + 8]
fstp dword [ebp + 8]
fld dword [0x4522a0]
fsubr dword [ebp + 8]
call fcn.0041e720
mov word [0x452130], ax
fadd dword [0x4522a0]
mov eax, dword [0x453ed0]
dec esi
fstp dword [0x4522a0]
mov cl, byte [eax + edi]
xor byte [esi + 1], cl
movzx eax, word [esi]
movzx ebx, ax
lea edx, [ebx + 3]
inc edi
push edx
lea eax, [edi + 0x448288]
push eax
push esi
call fcn.0041ea30
mov dx, word [0x452130]
movsx eax, dx
mov edx, dword [0x452430]
add eax, 0xd7f99705
imul edx, eax
mov dword [0x452430], edx
dec word [0x452130]
mov edx, dword [0x453ed0]
lea eax, [ebx + esi + 3]
add esp, 0xc
add edi, edx
mov ecx, esi
cmp esi, eax
je 0x41747a
lea esp, [esp]
mov dl, byte [edi]
xor byte [ecx], dl
inc ecx
inc edi
cmp ecx, eax
jne 0x417470
cmp dword [ebp + 0xc], ebx
je 0x4174a6
movzx ecx, word [0x4521ac]
imul ecx, ecx, 0x12b23497
mov word [0x4521ac], cx
mov byte [eax], 0
mov edi, dword [eax - 3]
sub eax, 3
sub dword [ebp + 0xc], ebx
mov esi, eax
jmp 0x417369
fld dword [0x4524c0]
mov eax, dword [ebp - 4]
fld dword [0x4522a0]
pop edi
fsubr qword [0x44c358]
pop esi
pop ebx
fsubp st(1)
fstp dword [0x4524c0]
mov esp, ebp
pop ebp
ret
Function at 0x41b690
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x452444]
sub dword [0x45227c], eax
dec dword [0x452444]
cmp dword [0x454384], 0
jne 0x41b6b7
call fcn.00401430
mov dword [0x454384], eax
push ebx
push esi
push edi
push 3
push 0x3ab4
call fcn.00417330
mov ebx, dword [ebp + 8]
movss xmm0, dword [0x44ca80]
mov edi, eax
push edi
push ebx
movss dword [0x4520d0], xmm0
call fcn.0041fa75
push edi
push 3
mov esi, eax
call fcn.00411ac0
add esp, 0x18
test esi, esi
jne 0x41b77d
mov ecx, dword [0x452020]
sub ecx, 0x1bb8d29e
mov word [0x452434], cx
dec dword [0x452020]
push 0x3e8
call dword [0x453b20]
inc word [0x4522e4]
mov dx, word [0x4522e4]
movsx eax, dx
push 3
cvtsi2ss xmm0, eax
movss dword [0x452014], xmm0
push 0x3ab4
call fcn.00417330
mov ecx, dword [0x452268]
mov edx, dword [0x452444]
mov edi, eax
sub ecx, edx
push edi
mov dword [0x452268], ecx
push ebx
call fcn.0041fa75
mov esi, eax
mov eax, 0x1a27
push edi
push 3
mov word [0x452370], ax
call fcn.00411ac0
add esp, 0x18
test esi, esi
je 0x41b7a5
movsd xmm0, qword [0x44ca78]
push esi
push 1
push 4
push 0x454384
movsd qword [0x4521b0], xmm0
call fcn.0042015d
push esi
call fcn.0041ff7f
add esp, 0x14
fld qword [0x452088]
pop edi
fadd qword [0x44c2c8]
pop esi
pop ebx
fstp qword [0x452088]
fld qword [0x452088]
fsub qword [0x44ca70]
fmul dword [0x452090]
fstp dword [0x452090]
pop ebp
ret

Function at 0x41cb60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ax, word [0x45209c]
mov edx, dword [ebp + 0xc]
movsx ecx, ax
mov eax, dword [ebp + 0x10]
sub ecx, 0x325511ef
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
push esi
fild dword [ebp - 4]
lea esi, [ecx + edx*4]
fadd dword [0x4520a4]
fstp dword [0x4520a4]
dec word [0x45209c]
cmp ecx, esi
je 0x41cbcd
lea ecx, [ecx]
xor dword [ecx], eax
ror eax, 1
mov dword [ebp + 8], eax
mov edx, 0xfb6
mov word [0x452130], dx
mov dl, byte [ebp + 8]
shr eax, 8
add al, dl
add dl, al
add ecx, 4
mov byte [ebp + 9], al
mov byte [ebp + 8], dl
mov eax, dword [ebp + 8]
cmp ecx, esi
jne 0x41cba0
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x421236
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x452cc0]
jne 0x421240
repz ret
jmp fcn.0042ee7c
Function at 0x436a84
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00422c04
and dword [ebp - 4], 0
cmp dword [0x454da0], 0
mov ebx, eax
jne 0x436b35
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x436be6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x436be6
push eax
call fcn.00422b92
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x454da0], eax
call esi
push eax
call fcn.00422b92
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x454da4], eax
call esi
push eax
call fcn.00422b92
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x454da8], eax
call esi
push eax
call fcn.00422b92
pop ecx
mov dword [0x454db0], eax
test eax, eax
je 0x436b35
push 0x44f148
push edi
call esi
push eax
call fcn.00422b92
pop ecx
mov dword [0x454dac], eax
mov eax, dword [0x454dac]
cmp eax, ebx
je 0x436b8d
cmp dword [0x454db0], ebx
je 0x436b8d
push eax
call fcn.00422c0d
push dword [0x454db0]
mov esi, eax
call fcn.00422c0d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x436b8d
test edi, edi
je 0x436b8d
call esi
test eax, eax
je 0x436b84
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x436b84
test byte [ebp - 0xc], 1
jne 0x436b8d
or dword [ebp + 0x10], 0x200000
jmp 0x436bc6
mov eax, dword [0x454da4]
cmp eax, ebx
je 0x436bc6
push eax
call fcn.00422c0d
pop ecx
test eax, eax
je 0x436bc6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x436bc6
mov eax, dword [0x454da8]
cmp eax, ebx
je 0x436bc6
push eax
call fcn.00422c0d
pop ecx
test eax, eax
je 0x436bc6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x454da0]
call fcn.00422c0d
pop ecx
test eax, eax
je 0x436be6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x436be8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x404570
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x42b040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x42c118]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
js 0x40467a
cmp eax, 3
jge 0x40467a
imul edi, eax, 0x214
inc eax
push ecx
push pe_nt_image_headers32
mov dword [0x42c118], eax
add edi, 0x42badc
lea ebx, [edi + 4]
mov dword [edi], 1
push ebx
call fcn.0040bc90
add esp, 0xc
cmp dword [edi], 0
je 0x40467a
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0xe]
lea esi, [edi + 0x110]
movzx ecx, word [ebp - 0x12]
movzx eax, word [ebp - 0x14]
push edx
push ecx
push eax
push ebx
push str.._s_04d__02d__02d.txt
push esi
mov dword [edi + 0x104], edx
mov dword [edi + 0x108], ecx
mov dword [edi + 0x10c], eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x210], eax
cmp eax, 0xffffffff
jne 0x404656
mov dword [edi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408618
mov esp, ebp
pop ebp
ret 8
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40467a
push dword [edi + 0x210]
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408618
mov esp, ebp
pop ebp
ret 8
Function at 0x404690
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x42b040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push edi
test eax, eax
js 0x40487a
cmp eax, dword [ecx + 0x640]
jge 0x40487a
imul edi, eax, 0x214
add edi, ecx
cmp dword [edi + 4], 0
je 0x40487a
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x816]
cmp eax, dword [edi + 0x108]
jne 0x40470f
movzx eax, word [ebp - 0x81a]
cmp eax, dword [edi + 0x10c]
jne 0x40470f
movzx eax, word [ebp - 0x81c]
cmp eax, dword [edi + 0x110]
je 0x4047ce
push dword [edi + 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx edx, word [ebp - 0x816]
lea esi, [edi + 0x114]
movzx ecx, word [ebp - 0x81a]
movzx eax, word [ebp - 0x81c]
push edx
push ecx
push eax
mov dword [edi + 0x110], eax
lea eax, [edi + 8]
push eax
push str.._s_04d__02d__02d.txt
push esi
mov dword [edi + 0x108], edx
mov dword [edi + 0x10c], ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x214], eax
cmp eax, 0xffffffff
jne 0x404799
mov dword [edi + 4], 0
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00408618
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4047ce
push dword [edi + 0x214]
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00408618
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.0040a260
add esp, 0xc
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x80c]
push 0x400
push eax
call fcn.004048a0
add esp, 0x14
lea eax, [ebp - 0x40c]
push 0x400
push 0
push eax
call fcn.0040a260
add esp, 0xc
lea eax, [ebp - 0x80c]
push eax
movzx eax, word [ebp - 0x810]
push eax
movzx eax, word [ebp - 0x812]
push eax
movzx eax, word [ebp - 0x814]
push eax
lea eax, [ebp - 0x40c]
push str._02d:_02d:_02d__s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x40c]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x404854
push 0
lea eax, [ebp - 0x820]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x40c]
push eax
push dword [edi + 0x214]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.00408618
mov esp, ebp
pop ebp
ret
Function at 0x407280
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov edi, ecx
mov eax, dword [edi + 0x70]
test eax, eax
je 0x4072a6
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x70]
call ebx
mov dword [edi + 0x70], 0
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x4072b7
push eax
call ebx
mov dword [edi + 0x6c], 0
push esi
lea ecx, [edi + 0x38]
call fcn.004067b0
lea esi, [edi + 0x14]
mov ebx, 8
mov eax, dword [esi]
test eax, eax
je 0x4072e5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
add esi, 4
sub ebx, 1
jne 0x4072c8
mov eax, dword [edi + 0x10]
pop esi
test eax, eax
je 0x407311
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov dword [edi + 0x10], 0
jmp 0x407317
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 8]
test eax, eax
je 0x407328
push eax
call ebx
mov dword [edi + 8], 0
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x40733e
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
pop edi
pop ebx
ret
Function at 0x407550
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x42d380
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
js 0x4076b8
cmp edi, 0x14
jge 0x4076b8
imul ecx, edi, 0x70
mov dword [ebp - 4], ecx
mov eax, dword [ecx + 0x43041c]
test eax, eax
js 0x4076b8
cmp eax, 0x14
jge 0x4076b8
cmp dword [ecx + 0x430420], 0
je 0x4076b8
cmp dword [ecx + 0x430434], 0xffffffff
je 0x4076b8
mov eax, dword [ebp + 0x10]
cmp eax, 0x2000
jle 0x4075cf
push eax
push edi
push str._SocketTCP__Max_msg_size__Type:_1__Index:__d__Size:__d_
push 1
call fcn.00408230
add esp, 0x10
jmp 0x4076b8
mov ebx, dword [ecx + 0x43043c]
cmp dword [ebx + 0x20], 0
jle 0x407636
mov edx, dword [ebx + 0x12028]
lea ecx, [edx + eax]
cmp ecx, 0x10000
jle 0x407602
push ecx
push edi
push str._SocketTCP__Max_msg_size__Type:_2__Index:__d__Size:__d_
push 1
call fcn.00408230
add esp, 0x10
jmp 0x4076ad
push eax
push dword [ebp + 0xc]
lea eax, [ebx + 0x2028]
add eax, edx
push eax
call fcn.00409ce0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add dword [ebx + 0x12028], ecx
push 0x42d380
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push eax
push dword [ebp + 0xc]
lea esi, [ebx + 0x24]
push esi
call fcn.00409ce0
mov ecx, dword [ebp + 0x10]
lea eax, [ebx + 0x14]
add esp, 0xc
mov dword [eax], ecx
mov dword [ebx + 0x20], ecx
lea ecx, [ebp + 8]
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x1c], 1
push 0
push ebx
push 0
push ecx
push 1
push eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x2024], 0
mov dword [ebp + 8], 0
push dword [eax + 0x430434]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x407620
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x407620
call esi
push eax
push str._SocketTCP__WSASend___failed_with_error:__d
push 1
call fcn.00408230
add esp, 0xc
push edi
mov ecx, 0x42d308
call fcn.004076d0
push 0x42d380
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc