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

Disassembly:
push 0xffffffffffffffff
push 0x46e923
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.00460856
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.00465fc9
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00467521
test eax, eax
je 0x43731c
mov ecx, dword [esp + 0x3c]
call fcn.00465ff6
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 0x4372e0
push edi
mov ecx, esi
call fcn.004635ba
mov ecx, esi
call fcn.00437480
cmp dword [esp + 0x38], 1
jne 0x437315
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.00463724
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 0x439d30
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x439d63
push esi
call fcn.0043ce20
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x439d5c
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 0x439de9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x439dd2
mov eax, dword [esi + 8]
test eax, eax
je 0x439d87
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 0x439dce
cmp eax, 2
je 0x439dd2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x439d7a
cmp eax, 3
je 0x439dad
cmp eax, 1
jne 0x439d7a
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 0x439d7a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x439d7a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00439e10
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x439df8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00439e10
add esp, 4
pop esi
ret

Function at 0x46164c
Capabilities:
Get graphical window text

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

Function at 0x462d3e
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 0x462d80
call fcn.00468a2d
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 0x462d80
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x462d77
xor eax, eax
jmp 0x462d88
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00462d8e
pop edi
pop esi
pop ebx
ret 4

Function at 0x468f5d
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 0x468f8b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x468fa9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00468ec3
jmp 0x468fa9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x468fa9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00468ec3
test edi, edi
mov eax, edi
jne 0x468f93
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4013e0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push 0
push 0
lea eax, [ebp - 0x14]
push 0
push eax
push dword [ebp + 0x10]
call sub.MSVCRT.dll__wsplitpath
add esp, 0x14
push str.KERNEL32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x401438
push str.GetDiskFreeSpaceExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401438
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x14]
push ecx
call eax
test eax, eax
je 0x401473
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
jmp 0x401463
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x401473
mov eax, dword [ebp + 0x10]
imul eax, dword [ebp - 4]
imul eax, dword [ebp - 8]
xor ecx, ecx
cmp ecx, dword [ebp + 0xc]
jl 0x40146f
jg 0x401473
cmp eax, dword [ebp + 8]
ja 0x401473
xor eax, eax
leave
ret
push 1
pop eax
leave
ret
Function at 0x4018ed
Capabilities:
Create process on windows
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
push ebx
push esi
push edi
push 0x10
pop ecx
xor eax, eax
lea edi, [ebp - 0x50]
mov dword [ebp - 0x54], 0x44
rep stosd dword es:[edi], eax
mov eax, dword [0x406c00]
test eax, eax
je 0x40192d
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x4069f0
push dword [0x406c00]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
mov ebx, str.IDM1.tmp
mov esi, 0x4069f8
push ebx
push esi
lea eax, [ebp - 0x464]
push str._s_s
push eax
call edi
lea eax, [ebp - 0x464]
push eax
call fcn.00401a1a
add esp, 0x14
lea eax, [ebp - 0x464]
push esi
push ebx
push esi
push str.__s_s___d___s_
push eax
call edi
xor edi, edi
push 0x10
lea eax, [ebp - 0x10]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0x20
cmp dword [0x4069f0], 0xfffffc18
mov dword [ebp - 0x54], 0x44
jae 0x401a02
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push edi
push 0x24
push edi
push edi
lea eax, [ebp - 0x464]
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4019cb
push 0x405110
push 1
push 1
push edi
push str.Could_not_create_process_in_unpacker
call fcn.00401b82
add esp, 0x14
jmp 0x401a15
cmp dword [ebp - 0xc], edi
je 0x401a15
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [0x4069ec]
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
call esi
jmp 0x401a15
push 0x40
push str.IDM_Setup
push str.Install_process_has_been_stopped_because_of_errors_in_unpacker_procedure
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401a1a
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push ebx
push esi
push edi
call fcn.00401b44
mov esi, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
neg esi
sbb esi, esi
lea eax, [ebp - 4]
and esi, 0x100
push eax
add esi, 0xf003f
mov ebx, str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push esi
push 0
push ebx
push 0x80000002
call edi
test eax, eax
jne 0x401ac4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x800
push eax
lea eax, [ebp - 0x808]
push eax
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401abb
lea eax, [ebp - 0x808]
push 0x40537c
push eax
call sub.MSVCRT.dll_wcsstr
pop ecx
test eax, eax
pop ecx
jne 0x401aaf
lea eax, [ebp - 0x808]
push 0x405374
push eax
call sub.MSVCRT.dll_wcsstr
pop ecx
test eax, eax
pop ecx
je 0x401abb
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push esi
xor esi, esi
push esi
push ebx
push 0x80000001
call edi
test eax, eax
jne 0x401b3f
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x800
push eax
lea eax, [ebp - 0x808]
push eax
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401b36
lea eax, [ebp - 0x808]
push 0x40537c
push eax
call sub.MSVCRT.dll_wcsstr
pop ecx
test eax, eax
pop ecx
jne 0x401b2a
lea eax, [ebp - 0x808]
push 0x405374
push eax
call sub.MSVCRT.dll_wcsstr
pop ecx
test eax, eax
pop ecx
je 0x401b36
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401b82
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
lea eax, [ebp - 4]
push esi
push eax
push 0x400
call edi
push eax
push esi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea eax, [ebp - 0x18]
push 0xa
push eax
call edi
push eax
call sub.MSVCRT.dll__itoa
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp dword [ebp + 0x10], esi
je 0x401c9e
cmp dword [ebp + 0xc], esi
jne 0x401bef
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x400]
push dword [ebp + 8]
push str._s._Error_ID_s
push eax
call edi
add esp, 0x10
jmp 0x401c1a
push dword [ebp + 0xc]
call sub.MSVCRT.dll_strlen
cmp eax, 0x104
pop ecx
ja 0x401c1a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x400]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s.__s_Error_ID_s
push eax
call edi
add esp, 0x14
push esi
push esi
push 4
push esi
push 1
push 0xc0000000
push 0x406c04
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [ebp + 0xc], ebx
jne 0x401c50
push 0x10
push str.IDM_Setup
push str.Could_not_create_open_error_log_file
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x401c9e
push 2
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x400]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x400]
push eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
call ebx
lea eax, [ebp - 0xc]
push esi
push eax
push dword [ebp + 0x18]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0xc]
call ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x14], esi
je 0x401cf7
cmp dword [ebp - 4], esi
je 0x401cf7
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
pop ecx
mov ebx, eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebx + eax + 0xff]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
pop ecx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
push str._s_r_n_s_r_nError_ID:__s
push ebx
call edi
add esp, 0x14
push 0x10
push str.IDM_Setup
push ebx
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
pop edi
pop esi
add eax, ecx
pop ebx
leave
ret
Function at 0x4020d5
Capabilities:
Get file size
Timestomp file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x401180
push 0x4041ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor esi, esi
mov dword [ebp - 4], esi
push esi
push esi
push dword [ebp + 0x14]
push esi
push 1
push dword [ebp + 0x10]
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call edi
mov ebx, eax
mov dword [ebp - 0x20], ebx
cmp ebx, 0xffffffff
jne 0x402170
push dword [ebp + 8]
lea eax, [ebp - 0x234]
push eax
call sub.MSVCRT.dll_wcscpy
push 0x4055d4
push dword [ebp + 8]
call sub.MSVCRT.dll_wcscat
add esp, 0x10
push esi
push esi
push dword [ebp + 0x14]
push esi
push 1
push dword [ebp + 0x10]
push dword [ebp + 8]
call edi
mov ebx, eax
mov dword [ebp - 0x20], ebx
cmp ebx, 0xffffffff
jne 0x402170
push 0x405110
push 1
push 1
push esi
push str.Could_not_create_file_in_GetViewFile
jmp 0x402214
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0xc]
add dword [ecx], eax
mov ecx, dword [ecx]
cmp dword [ebp + 0x10], 0x80000000
jne 0x402198
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x2c], 4
jmp 0x4021af
cmp dword [ebp + 0x10], 0xc0000000
jne 0x4021af
mov dword [ebp - 0x28], 4
mov dword [ebp - 0x2c], 2
push esi
push ecx
push esi
push dword [ebp - 0x28]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], esi
je 0x4021dd
push 0x406e10
push 0x406e20
push 0x406e18
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp dword [ebp + 0x1c], esi
je 0x4021f8
push 0x406e10
push 0x406e20
push 0x406e18
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
cmp edi, esi
jne 0x402224
push 0x405110
push 1
push 1
push esi
push str.Could_not_create_map_file_in_GetViewFile
call fcn.00401b82
add esp, 0x14
or dword [ebp - 4], 0xffffffff
xor eax, eax
jmp 0x402282
push esi
push esi
push esi
push dword [ebp - 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x1c], eax
cmp eax, esi
jne 0x40224f
push 0x405110
push 1
push 1
push esi
push str.Could_not_create_map_view_file_in_GetViewFile
call fcn.00401b82
add esp, 0x14
push edi
call ebx
jmp 0x40227b
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4030c2
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, 0x480000
push 0x2000
add eax, 0x3e8
push esi
push ebx
mov dword [0x4492cc], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 3
push 0x80000000
push esi
call fcn.00405c27
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0xc], edi
mov dword [0x40a668], edi
jne 0x40311c
mov eax, 0x40a754
jmp 0x4032f9
push esi
mov esi, 0x478000
push esi
call fcn.00405f52
push esi
call fcn.00405a82
push eax
push 0x482000
call fcn.00405f52
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [0x429470], eax
mov esi, eax
jle 0x403237
mov ebx, 0x421470
mov eax, dword [0x4492d4]
mov edi, esi
neg eax
sbb eax, eax
and eax, 0x7e00
add eax, 0x200
cmp esi, eax
jl 0x403170
mov edi, eax
push edi
push ebx
call fcn.004034f2
test eax, eax
je 0x4032a1
cmp dword [0x4492d4], 0
jne 0x403202
push 0x1c
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.00405be2
mov eax, dword [ebp - 0x28]
test eax, 0xfffffff0
jne 0x403210
cmp dword [ebp - 0x24], 0xdeadbeef
jne 0x403210
cmp dword [ebp - 0x18], 0x74736e49
jne 0x403210
cmp dword [ebp - 0x1c], 0x74666f73
jne 0x403210
cmp dword [ebp - 0x20], 0x6c6c754e
jne 0x403210
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [0x415468]
and eax, 2
or dword [0x449360], eax
mov eax, dword [ebp - 0x10]
cmp eax, esi
mov dword [0x4492d4], ecx
jg 0x40329a
test byte [ebp + 8], 8
jne 0x4031f4
test byte [ebp + 8], 4
jne 0x403235
inc dword [ebp - 4]
lea esi, [eax - 4]
cmp edi, esi
jbe 0x403210
mov edi, esi
jmp 0x403210
test byte [ebp + 8], 2
jne 0x403210
push 0
call fcn.00403067
pop ecx
cmp esi, dword [0x429470]
jge 0x403225
push edi
push ebx
push dword [ebp - 8]
call fcn.004064bd
mov dword [ebp - 8], eax
add dword [0x415468], edi
sub esi, edi
test esi, esi
jg 0x403155
xor ebx, ebx
push 1
call fcn.00403067
cmp dword [0x4492d4], ebx
pop ecx
je 0x40329a
cmp dword [ebp - 4], ebx
je 0x40326e
push dword [0x415468]
call fcn.00403524
lea eax, [ebp + 8]
push 4
push eax
call fcn.004034f2
test eax, eax
je 0x40329a
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x40329a
push dword [ebp - 0x14]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov eax, dword [0x4492d4]
add eax, 0x1c
push eax
call fcn.00403524
push dword [ebp - 0x14]
push esi
push ebx
push 0xffffffffffffffff
call fcn.00403300
cmp eax, dword [ebp - 0x14]
je 0x4032ab
mov eax, 0x40a688
jmp 0x4032f9
push 1
call fcn.00403067
pop ecx
jmp 0x40329a
test byte [ebp - 0x28], 1
mov dword [0x4492d0], esi
mov eax, dword [esi]
mov dword [0x4492d8], eax
je 0x4032c4
inc dword [0x4492dc]
lea edi, [esi + 0x3c]
push 8
mov eax, edi
pop ecx
add dword [eax], esi
dec ecx
sub eax, 8
test ecx, ecx
ja 0x4032cc
push 1
push 0
push 0
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esi, 4
push 0x40
push esi
push 0x4492e0
mov dword [edi], eax
call fcn.00405be2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x401700
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
lea eax, [esp]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x401714
pop ecx
ret
mov al, byte [esp]
test al, 0x20
je 0x401720
xor eax, eax
pop ecx
ret
test al, 7
jne 0x401728
xor eax, eax
pop ecx
ret
mov eax, 1
pop ecx
ret

