joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4061e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x434658
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x446d70]
push esi
mov esi, ecx
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0xc]
push str.__i__i_
push eax
mov dword [esp + 0x20], 0
call fcn.00415962
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
add esp, 0x10
cmp eax, 0xffffffff
push ecx
jne 0x40623d
push 0
push 0x180
jmp 0x406243
push eax
push 0x181
mov edx, dword [esi + 0x98]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call int.0041cf20
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc

Function at 0x40d409
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x447ac0
cmp edx, dword [eax]
je 0x40d42b
add eax, 8
inc ecx
cmp eax, 0x447b50
jl 0x40d41c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x447ac0]
jne 0x40d559
mov eax, dword [0x44a9ec]
cmp eax, 1
je 0x40d533
test eax, eax
jne 0x40d45c
cmp dword [0x4475d8], 1
je 0x40d533
cmp edx, 0xfc
je 0x40d559
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40d493
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040d560
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040d650
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40d4d6
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040d650
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x43ce18
push edi
call fcn.0040f7e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040d560
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040d570
lea eax, [ebp - 0xa0]
push 0x43cdf8
push eax
call fcn.0040d570
push dword [esi + 0x447ac4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040d570
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040f757
add esp, 0x2c
pop edi
jmp 0x40d559
lea eax, [ebp + 8]
lea esi, [esi + 0x447ac4]
push 0
push eax
push dword [esi]
call fcn.0040d650
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 0x417c4c
Capabilities:
Encode data using xor

Disassembly:
invalid
outsb dx, byte [esi]
dec esp
pop esi
daa
popal
sbb dword [edx - 0x4b], edx
jecxz 0x417c0c
insb byte es:[edi], dx
cmp eax, 0x967b38fa
mov es, word [eax + 0x10112bab]
test eax, 0xc7e27969
cmpsd dword [esi], dword es:[edi]
arpl word [ebp + 0x73], sp
and ch, byte [ebp - 0x36]
hlt

Function at 0x41b18f
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0xd35ace8e
adc edi, dword [edx - 0x497d20c7]
mov edx, 0xb682df39
dec ebp
jbe 0x41b145
and dword [esp + edx], esi
Function at 0x403fd0
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4447d9
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x44e934]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x30]
add ecx, 0x10
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push 0x2712
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 4]
push ecx
call fcn.0040e1e0
add esp, 0xc
push str.Mozilla_5.0__iPhone__CPU_iPhone_OS_14_0_1_like_Mac_OS_X__AppleWebKit_605.1.15__KHTML__like_Gecko__Mobile_15E148_MicroMessenger_8.0.27_0x18001b34__NetType_4G_Language_zh_CN
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push 0x2722
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 4]
push eax
call fcn.0040e1e0
add esp, 0xc
push 5
push 0x44
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 4]
push edx
call fcn.0040e1e0
add esp, 0xc
push 1
push 0x34
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 4]
push ecx
call fcn.0040e1e0
add esp, 0xc
push 1
push 0x63
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 4]
push eax
call fcn.0040e1e0
add esp, 0xc
push 0
push 0x2f
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 4]
push edx
call fcn.0040e1e0
add esp, 0xc
push 0x404200
push 0x4e2b
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 4]
push ecx
call fcn.0040e1e0
add esp, 0xc
mov edx, dword [ebp - 0x30]
push edx
push 0x2711
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 4]
push ecx
call fcn.0040e1e0
add esp, 0xc
push 0
push 0x40
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 4]
push eax
call fcn.0040e1e0
add esp, 0xc
push 0
push 0x51
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 4]
push edx
call fcn.0040e1e0
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d3e0
mov esp, ebp
pop ebp
ret

