joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464dc0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x492968
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.0048b35e
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00464760
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.0048b28c
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.00487b50
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.00487b50
push 1
push 0
push 0
mov ecx, esi
call fcn.00487af8
push 1
push 0
push 1
mov ecx, esi
call fcn.00487af8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0048b3d0
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x464f40
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x492988
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.0048b35e
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00464760
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.0048b28c
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 0x465004
cmp dword [esp + 0x40], 1
jne 0x465002
cmp ecx, eax
jge 0x465004
mov eax, ecx
cmp eax, 0xc8
jge 0x465010
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00464dc0
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.0048b3d0
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x465790
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4929f3
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.00485f70
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.0048b606
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0048cb65
test eax, eax
je 0x4658ac
mov ecx, dword [esp + 0x3c]
call fcn.0048b633
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 0x465870
push edi
mov ecx, esi
call fcn.00488c97
mov ecx, esi
call fcn.00465a10
cmp dword [esp + 0x38], 1
jne 0x4658a5
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.00488dd2
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 0x4682c0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4682f3
push esi
call fcn.0046b3b0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4682ec
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 0x468379
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x468362
mov eax, dword [esi + 8]
test eax, eax
je 0x468317
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 0x46835e
cmp eax, 2
je 0x468362
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x46830a
cmp eax, 3
je 0x46833d
cmp eax, 1
jne 0x46830a
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 0x46830a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x46830a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004683a0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x468388
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004683a0
add esp, 4
pop esi
ret

Function at 0x486d66
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x486d9e
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.00484e1a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00484df2
jmp 0x486daa
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x488454
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 0x488496
call fcn.0048df50
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 0x488496
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48848d
xor eax, eax
jmp 0x48849e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004884a4
pop edi
pop esi
pop ebx
ret 4

