joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b550
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x1508
call fcn.00444980
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], 0x400
lea ecx, [esi + 0x5c]
call fcn.004228d0
mov ebx, eax
lea eax, [esp + 0xc]
add ebx, 8
lea ecx, [esp + 0x514]
push eax
push ecx
lea ecx, [ebx + 0x9c]
call fcn.0041bea0
mov eax, dword [esp + 0xc]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
mov dword [esp + 0x10], 0
jle 0x42b5ff
push edi
lea edi, [esp + 0x518]
mov eax, dword [edi]
lea edx, [esp + 0x18]
push 0x100
push edx
push 2
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jle 0x42b5ea
mov edx, dword [esi + 0x84]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0x143
push edx
call ebp
mov ecx, dword [edi]
mov edx, dword [esi + 0x84]
push ecx
push eax
push 0x151
push edx
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
inc eax
add edi, 4
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x42b5aa
pop edi
mov ebx, dword [ebx + 0x1b8]
lea eax, [esp + 0x114]
push 0x400
push eax
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x42b63d
mov edx, dword [esi + 0x84]
lea ecx, [esp + 0x114]
push ecx
push 0
push 0x14c
push edx
call ebp
mov dword [esi + 0xa4], eax
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1508
ret

Function at 0x42b760
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x469d2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x414
push ebx
push esi
mov esi, ecx
lea edx, [esp + 0x18]
mov ecx, dword [esp + 0x430]
mov dword [esp + 0xc], 0
mov eax, dword [esi + 4]
mov ecx, dword [ecx]
push eax
push 0x400
push edx
push 0x488690
push ecx
push str.VersionInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x18]
lea ecx, [esp + 8]
push eax
call fcn.0045afe4
mov ecx, dword [esp + 8]
mov ebx, 1
mov dword [esp + 0x424], ebx
mov eax, dword [ecx - 8]
test eax, eax
jne 0x42b7ed
mov esi, dword [esp + 0x42c]
push 0x488690
mov ecx, esi
call fcn.0045afe4
mov dword [esp + 0xc], ebx
jmp 0x42b868
lea edx, [esp + 8]
lea ecx, [esp + 0x14]
push edx
call fcn.0045aceb
mov eax, dword [esp + 0x434]
lea ecx, [esp + 8]
push eax
push 0
lea edx, [esp + 0x18]
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x434], 2
call fcn.0042b8a0
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x428], 3
call fcn.0045b0af
lea ecx, [esp + 0x10]
mov byte [esp + 0x424], 2
call fcn.0045af76
mov esi, dword [esp + 0x42c]
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.0045aceb
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], ebx
mov byte [esp + 0x424], bl
call fcn.0045af76
lea ecx, [esp + 8]
mov byte [esp + 0x424], 0
call fcn.0045af76
mov ecx, dword [esp + 0x41c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x420
ret 0xc
Function at 0x42cdf0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x24
mov eax, dword [esp + 0x2c]
push ebx
push esi
push edi
push 0
push 0
push 3
push 0
push 0
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42ce2e
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42ce37
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x24
ret
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
lea ecx, [esp + 0xc]
push 0
push ecx
push edi
push eax
push ebx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x38]
mov dword [esp + 0x38], 0
push edx
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x10]
push eax
push 0x4733d8
push 0
push edi
push ecx
call dword [sym.imp.OLEPRO32.DLL_OleLoadPicture]
mov esi, eax
mov eax, dword [esp + 0x38]
push eax
mov edx, dword [eax]
call dword [edx + 8]
test esi, esi
jl 0x42ce2e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42ce2e
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
call dword [ecx + 0xc]
mov esi, dword [esp + 0x3c]
mov ecx, esi
call fcn.0045e297
mov eax, dword [esp + 0x14]
mov ecx, esi
push eax
call fcn.0045e240
mov edx, dword [esi + 4]
lea ecx, [esp + 0x18]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
pop edi
mov dword [eax], ecx
mov dword [eax + 4], edx
pop esi
mov eax, 1
pop ebx
add esp, 0x24
ret
Function at 0x42e400
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x46a0a2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x804
push esi
mov dword [esp + 4], 0
mov ecx, dword [ecx]
mov edx, dword [esp + 0x820]
push ecx
mov ecx, dword [esp + 0x828]
lea eax, [esp + 0xc]
push 0x800
push eax
mov eax, dword [esp + 0x828]
push ecx
push edx
push eax
mov dword [esp + 0x828], 3
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [esp + 0x818]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.0045afe4
mov dword [esp + 4], 1
lea ecx, [esp + 0x81c]
mov byte [esp + 0x810], 2
call fcn.0045af76
lea ecx, [esp + 0x820]
mov byte [esp + 0x810], 1
call fcn.0045af76
lea ecx, [esp + 0x824]
mov byte [esp + 0x810], 0
call fcn.0045af76
mov ecx, dword [esp + 0x808]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x810
ret 0x10

