joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405cb5
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c56c], 0
push esi
jne 0x405cec
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405cc6
mov dword [ecx*4 + 0x42c568], eax
inc ecx
cmp ecx, 0x100
jl 0x405cc1
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405d1d
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c568]
xor eax, esi
inc ecx
dec edx
jne 0x405cff
pop edi
not eax
pop esi
ret 0xc

Function at 0x5a011e
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x5a013e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x5a012a
add dl, dl
jne 0x5a0149
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x5a019a
xor eax, eax
add dl, dl
jne 0x5a0156
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x5a023b
add dl, dl
jne 0x5a0165
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x5a0170
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x5a017b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x5a0186
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x5a0190
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x5a0135
mov eax, 1
add dl, dl
jne 0x5a01a8
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x5a01b3
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x5a019f
sub eax, ebx
mov ebx, 1
jne 0x5a01e6
mov ecx, 1
add dl, dl
jne 0x5a01cc
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x5a01d7
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x5a01c3
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5a0135
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x5a01fd
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x5a0208
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x5a01f4
cmp eax, 0x7d00
jae 0x5a022b
cmp eax, 0x500
jb 0x5a0226
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5a0135
cmp eax, 0x7f
ja 0x5a022e
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5a0135
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x5a025c
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x5a0135
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8
Function at 0x401e00
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x20
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
mov dword [esp + 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x401e5b
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
call esi
lea edx, [esp + 0x10]
push edx
call edi
lea eax, [esp + 0x10]
push eax
call ebx
cmp dword [esp + 0x14], 0x12
je 0x401e79
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
sub eax, edx
cmp eax, ecx
jae 0x401e82
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401e22
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x20
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x40ac10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4188b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [0x41a504]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x40ac90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4188b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [0x41a504]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x40ad10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4188b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x40e910
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x418e42
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
mov eax, dword [0x420150]
xor eax, esp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x40], eax
push str._global_
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xc]
push str..custom_
push ecx
mov dword [esp + 0x58], 0
call fcn.0040ac90
add esp, 0xc
lea ecx, [esp + 8]
mov byte [esp + 0x4c], 1
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call fcn.004138c0
add esp, 4
push str.ddz.ini
lea ecx, [esp + 0xc]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 1
push str.bigcard
push 0x41b004
call edi
dec eax
neg eax
sbb al, al
inc al
lea ecx, [esp + 8]
mov byte [esi + 0x28], al
call dword [sym.imp.MSVCP71.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 0
push str.hidebscard
push 0x41b004
call edi
dec eax
neg eax
sbb al, al
inc al
lea ecx, [esp + 8]
mov byte [esi + 0x29], al
mov byte [esp + 0x4c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x24]
mov dword [esp + 0x4c], 0xffffffff
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x44]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x3c]
pop esi
xor ecx, esp
call fcn.00417b01
add esp, 0x48
ret

Function at 0x411470
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x418f36
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
call fcn.00408ce0
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4136c0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push 0
push 0
push 4
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x413761
push ebx
push edi
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x18]
mov ebx, eax
mov eax, edi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413700
push ebp
push 0
sub eax, edx
add eax, ebx
push eax
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LockFile]
mov eax, edi
lea ebp, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413720
push 0
lea ecx, [esp + 0x14]
push ecx
sub eax, ebp
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, edi
lea edx, [eax + 1]
pop ebp
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413740
push 0
sub eax, edx
add eax, ebx
push eax
push 0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_UnlockFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
pop ecx
ret

Function at 0x4138c0
Capabilities:
Create directory
Get file attributes

