joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009560
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
call fcn.10011004
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
push edi
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push ebx
push eax
call fcn.10015584
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x100095d3
call fcn.10011004
cmp dword [eax], 0
je 0x1000959f
call fcn.10011004
mov ebp, dword [eax]
jmp 0x100095a2
or ebp, 0xffffffff
call fcn.10009840
test esi, esi
mov dword [eax], ebp
jne 0x100095e5
call fcn.10011004
cmp dword [eax], 4
jne 0x100095e5
call fcn.10011004
mov ecx, dword [esp + 0x14]
push edi
push ebx
push ecx
mov dword [eax], esi
call fcn.10015584
mov esi, eax
add esp, 0xc
cmp esi, edi
jne 0x1000958c
mov bl, byte [esp + 0x20]
test bl, 6
je 0x100095de
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
mov bl, byte [esp + 0x20]
test bl, 0x1a
je 0x10009643
cmp esi, 0xffffffff
jne 0x1000961c
call fcn.10009840
mov edx, dword [eax]
mov eax, dword [esp + 0x14]
push edx
push eax
call fcn.10008860
add esp, 4
push eax
push 0x24
push 2
call fcn.10008890
add esp, 0x10
pop edi
or eax, esi
pop esi
pop ebp
pop ebx
ret
test bl, 6
je 0x10009643
call fcn.10009840
mov ecx, dword [eax]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.10008860
add esp, 4
push eax
push 0x24
push 9
call fcn.10008890
add esp, 0x10
cmp esi, 0xffffffff
je 0x1000964d
test bl, 6
je 0x100095de
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret

Function at 0x100096e0
Capabilities:
Allocate thread local storage
Terminate process

Disassembly:
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x1003b280], eax
jne 0x10009711
call fcn.10011004
mov eax, dword [eax]
push eax
push str.Cant_initialize_threads:_error__d_n
push 0x10030f40
call fcn.10010f55
add esp, 0xc
push 1
call fcn.10011345
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x1003b380
call esi
push 0x1003b320
call esi
push 0x1003b3a0
call esi
push 0x1003b340
call esi
push 0x1003b2e0
call esi
push 0x1003b300
call esi
push 0x1003b2c0
call esi
push 0x1003b2a0
call esi
push 0x1003b360
call esi
call fcn.100098c0
call sym.LIBMYSQL.dll_my_thread_init
pop esi
ret

Function at 0x10009780
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push 0x1003b340
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1003b280]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x100097f1
push 0x3c
push 1
call fcn.10012468
mov esi, eax
add esp, 8
test esi, esi
jne 0x100097bd
push 0x1003b340
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop esi
ret
mov ecx, dword [0x1003b280]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1003aeac]
inc eax
lea edx, [esi + 0x10]
mov dword [0x1003aeac], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
add esi, 4
push esi
call fcn.10009870
add esp, 8
push 0x1003b340
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
pop esi
ret
Function at 0x10009800
Capabilities:
Set thread local storage value

Disassembly:
push esi
call fcn.10009840
mov esi, eax
test esi, esi
je 0x1000982b
lea eax, [esi + 4]
push eax
call fcn.100098a0
add esp, 4
lea ecx, [esi + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push esi
call fcn.10010d21
add esp, 4
mov edx, dword [0x1003b280]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret

Function at 0x1000a1e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [ebp + 0x10]
test eax, eax
push ebx
push esi
push edi
je 0x1000a2d8
cmp byte [eax], 0
je 0x1000a2d8
mov edi, dword [ebp + 8]
push eax
lea eax, [esp + 0x1c]
push eax
mov esi, edi
call fcn.1000a170
mov ebx, dword [ebp + 0xc]
lea ecx, [esp + 0x18]
push ebx
push ecx
call fcn.1000a170
mov al, byte [ebp + 0x14]
add esp, 0x10
test al, al
je 0x1000a240
mov edx, dword [esp + 0x10]
xor edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.1000a2f0
add esp, 8
jmp 0x1000a261
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
xor ecx, eax
push ecx
xor edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.1000a0e0
add esp, 0xc
mov cl, byte [ebx]
inc ebx
test cl, cl
je 0x1000a299
lea edx, [esp + 0x20]
push edx
call fcn.1000a120
fmul qword [0x1001c190]
push ecx
fstp qword [esp]
call fcn.10012545
fadd qword [0x1001c188]
add esp, 8
call fcn.10012614
mov byte [edi], al
mov al, byte [ebx]
inc edi
inc ebx
test al, al
jne 0x1000a268
mov al, byte [ebp + 0x14]
test al, al
jne 0x1000a2db
lea ecx, [esp + 0x20]
push ecx
call fcn.1000a120
fmul qword [0x1001c190]
push ecx
fstp qword [esp]
call fcn.10012545
add esp, 8
call fcn.10012614
cmp esi, edi
je 0x1000a2db
xor byte [esi], al
inc esi
cmp esi, edi
jne 0x1000a2c5
mov byte [edi], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
mov byte [edi], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000a5e0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]

