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

Disassembly:
push 0xffffffffffffffff
push 0x490e13
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.00482129
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.0048789c
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00488e37
test eax, eax
je 0x44ff3c
mov ecx, dword [esp + 0x3c]
call fcn.004878c9
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 0x44ff00
push edi
mov ecx, esi
call fcn.00484e8b
mov ecx, esi
call fcn.004500a0
cmp dword [esp + 0x38], 1
jne 0x44ff35
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.00484ff5
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 0x452950
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x452983
push esi
call fcn.00455a50
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45297c
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 0x452a09
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4529f2
mov eax, dword [esi + 8]
test eax, eax
je 0x4529a7
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 0x4529ee
cmp eax, 2
je 0x4529f2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45299a
cmp eax, 3
je 0x4529cd
cmp eax, 1
jne 0x45299a
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 0x45299a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45299a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00452a30
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x452a18
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00452a30
add esp, 4
pop esi
ret

Function at 0x463690
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x463733
test eax, eax
jbe 0x463733
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x463733
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x4636de
xor esi, esi
jmp 0x4636e4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x46370f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00413370
add esi, eax
push esi
mov ebx, esi
call fcn.00413370
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4636f0
pop ebp
test edi, edi
pop edi
jne 0x463733
test ebx, ebx
je 0x463733
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00470a30
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x463875
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x46398d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46398d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0048257b
mov esi, eax
test esi, esi
je 0x46398d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x46398d
mov ecx, esi
call fcn.004637e0
cmp edi, eax
jge 0x46398d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x463913
mov dword [esp + 0x34], 1
jmp 0x46396e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x46398d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00462dc0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x482f1f
Capabilities:
Get graphical window text

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