Disassembly:
sub esp, 0x1c
push edi
mov edi, dword [esp + 0x24]
push edi
lea ecx, [esp + 8]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
cmp dword [esp + 0x1c], 0x10
mov eax, dword [esp + 8]
jae 0x4138e2
lea eax, [esp + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [esp + 8]
mov esi, eax
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
cmp esi, 0x10
pop esi
je 0x41390f
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne al
pop edi
add esp, 0x1c
ret
mov al, 1
pop edi
add esp, 0x1c
ret
Function at 0x414390
Capabilities:
Capture screenshot

Disassembly:
push 0xffffffffffffffff
push 0x419258
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [esp + 0x4c]
mov ecx, dword [esi]
lea eax, [esp + 0x1c]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
lea ecx, [esp + 0xc]
call fcn.0041781c
mov eax, dword [esp + 0x44]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x3c], ebx
jne 0x4143d9
xor eax, eax
jmp 0x4143dc
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x10]
call sub.MFC71.DLL_CDC::Attach
test eax, eax
je 0x414414
mov eax, dword [esi]
cmp eax, ebx
je 0x41440b
mov edx, dword [esp + 0x10]
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp eax, ebx
mov dword [esp + 8], eax
jne 0x414438
lea ecx, [esp + 0xc]
call sub.MFC71.DLL_CDC::DeleteDC
lea ecx, [esp + 0xc]
mov dword [esp + 0x3c], 0xffffffff
call sub.MFC71.DLL_CDC::CDC
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
push ebp
push edi
mov edi, dword [esp + 0x50]
mov ecx, dword [edi + 0xc]
sub ecx, dword [edi + 4]
xor esi, esi
test ecx, ecx
jle 0x4144b5
mov ecx, dword [edi]
mov eax, dword [edi + 8]
mov ebp, dword [sym.imp.GDI32.dll_BitBlt]
sub eax, ecx
mov ecx, dword [esp + 0x28]
jmp 0x414460
test eax, eax
jle 0x4144a1
jmp 0x414470
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x2c]
push 0xcc0020
push 0
push 0
push edx
push eax
push ecx
mov ecx, dword [esp + 0x64]
mov edx, dword [ecx + 4]
push ebx
push esi
push edx
call ebp
mov ecx, dword [esp + 0x28]
mov eax, dword [edi + 8]
mov edx, dword [edi]
add esi, ecx
sub eax, edx
cmp esi, eax
jl 0x414470
add ebx, dword [esp + 0x2c]
mov edx, dword [edi + 0xc]
sub edx, dword [edi + 4]
xor esi, esi
cmp ebx, edx
jl 0x414460
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x14]
call sub.MFC71.DLL_CDC::DeleteDC
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0xffffffff
call sub.MFC71.DLL_CDC::CDC
mov ecx, dword [esp + 0x3c]
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x414a30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x419278
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
xor eax, eax
mov dword [esp + 4], eax
mov dword [esp], 0x41bf34
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 4]
call sub.MFC71.DLL_CGdiObject::Attach
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x20]
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [eax + 4]
lea edx, [esp + 0xc]
push edx
push ecx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp]
call sub.MFC71.DLL_CGdiObject::DeleteObject
lea ecx, [esp]
mov dword [esp + 0x20], 0xffffffff
mov dword [esp], 0x41ab2c
call sub.MFC71.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x415740
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
push 0x300000
mov ebx, ecx
call sub.MFC71.DLL_operator_new
mov esi, eax
add esp, 4
test esi, esi
jne 0x41575e
pop esi
xor al, al
pop ebx
ret 4
mov eax, dword [esp + 0xc]
push edi
push 0x41be38
push eax
call dword [sym.imp.MSVCR71.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x415789
push esi
call sub.MFC71.DLL_operator_delete
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
ret 4
push edi
push 0x300000
push 1
push esi
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
push 0
push 0
push eax
push esi
mov ecx, ebx
call fcn.00415360
push esi
mov bl, al
call sub.MFC71.DLL_operator_delete
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 8
pop edi
pop esi
mov al, bl
pop ebx
ret 4

Function at 0x415e80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x419315
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call sub.MFC71.DLL_CWnd::CWnd
xor ebx, ebx
mov dword [esi], 0x41c118
mov dword [esp + 0x18], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x5c], 0x41ab40
lea ecx, [esi + 0x6c]
mov byte [esp + 0x18], 1
call sub.MFC71.DLL_CToolTipCtrl::CToolTipCtrl
lea edi, [esi + 0xdc]
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_1]
lea ecx, [esi + 0xe8]
mov byte [esp + 0x18], 3
call fcn.0041781c
mov dword [esi + 0xfc], ebx
mov dword [esi + 0xf8], 0x41ab40
lea ecx, [esi + 0x104]
mov byte [esp + 0x18], 5
call fcn.0041781c
mov dword [esi + 0x118], ebx
mov dword [esi + 0x114], 0x41ab40
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x20], 7
mov dword [esi + 0x58], 1
mov dword [esi + 0x54], eax
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x64], ebx
mov byte [esi + 0x68], bl
call fcn.00415930
mov eax, dword [esp + 0x30]
push eax
mov ecx, edi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov dword [esi + 0xe0], ecx
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x100], ebx
pop edi
mov dword [esi + 0xe4], edx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x18
Function at 0x401380
Capabilities:
Set socket configuration

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [sym.imp.MSVCR90.dll_malloc]
push edi
push 0x288
call esi
mov edi, eax
add esp, 4
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], 0x288
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x4013cc
push edi
call dword [sym.imp.MSVCR90.dll_free]
mov ecx, dword [esp + 0x18]
push ecx
call esi
add esp, 8
mov dword [esp + 0x10], eax
mov edi, eax
lea edx, [esp + 0x14]
push edx
push edi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x401427
mov ebp, edi
test edi, edi
je 0x401435
lea esi, [ebp + 0x1ac]
test esi, esi
je 0x401420
lea ebx, [ebp + 0x1d8]
lea eax, [esi + 0x14]
push eax
call sub.WSOCK32.dll_inet_addr
push eax
call sub.WSOCK32.dll_ntohl
push ebx
mov edi, eax
call sub.WSOCK32.dll_inet_addr
push eax
call sub.WSOCK32.dll_ntohl
test edi, edi
je 0x401416
test eax, eax
jne 0x40143f
mov esi, dword [esi]
test esi, esi
jne 0x4013f1
mov edi, dword [esp + 0x10]
mov ebp, dword [ebp]
test ebp, ebp
jne 0x4013e1
test edi, edi
je 0x401435
push edi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
add ebp, 0x1d8
push ebp
push 0x692480
call dword [sym.imp.MSVCR90.dll_sprintf]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.MSVCR90.dll_free]
add esp, 0xc
pop edi
pop esi
pop ebp
mov eax, 0x692480
pop ebx
add esp, 8
ret
Function at 0x4015b0
Capabilities:
Get hostname
Get session user name
Set socket configuration

