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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x472778
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x431159
inc eax
mov dword [esi + 0x10], eax
jmp 0x43126c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43116d
mov eax, 0xffffffc7
jmp 0x43126e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43117e
cmp dword [esi + 8], eax
jne 0x43116d
cmp dword [esi + 8], eax
jne 0x431197
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x431197
mov eax, 0xffffffc7
jmp 0x43126e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x4311ab
push eax
mov ecx, ebx
call fcn.00430950
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00401c00
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x4311dc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00401c20
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.004300c0
test eax, eax
mov dword [esp + 0x38], eax
je 0x43120f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x47b500
call fcn.00401e00
mov eax, dword [esp + 0x38]
jmp 0x43126e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00430f80
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x431253
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00430fa0
mov esi, eax
test esi, esi
jne 0x431283
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00430f80
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x431225
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x47b500
call fcn.00401e00
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x47b500
call fcn.00401e00
mov eax, esi
jmp 0x43126e

Function at 0x4343a0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x434400
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x434400
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x434400
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x434400
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x434440
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x43a590
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x472da8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00469d5f
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00439f30
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00469c8d
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00466474
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00466474
push 1
push 0
push 0
mov ecx, esi
call fcn.0046641c
push 1
push 0
push 1
mov ecx, esi
call fcn.0046641c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00469dd1
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43a710
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x472dc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00469d5f
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00439f30
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00469c8d
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43a7d4
cmp dword [esp + 0x40], 1
jne 0x43a7d2
cmp ecx, eax
jge 0x43a7d4
mov eax, ecx
cmp eax, 0xc8
jge 0x43a7e0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043a590
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00469dd1
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43af60
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x472e33
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00464894
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046a007
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046b55f
test eax, eax
je 0x43b07c
mov ecx, dword [esp + 0x3c]
call fcn.0046a034
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43b040
push edi
mov ecx, esi
call fcn.004675f8
mov ecx, esi
call fcn.0043b1e0
cmp dword [esp + 0x38], 1
jne 0x43b075
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00467762
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43da90
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43dac3
push esi
call fcn.00440b80
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43dabc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43db49
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43db32
mov eax, dword [esi + 8]
test eax, eax
je 0x43dae7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43db2e
cmp eax, 2
je 0x43db32
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43dada
cmp eax, 3
je 0x43db0d
cmp eax, 1
jne 0x43dada
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43dada
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43dada
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043db70
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43db58
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043db70
add esp, 4
pop esi
ret

Function at 0x46568a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4656c2
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00463741
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00463719
jmp 0x4656ce
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x466d7c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x466dbe
call fcn.0046ca6b
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x466dbe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x466db5
xor eax, eax
jmp 0x466dc6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00466dcc
pop edi
pop esi
pop ebx
ret 4

Function at 0x46cf9b
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46cfc9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46cfe7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046cf01
jmp 0x46cfe7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46cfe7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046cf01
test edi, edi
mov eax, edi
jne 0x46cfd1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40236b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
mov esi, 0x104
xor edi, edi
push esi
lea eax, [ebp - 0x104]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x104]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
pop ecx
test eax, eax
pop ecx
je 0x4023b5
and byte [eax], 0
lea eax, [ebp - 0x104]
push 0x5c
push eax
push str._s_cmylog.log
lea eax, [ebp - 0x208]
push esi
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
lea eax, [ebp - 0x208]
push 0x40f300
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x402410
cmp dword [ebp + 0xc], 1
jbe 0x4023f5
dec dword [ebp + 0xc]
push esi
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
mov edi, eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x402457
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402470
test al, 0x10
je 0x402470
push 1
pop eax
ret
xor eax, eax
ret

Function at 0x4029cd
Capabilities:
Enumerate processes