Function at 0x42e550
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46a0d8
push eax
mov dword fs:[0], esp
push esi
mov ecx, dword [ecx]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
push ecx
push edx
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.0045af76
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], 0xffffffff
call fcn.0045af76
mov ecx, dword [esp + 4]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0x10

Function at 0x42f8a5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42f8fd
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x488690
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x42f8f0
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x42f8ff
xor eax, eax
pop esi
leave
ret 4
Function at 0x430350
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x430380
push esi
call fcn.00433920
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x430379
mov dword [esi + 0x10], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x430403
mov eax, dword [esi + 0x18c]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x4303ef
mov eax, dword [esi + 8]
test eax, eax
je 0x4303a4
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x18c]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4303eb
cmp eax, 2
je 0x4303ef
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x430397
cmp eax, 3
je 0x4303ca
cmp eax, 1
jne 0x430397
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 0x430397
mov edx, dword [esi + 0x118]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x430397
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.00430430
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x430423
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x12
mov edx, dword [esi]
mov eax, dword [esi + 0x10]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.00430430
add esp, 4
pop esi
ret

Function at 0x44ba30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x485c10
cmp edx, dword [eax]
je 0x44ba52
add eax, 8
inc ecx
cmp eax, 0x485ca0
jl 0x44ba43
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x485c10]
jne 0x44bb80
mov eax, dword [0x48aaa4]
cmp eax, 1
je 0x44bb5a
test eax, eax
jne 0x44ba83
cmp dword [0x485504], 1
je 0x44bb5a
cmp edx, 0xfc
je 0x44bb80
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x44baba
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0044e3f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004461f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x44bafd
lea eax, [ebp - 0x1a4]
push eax
call fcn.004461f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x47321c
push edi
call fcn.00444340
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0044e3f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0044e400
lea eax, [ebp - 0xa0]
push 0x4731fc
push eax
call fcn.0044e400
push dword [esi + 0x485c14]
lea eax, [ebp - 0xa0]
push eax
call fcn.0044e400
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0044f32f
add esp, 0x2c
pop edi
jmp 0x44bb80
lea eax, [ebp + 8]
lea esi, [esi + 0x485c14]
push 0
push eax
push dword [esi]
call fcn.004461f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x453e50
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00444980
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x453f1b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x453f1b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x453ece
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x453ed9
or bh, 8
and edi, 0x8000000
je 0x453ef4
mov eax, dword [0x48c27c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x453f1b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4542f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x45431b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x45433f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x45435a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x4570b6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4570d8
cmp dword [edi + 0x3c], 0
jne 0x4570d8
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00460b6a
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00457105
pop edi
pop esi
pop ebx
ret 8

Function at 0x458704
Capabilities:
Get graphical window text

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

Function at 0x459d8b
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 0x459dcd
call fcn.00460b6a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x459dcd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x459dc4
xor eax, eax
jmp 0x459dd5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00459ddb
pop edi
pop esi
pop ebx
ret 4

Function at 0x46157e
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 0x4615ac
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4615ca
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004614e4
jmp 0x4615ca
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4615ca
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004614e4
test edi, edi
mov eax, edi
jne 0x4615b4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403663
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edi, eax
mov ebx, edx
xor ebp, ebp
push ebp
push ebp
push ebp
push ebp
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4036bc
cmp dword [esp + 0x14], 0x12
je 0x4036da
push ebp
push ebp
push ebp
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x4036c4
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x4036c4
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ecx, ecx
sub eax, edi
sbb ecx, ebx
cmp ecx, ebp
jb 0x403678
ja 0x4036da
cmp eax, esi
jb 0x403678
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret

Function at 0x40387a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
mov esi, dword [esp + 0x10]
push edi
xor edi, edi
mov dword [esp + 0xc], edx
test esi, esi
jne 0x4038a0
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x4038a0
push edi
call ebx
mov esi, eax
push 0x5736e4
push 0x64
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4038df
push ebp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x4038de
mov edi, dword [esp + 0x10]
test edi, edi
je 0x4038d5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [edi], eax
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
pop ebp
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x404807
Capabilities:
Set http header

Disassembly:
push 0x34
mov eax, 0x500d1b
call fcn.004c8175
mov esi, ecx
mov eax, dword [esi + 0x80]
lea ecx, [esi + 0x68]
sub eax, 4
push eax
push 2
lea eax, [ebp - 0x40]
push eax
call fcn.004066b6
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push eax
call fcn.0040702e
pop ecx
lea ecx, [ebp - 0x40]
call fcn.004024d8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0xa0000000
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [esi + 0xc8]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
xor ebx, ebx
lea ecx, [ebp - 0x28]
test eax, eax
setg bl
call fcn.004024d8
mov eax, ebx
call fcn.004c8130
ret
Function at 0x40487a
Capabilities:
Set http header

Disassembly:
push 0x24
mov eax, 0x500d4f
call fcn.004c8175
mov edi, ecx
and dword [ebp - 0x30], 0
lea esi, [edi + 0x1c]
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x404899
mov ecx, dword [esi]
lea eax, [ebp - 0x30]
push eax
push 0
call fcn.00405641
mov eax, dword [ebp - 0x30]
pop ecx
pop ecx
test eax, eax
je 0x40493b
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c7e30
cmp dword [esi + 0x14], 8
mov ebx, eax
pop ecx
jb 0x4048d0
mov esi, dword [esi]
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
push ebx
call fcn.00405641
pop ecx
pop ecx
push 0x573800
lea ecx, [ebp - 0x2c]
call fcn.00406755
and dword [ebp - 4], 0
push ebx
call fcn.004e28ec
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0040228c
push 2
push ebx
call fcn.004c7e22
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
pop ecx
cmovae eax, dword [ebp - 0x2c]
pop ecx
push 0xa0000000
push dword [ebp - 0x1c]
push eax
push dword [edi + 0xc8]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
xor ebx, ebx
lea ecx, [ebp - 0x2c]
test eax, eax
setg bl
call fcn.004024d8
mov eax, ebx
call fcn.004c8130
ret

Function at 0x404ac5
Capabilities:
Read http header

Disassembly:
sub esp, 0x20
mov eax, dword [0x5811a8]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
mov ebx, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
lea eax, [esp + 4]
push ebp
push esi
push edi
xor ebp, ebp
mov esi, ecx
push ebp
push eax
push ebp
push ebp
push 0x16
push dword [esi + 0xc8]
mov dword [esp + 0x28], ebp
call ebx
mov eax, dword [esp + 0x10]
cmp eax, 1
jae 0x404b09
or dword [esi + 0x44], 0xffffffff
jmp 0x404bf2
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004c7e30
pop ecx
push ebp
mov edi, eax
lea eax, [esp + 0x14]
push eax
push edi
push ebp
push 0x16
push dword [esi + 0xc8]
call ebx
test eax, eax
jne 0x404b49
or dword [esi + 0x44], 0xffffffff
push 2
push edi
call fcn.004c7e22
pop ecx
pop ecx
jmp 0x404bf2
push edi
call fcn.004e28ec
pop ecx
push eax
lea ebx, [esi + 0x48]
push edi
mov ecx, ebx
call fcn.0040282f
push 2
push edi
call fcn.004c7e22
pop ecx
pop ecx
push ebp
push str.Content_Length:
mov ecx, ebx
call fcn.004021bb
mov edi, eax
cmp edi, 0xffffffff
jne 0x404b7f
or dword [esi + 0x44], eax
jmp 0x404bc9
add edi, 0xf
mov ecx, ebx
push edi
push 0x5736c0
call fcn.004021bb
mov ecx, ebx
cmp eax, 0xffffffff
je 0x404b9c
sub eax, edi
push eax
push edi
jmp 0x404ba4
mov eax, dword [esi + 0x58]
push eax
add eax, 0xfffffffb
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004066b6
cmp dword [eax + 0x14], 8
jb 0x404bb6
mov eax, dword [eax]
push eax
call fcn.004df3e6
pop ecx
lea ecx, [esp + 0x14]
mov dword [esi + 0x44], eax
call fcn.004024d8
mov eax, dword [esi + 0x64]
test eax, eax
je 0x404bf2
sub eax, 1
je 0x404be7
sub eax, 1
jne 0x404bf2
push dword [esp + 0x34]
mov ecx, esi
call fcn.004045ad
jmp 0x404bf2
push dword [esp + 0x34]
mov ecx, esi
call fcn.00404252
mov ecx, dword [esp + 0x2c]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c77a6
add esp, 0x20
ret 4