Function at 0x484611
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 0x484653
call fcn.0048a33e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x484653
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48464a
xor eax, eax
jmp 0x48465b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00484661
pop edi
pop esi
pop ebx
ret 4
Function at 0x48a86e
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 0x48a89c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48a8ba
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048a7d4
jmp 0x48a8ba
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48a8ba
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048a7d4
test edi, edi
mov eax, edi
jne 0x48a8a4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push str.EnableUE
push str.Software360WallPaper
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40103e
cmp dword [ebp - 4], 1
je 0x401047
cmp eax, 2
je 0x401047
xor eax, eax
leave
ret
xor eax, eax
inc eax
leave
ret
Function at 0x4021e6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4021fd
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x402232
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x40222e
cmp edi, eax
jae 0x402232
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x402220
cmp edi, eax
jb 0x402236
xor eax, eax
jmp 0x40223f
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x402621
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [edi], ebx
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x402691
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi], eax
cmp eax, ebx
je 0x402688
add eax, 2
push eax
call fcn.0040b0ba
mov dword [edi], eax
mov ecx, dword [esi]
inc ecx
inc ecx
push ecx
push ebx
push eax
call fcn.0040d620
add esp, 0x10
push ebx
lea eax, [ebp - 8]
push eax
push dword [esi]
push dword [edi]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
leave
ret
Function at 0x4028fa
Capabilities:
Check if file exists
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x219c]
mov eax, 0x221c
call fcn.00417700
mov eax, dword [0x4241d0]
xor eax, ebp
mov dword [ebp + 0x2198], eax
mov eax, dword [ebp + 0x21a4]
mov dword [ebp - 0x74], eax
test eax, eax
jne 0x40292d
xor eax, eax
jmp 0x402a27
xor eax, eax
push 0x206
push eax
mov word [ebp + 0x1f90], ax
lea eax, [ebp + 0x1f92]
push eax
mov dword [ebp - 0x78], 1
call fcn.0040d620
xor eax, eax
push 0x1ffe
push eax
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x6e]
push eax
call fcn.0040d620
add esp, 0x18
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x1f90]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360Desktop.exe
push 0x80000002
mov dword [ebp - 0x7c], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4029a4
lea eax, [ebp + 0x1f90]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4029b8
push 0x104
lea eax, [ebp + 0x1f90]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x1f90]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp + 0x1f90]
push 0x5c
push eax
call fcn.0040bde9
pop ecx
pop ecx
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp + 0x1f90]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4029e4
sub eax, edx
sar eax, 1
je 0x402926
push 0x1000
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x1f90]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x402926
mov ecx, dword [ebp - 0x74]
lea edx, [ebp + 0x1f90]
call fcn.004028bf
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x2198]
xor ecx, ebp
call fcn.0040b557
add ebp, 0x219c
leave
ret
Function at 0x402d51
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x220c]
mov eax, 0x220c
call fcn.00417700
push 0xffffffffffffffff
push 0x41a1ca
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4241d0]
xor eax, ebp
mov dword [ebp + 0x2208], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], ebx
push 0x206
mov word [ebp + 0x2000], ax
lea eax, [ebp + 0x2002]
push ebx
push eax
call fcn.0040d620
add esp, 0xc
push 0x104
lea eax, [ebp + 0x2000]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x2000]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp + 0x2000]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.360wpapp.exe
lea eax, [ebp + 0x2000]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x2000]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402ecc
mov esi, 0x1fff
push esi
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.0040d620
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0x2000]
push eax
mov dword [ebp - 0x18], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
je 0x402ecc
cmp eax, esi
ja 0x402ecc
lea ecx, [ebp]
push ecx
push eax
push ebx
lea eax, [ebp + 0x2000]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x402ecc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x41d170
lea eax, [ebp]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x402ecc
mov eax, dword [0x4262cc]
mov ecx, 0x4262cc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push 0x41d174
lea eax, [ebp - 0x14]
call fcn.00402719
mov esi, dword [ebp - 0x14]
add esi, 0xfffffff0
add esp, 0x14
mov eax, esi
call fcn.00401775
add eax, 0x10
mov dword [edi], eax
mov eax, esi
call fcn.004026d1
jmp 0x402ed7
push 0x41d070
push edi
call fcn.004025dc
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp + 0x2208]
xor ecx, ebp
call fcn.0040b557
add ebp, 0x220c
leave
ret
Function at 0x402efb
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push 0x234
mov eax, 0x41a19a
call fcn.0040d5c6
lea eax, [ebp - 0x23c]
push eax
call fcn.00403717
push 0x41d18c
lea eax, [ebp - 0x220]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004025dc
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x220]
push eax
mov byte [ebp - 4], 1
call fcn.00402c84
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x220]
pop ecx
pop ecx
add eax, 0xfffffff0
call fcn.004026d1
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x230]
sub eax, ecx
and eax, 0xfffffffc
cmp eax, 0x10
jne 0x403054
lea eax, [ebp - 0x224]
push eax
call fcn.00403666
pop ecx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x22c]
sub eax, dword [ebp - 0x230]
sar eax, 2
cmp eax, 2
ja 0x402f9a
call fcn.0040bad9
mov eax, dword [ebp - 0x230]
mov eax, dword [eax + 8]
sub eax, 0x10
call fcn.00401775
lea esi, [eax + 0x10]
mov dword [ebp - 0x240], esi
mov byte [ebp - 4], 3
mov eax, dword [0x4262cc]
mov ecx, 0x4262cc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
mov byte [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
push dword [ebp - 0x224]
lea eax, [ebp - 0x220]
push str.http:__stat.apc.360.cn_stat.html_typeopenactionbengkuilesorrydeskbanben_sdeakbanhao_st_d
call fcn.00402719
xor eax, eax
push 0x206
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push ebx
push eax
call fcn.0040d620
mov edi, dword [ebp - 0x220]
add esp, 0x1c
push ebx
push ebx
push 0x104
lea eax, [ebp - 0x21c]
push eax
push edi
push ebx
call sub.urlmon.dll_URLDownloadToCacheFileW
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [edi - 0x10]
call fcn.004026d1
lea eax, [esi - 0x10]
call fcn.004026d1
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
call fcn.004026d1
lea esi, [ebp - 0x23c]
call fcn.00403750
call fcn.0040d610
ret

Function at 0x4034fe
Capabilities:
Create thread
Terminate thread

Disassembly:
push esi
push edi
xor esi, esi
push esi
push esi
push dword [esp + 0x14]
cmp dword [esp + 0x1c], esi
je 0x403515
push 0x403287
jmp 0x40351a
push 0x403065
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 0x493e0
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40353f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret
Function at 0x403f3f
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, eax
cmp byte [esi + 0x38], 0
push edi
je 0x404051
cmp dword [esi + 0x34], 0x10
jb 0x403f5f
mov ecx, dword [esi + 0x20]
jmp 0x403f62
lea ecx, [esi + 0x20]
cmp dword [esi + 0x18], 0x10
jb 0x403f6d
mov eax, dword [esi + 4]
jmp 0x403f70
lea eax, [esi + 4]
push ecx
push eax
mov edi, str.__MULTI_PARTS_FORM_DATA_BOUNDARY
push edi
push str.___s_r_nContent_Disposition:_form_data__name__s___filename__s__r_n_r_n
push dword [ebp + 8]
call fcn.0040bf76
add esp, 0x14
lea eax, [edi + 1]
mov cl, byte [edi]
inc edi
test cl, cl
jne 0x403f8b
sub edi, eax
mov eax, dword [esi + 0x30]
add eax, dword [esi + 0x14]
cmp dword [esi + 0x34], 0x10
lea edi, [eax + edi + 0x3c]
jb 0x403fa9
mov esi, dword [esi + 0x20]
jmp 0x403fac
add esi, 0x20
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0xc], esi
cmp esi, ebx
je 0x40409b
cmp esi, 0xffffffff
je 0x40409b
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov ebx, 0x400
push ebx
add eax, edi
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x40402c
cmp dword [ebp - 4], 0
jbe 0x404032
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x10]
ja 0x404035
add ecx, dword [ebp - 4]
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
add eax, edi
mov dword [ebp - 8], ecx
push ebx
add ecx, eax
push ecx
push dword [ebp - 0xc]
call esi
test eax, eax
jne 0x404006
mov ecx, dword [ebp - 8]
push dword [ebp - 0xc]
add edi, ecx
mov ecx, dword [ebp + 8]
mov eax, 0xa0d
mov word [edi + ecx], ax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add edi, 2
jmp 0x40409b
cmp dword [esi + 0x34], 0x10
jb 0x40405c
mov ecx, dword [esi + 0x20]
jmp 0x40405f
lea ecx, [esi + 0x20]
cmp dword [esi + 0x18], 0x10
jb 0x40406a
mov eax, dword [esi + 4]
jmp 0x40406d
lea eax, [esi + 4]
push ecx
push eax
mov edi, str.__MULTI_PARTS_FORM_DATA_BOUNDARY
push edi
push str.___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s_r_n
push dword [ebp + 8]
call fcn.0040bf76
add esp, 0x14
lea eax, [edi + 1]
mov cl, byte [edi]
inc edi
test cl, cl
jne 0x404088
sub edi, eax
mov eax, dword [esi + 0x30]
add eax, dword [esi + 0x14]
lea edi, [eax + edi + 0x31]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x404254
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
push 0x1c
mov eax, 0x419f3c
call fcn.0040d590
mov esi, ecx
mov dword [ebp - 0x18], esi
xor edi, edi
push edi
push edi
push edi
push edi
push dword [ebp + 0x1c]
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], edi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 4], eax
cmp eax, edi
je 0x4043aa
cmp eax, 0xffffffff
je 0x4043aa
mov ebx, dword [ebp + 0x18]
mov ecx, ebx
sub ecx, edi
je 0x4042bc
dec ecx
je 0x4042b0
dec ecx
jne 0x4042e2
mov ecx, dword [ebp + 0xc]
cmp ecx, edi
jne 0x4042aa
mov ecx, 0x1bb
push edi
push edi
push 3
jmp 0x4042ce
mov ecx, dword [ebp + 0xc]
cmp ecx, edi
jne 0x4042aa
push 0x50
pop ecx
jmp 0x4042aa
mov ecx, dword [ebp + 0xc]
cmp ecx, edi
jne 0x4042c6
push 0x15
pop ecx
push edi
push 0x8000000
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
push dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
cmp eax, edi
je 0x404396
cmp eax, 0xffffffff
je 0x404396
push edi
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x404316
mov dword [ebp - 0x1c], str.connect_failed...
push 0x422228
lea eax, [ebp - 0x1c]
push eax
call fcn.0040d12b
push dword [ebp + 8]
lea ecx, [esi + 0x10]
call fcn.00401ae6
mov eax, dword [ebp + 0xc]
cmp eax, edi
jne 0x404358
mov eax, ebx
sub eax, edi
je 0x40434c
dec eax
je 0x404340
dec eax
jne 0x40435e
mov dword [esi + 0x80], 0x1bb
jmp 0x40435e
mov dword [esi + 0x80], 0x50
jmp 0x40435e
mov dword [esi + 0x80], 0x15
jmp 0x40435e
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], ebx
cmp dword [ebp + 0x10], edi
je 0x404374
push dword [ebp + 0x10]
lea ecx, [esi + 0x2c]
call fcn.00401ae6
cmp dword [ebp + 0x14], edi
je 0x404384
push dword [ebp + 0x14]
lea ecx, [esi + 0x48]
call fcn.00401ae6
mov eax, esi
call fcn.00404898
mov al, byte [ebp - 0x11]
call fcn.0040d5fc
ret 0x18
mov dword [ebp - 0x20], str.connect_failed...
push 0x422228
lea eax, [ebp - 0x20]
jmp 0x404310
mov dword [ebp - 0x24], str.open_internet_failed...
push 0x422228
lea eax, [ebp - 0x24]
jmp 0x404310
Function at 0x404da4
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebx + 0xa0], edi
jbe 0x404e5c
mov eax, dword [ebx + 0x9c]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 0x88]
mov dword [ebp - 0xc], eax
mov esi, dword [ebx + 0x9c]
mov eax, dword [ebx + 0x88]
cmp dword [ebp - 0xc], edi
je 0x404de7
cmp dword [ebp - 0xc], eax
je 0x404dec
call fcn.0040bad9
cmp dword [ebp - 8], esi
je 0x404e5c
lea esi, [ebp - 0xc]
call fcn.004057ae
mov eax, dword [eax]
cmp byte [eax + 0x38], 0
je 0x404e42
cmp dword [eax + 0x34], 0x10
jb 0x404e0c
mov eax, dword [eax + 0x20]
jmp 0x404e0f
add eax, 0x20
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
add esi, 0x1800
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404e47
mov esi, 0x2000
add dword [ebp - 4], esi
lea edi, [ebp - 0x14]
lea esi, [ebp - 0xc]
call fcn.004057d9
xor edi, edi
jmp 0x404dd1
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x40537f
Capabilities:
Read data from internet
Receive data

Disassembly:
push 0x14
mov eax, 0x419d95
call fcn.0040d590
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4053b2
mov dword [ebp - 0x18], str.connection_failed...
push 0x422228
lea eax, [ebp - 0x18]
push eax
call fcn.0040d12b
lea ecx, [ebp - 0x14]
push ecx
push 0x64
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4053ed
mov dword [ebp - 0x1c], str.response_failed...
push 0x422228
lea eax, [ebp - 0x1c]
jmp 0x4053ac
mov eax, dword [ebp - 0x14]
call fcn.0040d5fc
ret 8