Function at 0x1000a930
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.1000a5b0
push eax
push esi
push dword [ebp + 8]
call fcn.1000a565
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
inc ebp
cdq
sub dh, al
inc ebp
lcall 0xc635, 0x9b45c633
inc ebp
pushfd
xor al, 0xc6
inc ebp
popfd
and dh, al
inc ebp
sahf
sub eax, 0x119f45c6
Function at 0x1000a970
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
cdq
sub dh, al
inc ebp
lcall 0xc635, 0x9b45c633
inc ebp
pushfd
xor al, 0xc6
inc ebp
popfd
and dh, al
inc ebp
sahf
sub eax, 0x119f45c6
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
inc ebp
movsd dword es:[edi], dword [esi]
xor eax, 0x41a645c6
call fcn.1000a5b0
push eax
push esi
call dword [eax + 0x56]
push dword [ebp + 8]
call fcn.1000a565
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
dec edx
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.1000a5b0
push eax
push esi
push dword [ebp + 8]
call fcn.1000a565
add esp, 0x30
mov dword [ebp - 0xb8], eax
call sym.LIBMYSQL.dll_strfill
xchg edx, eax
fldcw word [edi]
js 0x1000a9ab
popfd
jl 0x1000aa25
invalid
invalid

Function at 0x1000ab60
Capabilities:
Inspect section memory permissions

Disassembly:
jne 0x1000ab74
push edi
call dword [ebp - 0xb8]
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x10]
dec eax
invalid
mov eax, dword [eax]
cmp eax, ebx

Function at 0x1000ab96
Capabilities:
Inspect section memory permissions

Disassembly:
call [ebp - 0x742dffaf]
inc ebp
adc byte [ebx + 0x74c33b00], cl
aaa
Function at 0x1001861c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x100323a0
cmp edx, dword [eax]
je 0x1001863e
add eax, 8
inc ecx
cmp eax, 0x10032430
jl 0x1001862f
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x100323a0]
jne 0x1001876c
mov eax, dword [0x1003af48]
cmp eax, 1
je 0x10018746
test eax, eax
jne 0x1001866f
cmp dword [0x1003af4c], 1
je 0x10018746
cmp edx, 0xfc
je 0x1001876c
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100186a6
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.100166f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10014600
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x100186e9
lea eax, [ebp - 0x1a4]
push eax
call fcn.10014600
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1001dda0
push edi
call fcn.10016530
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.100166f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10016700
lea eax, [ebp - 0xa0]
push 0x1001dd80
push eax
call fcn.10016700
push dword [esi + 0x100323a4]
lea eax, [ebp - 0xa0]
push eax
call fcn.10016700
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1001a085
add esp, 0x2c
pop edi
jmp 0x1001876c
lea eax, [ebp + 8]
lea esi, [esi + 0x100323a4]
push 0
push eax
push dword [esi]
call fcn.10014600
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 0x4670f4
Capabilities:
Encode data using xor

Disassembly:
mov bl, 0
mov al, 8
xor dword [esi + esi*2 - 0x7c62c919], eax
adc dword [ebx - 0x64], esp
or al, 4
mov ebp, 0xcf555d8c
salc
invalid

Function at 0x495cd5
Capabilities:
Encode data using xor

Disassembly:
sahf
push 0xef785656
push eax
jecxz 0x495d29
outsd dx, dword es:[esi]
xor esi, ebp
mov esi, 0x111e3c03
in eax, dx
adc eax, 0xcf46df19
cli
rcr byte [esi - 0x7e6d0992], cl
xor eax, 0x42fb239a
push edi
jb 0x495d78
bound edi, qword [esi + 0x10]
pop eax
invalid
xor ah, bh

Function at 0x4acd9b
Capabilities:
Encode data using xor

Disassembly:
mov al, 0x95
pop edi
in eax, dx
push ds
xchg byte [edx - 0x7dc07510], bh

Function at 0x4bc7ff
Capabilities:
Terminate process

Disassembly:
rol byte [ebx + 0x353b04ee], 1
mov al, 0xd3
dec esp
add byte [ebx - 0x13], dh
pop esi
push 0x4c8018
push 0x4c8014
call fcn.004bc85e
pop ecx
pop ecx
push 0x4c8020
push 0x4c801c
call fcn.004bc85e
pop ecx
pop ecx
test ebx, ebx
pop ebx
je 0x4bc83a
call fcn.004bc855
pop edi
ret
push dword [esp + 8]
mov dword [0x4ccd20], edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4bcd54
Capabilities:
Query environment variable

