joyce8/EMBER2024-capa huggingface dataset:
Function at 0x527910
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x546590
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.0051c821
mov eax, dword [0x7632b0]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.0051c753
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.005283d0
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x5279b7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x5279ae
cmp al, 0xff
je 0x5279ae
dec al
mov byte [ecx], al
jmp 0x5279b7
push ecx
call fcn.00531903
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x5279e8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x5279df
cmp al, 0xff
je 0x5279df
dec al
mov byte [ecx], al
jmp 0x5279e8
push ecx
call fcn.00531903
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x533fb3
Capabilities:
Get graphical window text

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

Function at 0x5356a8
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 0x5356ea
call fcn.0053b89f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5356ea
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5356e1
xor eax, eax
jmp 0x5356f2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005356f8
pop edi
pop esi
pop ebx
ret 4

Function at 0x53bdcf
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 0x53bdfd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x53be1b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0053bd35
jmp 0x53be1b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x53be1b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0053bd35
test edi, edi
mov eax, edi
jne 0x53be05
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4012f7
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 1
push edi
jne 0x40133e
mov eax, dword [esi + 0x28]
mov eax, dword [eax + 0x40]
push 0x64
push 0
push 0x406
lea edi, [esi + 0x54]
push dword [edi]
mov dword [esi + 0x20], eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
mov eax, edi
call fcn.0040148e
push 0
push 0xc8
push 0x64
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x4013e7
cmp dword [ebp + 8], 3
jne 0x4013e7
push 0x64
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0x64
lea eax, [esi + 0x54]
call fcn.0040148e
mov edi, dword [sym.imp.USER32.dll_SetDlgItemTextW]
push str.100_
push 0x8ce
push dword [esi + 4]
call edi
push 0x82a3
lea eax, [ebp + 8]
call fcn.00401ac3
pop ecx
push dword [eax]
push 0xffffffffffffffff
push dword [esi + 4]
call edi
mov eax, dword [ebp + 8]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x40139d
push eax
call fcn.0040171a
mov eax, dword [esi + 0x28]
call fcn.00407c1c
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push dword [esi + 4]
call edi
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push dword [esi + 4]
call edi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
push 0
push 0xf120
push 0x112
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_BringWindowToTop]
xor eax, eax
pop edi
pop ebp
ret 4

Function at 0x4019ea
Capabilities:
Get system information on windows

Disassembly:
push 0x3c
push 0x419ef0
call fcn.0040f298
mov ebx, ecx
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x48]
mov edi, eax
mov dword [ebp - 0x20], edi
and dword [ebx], 0
push 4
push 0x2000
shl eax, 0xa
push eax
push 0
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call esi
test eax, eax
je 0x401a8b
mov dword [ebp - 0x24], edi
push 4
push 0x1000
push edi
push eax
call esi
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x401a8b
and dword [ebp - 4], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.0040ddb4
add esp, 0xc
mov dword [ebp - 0x28], eax
or dword [ebp - 4], 0xffffffff
mov dword [ebx], esi
jmp 0x401a8d
xor eax, eax
call fcn.0040f2d3
ret

Function at 0x401b7f
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 0x401b96
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x401ba8
xor eax, eax
jmp 0x401bd9
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x401bcb
cmp edi, eax
jae 0x401ba4
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x401bbd
cmp edi, eax
jae 0x401ba4
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x401eb4
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ecx
push ebp
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 8], ebp
jne 0x401ee2
xor eax, eax
jmp 0x401f40
push ebx
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, 0xffffffff
je 0x401f34
cmp esi, 0x40
jbe 0x401f34
push edi
push esi
push edi
push 2
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
cmp ebp, edi
je 0x401f34
push edi
push edi
push edi
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x401f31
cmp word [edi], 0x5a4d
je 0x401f44
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call ebx
xor esi, esi
push dword [esp + 0x10]
call ebx
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
pop ecx
ret
add esi, 0xffffffc0
push esi
lea edx, [edi + 0x40]
call fcn.00401e73
mov esi, eax
movzx eax, word [edi + 0x26]
pop ecx
movzx ecx, word [edi + 0x24]
shl eax, 0x10
or eax, ecx
sub esi, eax
neg esi
sbb esi, esi
push edi
inc esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebp
call ebx
jmp 0x401f36
Function at 0x404185
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40418d
mov eax, dword [esp + 0xc]
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x4041bf
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0xc