Disassembly:
sub esp, 0x1c
mov eax, dword [0x691844]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push edi
mov esi, ecx
push 0x989680
mov dword [esi], 0
call fcn.00599644
add esp, 4
mov dword [esi + 4], eax
call fcn.00401380
mov edi, eax
or eax, 0xffffffff
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov word [esp + 0x20], ax
mov dword [esp + 0xc], 6
call sub.WSOCK32.dll_inet_addr
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push eax
call sub.IPHLPAPI.DLL_SendARP
mov eax, dword [esp + 8]
test eax, eax
jle 0x40162a
push eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
push edi
call sub.WSOCK32.dll_inet_addr
mov edx, dword [esi]
add edx, dword [esi + 4]
mov ecx, 1
mov dword [edx], ecx
add dword [esi], 4
mov edx, dword [esi]
mov ecx, dword [esi + 4]
add ecx, edx
mov edx, dword [esp + 0x14]
mov dword [ecx], edx
mov edx, dword [esp + 0x18]
mov dword [ecx + 4], edx
mov dx, word [esp + 0x1c]
mov word [ecx + 8], dx
add dword [esi], 0xa
mov ecx, dword [esi]
mov edx, dword [esi + 4]
add edx, ecx
mov dword [edx], eax
add dword [esi], 4
call fcn.00401260
mov ecx, eax
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x401675
mov edx, dword [esi]
add edx, dword [esi + 4]
sub ecx, edi
lea edi, [ecx + 1]
mov byte [edx], cl
inc dword [esi]
mov edx, dword [esi]
push edi
push eax
mov eax, dword [esi + 4]
add eax, edx
push eax
call sub.MSVCR90.dll_memcpy
add dword [esi], edi
push 0x100
push 0
push 0x691e80
call sub.MSVCR90.dll_memset
add esp, 0x18
lea ecx, [esp + 8]
push ecx
push 0x691e80
mov dword [esp + 0x10], 0x100
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov eax, 0x691e80
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4016d0
mov edx, dword [esi]
add edx, dword [esi + 4]
sub eax, ecx
mov byte [edx], al
inc dword [esi]
mov ecx, dword [esi]
lea edi, [eax + 1]
mov eax, dword [esi + 4]
push edi
add eax, ecx
push 0x691e80
push eax
call sub.MSVCR90.dll_memcpy
add dword [esi], edi
push 0x100
push 0
push 0x691f80
call sub.MSVCR90.dll_memset
add esp, 0x18
lea ecx, [esp + 8]
push ecx
push 0x691f80
push 1
mov dword [esp + 0x14], 0x100
call dword [sym.imp.KERNEL32.dll_GetComputerNameExA]
mov eax, 0x691f80
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401730
mov edx, dword [esi]
add edx, dword [esi + 4]
sub eax, ecx
mov byte [edx], al
inc dword [esi]
mov ecx, dword [esi]
lea edi, [eax + 1]
mov eax, dword [esi + 4]
push edi
add eax, ecx
push 0x691f80
push eax
call sub.MSVCR90.dll_memcpy
add dword [esi], edi
mov ecx, dword [esp + 0x2c]
add esp, 0xc
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.005997a8
add esp, 0x1c
ret