joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448258
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 + 0x1f8], 0
je 0x448274
cmp dword [esi + 4], 0
je 0x4482a1
test byte [ebx + 0x55], 1
jne 0x448293
mov eax, ebx
call fcn.00446df8
test eax, eax
jne 0x448293
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4483b1
mov edx, esi
mov eax, ebx
call fcn.00447d7c
jmp 0x4483b1
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
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 0x4483aa
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0044a0c8
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.00444a94
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00448258
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 + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
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.0044a0c8
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4483b1
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 0x44eaa4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4871a0]
cmp byte [eax + 0xc], 0
je 0x44ec11
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44ec0a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x488b98], 0
jne 0x44eaf8
push 0x44ec18
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44ec20
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x488b98], eax
cmp dword [0x485d8c], 0
jne 0x44ebf3
push 0x44ec30
call sub.kernel32.dll_LoadLibraryA
mov dword [0x485d8c], eax
cmp dword [0x485d8c], 0
je 0x44ebf3
push 0x44ec3c
mov eax, dword [0x485d8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x488b9c], eax
push 0x44ec4c
mov eax, dword [0x485d8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x488ba0], eax
push 0x44ec60
mov eax, dword [0x485d8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x488ba4], eax
push 0x44ec78
mov eax, dword [0x485d8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x488ba8], eax
push 0x44ec90
mov eax, dword [0x485d8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x488bac], eax
push 0x44eca4
mov eax, dword [0x485d8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x488bb0], eax
push 0x44ecbc
mov eax, dword [0x485d8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x488bb4], eax
push 0x44ecd4
mov eax, dword [0x485d8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x488bb8], eax
push 0x44ecf0
mov eax, dword [0x485d8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x488bbc], eax
push 0x44ecfc
mov eax, dword [0x485d8c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x488bc0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ec11
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x452ab8
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00404b60
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x452b07
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404dd0
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45a2d8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45a328]
test si, 4
je 0x45a2ec
or bl, 1
test si, 8
je 0x45a2f6
or bl, 4
test si, 1
je 0x45a300
or bl, 8
test si, 2
je 0x45a30a
or bl, 0x10
test si, 0x10
je 0x45a314
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45a323
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x45a32c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45a364]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45a345
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45a354
or bl, 4
test esi, 0x20000000
je 0x45a35f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x460a28
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x460a3a
add esp, 0xfffffff0
call fcn.0040410c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041b7c0
mov eax, dword [0x486e08]
mov dword [eax + 4], ebx
mov dword [eax], 0x460dcc
mov eax, dword [0x486e14]
mov dword [eax + 4], ebx
mov dword [eax], 0x460dd8
mov eax, ebx
call fcn.00460de4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4130a0]
call fcn.00403da4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4130a0]
call fcn.00403da4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4130a0]
call fcn.00403da4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4130a0]
call fcn.00403da4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4130a0]
call fcn.00403da4
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x45d1fc
push eax
push 0
push 0
mov eax, dword [0x486f88]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41d26c]
call fcn.0041ea04
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41d26c]
call fcn.0041ea04
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41d26c]
call fcn.0041ea04
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00461234
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4610fc
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4610fc
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4610fc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x460b77
call fcn.00404164
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x460ee0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46108b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46106c
mov dl, 1
mov eax, dword [0x413648]
call fcn.00403da4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404b60
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46105b
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044ee04
test al, al
je 0x46104e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x46109c
lea eax, [ebp - 0x254]
call fcn.00409fec
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46104e
xor eax, eax
push ebp
push 0x461047
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4610d4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x461030
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404dd0
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x461030
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404dd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46104e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x460f51
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004178cc
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461092
lea eax, [ebp - 0x260]
call fcn.00404b60
ret