Disassembly:
mov eax, 0x40a118
call fcn.00409ba0
sub esp, 0x130
push ebx
push esi
push edi
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [ebp - 0x13c]
mov dword [ebp - 0x14], eax
push ecx
push eax
mov dword [ebp - 0x13c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x402ad3
mov esi, 0x80000000
lea eax, [ebp - 0x118]
lea ecx, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::CString_1
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, eax
and ecx, esi
cmp ecx, esi
jne 0x402a75
cmp al, 4
jne 0x402a75
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Find_1
cmp eax, 0xffffffff
je 0x402a87
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::Find_1
mov edi, eax
test edi, edi
jle 0x402a87
mov eax, dword [ebp - 0x10]
push dword [ebp + 8]
mov ebx, dword [eax - 8]
call sub.MSVCRT.dll_strlen
add eax, edi
pop ecx
cmp eax, ebx
jne 0x402a87
mov eax, dword [ebp - 0x10]
cmp byte [edi + eax - 1], 0x5c
jmp 0x402a85
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll__mbsicmp]
pop ecx
pop ecx
test eax, eax
je 0x402aab
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
lea eax, [ebp - 0x13c]
push eax
push dword [ebp - 0x14]
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x402aca
jmp 0x402a10
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x134]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x402ad6
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x403720
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x40481f
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x40a2b4
call fcn.00409ba0
push ecx
push ecx
mov al, byte [ebp - 0xd]
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x14], esi
mov byte [esi], al
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x10]
push edi
mov dword [ebp - 4], edi
mov byte [ecx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [ebp - 0xd]
lea ecx, [esi + 0x20]
push edi
mov byte [ebp - 4], 1
mov byte [ecx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x30], al
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x404889
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x40a2d4
call fcn.00409ba0
push ecx
mov al, byte [ebp + 0xb]
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov byte [esi], al
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [ebp + 8]
lea ebx, [esi + 0x10]
push edi
mov ecx, ebx
mov al, byte [eax]
mov dword [ebp - 4], edi
mov byte [ebx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, ebx
push dword [eax]
push edi
push dword [ebp + 8]
call dword [sym.imp.MSVCP60.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__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov eax, dword [ebp + 0xc]
lea ebx, [esi + 0x20]
push edi
mov ecx, ebx
mov al, byte [eax]
mov byte [ebp - 4], 1
mov byte [ebx], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov ecx, ebx
push dword [eax]
push edi
push dword [ebp + 0xc]
call dword [sym.imp.MSVCP60.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__::assign_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
mov al, byte [ebp + 0xb]
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x30], al
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x406ce6
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x40a648
call fcn.00409ba0
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004098a0
xor edi, edi
lea ecx, [esi + 4]
mov dword [ebp - 4], edi
call fcn.004098a0
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], edi
mov dword [esi + 8], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x34], 1
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4077ee
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x74], edi
jne 0x407821
cmp dword [esi + 0x68], edi
je 0x407826
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp eax, edi
je 0x40781e
push dword [esi + 0x6c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, edi
mov dword [esi + 0x74], eax
jne 0x407821
mov dword [esi + 0x68], edi
cmp dword [esi + 0x68], edi
jne 0x407852
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x84]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40786a
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x40786a
cmp dword [ebp + 0xc], eax
je 0x407884
jmp 0x40786a
mov eax, dword [esi + 0x70]
mov edi, dword [ebp + 0xc]
add eax, edi
cmp eax, dword [esi + 0x6c]
jbe 0x40786e
mov ecx, esi
call fcn.0040788d
test eax, eax
jne 0x40786e
xor eax, eax
jmp 0x407887
mov eax, dword [esi + 0x70]
push edi
push dword [ebp + 8]
add eax, dword [esi + 0x74]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [esi + 0x70], edi
push 1
pop eax
pop edi
pop esi
leave
ret 8
Function at 0x40796a
Capabilities:
Connect to http server

Disassembly:
mov eax, 0x40a7b4
call fcn.00409ba0
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x78], ebx
je 0x407987
cmp dword [esi + 0x7c], ebx
je 0x40798f
push 3
pop eax
jmp 0x407adb
lea ecx, [ebp - 0x1c]
call fcn.004098a0
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.004098a0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.004098a0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.004098a0
lea ecx, [ebp - 0x18]
push 0x20000000
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x24]
mov eax, dword [esi + 0xb0]
push ecx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x20]
push ecx
push eax
call sub.MFC42.DLL_AfxParseURLEx
test eax, eax
je 0x407aa7
cmp dword [ebp - 0x20], 3
jne 0x407aa7
lea eax, [ebp - 0x14]
lea ecx, [esi + 0x58]
push eax
call sub.MFC42.DLL_CString::operator
lea eax, [ebp - 0x10]
lea ecx, [esi + 0x5c]
push eax
call sub.MFC42.DLL_CString::operator
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
push esi
push ebx
mov eax, dword [ecx - 8]
push 3
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [edx - 8]
neg ecx
sbb ecx, ecx
push eax
and ecx, edx
push ecx
push dword [ebp - 0x24]
push dword [ebp - 0x10]
push dword [esi + 0x78]
call dword [sym.imp.WININET.dll_InternetConnectA]
cmp eax, ebx
mov dword [esi + 0x7c], eax
jne 0x407a8a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x407a59
push eax
push ebx
call sub.MFC42.DLL_AfxThrowInternetException
lea eax, [ebp - 0x28]
push 1
push eax
mov ecx, esi
call fcn.00408cfc
test eax, eax
je 0x407a6e
push 6
jmp 0x407aa9
mov eax, dword [ebp - 0x28]
cmp eax, dword [esi + 0x11c]
jne 0x407a9b
mov eax, dword [esi + 0x114]
cmp eax, ebx
je 0x407a8a
push eax
push ebx
call sub.MFC42.DLL_AfxThrowInternetException
push dword [esi + 0x11c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [esi + 0x7c], ebx
jne 0x407ae9
push 0x40f93c
mov ecx, esi
call fcn.00408273
push 3
pop esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push 2
jmp 0x407aa9