joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44c907
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x22c
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.00434f10
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [edi + 4]
cmp eax, dword [0x45ce28]
je 0x44ca0e
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x44c977
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x44c97e
cmp ebx, ebx
jne 0x44c97e
xor eax, eax
jmp 0x44ca11
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x44c98b
mov byte [esi + 0x20], bl
jmp 0x44c99f
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.004280f7
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.004280f7
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.004280f7
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
or ecx, dword [esi + 4]
jne 0x44c9fa
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x44ca0e
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x44d653
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x46b3ac]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x44d6a2
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
jne 0x44d6a2
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x44d6ae
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 4]
pop esi
call fcn.00431018
leave
ret 8
Function at 0x44e37f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x46b3ac]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x44e3cc
push dword [ebp + 8]
call fcn.004505d4
mov esi, eax
test esi, esi
je 0x44e3f4
push edi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
jmp 0x44e3f4
push dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push 0x457798
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
pop esi
call fcn.00431018
leave
ret 0xc

Function at 0x44f7a1
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
cmp dword [ebp + 0xc], 0x800
mov eax, dword [0x46b3ac]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
jne 0x44f7ff
push 0x45c910
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.00435666
add esp, 0x10
cmp eax, 0xffffffff
je 0x44f813
cmp eax, esi
jae 0x44f813
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x44f815
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x44f7ca
jmp 0x44f816
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.00431018
leave
ret
Function at 0x44f836
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x46b3ac]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xor ebx, ebx
push 0x4584a8
mov dword [ebp - 4], eax
mov dword [ebp - 0x28], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x44f8d8
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x2c], ecx
call esi
push dword [ebp - 0x2c]
mov dword [ebp - 0x48], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x40], eax
call esi
mov dword [ebp - 0x3c], eax
push 4
xor ebx, ebx
jmp 0x44f9da
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x44f988
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocStringLen
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44f9db
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44f97d
cmp dword [ebp - 0x34], 1
jne 0x44f97d
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x24]
push 0x45c92c
push eax
call fcn.004356d6
add esp, 0xc
cmp eax, 1
jne 0x44f97d
mov eax, dword [ebp - 0x4c]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x48], eax
call esi
push 2
mov dword [ebp - 0x44], eax
pop esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x44f9db
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x44f9db
lea ecx, [ebp - 0x28]
push ecx
push 0x44f820
push 1
push 0x10
push eax
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
cmp word [ebp - 0x28], bx
je 0x44f9db
movzx eax, word [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x48], eax
call esi
mov dword [ebp - 0x44], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x48], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x44fa01
push dword [ebp + edi*4 - 0x48]
push dword [ebp + 8]
call fcn.0044f7a1
cmp eax, ebx
pop ecx
pop ecx
jne 0x44fa03
inc edi
cmp edi, esi
jl 0x44f9ea
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00431018
leave
ret 4
Function at 0x44fa12
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x46a9bc
je 0x44face
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x44fab6
mov esi, dword [ebx + 4]
jmp 0x44fab0
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x44faa0
cmp dword [ebp - 0xc], 4
jne 0x44faa0
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x44fa98
or dword [eax + 0x9c], ecx
jmp 0x44faa0
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x44fa64
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x44fa47
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x44febf
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x454861
call fcn.00434f70
sub esp, 0x220
mov eax, dword [0x46b3ac]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x228]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
test esi, esi
jne 0x44ffb8
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
test esi, esi
jne 0x44ff8c
and dword [ebp - 4], eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x224]
call fcn.00403aa0
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x228]
mov byte [ebp - 4], 1
call fcn.0044febf
mov ecx, dword [ebp - 0x224]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00403280
test bl, bl
jne 0x44ff8c
or dword [ebp - 4], 0xffffffff
jmp 0x44fefd
cmp esi, 0x103
je 0x44ff9c
cmp esi, 0x3f2
jne 0x44ffac
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.00431018
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x45082f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x450864
cmp edi, dword [esi + 0xc]
jge 0x450864
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x450864
cmp edi, dword [eax + 8]
jge 0x450864
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x450866
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x45096a
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x45099e
jmp fcn.00445068
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x450a0f
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x450b08
cmp eax, dword [edi + 0xc]
jge 0x450b08
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x450a60
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x450af1
cmp dword [ebp + 0xc], ebx
je 0x450af1
jmp 0x450a8a
push 0x10
call fcn.004506fb
cmp eax, ebx
je 0x450a76
mov ecx, eax
call fcn.00450961
mov esi, eax
jmp 0x450a78
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x450aa1
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x450ab1
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x450ac3
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00445068
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00434f10
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x450b03
cmp ecx, dword [esi + 8]
jge 0x450b03
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x450b09
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x450bc7
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 0x450bf5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x450c13
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00450b31
jmp 0x450c13
mov eax, dword [esi + 0x14]
test eax, eax
je 0x450c13
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00450b31
test edi, edi
mov eax, edi
jne 0x450bfd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x46e8f4]
test ecx, ecx
je 0x450cc6
jmp 0x450bc6
ret 8
Function at 0x401750
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 0x401764
pop ecx
ret
mov al, byte [esp]
test al, 0x20
je 0x401770
xor eax, eax
pop ecx
ret
test al, 7
jne 0x401778
xor eax, eax
pop ecx
ret
mov eax, 1
pop ecx
ret