Function at 0x4619d4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x488be4]
cmp byte [eax + 0xa5], 0
jne 0x461a45
cmp dword [0x488bfc], 0
jne 0x461a06
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x461990
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x488bfc], eax
cmp dword [0x488bf8], 0
jne 0x461a21
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x488bf8], eax
cmp dword [0x488c00], 0
jne 0x461a45
push esp
push 0
push 0
push 0x461934
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x488c00], eax
pop edx
ret
Function at 0x4620d8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x488be4]
cmp dword [eax + 0x30], 0
je 0x462182
cmp dword [ebx + 0x94], 0
jne 0x46217c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x462068
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46217c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x462142
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46217c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00415594
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x462151
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x462ce0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x462d15
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404c50
jmp 0x462d22
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404bb4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x463edc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x463f1d
mov eax, esi
call fcn.0044a3cc
test al, al
je 0x463f1d
mov eax, dword [ebx + 0x84]
call fcn.0044a0c8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x463f1d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044a0c8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x467608
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x467636
mov eax, ebx
call fcn.004680bc
cmp dword [ebx + 0x40], 0
je 0x46762f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4676a7
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x467699
cmp dword [ebx + 8], 0
je 0x467658
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x46766a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x467699
cmp dword [ebx + 8], 0
je 0x46764b
cmp eax, 3
je 0x46767d
dec eax
jne 0x46764b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x46764b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x46764b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4676c5
cmp dword [ebx + 0x14], 0xcc
je 0x4676c5
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004676d0
pop ebx
ret
Function at 0x47969c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405020
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x4796b5
test al, 0x10
jne 0x4796b9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x479c58
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405010
xor eax, eax
push ebp
push 0x479d22
push dword fs:[eax]
mov dword fs:[eax], esp
or esi, 0xffffffff
push 0
push 0x8000080
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00405020
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x479d01
push 0
lea eax, [ebp - 0xc]
push eax
push 0x1000
lea eax, [ebp - 0x100c]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x479cea
mov edi, dword [ebp - 0xc]
test edi, edi
jbe 0x479cef
lea ebx, [ebp - 0x100c]
mov edx, esi
mov al, byte [ebx]
call fcn.00479c38
add esi, eax
inc ebx
dec edi
jne 0x479cd9
jmp 0x479cef
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x1000
je 0x479cad
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, esi
call fcn.00479c54
mov esi, eax
mov ebx, esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479d29
lea eax, [ebp - 4]
call fcn.00404b60
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405020
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x47bcad
test al, 0x10
jne 0x47bcb1
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x47c034
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
mov eax, ebx
call fcn.00404b60
push esp
push 5
mov eax, dword [0x48701c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.0041291c
test al, al
je 0x47c086
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
test eax, eax
je 0x47c07e
mov edx, ebx
lea eax, [esp + 4]
call fcn.00409b6c
mov eax, dword [esp]
call fcn.0047bfe0
add esp, 0x108
pop ebx
ret

Function at 0x47c1f4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47c25e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x105]
call fcn.00409b6c
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0047bee0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c265
lea eax, [ebp - 0x10c]
call fcn.00404b60
ret
Function at 0x47c79c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00405010
xor eax, eax
push ebp
push 0x47c889
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0xffffffff
lea eax, [ebp - 0x110]
mov edx, dword [ebp - 4]
call fcn.004099fc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jle 0x47c849
mov eax, ebx
call fcn.00402a90
mov edi, eax
push edi
push ebx
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x47c898
push edi
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x47c842
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0xfeef04bd
jne 0x47c842
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov dword [esi + 4], eax
mov eax, edi
call fcn.00402ac0
test ebx, ebx
jne 0x47c873
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x47c873
push 0
push pe_nt_image_headers32
lea edx, [ebp - 0x110]
push edx
push 0
push eax
push 0
push 0x1000
call sub.kernel32.dll_FormatMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c890
lea eax, [ebp - 4]
call fcn.00404b60
ret

Function at 0x47cd34
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405010
xor eax, eax
push ebp
push 0x47cda5
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
push 0
push 0x8000080
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00405020
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
test ebx, ebx
jbe 0x47cd8f
lea eax, [ebp - 8]
push eax
push ebx
call sub.kernel32.dll_GetFileSize_1
mov esi, eax
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47cdac
lea eax, [ebp - 4]
call fcn.00404b60
ret
Function at 0x47cdb4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x80
add esp, 0xfffff004
push eax
dec eax
jne 0x47cdbd
mov eax, dword [ebp - 4]
add esp, 0xfffffffc
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405010
xor eax, eax
push ebp
push 0x47ce70
push dword fs:[eax]
mov dword fs:[eax], esp
or ebx, 0xffffffff
push 0
push 0x8000080
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00405020
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
test esi, esi
jbe 0x47ce5a
push 0
lea eax, [ebp - 8]
push eax
push 0x80000
lea eax, [ebp - 0x80008]
push eax
push esi
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x47ce46
mov edx, dword [ebp - 8]
test edx, edx
jbe 0x47ce4b
lea eax, [ebp - 0x80008]
xor ecx, ecx
mov cl, byte [eax]
add ebx, ecx
inc eax
dec edx
jne 0x47ce3a
jmp 0x47ce4b
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x80000
je 0x47ce11
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ce77
lea eax, [ebp - 4]
call fcn.00404b60
ret