Function at 0x4017e0
Capabilities:
Parse url

Disassembly:
push esi
mov esi, dword [esp + 8]
xor edx, edx
cmp esi, edx
je 0x401830
mov eax, dword [esp + 0xc]
cmp eax, edx
je 0x401830
push eax
push edx
mov ecx, 1
push edx
push esi
mov dword [eax], 0x3c
mov dword [eax + 8], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 4], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x1c], edx
mov dword [eax + 0x24], edx
mov dword [eax + 0x2c], edx
mov dword [eax + 0x34], edx
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
pop esi
ret 8
xor eax, eax
pop esi
ret 8
Function at 0x401840
Capabilities:
Check http status code
Connect to http server
Create http request
Send data
Send http request

Disassembly:
sub esp, 0x248
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x25c]
mov esi, ecx
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x18], ebx
mov dword [esi + 0x21c], ebx
mov dword [esi + 0x220], ebx
je 0x401a69
call fcn.00401700
test eax, eax
je 0x401a69
cmp dword [esi + 0x21c], 1
je 0x401a69
lea eax, [esp + 0x1c]
mov ecx, esi
push eax
push edi
xor ebp, ebp
call fcn.004017e0
test eax, eax
je 0x401a69
cmp dword [esp + 0x28], 3
jne 0x401a69
mov eax, dword [esp + 0x260]
mov dword [esp + 0x14], 0xffffffff
test eax, eax
je 0x4018df
push ebp
push 0x80
push 2
push ebp
push ebp
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x401a58
cmp word [esi + 0x14], 0
lea eax, [esi + 0x14]
jne 0x4018ee
mov eax, str.Mozila_4.0__compatible__MSIE_5.0__ZUMAGAME_
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
je 0x401a2d
mov eax, dword [esi + 0x21c]
test eax, eax
jne 0x401a2d
push edi
mov ecx, esi
call fcn.00401730
push 2
mov ecx, esi
call fcn.00401b80
mov ebx, dword [esp + 0x30]
cmp ebx, 0x7fffffff
ja 0x401978
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x58]
mov edx, 0x100
lea eax, [esp + 0x58]
sub edi, ecx
lea ecx, [ebx + edx - 0x100]
test ecx, ecx
je 0x401968
mov cx, word [edi + eax]
test cx, cx
je 0x401968
mov word [eax], cx
add eax, 2
dec edx
jne 0x401949
jmp 0x40196c
test edx, edx
jne 0x40196f
sub eax, 2
mov edi, dword [esp + 0x10]
mov word [eax], 0
mov edx, dword [esp + 0x34]
push 0
push 0
push 3
push 0
push 0
lea eax, [esp + 0x6c]
push edx
push eax
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ebx, eax
test ebx, ebx
je 0x401a2d
mov eax, dword [esi + 0x21c]
test eax, eax
jne 0x401a2d
mov ecx, dword [esp + 0x48]
push 0
push 0x84000100
push 0x419060
push 0
push str.HTTP_1.1
push ecx
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov ebp, eax
test ebp, ebp
je 0x401a2d
mov eax, dword [esi + 0x21c]
test eax, eax
jne 0x401a2d
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov edi, eax
lea eax, [esi + 0x220]
push eax
push 0x13
push ebp
mov ecx, esi
call fcn.004017a0
test edi, edi
je 0x401a29
cmp dword [esi + 0x220], 0xc8
jne 0x401a29
mov eax, dword [esi + 0x21c]
test eax, eax
jne 0x401a29
mov edx, dword [esp + 0x14]
mov ecx, esi
push edx
push ebp
call fcn.00401a80
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x401a3d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test ebp, ebp
je 0x401a4a
push ebp
call esi
test ebx, ebx
je 0x401a51
push ebx
call esi
test edi, edi
je 0x401a58
push edi
call esi
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x248
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x248
ret 8
Function at 0x401a80
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
sub esp, 0x410
push ebx
push esi
mov esi, ecx
lea eax, [esp + 8]
mov ecx, dword [esp + 0x41c]
push edi
push eax
push 5
xor edi, edi
push ecx
mov ecx, esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call fcn.004017a0
test eax, eax
je 0x401ab7
mov dword [esp + 0x10], 1
push 4
mov ecx, esi
call fcn.00401b80
mov eax, dword [esi + 0x21c]
xor ebx, ebx
cmp eax, edi
jne 0x401b57
push ebp
mov ebp, dword [esp + 0x428]
mov ecx, dword [esp + 0x424]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push 0x400
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401b56
mov eax, dword [esp + 0x18]
test eax, eax
je 0x401b56
cmp ebp, 0xffffffff
je 0x401b1e
lea edx, [esp + 0x1c]
push 0
push edx
push eax
lea eax, [esp + 0x2c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x18]
add edi, eax
mov eax, ebx
cdq
mov ecx, 0xa
idiv ecx
test edx, edx
jne 0x401b3d
mov edx, dword [esp + 0x10]
push 5
push edx
push edi
mov ecx, esi
call fcn.00401bb0
mov eax, dword [esp + 0x14]
inc ebx
test eax, eax
je 0x401b4c
cmp edi, dword [esp + 0x10]
jae 0x401b56
mov eax, dword [esi + 0x21c]
test eax, eax
je 0x401ad8
pop ebp
push 6
mov ecx, esi
call fcn.00401b80
mov ecx, dword [esi + 0x21c]
xor eax, eax
test ecx, ecx
pop edi
pop esi
sete al
pop ebx
add esp, 0x410
ret 8