joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438424
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov eax, dword [esi]
cmp eax, 0x84
jg 0x438455
je 0x4384af
sub eax, 7
je 0x438476
dec eax
je 0x4384a0
sub eax, 0x17
je 0x438554
jmp 0x438592
add eax, 0xffffff00
sub eax, 9
jb 0x438540
add eax, 0xffffff09
sub eax, 0xb
jb 0x438508
jmp 0x438592
mov eax, ebx
call fcn.004258b0
mov edi, eax
test edi, edi
je 0x4385f2
mov edx, ebx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0xd4]
test al, al
je 0x4385fb
jmp 0x4385f2
test byte [ebx + 0x44], 0x20
jne 0x4385fb
jmp 0x4385f2
mov edx, esi
mov eax, ebx
call fcn.00435af0
cmp dword [esi + 0xc], 0xffffffff
jne 0x4385fb
push 0
lea edx, [ebp - 0x120]
mov eax, dword [esi + 8]
call fcn.00447bbc
lea edx, [ebp - 0x120]
lea ecx, [ebp - 0x118]
mov eax, ebx
call fcn.0043463c
lea edx, [ebp - 0x118]
xor ecx, ecx
mov eax, ebx
call fcn.004382fc
test eax, eax
je 0x4385fb
mov dword [esi + 0xc], 1
jmp 0x4385fb
mov edx, esi
mov eax, ebx
call fcn.00438390
test al, al
je 0x4385f2
cmp dword [esi + 0xc], 0
jne 0x4385fb
mov eax, dword [esi + 8]
push eax
mov eax, dword [esi + 4]
push eax
mov eax, dword [esi]
push eax
mov eax, ebx
call fcn.0043aa8c
push eax
call sub.USER32.DLL_DefWindowProcA
jmp 0x4385fb
mov eax, ebx
call fcn.0043518c
test al, al
jne 0x4385fb
jmp 0x4385f2
mov eax, ebx
call fcn.0043aa8c
mov edi, eax
call sub.USER32.DLL_GetCapture
cmp edi, eax
jne 0x4385f2
cmp dword [0x460500], 0
je 0x4385f2
mov eax, dword [0x460500]
cmp ebx, dword [eax + 0x24]
jne 0x4385f2
push 0
xor ecx, ecx
mov edx, 0x1f
mov eax, dword [0x460500]
call fcn.00435a24
jmp 0x4385f2
mov eax, dword [0x464638]
cmp byte [eax + 0x20], 0
je 0x4385f2
mov eax, dword [0x464638]
cmp dword [eax + 0x1c], 0
je 0x4385f2
mov eax, dword [esi]
mov edx, dword [0x464638]
cmp eax, dword [edx + 0x1c]
jne 0x4385f2
lea eax, [ebp - 0x110]
push eax
call sub.USER32.DLL_GetKeyboardState
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x110]
call fcn.004257f4
mov byte [ebp - 0xc], al
mov ax, word [esi + 4]
mov word [ebp - 0xa], ax
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, ebx
mov bx, 0xffb7
call fcn.0044f30c
jmp 0x4385fb
mov edx, esi
mov eax, ebx
call fcn.00435af0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x438abc
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1e8], 0
je 0x438ad8
cmp dword [esi + 4], 0
je 0x438b05
test byte [ebx + 0x45], 1
jne 0x438af7
mov eax, ebx
call fcn.00437a60
test eax, eax
jne 0x438af7
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x438c15
mov edx, esi
mov eax, ebx
call fcn.00438734
jmp 0x438c15
push 0
call sub.USER32.DLL_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.USER32.DLL_ReleaseDC
push 0
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x438c0e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043aa8c
push eax
call sub.USER32.DLL_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00435a24
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00438abc
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.GDI32.DLL_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043aa8c
push eax
call sub.USER32.DLL_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x438c15
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.GDI32.DLL_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.GDI32.DLL_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44a5a0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x44a5d9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0044fc88
jmp 0x44a5e2
mov eax, ebx
mov edx, esi
call fcn.0044fbf4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x44a5ec
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x44a60d
mov al, byte [esp]
jmp 0x44a60f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x44ec18
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x44ec47
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0044fc88
jmp 0x44ec65
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.0044eba0
mov edi, eax
test ebx, ebx
je 0x44ec65
cmp dword [esi], 0
je 0x44ec65
dec ebx
jmp 0x44ec4e
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x44efa8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4607fc]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x44f040
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x44f020
xor eax, eax
push ebp
push 0x44f019
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x44f05c
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44f020
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x4607fc]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4607fc], ax
mov esp, ebp
pop ebp
ret
Function at 0x4510d0
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x45128c
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x451131
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x4512a8
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4511a3
xor eax, eax
push ebp
push 0x45119c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00450f28
push eax
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x451185
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4512c8
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4511a3
mov eax, dword [ebp - 8]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.KERNEL32.DLL_GetThreadLocale
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x451284
cmp byte [ebp - 0xd], 0
jne 0x4511e5
cmp byte [ebp - 0x12], 0
je 0x451284
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4511fe
dec ebx
cmp byte [ebx], 0x2e
je 0x45120d
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4511fd
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x451284
inc ebx
cmp byte [ebp - 0x12], 0
je 0x45123a
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x451284
cmp byte [ebp - 0xd], 0
je 0x451284
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x451284
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.KERNEL32.DLL_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451678
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x451760
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x464cd0], 1
jae 0x451752
xor eax, eax
mov dword [0x4648dc], eax
xor eax, eax
mov dword [0x4648e4], eax
xor eax, eax
mov dword [0x4648e8], eax
mov byte [0x4648ee], 2
mov byte [0x4648ef], 2
mov byte [0x4648f0], 3
mov word [0x464c98], 0
mov word [0x464ca8], 1
mov word [0x464cb8], 0xa
mov dword [0x464cc0], 0x80020004
mov dword [0x464c8c], 0x450864
mov dword [0x464c90], 0x45085c
mov dword [0x464c94], 0x450864
call fcn.0044ef78
test al, al
je 0x451711
call fcn.0044efa8
call fcn.0044f06c
mov eax, 0x4648f4
mov edx, 0x45176c
call fcn.0044c6e6
mov eax, 0x464ac0
mov edx, 0x45176c
call fcn.0044c6e6
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x4648d4], eax
call fcn.0044d64c
mov dword [0x4648d0], eax
call sub.KERNEL32.DLL_GetCurrentThreadId
mov dword [0x4648c8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x451767
ret

Function at 0x453628
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_SetCurrentDirectoryA
dec eax
je 0x453644
call fcn.00453c34
jmp 0x4536b3
lea edx, [ebp - 0x108]
push edx
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
test eax, eax
jne 0x453660
call fcn.00453c34
jmp 0x4536b3
cmp dword [0x4655c0], 1
je 0x4536b1
movsx ecx, byte [ebp - 0x108]
push ecx
call fcn.00455e9c
pop ecx
cmp al, 0x41
jl 0x4536b1
cmp al, 0x5a
jg 0x4536b1
cmp byte [ebp - 0x107], 0x3a
jne 0x4536b1
mov byte [ebp - 4], 0x3d
mov byte [ebp - 3], al
lea eax, [ebp - 0x108]
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push eax
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.DLL_SetEnvironmentVariableA
dec eax
je 0x4536b1
call fcn.00453c34
jmp 0x4536b3
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x455fb4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x456016
call fcn.00455f64
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00452234
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00452234
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x456094
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x462510], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x45616e
cmp dword [0x46250c], 0
jne 0x45616e
cmp dword [0x462718], 0
je 0x456128
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00455e44
add esp, 8
mov ebx, eax
test eax, eax
jne 0x45610e
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00455e44
add esp, 8
mov ebx, eax
test eax, eax
jne 0x45610e
lea ebx, [ebp - 0x84]
jmp 0x45610f
inc ebx
call fcn.00456050
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4561a9
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x462514
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00452234
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x462517
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4561a9
cmp dword [0x46250c], 0
je 0x456188
cmp dword [0x46250c], 0xffffffff
je 0x4561a9
push esi
call dword [0x46250c]
pop ecx
mov eax, dword [0x462510]
test eax, eax
je 0x4561a9
cmp dword [0x462510], 0xffffffff
je 0x4561a9
cmp byte [eax], 0
je 0x4561a9
push esi
push eax
call fcn.00455fb4
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4569cc
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4655d8], 0
jne 0x456a4d
cmp dword [0x4655f8], 0
jne 0x4569fc
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4655f8], eax
test eax, eax
jne 0x4569fc
push str.GetEnvironmentStrings_failed
call fcn.004561c0
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4655f8]
jmp 0x456a10
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.00452234
pop ecx
mov edi, eax
test eax, eax
jne 0x456a08
lea edi, [ebp + 1]
push edi
call fcn.00451c94
pop ecx
mov ebx, eax
mov dword [0x4655dc], ebx
test ebx, ebx
jne 0x456a3a
xor eax, eax
jmp 0x456b10
push edi
mov edx, dword [0x4655f8]
push edx
push ebx
call fcn.004520e4
add esp, 0xc
jmp 0x456a6d
xor esi, esi
mov ebx, dword [0x4655d8]
jmp 0x456a67
push eax
call fcn.00452234
pop ecx
test eax, eax
jne 0x456a63
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x456a57
lea ebx, [esi + 4]
push 4
mov dword [0x4655e0], ebx
inc ebx
push ebx
call fcn.00451770
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x456a90
xor eax, eax
jmp 0x456b10
cmp dword [0x4655d8], 0
jne 0x456ac1
xor esi, esi
mov ebx, dword [0x4655dc]
mov eax, dword [esp]
mov ebp, eax
jmp 0x456ab2
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.00452234
pop ecx
mov edi, eax
test eax, eax
jne 0x456aa8
jmp 0x456af2
xor esi, esi
mov ebx, dword [0x4655d8]
mov eax, dword [esp]
mov edi, eax
jmp 0x456aec
push eax
call fcn.00452234
pop ecx
test eax, eax
je 0x456ae1
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x456ae5
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x456ad0
mov eax, dword [0x4655d8]
test eax, eax
je 0x456b02
push eax
call fcn.00451ca4
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4655d8], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4087e0
Capabilities:
Create http request