Function at 0x404230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404390
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x44c308
push 0x40d516
mov eax, dword fs:[0]
push eax
add esp, 0xffffffbc
push ebx
push esi
push edi
mov eax, dword [0x44e934]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x1c], ecx
push 4
push 0x1000
mov edx, dword [ebp - 0x1c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x404404
xor eax, eax
jmp 0x404492
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov byte [ecx], 0xc3
lea edx, [ebp - 0x24]
push edx
push 0x120
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 4], 0
call dword [ebp - 0x20]
push 0x8000
push 0
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebp - 0x50], 1
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x50]
jmp 0x404492
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4044b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x44e934]
xor eax, ebp
mov dword [ebp - 8], eax
push 0x446730
push str.C:UsersPublicDownloads45A343EC44B.dat
call fcn.0040c250
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4044e5
xor eax, eax
jmp 0x4045e1
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040c380
add esp, 8
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
je 0x404517
mov edx, dword [ebp - 4]
push edx
call fcn.0040c3e0
add esp, 4
xor eax, eax
jmp 0x4045e1
lea eax, [ebp - 0x138]
push eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
push ecx
call fcn.0040c270
add esp, 0xc
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
je 0x40454e
mov edx, dword [ebp - 4]
push edx
call fcn.0040c3e0
add esp, 4
xor eax, eax
jmp 0x4045e1
mov eax, dword [ebp - 0x138]
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x144], 0
jmp 0x404575
mov ecx, dword [ebp - 0x144]
add ecx, 1
mov dword [ebp - 0x144], ecx
mov edx, dword [ebp - 0x144]
cmp edx, dword [ebp - 0x140]
jge 0x4045c5
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp - 0x144]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0040c270
add esp, 0xc
mov dword [ebp - 0x13c], eax
lea eax, [ebp - 0x134]
push eax
mov ecx, dword [ebp - 0x144]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0040c360
add esp, 0xc
mov dword [ebp - 0x13c], eax
jmp 0x404566
mov eax, dword [ebp - 4]
push eax
call fcn.0040c3e0
add esp, 4
push str.C:UsersPublicDownloads45A343EC44B.dat
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 1
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040d3e0
mov esp, ebp
pop ebp
ret
Function at 0x4045f0
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0x9e3779b9
mov ecx, dword [ebp - 0x10]
shl ecx, 3
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], 0
jmp 0x40462f
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 8
jge 0x404693
mov eax, dword [ebp - 4]
shl eax, 4
mov ecx, dword [ebp + 0x10]
add eax, dword [ecx + 8]
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0xc]
xor eax, edx
mov ecx, dword [ebp - 4]
shr ecx, 5
mov edx, dword [ebp + 0x10]
add ecx, dword [edx + 0xc]
xor eax, ecx
mov ecx, dword [ebp - 8]
sub ecx, eax
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
shl edx, 4
mov eax, dword [ebp + 0x10]
add edx, dword [eax]
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
xor edx, ecx
mov eax, dword [ebp - 8]
shr eax, 5
mov ecx, dword [ebp + 0x10]
add eax, dword [ecx + 4]
xor edx, eax
mov eax, dword [ebp - 4]
sub eax, edx
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
jmp 0x404626
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [edx], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov esp, ebp
pop ebp
ret