Function at 0x404322
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x41c0b0]
push ebx
push esi
push edi
push 0x2001f
push dword [ebp + 0x1a0]
mov ebx, ecx
push dword [ebx]
mov dword [ebp + 0x194], eax
xor esi, esi
lea eax, [ebp - 0x70]
mov dword [ebp - 0x70], esi
call fcn.0040422d
mov edi, eax
cmp edi, esi
je 0x404372
cmp dword [ebp - 0x70], esi
je 0x40436e
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x4043dc
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40438d
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.00404322
cmp eax, esi
mov dword [ebp - 0x78], eax
jne 0x4043f4
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
je 0x40437a
cmp dword [ebp - 0x70], esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4043c0
push dword [ebp - 0x70]
call edi
mov dword [ebp - 0x70], esi
push dword [ebp + 0x1a0]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0x70], esi
mov ebx, eax
je 0x4043da
push dword [ebp - 0x70]
call edi
mov eax, ebx
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
pop ebx
call fcn.0040f289
add ebp, 0x198
leave
ret 4
cmp dword [ebp - 0x70], esi
je 0x404402
push dword [ebp - 0x70]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x78]
jmp 0x4043dc

Function at 0x4047be
Capabilities:
Get system information on windows

Disassembly:
push 0x3c
push 0x419ee0
call fcn.0040f298
mov ebx, ecx
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x48]
mov edi, eax
mov dword [ebp - 0x20], edi
and dword [ebx], 0
push 4
push 0x2000
shl eax, 0xa
push eax
push 0
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call esi
test eax, eax
je 0x40485f
mov dword [ebp - 0x24], edi
push 4
push 0x1000
push edi
push eax
call esi
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x40485f
and dword [ebp - 4], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call fcn.0040ea40
add esp, 0xc
mov dword [ebp - 0x28], eax
or dword [ebp - 4], 0xffffffff
mov dword [ebx], esi
jmp 0x404861
xor eax, eax
call fcn.0040f2d3
ret
Function at 0x404d1e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp - 4]
push eax
push dword [esi]
xor edi, edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, eax
or edx, 0xffffffff
cmp ecx, edx
jne 0x404d41
mov eax, edx
jmp 0x404d72
mov edx, dword [ebp - 4]
push ebx
xor ebx, ebx
xor eax, eax
or edx, ebx
or eax, ecx
cmp dword [esi + 0x20], edi
pop ebx
je 0x404d72
cmp dword [esi + 0x14], edi
je 0x404d72
mov ecx, dword [esi + 0x1c]
add ecx, dword [esi + 8]
push 0
pop edi
adc edi, dword [esi + 0xc]
cmp edx, edi
ja 0x404d72
jb 0x404d6e
cmp eax, ecx
ja 0x404d72
mov eax, ecx
mov edx, edi
pop edi
leave
ret