Disassembly:
push 0
push 0
push 0
push 0
push 0x47c598
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [0x4ac404], eax
jne 0x408802
mov eax, 1
ret
mov ecx, dword [esp + 4]
push 0
push 0x84080000
push 0
push 0
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
xor edx, edx
test eax, eax
setne dl
mov dword [0x4ac400], eax
dec edx
and edx, 2
mov eax, edx
ret

Function at 0x4088a0
Capabilities:
Download and write a file
Query remote server for available data
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4088d3
pop esi
mov eax, 2
pop ebx
add esp, 0xc
ret
push ebp
mov ebp, dword [esp + 0x28]
push edi
mov edi, dword [esp + 0x28]
lea ecx, [ecx]
mov edx, dword [0x4ac400]
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x408966
mov eax, dword [esp + 0x14]
cmp eax, 0xffff
jbe 0x40890e
mov eax, 0xffff
mov dword [esp + 0x14], eax
mov edx, dword [0x4ac400]
lea ecx, [esp + 0x10]
push ecx
push eax
push 0x49c400
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x408966
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x1c]
push eax
push ecx
push 0x49c400
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408966
add esi, dword [esp + 0x10]
test edi, edi
je 0x40895a
mov edx, dword [esp + 0x24]
push edx
push esi
push ebp
call edi
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4088e0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x408980
Capabilities:
Create http request
Download and write a file
Get file size
Query remote server for available data
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
sub esp, 0x90
mov eax, dword [0x49ae1c]
push ebx
push esi
mov esi, dword [esp + 0xa0]
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push esi
mov dword [esp + 0xb0], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4089f1
mov eax, dword [esp + 0xac]
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0xa4]
push eax
push ecx
push edx
push esi
call fcn.004088a0
add esp, 0x10
pop esi
pop ebx
mov ecx, dword [esp + 0x8c]
call fcn.00447453
add esp, 0x90
ret
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0
push 0
push 0x47c598
mov esi, eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [0x4ac404], eax
jne 0x408a32
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x8c]
call fcn.00447453
add esp, 0x90
ret
add esi, 0xffff0001
jns 0x408a3c
xor esi, esi
push esi
lea eax, [esp + 0x18]
push str.Range:bytes_d_
push eax
call fcn.00448576
mov edx, dword [esp + 0xa8]
mov eax, dword [0x4ac404]
add esp, 0xc
push 0
push 0x84080000
push 0
lea ecx, [esp + 0x20]
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
test eax, eax
mov dword [0x4ac400], eax
jne 0x408a94
pop esi
mov eax, 2
pop ebx
mov ecx, dword [esp + 0x8c]
call fcn.00447453
add esp, 0x90
ret
push ebp
push edi
push 0
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, dword [esp + 0xb4]
mov edi, dword [esp + 0xb0]
mov edx, dword [0x4ac400]
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
je 0x408b39
mov eax, dword [esp + 0x14]
cmp eax, 0xffff
jbe 0x408ade
mov eax, 0xffff
mov dword [esp + 0x14], eax
mov edx, dword [0x4ac400]
lea ecx, [esp + 0x10]
push ecx
push eax
push 0x49c400
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x408b39
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x1c]
push eax
push ecx
push 0x49c400
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408b39
add esi, dword [esp + 0x10]
test edi, edi
je 0x408b2d
mov edx, dword [esp + 0xac]
push edx
push esi
push ebp
call edi
add esp, 0xc
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x408ab0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x9c]
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
call fcn.00447453
add esp, 0x90
ret
Function at 0x4060b4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40611a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404654
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403090
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406104
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406121
lea eax, [ebp - 0x10]
call fcn.004043e4
ret

Function at 0x40b1fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b235
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004044d4
jmp 0x40b23e
mov eax, ebx
mov edx, esi
call fcn.00404438
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b248
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b269
mov al, byte [esp]
jmp 0x40b26b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c220
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c2f6
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.0040447c
lea eax, [ebp - 8]
call fcn.004048f4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004048a4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c2e0
mov eax, ebx
call fcn.00402a28
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c2d9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004048a4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c2c3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c308
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c2c3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c2e0
mov eax, dword [ebp - 0x10]
call fcn.00402a58
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c2fd
lea eax, [ebp - 8]
call fcn.004043e4
ret