Function at 0x47d1c0
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405010
xor eax, eax
push ebp
push 0x47d259
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x8c]
push eax
mov eax, dword [ebp - 4]
call fcn.00405020
mov ebx, eax
push ebx
call sub.LZ32.DLL_LZOpenFileA
mov esi, eax
lea eax, [ebp - 0x191]
push eax
push ebx
call sub.LZ32.DLL_GetExpandedNameA
dec eax
jne 0x47d237
push 0x1000
lea eax, [ebp - 0x8c]
push eax
lea eax, [ebp - 0x191]
push eax
call sub.LZ32.DLL_LZOpenFileA
mov edi, eax
push edi
push esi
call sub.LZ32.DLL_LZCopy
push edi
call sub.LZ32.DLL_LZClose
push esi
call sub.LZ32.DLL_LZClose
push ebx
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d260
lea eax, [ebp - 4]
call fcn.00404b60
ret
Function at 0x47e52c
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x80
add esp, 0xfffff004
push eax
dec eax
jne 0x47e535
mov eax, dword [ebp - 4]
add esp, 0xffffffc8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x8003c], edx
mov dword [ebp - 0x10], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x47e746
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
mov edx, 0x47e75c
call fcn.00404bf8
mov esi, dword [ebx + 0x80]
cmp dword [esi + 4], 0
je 0x47e725
cmp dword [esi + 8], 0
je 0x47e725
lea eax, [ebp - 0x35]
mov edx, 0x47e794
call fcn.004099fc
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x194]
call fcn.00405020
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 4], eax
push 1
push 0
push 3
push 0
push 0
push 0x50
mov eax, dword [ebx + 0x80]
mov eax, dword [eax + 4]
call fcn.00405020
push eax
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x47e70a
push 1
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x80]
mov eax, dword [eax + 8]
call fcn.00405020
push eax
push 0x47e79c
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x47e6ed
mov eax, dword [ebx + 0x80]
add eax, 0x14
call fcn.00404b60
mov eax, dword [ebx + 0x80]
mov eax, dword [eax + 0xc]
call fcn.00404e20
push eax
mov eax, dword [ebx + 0x80]
mov eax, dword [eax + 0xc]
call fcn.00405020
push eax
mov eax, dword [ebp - 0x10]
call fcn.00404e20
push eax
mov eax, dword [ebp - 0x10]
call fcn.00405020
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_HttpSendRequestA
test eax, eax
je 0x47e6e2
mov dword [ebp - 0x14], 0x80000
cmp dword [ebp - 0x14], 0
jbe 0x47e6e2
mov eax, dword [0x48701c]
mov eax, dword [eax]
call fcn.00463020
lea eax, [ebp - 0x14]
push eax
push 0x80000
lea eax, [ebp - 0x80035]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetReadFile
test eax, eax
je 0x47e6e2
cmp dword [ebp - 0x14], 0
jbe 0x47e6dc
cmp dword [ebp - 0x14], 0x80000
ja 0x47e6dc
mov edi, dword [ebp - 0x14]
dec edi
test edi, edi
jl 0x47e6dc
inc edi
lea esi, [ebp - 0x80035]
lea eax, [ebp - 0x8003c]
mov dl, byte [esi]
call fcn.00404d48
mov edx, dword [ebp - 0x8003c]
mov eax, dword [ebx + 0x80]
add eax, 0x14
call fcn.00404e28
inc esi
dec edi
jne 0x47e6b7
cmp dword [ebp - 0x14], 0
ja 0x47e670
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
jmp 0x47e6ff
push 0x11
push 5
xor ecx, ecx
mov edx, 0x3b8
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
jmp 0x47e71c
push 0x10
push 5
xor ecx, ecx
mov edx, 0x3b7
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 4]
push eax
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47e74d
lea eax, [ebp - 0x8003c]
call fcn.00404b60
lea eax, [ebp - 0x10]
call fcn.00404b60
ret