Function at 0x402430
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, ecx
push 0
push 0
mov eax, dword [esi + 0x78]
push 0xf0
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x402464
mov ecx, dword [esi + 0xb0]
push 5
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop esi
ret
Function at 0x402890
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x42bf23
push eax
mov eax, 0x1034
mov dword fs:[0], esp
call fcn.004118f0
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esp + 0x1054]
xor ebp, ebp
push ebp
push 0x80
push 3
push ebp
push ebp
push SysReAllocStringLen
push eax
mov dword [esp + 0x1068], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, ebp
je 0x402a20
push ecx
lea edx, [esp + 0x1058]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.004210bf
call fcn.00402a60
mov dword [esp + 0x1c], eax
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x24], ebp
add esp, 4
rep stosd dword es:[edi], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x1c], edx
lea ecx, [esp + 0x3a]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
push 0x5c
lea ecx, [esp + 0x1058]
call fcn.0041f773
inc eax
lea ecx, [esp + 0x1054]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0041f642
push ebp
lea ecx, [esp + 0x18]
mov byte [esp + 0x1050], 1
call fcn.0042168b
mov edx, dword [esi + 4]
push 9
push 8
push ebp
push ebp
push ebp
push ebp
lea ecx, [esp + 0x38]
push ebp
push ecx
push eax
push edx
call sub.zlib.dll_Ordinal_81
test eax, eax
jne 0x402a06
mov al, byte [0x43d91c]
mov ecx, 0x3ff
mov byte [esp + 0x44], al
xor eax, eax
lea edi, [esp + 0x45]
push ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x14]
lea edx, [esp + 0x48]
push ecx
push 0x1000
stosb byte es:[edi], al
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edx
push ebx
mov dword [esp + 0x24], ebp
call edi
test eax, eax
je 0x4029f6
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4029f6
mov ecx, dword [esi + 4]
push eax
lea eax, [esp + 0x48]
xor ebp, ebp
push eax
push ecx
call sub.zlib.dll_Ordinal_82
test eax, eax
jne 0x4029de
mov ebp, 1
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x4c]
push 0x1000
push eax
push ebx
call edi
test eax, eax
jne 0x4029bc
mov ecx, dword [esi + 4]
push ecx
call sub.zlib.dll_Ordinal_83
neg eax
sbb eax, eax
inc eax
and ebp, eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
and ebp, eax
mov byte [esp + 0x104c], 0
call fcn.0042134a
lea ecx, [esp + 0x1054]
mov dword [esp + 0x104c], 0xffffffff
call fcn.0042134a
mov ecx, dword [esp + 0x1044]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1040
ret 4

Function at 0x403440
Capabilities:
Create http request

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push esi
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
test esi, esi
jne 0x40347b
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x192
call fcn.00403070
add esp, 0xc
mov eax, esi
pop esi
ret
Function at 0x4034a0
Capabilities:
Connect to http server

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
push esi
jne 0x4034b8
push ebx
push str.CHttpToolA::OpenConnection:_hInternet_can_not_be_NULL.
call fcn.00403040
add esp, 8
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x4034ce
push esi
push str.CHttpToolA::OpenConnection:_szServerAddr_can_not_be_NULL.
call fcn.00403040
add esp, 8
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
jne 0x4034ec
push eax
push str.CHttpToolA::OpenConnection:_szServerAddr_can_not_be_an_empty_string.
call fcn.00403040
add esp, 8
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push 0
push 0
push 3
push eax
push ecx
push edx
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
test esi, esi
jne 0x403524
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x193
call fcn.00403070
add esp, 0xc
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4037b0
Capabilities:
Send data