Function at 0x404d75
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x18]
mov esi, eax
push dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 8]
call fcn.00404dff
test eax, eax
je 0x404df1
test byte [ebp + 0xf], 0x40
push ebx
jne 0x404ded
push edi
lea eax, [ebp + 0xc]
push eax
push dword [esi]
xor edi, edi
mov dword [ebp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov ebx, eax
push ebx
push dword [ebp + 0xc]
push 2
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, edi
mov dword [ebp + 0x18], eax
je 0x404ddf
push ebx
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [ebp + 0x18]
mov dword [esi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x2c]
cmp eax, edi
pop edi
je 0x404df6
mov dword [esi + 0x30], eax
mov dword [esi + 0x28], ebx
xor eax, eax
inc eax
pop ebx
pop esi
pop ebp
ret 0x14
call fcn.00404fa9
xor eax, eax
jmp 0x404df0

Function at 0x404ee5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x404f3e
cmp dword [esi + 0x14], edi
je 0x404f3b
cmp dword [esi + 0x1c], edi
je 0x404f3b
push dword [esi + 0xc]
push dword [esi + 8]
push esi
call fcn.00404f44
and eax, edx
cmp eax, 0xffffffff
je 0x404f28
push edi
lea eax, [ebp - 4]
push eax
push dword [esi + 0x1c]
mov dword [ebp - 4], edi
push dword [esi + 0x14]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x404f2c
xor eax, eax
jmp 0x404f41
mov eax, dword [ebp - 4]
add dword [esi + 8], eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
adc dword [esi + 0xc], edi
mov dword [esi + 0x20], edi
xor eax, eax
inc eax
pop edi
leave
ret
Function at 0x4067b4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test eax, eax
je 0x4067d4
cmp word [eax], 0
je 0x4067d4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4067d4
and al, 0x10
sub al, 0x10
neg al
sbb eax, eax
inc eax
ret
xor eax, eax
ret

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

Disassembly:
test eax, eax
je 0x40680e
cmp word [eax], 0
je 0x40680e
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40680e
and al, 0x10
xor ecx, ecx
cmp al, 0x10
setne cl
mov eax, ecx
ret
xor eax, eax
ret

Function at 0x406f9b
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [0x41d658], ebx
push esi
mov esi, eax
je 0x406fb2
call fcn.004070bd
cmp esi, ebx
je 0x407080
cmp dword [esi], 0x18
jne 0x407080
push edi
push dword [esi + 8]
lea edi, [ebp - 4]
call fcn.00405652
mov eax, dword [esi + 4]
cmp eax, ebx
mov edi, dword [ebp - 4]
jne 0x406fe4
push 0x10000000
push ebx
push ebx
push 1
jmp 0x40705e
cmp eax, 1
je 0x407056
cmp dword [edi - 8], ebx
je 0x407056
push dword [esi + 0x10]
mov eax, 0x41d700
call fcn.004016a1
push dword [esi + 0x14]
mov eax, 0x41d704
call fcn.004016a1
push dword [esi + 0xc]
mov eax, dword [0x41cc20]
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push str.httphttp:___s:_d
push eax
call fcn.00401931
mov esi, dword [ebp - 4]
add esp, 0x10
push 0x10000000
push str._local_
push esi
push 3
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [0x41d658], eax
lea eax, [esi - 0xc]
cmp eax, dword [0x41cc24]
je 0x40706c
push eax
call fcn.0040171a
jmp 0x40706c
push 0x10000000
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [0x41d658], eax
lea eax, [edi - 0xc]
cmp eax, dword [0x41cc24]
pop edi
je 0x407096
push eax
call fcn.0040171a
jmp 0x407096
push 0x10000000
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [0x41d658], eax
mov eax, dword [0x41d658]
pop esi
cmp eax, ebx
pop ebx
jne 0x4070a5
xor eax, eax
leave
ret
push 0x406c8a
push eax
call dword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
leave
ret
Function at 0x407141
Capabilities:
Check http status code
Get http content length

Disassembly:
push ebp
lea ebp, [esp - 0x794]
sub esp, 0x814
mov eax, dword [0x41c0b0]
push ebx
push esi
mov esi, ecx
mov dword [ebp + 0x790], eax
mov eax, dword [esi + 0x60]
push edi
xor edi, edi
cmp eax, edi
je 0x4072f2
cmp dword [esi + 0x6c], edi
je 0x4072f2
cmp dword [esi + 0x70], edi
je 0x4072f2
mov ebx, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push edi
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x74]
push ecx
push 0x20000013
push eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], 4
call ebx
test eax, eax
je 0x4072f2
mov eax, dword [ebp - 0x74]
cmp eax, 0x197
jne 0x4071ef
cmp dword [esi + 0x40], edi
jne 0x40723e
mov eax, dword [0x41d700]
mov ecx, dword [eax - 8]
cmp ecx, edi
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionW]
je 0x4071d9
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x2b
push dword [esi + 0x60]
call ebx
mov eax, dword [0x41d704]
mov ecx, dword [eax - 8]
cmp ecx, edi
je 0x407233
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x2c
jmp 0x40722e
cmp eax, 0x191
jne 0x40723e
cmp dword [esi + 0x40], edi
jne 0x40723e
mov eax, dword [0x41d700]
mov ecx, dword [eax - 8]
cmp ecx, edi
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionW]
je 0x40721a
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x1c
push dword [esi + 0x60]
call ebx
mov eax, dword [0x41d704]
mov ecx, dword [eax - 8]
cmp ecx, edi
je 0x407233
lea ecx, [ecx + ecx + 2]
push ecx
push eax
push 0x1d
push dword [esi + 0x60]
call ebx
xor eax, eax
inc eax
mov dword [esi + 0x40], eax
jmp 0x4072f4
cmp eax, 0x190
mov dword [esi + 0x28], eax
jae 0x4072f2
push edi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
push 0x20000005
push dword [esi + 0x60]
call ebx
test eax, eax
je 0x4072f2
mov ecx, dword [ebp - 0x74]
mov eax, dword [esi + 0x70]
mov dword [esi + 0x2c], ecx
mov edx, dword [eax + 0xc]
add edx, dword [eax + 4]
mov eax, dword [esi + 0x6c]
add edx, ecx
mov dword [eax + 0xc], edx
mov word [ebp - 0x70], di
xor eax, eax
mov ecx, 0x1ff
lea edi, [ebp - 0x6e]
rep stosd dword es:[edi], eax
push 0
stosw word es:[edi], ax
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x70]
push eax
push 1
push dword [esi + 0x60]
mov dword [ebp - 0x7c], 0x400
call ebx
test eax, eax
je 0x4072f2
lea eax, [ebp - 0x70]
push eax
lea edi, [ebp - 0x80]
add esi, 0x30
call fcn.00405652
call fcn.00405af9
mov edi, eax
mov eax, esi
call fcn.00401d26
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x4072dd
push eax
call fcn.0040171a
push str.text
xor ecx, ecx
call fcn.00409306
test eax, eax
jge 0x4072f2
push 2
pop eax
jmp 0x4072f4
xor eax, eax
mov ecx, dword [ebp + 0x790]
pop edi
pop esi
pop ebx
call fcn.0040f289
add ebp, 0x794
leave
ret
Function at 0x40730a
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov eax, 0x2494
lea ebp, [esp - 0x2414]
call fcn.00412ad0
mov eax, dword [0x41c0b0]
push ebx
xor ebx, ebx
cmp dword [0x41d658], ebx
mov dword [ebp + 0x2410], eax
push esi
je 0x407491
cmp dword [edi + 0x6c], ebx
je 0x407491
cmp dword [edi + 0x70], ebx
je 0x407491
mov esi, edi
call fcn.004074a8
push 0x10000000
push ebx
lea esi, [ebp - 0x78]
call fcn.0040a994
mov eax, dword [edi + 0x6c]
mov eax, dword [eax + 4]
push 0x10000000
push eax
mov eax, esi
call fcn.0040a92e
test eax, eax
je 0x407491
push ebx
push ebx
push 3
push dword [ebp - 0x54]
push dword [ebp - 0x5c]
push dword [ebp - 0x60]
push dword [ebp - 0x68]
push dword [0x41d658]
call dword [sym.imp.WININET.dll_InternetConnectW]
cmp eax, ebx
mov dword [edi + 0x5c], eax
je 0x407491
lea eax, [ebp - 0x80]
push eax
mov eax, esi
call fcn.0040a8ce
mov esi, dword [eax]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
call fcn.0040a889
mov eax, dword [eax]
push edi
push 0x84400200
push ebx
push esi
push ebx
push eax
push 0x419bcc
push dword [edi + 0x5c]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [edi + 0x60], eax
mov eax, dword [ebp - 0x7c]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x4073ea
push eax
call fcn.0040171a
mov eax, dword [ebp - 0x80]
add eax, 0xfffffff4
cmp eax, dword [0x41cc24]
je 0x4073fe
push eax
call fcn.0040171a
cmp dword [edi + 0x60], ebx
je 0x407491
mov eax, dword [edi + 0x70]
mov ecx, dword [eax + 0xc]
add ecx, dword [eax + 4]
mov esi, dword [0x41cc20]
mov dword [ebp - 0x7c], esi
je 0x407436
mov ecx, dword [eax + 0xc]
add ecx, dword [eax + 4]
lea eax, [ebp - 0x7c]
push ecx
push str.Range:_bytes_u__r_n
push eax
call fcn.00401931
mov esi, dword [ebp - 0x7c]
add esp, 0xc
mov eax, dword [esi - 8]
push ebx
push ebx
push eax
push esi
push dword [edi + 0x60]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x407460
lea eax, [esi - 0xc]
cmp eax, dword [0x41cc24]
je 0x40745b
push eax
call fcn.0040171a
push 2
pop eax
jmp 0x407493
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
lea eax, [esi - 0xc]
jne 0x407483
cmp eax, dword [0x41cc24]
je 0x40747e
push eax
call fcn.0040171a
xor eax, eax
inc eax
jmp 0x407493
cmp eax, dword [0x41cc24]
je 0x407491
push eax
call fcn.0040171a
xor eax, eax
mov ecx, dword [ebp + 0x2410]
pop esi
pop ebx
call fcn.0040f289
add ebp, 0x2414
leave
ret
Function at 0x407a64
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
cmp dword [ebx + 0x20], 0
mov eax, dword [0x41c0b0]
mov dword [ebp - 4], eax
je 0x407a82
mov eax, ebx
call fcn.00407c1c
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 4]
cmp edi, 1
mov dword [ebp - 0x214], edi
jge 0x407a9c
xor eax, eax
jmp 0x407c0e
push ebx
call fcn.00407f3e
and dword [ebp - 0x210], 0
test edi, edi
jle 0x407add
mov esi, dword [ebp - 0x210]
mov edi, dword [ebp + 8]
call fcn.004014ed
push eax
lea eax, [ebx + 0xb4]
call fcn.004014a7
inc dword [ebp - 0x210]
mov eax, dword [ebp - 0x210]
cmp eax, dword [ebp - 0x214]
jl 0x407aad
mov esi, edi
lea edi, [esi + 0x18]
lea eax, [ebx + 0xcc]
call fcn.004054ab
lea edi, [esi + 0x10]
lea eax, [ebx + 0xc4]
call fcn.004054ab
lea edi, [esi + 0x14]
lea eax, [ebx + 0xc8]
call fcn.004054ab
mov eax, dword [esi + 0x1c]
mov dword [ebx + 0xd0], eax
mov eax, dword [esi + 0x20]
mov dword [ebx + 0xd4], eax
mov eax, dword [esi + 0x24]
mov dword [ebx + 0xd8], eax
mov eax, dword [ebp - 0x214]
cmp eax, dword [ebp + 0x1c]
jge 0x407b32
mov eax, dword [ebp + 0x1c]
jmp 0x407b3a
cmp eax, dword [ebp + 0x20]
jle 0x407b3a
mov eax, dword [ebp + 0x20]
xor edi, edi
cmp eax, edi
jle 0x407b4e
mov esi, eax
mov edi, ebx
call fcn.00407d07
dec esi
jne 0x407b42
xor edi, edi
mov eax, dword [ebp + 0x18]
push dword [ebp + 0xc]
mov dword [ebx + 0x60], eax
mov eax, dword [ebp + 0x14]
mov dword [ebx + 0x50], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0xdc], eax
lea esi, [ebx + 0x3c]
mov eax, esi
mov dword [ebx + 0x70], edi
mov dword [ebx + 0x40], edi
mov dword [ebx + 0x44], edi
mov dword [ebx + 0x48], edi
mov dword [ebx + 0x4c], edi
call fcn.004016a1
lea eax, [ebx + 0x38]
call fcn.004019bc
mov eax, dword [esi]
mov dword [ebx + 0x7c], 1
cmp dword [eax - 8], edi
jne 0x407bee
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x7c], edi
mov dword [ebp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp + 8], eax
mov word [ebp - 0x20c], di
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push dword [ebp + 0x1c]
push eax
push str._sttcache__u__u
push esi
call fcn.00401931
add esp, 0x14
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
lea eax, [ebx + 0x20]
push eax
call esi
push edi
lea eax, [ebx + 0x24]
push eax
call esi
push edi
mov edi, ebx
call fcn.00407cd6
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0040f289
leave
ret 0x1c