Disassembly:
add byte [ebx + 0x55], dl
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x4bcd9c
call ebp
mov esi, eax
cmp esi, ebx
je 0x4bcd7d
mov dword [0x4cce28], 1
jmp 0x4bcda5
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov edi, eax
cmp edi, ebx
je 0x4bce77
mov dword [0x4cce28], 2
jmp 0x4bce2b
cmp eax, 1
jne 0x4bce26
cmp esi, ebx
jne 0x4bcdb5
call ebp
mov esi, eax
cmp esi, ebx
je 0x4bce77
cmp word [esi], bx
mov eax, esi
je 0x4bcdca
inc eax
inc eax
cmp word [eax], bx
jne 0x4bcdbc
inc eax
inc eax
cmp word [eax], bx
jne 0x4bcdbc
sub eax, esi
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sar eax, 1
push ebx
push ebx
inc eax
push ebx
push ebx
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call edi
mov ebp, eax
cmp ebp, ebx
je 0x4bce1b
push ebp
call fcn.004be7d2
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x4bce1b
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
test eax, eax
jne 0x4bce17
push dword [esp + 0x10]
call fcn.004be6e9
pop ecx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x4bce79
cmp eax, 2
jne 0x4bce77
cmp edi, ebx
jne 0x4bce3b
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov edi, eax
cmp edi, ebx
je 0x4bce77
cmp byte [edi], bl
mov eax, edi
je 0x4bce4b
inc eax
cmp byte [eax], bl
jne 0x4bce41
inc eax
cmp byte [eax], bl
jne 0x4bce41
sub eax, edi
inc eax
mov ebp, eax
push ebp
call fcn.004be7d2
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x4bce61
xor esi, esi
jmp 0x4bce6c
push ebp
push edi
push esi
call fcn.004be910
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, esi
jmp 0x4bce79
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x4bd315
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c8350
cmp edx, dword [eax]
je 0x4bd337
add eax, 8
inc ecx
cmp eax, 0x4c83e0
jl 0x4bd328
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c8350]
jne 0x4bd465
mov eax, dword [0x4cccdc]
cmp eax, 1
je 0x4bd43f
test eax, eax
jne 0x4bd368
cmp dword [0x4c8278], 1
je 0x4bd43f
cmp edx, 0xfc
je 0x4bd465
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bd39f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004bdd00
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004be190
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bd3e2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004be190
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c30d4
push edi
call fcn.004c0060
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004bdd00
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bdd10
lea eax, [ebp - 0xa0]
push 0x4c30b4
push eax
call fcn.004bdd10
push dword [esi + 0x4c8354]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bdd10
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004bffd4
add esp, 0x2c
pop edi
jmp 0x4bd465
lea eax, [ebp + 8]
lea esi, [esi + 0x4c8354]
push 0
push eax
push dword [esi]
call fcn.004be190
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 0x4012d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x407967
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x408298
mov dword [esp + 0x10], 0xe
call fcn.00401440
lea ecx, [esi + 0xa0]
mov byte [esp + 0x10], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x9c]
mov byte [esp + 0x10], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x98]
mov byte [esp + 0x10], 0xb
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x94]
mov byte [esp + 0x10], 0xa
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x90]
mov byte [esp + 0x10], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x80]
mov byte [esp + 0x10], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x78]
mov byte [esp + 0x10], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x74]
mov byte [esp + 0x10], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x60]
mov byte [esp + 0x10], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x3c]
mov byte [esp + 0x10], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x38]
mov byte [esp + 0x10], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 0xc]
mov byte [esp + 0x10], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 8]
mov byte [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esi + 4]
mov dword [esp + 0x10], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x401a20
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4079c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2808
call fcn.00407430
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea edi, [esi + 4]
mov dword [ebp - 0x10], esp
push eax
mov ecx, edi
mov dword [ebp - 4], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x50], ebx
call sub.MFC42.DLL_CString::operator_1
mov ecx, edi
call sub.MFC42.DLL_CString::TrimLeft
mov ecx, edi
call sub.MFC42.DLL_CString::TrimRight
mov edx, dword [edi]
cmp dword [edx - 8], ebx
je 0x401b92
lea ebx, [esi + 0xa4]
lea eax, [esi + 0x9c]
lea ecx, [esi + 0x98]
push ebx
push eax
push ecx
push edx
mov ecx, esi
call fcn.00403720
xor ecx, ecx
cmp eax, ecx
jne 0x401aed
push edi
lea ecx, [ebp + 8]
push str.http:__
push ecx
call sub.MFC42.DLL_operator_2
push eax
mov ecx, edi
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
mov edi, dword [edi]
lea eax, [esi + 0x9c]
push ebx
push eax
lea eax, [esi + 0x98]
mov ecx, esi
push eax
push edi
call fcn.00403720
test eax, eax
je 0x401b92
xor ecx, ecx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x24], ecx
push ecx
mov ecx, esi
call fcn.00401bb0
test eax, eax
jne 0x401b8b
mov ebx, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call ebx
mov dword [ebp - 0x14], eax
mov ecx, 0xa00
xor eax, eax
lea edi, [ebp - 0x2818]
mov edx, dword [esi + 0x44]
rep stosd dword es:[edi], eax
mov ecx, dword [esi + 0xac]
push edx
stosb byte es:[edi], al
lea eax, [ebp - 0x2818]
push 0x2800
push eax
push ecx
call fcn.00405a90
add esp, 0x10
test eax, eax
jle 0x401b8b
add dword [esi + 0x28], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov edi, eax
sub edi, ecx
cmp edi, 5
jb 0x401b14
mov ecx, esi
call fcn.00401440
mov esi, dword [esi + 0x28]
xor edx, edx
lea eax, [esi + esi*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
div edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, esi
call fcn.00401440
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404f90
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
mov ecx, 0x64
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
pop edi
je 0x404fcc
push eax
call fcn.00404f70
add esp, 4
or eax, 0xffffffff
add esp, 0x190
ret
mov ax, word [esp]
cmp al, 2
jne 0x404fe6
xor ecx, ecx
mov cl, ah
cmp cl, al
jne 0x404fe6
xor eax, eax
add esp, 0x190
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0x276c
call fcn.00404f70
add esp, 4
or eax, 0xffffffff
add esp, 0x190
ret

Function at 0x405010
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push 4
push eax
push 4
push 0xffff
push ecx
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x40504b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00404f70
add esp, 4
or eax, 0xffffffff
pop ecx
ret
xor eax, eax
pop ecx
ret

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

Disassembly:
sub esp, 0x10
mov edx, dword [esp + 0x1c]
xor ecx, ecx
xor eax, eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 8], edx
push eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
push eax
lea edx, [esp + 0xc]
lea eax, [esp + 8]
mov dword [esp + 0x14], ecx
push edx
mov edx, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push 1
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x4051c1
mov eax, dword [esp]
add esp, 0x10
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
add esp, 0x10
ret

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

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
xor eax, eax
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 4], ecx
push eax
push eax
mov dword [esp + 0x10], eax
push eax
lea eax, [esp + 0xc]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push 1
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
jne 0x40538b
mov eax, dword [esp]
add esp, 0xc
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
add esp, 0xc
ret
Function at 0x405540
Capabilities:
Connect socket