Disassembly:
push ecx
mov eax, dword [esp + 8]
test eax, eax
jne 0x4037c8
push 0
push str.CHttpToolA::InternetWriteFile:_hRequest_can_not_be_NULL.
call fcn.00403040
add esp, 8
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
test ebp, ebp
jne 0x4037e1
push ebp
push str.CHttpToolA::InternetWriteFile:_pbyBuff_can_not_be_NULL.
call fcn.00403040
add esp, 8
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x4037f7
push edi
push str.CHttpToolA::InternetWriteFile:_cbyBuff_can_not_be_zero.
call fcn.00403040
add esp, 8
xor esi, esi
test edi, edi
jbe 0x40383b
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetWriteFile]
mov ecx, edi
lea eax, [esp + 0x10]
sub ecx, esi
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esi + ebp]
push ecx
push edx
push eax
call ebx
test eax, eax
jne 0x403832
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x198
call fcn.00403070
add esp, 0xc
add esi, dword [esp + 0x10]
cmp esi, edi
jb 0x403804
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x404200
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bf80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
cmp esi, edi
jne 0x40423c
push edi
push edi
push str.CHttpToolW::GetMimeType:_hFile_can_not_be_NULL.
call fcn.00403fe0
add esp, 0xc
mov ebx, dword [ebp + 0xc]
cmp ebx, 0xfde9
je 0x40424f
cmp ebx, 0xfde8
jne 0x40425e
push edi
push edi
push str.CHttpToolW::GetMimeType:_CP_UTF8_and_CP_UTF7_can_not_be_used_for_the_CodePage_parameter.
call fcn.00403fe0
add esp, 0xc
cmp esi, 0xffffffff
je 0x4042d8
lea ecx, [ebp - 0x14]
push edi
push ecx
lea edx, [ebp - 0x114]
push pe_nt_image_headers32
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404294
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x25a
call fcn.00403e00
add esp, 0xc
push edi
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4042b8
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x25c
call fcn.00403e00
add esp, 0xc
mov ecx, dword [ebp - 0x14]
lea eax, [ebp + 8]
push edi
push eax
push edi
push edi
lea edx, [ebp - 0x114]
push ecx
push edx
push edi
push edi
mov dword [ebp + 8], edi
call sub.urlmon.dll_FindMimeFromData
cmp eax, edi
je 0x404336
mov edi, dword [str.application_octet_stream]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00411ae4
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x404300
push 0x66
call fcn.00403cf0
add esp, 4
mov edi, dword [str.application_octet_stream]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push ebx
push ecx
mov dword [ebp - 4], edi
call fcn.00404080
mov edx, dword [ebp + 8]
add esp, 8
mov esi, eax
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405270
Capabilities:
Get http content length

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x40528a
push 0
push str.CHttpResponseT::GetContentLength:_m_hRequest_can_not_be_NULL.
call fcn.00403040
add esp, 8
mov ecx, dword [esp + 0xc]
mov edx, dword [esi + 0x20]
lea eax, [esp + 4]
push 0
push eax
push ecx
push 0x20000005
push edx
mov dword [esp + 0x18], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
jne 0x4052d9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x2f76
jne 0x4052c7
xor eax, eax
pop esi
pop ecx
ret 4
push 0
call esi
push eax
push 0x190
call fcn.00403070
add esp, 0xc
mov eax, 1
pop esi
pop ecx
ret 4
Function at 0x4052f0
Capabilities:
Read data from internet
Receive data

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x20]
test eax, eax
jne 0x40530c
push 0
push str.CHttpResponseT::ReadContent:_m_hRequest_can_not_be_NULL.
call fcn.00403040
add esp, 8
mov ebx, dword [esp + 0x14]
test ebx, ebx
jne 0x405322
push ebx
push str.CHttpResponseT::ReadContent:_pbyBuff_can_not_be_NULL.
call fcn.00403040
add esp, 8
mov esi, dword [esp + 0x18]
test esi, esi
jne 0x405338
push esi
push str.CHttpResponseT::ReadContent:_cbBuff_can_not_be_zero.
call fcn.00403040
add esp, 8
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0xc]
push eax
push esi
push ebx
push ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
pop edi
pop esi
test eax, eax
pop ebx
jne 0x40536d
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x191
call fcn.00403070
add esp, 0xc
mov eax, dword [esp]
pop ecx
ret 8