Function at 0x48e480
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 0x48e4ae
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48e4cc
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048e3e6
jmp 0x48e4cc
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48e4cc
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048e3e6
test edi, edi
mov eax, edi
jne 0x48e4b6
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x40383f
pop dword [ebp - 0x18]
mov eax, 0xb7764929
add eax, 0x48c9ef16
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x58c612e7
sub dword [ebp - 0x28], 0xa73cd9c
mov dword [ebp - 0x24], 0x901f19db
sub dword [ebp - 0x24], 0x5debcd96
mov dword [ebp - 0x20], 0xa44dd5da
sub dword [ebp - 0x20], 0x580191ac
mov dword [ebp - 0x1c], 0x542d9c1d
sub dword [ebp - 0x1c], 0x542d9c1d
lea eax, [ebp - 0x28]
push eax
mov eax, 0x1abcefa9
add eax, 0xe583a073
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x6fd01cf7
add dword [ebp - 0x28], 0x4a24c5f
mov dword [ebp - 0x24], 0x2303c8cb
sub dword [ebp - 0x24], 0xe1976756
mov dword [ebp - 0x20], 0xa6047ed3
sub dword [ebp - 0x20], 0x42951267
mov dword [ebp - 0x1c], 0x308ecd55
add dword [ebp - 0x1c], 0xcf7132ab
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x2520476b
sub eax, 0x24dfb753
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3cdd3
push 0
call eax
mov ecx, 0x10d6aa1d
sub ecx, 0x10d65a8c
xor edi, edi
add edi, eax
mov ebx, 0x40d800
add ebx, dword [ebp - 0x18]
mov esi, 0x5a75300a
sub esi, 0xa6d7b4e4
xor dword [ebp - 0x14], 0xad9ab707
mov edx, dword [ebx]
xor dword [ebp - 0x14], esi
add edx, esi
xor dword [ebp - 8], 0x842cf873
mov dword [edi], edx
sub dword [ebp - 0x10], eax
add edi, 0x91322bdf
sub edi, 0x91322bdb
add ebx, 4
loop 0x40395d
add eax, 0x13117
mov ebx, eax
add eax, 0xd808e688
sub eax, 0xd808e683
mov ecx, 0x4d519792
sub ecx, 0x4d119792
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x40656e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b018]
jne 0x406578
repz ret
jmp fcn.004069b9
Function at 0x401166
Capabilities:
Reference cloudflare dns server

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xc908
call fcn.004136c0
push edi
mov dword [ebp - 0xc908], ecx
mov byte [ebp - 0xc800], 0
mov ecx, 0x31ff
xor eax, eax
lea edi, [ebp - 0xc7ff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0xc904], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0xc903]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x41a040
push 0x41a048
push 0x41a050
push 0x41a05c
push 0
push 0x41a064
push str.http:___s_clickinfo.dll_groupgid_dfid_smac_sver_smgc_s
lea eax, [ebp - 0xc904]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x20
push 0xc800
lea ecx, [ebp - 0xc800]
push ecx
lea edx, [ebp - 0xc904]
push edx
call fcn.0040399c
add esp, 0xc
test eax, eax
je 0x401224
push 0xc800
lea eax, [ebp - 0xc800]
push eax
mov ecx, dword [ebp - 0xc908]
call fcn.004010c9
lea ecx, [ebp - 0xc800]
push ecx
mov ecx, dword [ebp - 0xc908]
call fcn.00401397
push 0x104
push 0
lea edx, [ebp - 0xc904]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0xc800
push 0
lea eax, [ebp - 0xc800]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push str.abcdef
push 0x41a0c4
push str.00_33_33
push 0x41a0d8
mov ecx, dword [ebp - 0xc908]
mov edx, dword [ecx + 0x18]
push edx
push 0x41a0e0
push str.http:___s_clickinfo3.dll_groupgid_dfid_smac_sver_smgc_s
lea eax, [ebp - 0xc904]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x20
push 0xc800
lea ecx, [ebp - 0xc800]
push ecx
lea edx, [ebp - 0xc904]
push edx
call fcn.0040399c
add esp, 0xc
test eax, eax
je 0x4012d2
push 0xc800
lea eax, [ebp - 0xc800]
push eax
mov ecx, dword [ebp - 0xc908]
call fcn.004010c9
lea ecx, [ebp - 0xc800]
push ecx
mov ecx, dword [ebp - 0xc908]
call fcn.00401397
jmp 0x4012d4
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4026ec
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c8
push edi
mov dword [ebp - 0x2c8], ecx
mov byte [ebp - 0x134], 0
xor eax, eax
mov dword [ebp - 0x133], eax
mov dword [ebp - 0x12f], eax
mov byte [ebp - 0x12b], al
mov byte [ebp - 0x14], 0
xor ecx, ecx
mov dword [ebp - 0x13], ecx
mov dword [ebp - 0xf], ecx
mov dword [ebp - 0xb], ecx
mov dword [ebp - 7], ecx
mov word [ebp - 3], cx
mov byte [ebp - 1], cl
mov byte [ebp - 0x118], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x2c4], 0
mov ecx, 0x63
xor eax, eax
lea edi, [ebp - 0x2c3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [ebp + 8]
push eax
push 0x41a36c
lea ecx, [ebp - 0x134]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov edx, dword [ebp - 0x122]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x126]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x128]
and ecx, 0xffff
push ecx
push 0x41a374
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
push 0x104
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x41a380
lea ecx, [ebp - 0x118]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
lea edx, [ebp - 0x118]
push edx
push 0x190
lea eax, [ebp - 0x2c4]
push eax
push 0x41bb88
lea ecx, [ebp - 0x14]
push ecx
push 0x41a38c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x134]
push edx
lea eax, [ebp - 0x2c4]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
jne 0x40285b
lea ecx, [ebp - 0x134]
push ecx
lea edx, [ebp - 0x2c4]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x2c4]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0x41a394
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x402862
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c8
push edi
mov dword [ebp - 0x2c8], ecx
mov byte [ebp - 0x134], 0
xor eax, eax
mov dword [ebp - 0x133], eax
mov dword [ebp - 0x12f], eax
mov byte [ebp - 0x12b], al
mov byte [ebp - 0x14], 0
xor ecx, ecx
mov dword [ebp - 0x13], ecx
mov dword [ebp - 0xf], ecx
mov dword [ebp - 0xb], ecx
mov dword [ebp - 7], ecx
mov word [ebp - 3], cx
mov byte [ebp - 1], cl
mov byte [ebp - 0x118], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x2c4], 0
mov ecx, 0x63
xor eax, eax
lea edi, [ebp - 0x2c3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [ebp + 8]
push eax
push str._d
lea ecx, [ebp - 0x134]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov edx, dword [ebp - 0x122]
and edx, 0xffff
push edx
mov eax, dword [ebp - 0x126]
and eax, 0xffff
push eax
mov ecx, dword [ebp - 0x128]
and ecx, 0xffff
push ecx
push str._d_02d_02d
lea edx, [ebp - 0x14]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
push 0x104
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x41a3b0
lea ecx, [ebp - 0x118]
push ecx
call sub.MSVCRT.dll_strcat
add esp, 8
lea edx, [ebp - 0x118]
push edx
push 0x190
lea eax, [ebp - 0x2c4]
push eax
push 0x41bb8c
lea ecx, [ebp - 0x14]
push ecx
push str.gtag
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [ebp - 0x134]
push edx
lea eax, [ebp - 0x2c4]
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x4029a2
mov al, 1
jmp 0x4029a4
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x4029e0
Capabilities:
Check for peb ntglobalflag flag
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414718
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x54
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x58
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0x64
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x10]
add ecx, 0x6c
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x10]
add ecx, 0x70
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x10]
add ecx, 0x74
call sub.MFC42.DLL_CString::CString_2
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x78], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], 0xfffffffe
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x10], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x14], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x18], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x1c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x20], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x24], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x402b40
Capabilities:
Check for peb ntglobalflag flag
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4147a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 9
mov ecx, dword [ebp - 0x10]
add ecx, 0x74
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x10]
add ecx, 0x70
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x10]
add ecx, 0x6c
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x10]
add ecx, 0x68
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0x64
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x58
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x54
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 0x2c
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x40399c
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x403a55
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x403a4b
cmp dword [ebp + 0xc], 0
je 0x403a4b
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
je 0x403a3a
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp + 0x10]
jb 0x403a07
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x409ccf
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x414eb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x5c], 0
je 0x409d14
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 0x5c], 0xffffffff
jne 0x409d29
mov dword [ebp - 0x18], str.handle_not_opened...
push 0x417cd0
lea edx, [ebp - 0x18]
push edx
call sub.MSVCRT.dll__CxxThrowException
push 0
push 0
push 0x41a64c
push 0
push str.HTTP_1.0
mov eax, dword [ebp + 8]
push eax
push 0x41a678
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x5c]
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0x60], eax
mov edx, dword [ebp - 0x28]
cmp dword [edx + 0x60], 0
je 0x409d67
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x60], 0xffffffff
jne 0x409d89
push str.m_hRequest__m_hRequestINVALID_HANDLE_VALUE_request_failed...
call fcn.0040aeb0
add esp, 4
mov dword [ebp - 0x1c], 0x41a6c0
push 0x417cd0
lea ecx, [ebp - 0x1c]
push ecx
call sub.MSVCRT.dll__CxxThrowException
push SysReAllocStringLen
push 0x41a6d4
call sub.MSVCRT.dll_strlen
add esp, 4
push eax
push str.Accept:___r_n
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x60]
push eax
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x409dd4
push 0x41a6f4
call fcn.0040aeb0
add esp, 4
mov dword [ebp - 0x20], str.additional_header_failed...
push 0x417cd0
lea ecx, [ebp - 0x20]
push ecx
call sub.MSVCRT.dll__CxxThrowException
push 0
push 0
push 0
push 0
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x60]
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
jne 0x409e0f
push 0x41a72c
call fcn.0040aeb0
add esp, 4
mov dword [ebp - 0x24], str.request_failed...
push 0x417cd0
lea ecx, [ebp - 0x24]
push ecx
call sub.MSVCRT.dll__CxxThrowException
jmp 0x409e3e
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4