Disassembly:
sub esp, 0x30
push ebx
push ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
test eax, eax
mov dword [esp + 8], eax
jne 0x405573
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.00404f70
add esp, 4
or eax, 0xffffffff
pop ebp
pop ebx
add esp, 0x30
ret
mov ebx, dword [esp + 0x3c]
mov ebp, dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x10
push eax
push ebx
call ebp
cmp eax, 0xffffffff
jne 0x4055ab
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.00404f70
add esp, 4
or eax, 0xffffffff
pop ebp
pop ebx
add esp, 0x30
ret
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push esi
push edi
push 0
push 0
push 0
push 0
push ecx
push edx
push ebx
call dword [sym.imp.WS2_32.dll_WSAConnect]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call edi
cmp esi, 0xffffffff
jne 0x405643
cmp eax, 0x2733
jne 0x405643
mov eax, dword [esp + 0x50]
push 1
push eax
lea ecx, [esp + 0x18]
push 1
push ecx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
test eax, eax
je 0x405605
call edi
push eax
call fcn.00404f70
add esp, 4
or esi, esi
jmp 0x405643
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
cmp eax, 0xffffffff
jne 0x40562b
call edi
push eax
call fcn.00404f70
add esp, 4
or esi, 0xffffffff
jmp 0x405643
mov eax, dword [esp + 0x28]
test eax, eax
je 0x405641
push eax
call fcn.00404f70
add esp, 4
or esi, 0xffffffff
jmp 0x405643
xor esi, esi
mov ecx, dword [esp + 0x10]
push 0
push ecx
push ebx
call ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret

Function at 0x4056a0
Capabilities:
Create thread
Resolve dns

Disassembly:
sub esp, 0x9c
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_inet_addr]
push esi
push edi
mov edi, dword [esp + 0xac]
push edi
call ebx
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x405764
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x40573b
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x94
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
test eax, eax
je 0x40573b
cmp dword [esp + 0x24], 2
jne 0x40573b
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
push ecx
push 0
push edi
push 0x405670
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov esi, eax
test esi, esi
je 0x40573b
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
test eax, eax
je 0x40573b
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x9c
ret
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x405753
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x9c
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
call ebx
pop edi
pop esi
pop ebx
add esp, 0x9c
ret