Function at 0x404710
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
push 0x44896c
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov dword [ebp - 8], eax
push 2
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCR90.dll_fseek]
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.MSVCR90.dll_ftell]
add esp, 4
mov dword [ebp - 0x10], eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.MSVCR90.dll_fseek]
add esp, 0xc
mov ecx, dword [ebp - 0x10]
push ecx
call sub.mfc90.dll_Ordinal_265
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.004046b0
add esp, 0xc
push 0x448968
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 1
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call sub.mfc90.dll_Ordinal_266
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x4085e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x4085f0
xor eax, eax
jmp 0x40878d
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x40874e
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x44a2e0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x44a2e0]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x44a2e0]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x44a2e0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x44a2e0]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x44a2e0]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x44a2e0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x44a2e0]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x4085f9
cmp dword [ebp + 0x10], 0
je 0x408787
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x44a2e0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x408754
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x408790
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor eax, dword [ecx]
and eax, 0xff
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
shr ecx, 8
xor ecx, dword [eax*4 + 0x44a2e0]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0xff
mov edx, dword [ebp + 8]
add ecx, dword [edx + 4]
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
imul edx, edx, 0x8088405
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shr edx, 0x18
mov eax, dword [ebp + 8]
xor edx, dword [eax + 8]
and edx, 0xff
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x44a2e0]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x4096c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x14]
movzx edx, byte [ecx]
test edx, edx
je 0x40970f
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x409705
mov edx, dword [ebp + 0x14]
mov byte [edx + 8], 1
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x409769
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
cmp ecx, dword [edx + 0x18]
jbe 0x40972f
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x18]
sub edx, dword [ecx + 0x1c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp + 0x14]
add edx, dword [eax + 0x1c]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x40add0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x40adea
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 4], 0xffffffff
je 0x40adf4
mov eax, 0x1000000
jmp 0x40aecc
mov edx, dword [ebp - 0x18]
add edx, 0x140
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [ebp - 0x18]
add eax, 0x140
push eax
call sub.MSVCR90.dll_strlen
add esp, 4
mov ecx, dword [ebp - 0x18]
mov dl, byte [ecx + eax + 0x13f]
mov byte [ebp - 5], dl
movsx eax, byte [ebp - 5]
cmp eax, 0x5c
je 0x40ae50
movsx ecx, byte [ebp - 5]
cmp ecx, 0x2f
je 0x40ae50
push 0x446738
mov edx, dword [ebp - 0x18]
add edx, 0x140
push edx
call sub.MSVCR90.dll_strcat
add esp, 8
cmp dword [ebp + 0x10], 1
jne 0x40ae84
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x10], eax
xor ecx, ecx
cmp dword [ebp - 0x10], 0xffffffff
setne cl
mov byte [ebp - 0x11], cl
movzx edx, byte [ebp - 0x11]
test edx, edx
jne 0x40ae84
mov eax, 0x2000000
jmp 0x40aecc
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004093a0
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40aeaa
mov eax, dword [ebp - 0xc]
jmp 0x40aecc
mov ecx, dword [ebp - 4]
push ecx
call fcn.00409a70
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x40aeca
mov eax, 0x200
jmp 0x40aecc
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40b830
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x44e934]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 0
je 0x40b864
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40b864
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx]
test eax, eax
jne 0x40b873
jmp 0x40b974
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x118], edx
mov eax, dword [ebp - 0x118]
movsx ecx, byte [eax]
test ecx, ecx
je 0x40b8c5
mov edx, dword [ebp - 0x118]
movsx eax, byte [edx]
cmp eax, 0x2f
je 0x40b8ab
mov ecx, dword [ebp - 0x118]
movsx edx, byte [ecx]
cmp edx, 0x5c
jne 0x40b8b4
mov eax, dword [ebp - 0x118]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x118]
add ecx, 1
mov dword [ebp - 0x118], ecx
jmp 0x40b882
mov edx, dword [ebp - 4]
mov dword [ebp - 0x114], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
je 0x40b920
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x220]
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
mov byte [ebp + ecx - 0x220], 0
lea edx, [ebp - 0x220]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0040b830
add esp, 8
mov ecx, dword [ebp - 0x114]
add ecx, 1
mov dword [ebp - 0x114], ecx
mov byte [ebp - 0x110], 0
cmp dword [ebp + 8], 0
je 0x40b940
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x110]
push eax
call sub.MSVCR90.dll_strcpy
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x110]
push edx
call sub.MSVCR90.dll_strcat
add esp, 8
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40b974
push 0
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040d3e0
mov esp, ebp
pop ebp
ret
Function at 0x40d3e0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44e934]
jne 0x40d3ea
repz ret
jmp fcn.0040db85

Function at 0x40e100
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x40e13a
mov ax, word [esp]
cmp al, 2
jne 0x40e134
xor ecx, ecx
mov cl, ah
cmp cl, al
jne 0x40e134
xor eax, eax
add esp, 0x190
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
add esp, 0x190
ret
Function at 0x41a550
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push eax
push esi
mov edi, dword [esi + eax*4 + 0x190]
call fcn.0041a5e0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
add esp, 8
push 0
push eax
push ecx
push edi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x24]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebx], 0
jne 0x41a5d4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x41a5ae
pop edi
pop esi
mov dword [ebx], 0x51
pop ebp
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.0041fa60
mov edx, dword [esi]
push eax
push str.Send_failure:__s
push edx
call fcn.0041a360
mov eax, dword [esi]
add esp, 0x14
mov dword [eax + 0x4724], ebp
mov dword [ebx], 0x37
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
mov edx, ecx
push ebx
shl edx, 4
push esi
push edi
mov edi, dword [edx + eax + 0x1bc]
lea esi, [edx + eax + 0x1b8]
mov ebx, dword [eax + ecx*4 + 0x190]
mov edx, dword [esi + 8]
sub edi, edx
mov edx, dword [eax + 0x308]
test byte [edx + 0x3c], 3
je 0x41a6a2
cmp dword [eax + ecx*4 + 0x1a8], 0x41a6f0
jne 0x41a6a2
cmp dword [esi], 0
je 0x41a630
test edi, edi
je 0x41a6a2
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.0040e4d0
add esp, 0x10
cmp eax, 0xffffffff
je 0x41a6a2
test al, 1
je 0x41a6a2
cmp dword [esi], 0
jne 0x41a675
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x44e970]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi]
test eax, eax
je 0x41a69b
mov ecx, dword [esi + 8]
push 0
add eax, ecx
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x41a6a2
mov ecx, dword [esi + 8]
pop edi
add ecx, eax
mov dword [esi + 8], ecx
pop esi
pop ebx
ret
mov dword [esi + 4], 0
pop edi
pop esi
pop ebx
ret

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

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x41ab01
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and al, 0xe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret