joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476540
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4765ff
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x6400000
jb 0x476595
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x476601
mov eax, dword [ebp - 0xc]
add eax, 0xa
push eax
call fcn.00442b2d
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jne 0x4765c1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x476601
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
mov byte [edx], 0
cmp dword [ebp + 0xc], 0
je 0x4765fa
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
jmp 0x476601
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x476610
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov byte [ebp - 0xd], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x47663e
xor al, al
jmp 0x47671a
mov edx, dword [ebp - 8]
push edx
call fcn.00445aed
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4766b3
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4766b3
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x4c]
push ecx
push 0x4d536c
mov edx, dword [ebp - 4]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4766b3
push 0x34
mov eax, dword [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.004452f0
add esp, 0xc
xor edx, edx
cmp dword [ebp - 0x44], 0xfeef04bd
sete dl
mov byte [ebp - 0xd], dl
mov eax, dword [ebp - 4]
push eax
call fcn.00445880
add esp, 4
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
jne 0x4766cb
xor al, al
jmp 0x47671a
mov edx, dword [ebp - 0x3c]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp - 0x3c]
and edx, 0xffff
movzx eax, dx
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x38]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 0x38]
and edx, 0xffff
movzx eax, dx
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0xc], eax
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x476720
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x4fe37c]
xor eax, ebp
mov dword [ebp - 8], eax
lea eax, [ebp - 0x258]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4767d5
push 0x4d538c
lea edx, [ebp - 0x22c]
push edx
call fcn.004451be
add esp, 8
test eax, eax
je 0x4767b6
push 0x4d5390
lea eax, [ebp - 0x22c]
push eax
call fcn.004451be
add esp, 8
test eax, eax
je 0x4767b6
mov ecx, dword [ebp - 0x258]
and ecx, 0x10
jne 0x476794
mov edx, dword [ebp + 0x10]
and edx, 1
jne 0x4767a7
mov eax, dword [ebp - 0x258]
and eax, 0x10
je 0x4767b6
mov ecx, dword [ebp + 0x10]
and ecx, 2
je 0x4767b6
lea edx, [ebp - 0x258]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.0043b070
lea eax, [ebp - 0x258]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x476751
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004443e3
mov esp, ebp
pop ebp
ret
Function at 0x476ce0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c4f54
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x4fe37c]
xor eax, ebp
mov dword [ebp - 0x2c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.004767f0
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0043af70
mov byte [ebp - 4], 1
push 0x4d5398
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x298]
push eax
call fcn.00409480
add esp, 0xc
mov dword [ebp - 0x2cc], eax
mov ecx, dword [ebp - 0x2cc]
mov dword [ebp - 0x2d0], ecx
mov byte [ebp - 4], 2
push 3
lea edx, [ebp - 0x28]
push edx
mov ecx, dword [ebp - 0x2d0]
call fcn.00407070
push eax
call fcn.00476720
add esp, 0xc
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x298]
call fcn.00406fd0
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x28]
call fcn.0043b010
jmp 0x476da4
push 0
lea ecx, [ebp - 0x2a0]
push ecx
lea ecx, [ebp - 0x50]
call fcn.00432ce0
lea edx, [ebp - 0x2a8]
push edx
lea ecx, [ebp - 0x28]
call fcn.0043b040
push eax
lea ecx, [ebp - 0x50]
call fcn.0043b0b0
movzx eax, al
test eax, eax
je 0x476f1b
push 0x4d53a0
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x2c4]
push edx
call fcn.00409480
add esp, 0xc
mov dword [ebp - 0x2d4], eax
mov eax, dword [ebp - 0x2d4]
mov dword [ebp - 0x2d8], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x50]
call fcn.00432cc0
add eax, 0x2c
push eax
mov ecx, dword [ebp - 0x2d8]
push ecx
lea edx, [ebp - 0x27c]
push edx
call fcn.00409480
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c4]
call fcn.00406fd0
xor eax, eax
mov word [ebp - 0x25c], ax
push 0x206
push 0
lea ecx, [ebp - 0x25a]
push ecx
call fcn.00445020
add esp, 0xc
push 0x104
lea edx, [ebp - 0x25c]
push edx
lea ecx, [ebp - 0x27c]
call fcn.00407070
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov dword [ebp - 0x260], eax
cmp dword [ebp - 0x260], 0
jle 0x476e90
cmp dword [ebp - 0x260], 0x104
jge 0x476e90
lea eax, [ebp - 0x25c]
push eax
lea ecx, [ebp - 0x27c]
call fcn.00407010
lea ecx, [ebp - 0x50]
call fcn.00432cc0
mov ecx, dword [eax]
and ecx, 0x10
je 0x476ef5
lea ecx, [ebp - 0x27c]
call fcn.00407070
push eax
call fcn.00476ce0
add esp, 4
movzx edx, al
test edx, edx
jne 0x476ef3
mov byte [ebp - 0x2c5], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x27c]
call fcn.00406fd0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0043aff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00406fd0
mov al, byte [ebp - 0x2c5]
jmp 0x476f52
jmp 0x476f07
lea ecx, [ebp - 0x27c]
call fcn.00407070
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x27c]
call fcn.00406fd0
jmp 0x476d93
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x2c6], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0043aff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00406fd0
mov al, byte [ebp - 0x2c6]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.004443e3
mov esp, ebp
pop ebp
ret
Function at 0x477460
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x503e1c]
mov dword [ebp - 4], eax
jmp 0x477479
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x477496
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x477470
mov esp, ebp
pop ebp
ret

Function at 0x4775c0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x503e28], eax
je 0x4775de
mov eax, 0x10dd
jmp 0x4776bf
mov eax, dword [0x503e38]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x47765c
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x17]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x47763a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x47763a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.00477090
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.004443d8
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x4775e6
mov dword [0x503e38], 0
call fcn.00477420
mov ecx, dword [0x503e34]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
je 0x4776a9
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004443d8
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
jmp 0x477674
mov dword [0x503e34], 0
mov dword [0x503e28], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x477fe0
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4f1af8
push 0x44a610
mov eax, dword fs:[0]
push eax
add esp, 0xfffffff4
push ebx
push esi
push edi
mov eax, dword [0x4fe37c]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x24]
push eax
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
movzx edx, word [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x478064
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x478080
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4f1b18
push 0x44a610
mov eax, dword fs:[0]
push eax
add esp, 0xfffffff4
push ebx
push esi
push edi
mov eax, dword [0x4fe37c]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xfffffffe
jmp 0x4780f7
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x478110
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
jbe 0x478154
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x478140
or eax, 0xffffffff
jmp 0x478156
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp - 4]
mov dword [ebp + 0x10], edx
jmp 0x47811b
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x478160
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1090
call fcn.00454620
mov eax, dword [0x4fe37c]
xor eax, ebp
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 0
push 0
call fcn.00478080
add esp, 0x14
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4783ae
mov byte [ebp - 0x1008], 0
push 0x7ff
push 0
lea eax, [ebp - 0x1007]
push eax
call fcn.00445020
add esp, 0xc
mov byte [ebp - 0x808], 0
push 0x7ff
push 0
lea ecx, [ebp - 0x807]
push ecx
call fcn.00445020
add esp, 0xc
mov dword [ebp - 0x1044], 0
push 0x38
push 0
lea edx, [ebp - 0x1040]
push edx
call fcn.00445020
add esp, 0xc
mov dword [ebp - 0x1044], 0x3c
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1034], eax
mov dword [ebp - 0x1030], 0x800
lea ecx, [ebp - 0x808]
mov dword [ebp - 0x1018], ecx
mov dword [ebp - 0x1014], 0x800
lea edx, [ebp - 0x1044]
push edx
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push 0
push 0
push 3
push 0x4cf892
push 0x4cf893
push 0x50
mov ecx, dword [ebp - 0x1034]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.00477fe0
add esp, 0x20
mov dword [ebp - 0x1048], eax
cmp dword [ebp - 0x1048], 0
je 0x4783a4
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x1018]
push eax
push str.POST
mov ecx, dword [ebp - 0x1048]
push ecx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 0x104c], eax
cmp dword [ebp - 0x104c], 0
je 0x478397
push 0x4d5500
lea ecx, [ebp - 0x1068]
call fcn.00406f50
push 0x20000000
lea ecx, [ebp - 0x1068]
call fcn.0040add0
push eax
lea ecx, [ebp - 0x1068]
call fcn.00407070
push eax
mov edx, dword [ebp - 0x104c]
push edx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
mov dword [ebp - 0x1090], 0
xor eax, eax
mov dword [ebp - 0x108c], eax
mov dword [ebp - 0x1088], eax
mov dword [ebp - 0x1084], eax
mov dword [ebp - 0x1080], eax
mov dword [ebp - 0x107c], eax
mov dword [ebp - 0x1078], eax
mov dword [ebp - 0x1074], eax
mov dword [ebp - 0x1070], eax
mov dword [ebp - 0x106c], eax
mov dword [ebp - 0x1090], 0x28
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1074], ecx
push 0
push 0
push 0
lea edx, [ebp - 0x1090]
push edx
mov eax, dword [ebp - 0x104c]
push eax
call fcn.00477f50
add esp, 0x14
test eax, eax
je 0x47836c
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x104c]
push eax
call fcn.00478110
add esp, 0xc
push 0
push 0
push 0
mov ecx, dword [ebp - 0x104c]
push ecx
call dword [sym.imp.WININET.dll_HttpEndRequestW]
mov edx, dword [ebp - 0x104c]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x1068]
call fcn.00406fd0
mov eax, dword [ebp - 0x1048]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004443e3
mov esp, ebp
pop ebp
ret
Function at 0x4786d0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4fe37c]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x13], 0
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], 0
mov byte [ebp - 0x10], 0
mov byte [ebp - 0xf], 5
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x478749
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x47873f
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
xor eax, eax
cmp dword [ebp - 8], 0
setne al
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004443e3
mov esp, ebp
pop ebp
ret

Function at 0x478760
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x4fe37c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x501a48], 0xffffffff
jne 0x478940
mov dword [0x501a48], 0xfffffc18
mov dword [ebp - 0x120], 0x114
push 0x110
push 0
lea eax, [ebp - 0x11c]
push eax
call fcn.00445020
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x478940
cmp dword [ebp - 0x110], 2
jne 0x478940
cmp dword [ebp - 0x11c], 5
jne 0x478890
cmp dword [ebp - 0x118], 0
jne 0x4787f1
mov dword [0x501a48], 1
jmp 0x47888b
cmp dword [ebp - 0x118], 1
jne 0x478878
push 0x7f
lea edx, [ebp - 0x10c]
push edx
push 0x4d56a4
call fcn.004459f8
add esp, 0xc
test eax, eax
jne 0x478820
mov dword [0x501a48], 3
jmp 0x478876
push 0x7f
lea eax, [ebp - 0x10c]
push eax
push 0x4d56c4
call fcn.004459f8
add esp, 0xc
test eax, eax
jne 0x478846
mov dword [0x501a48], 4
jmp 0x478876
push 0x7f
lea ecx, [ebp - 0x10c]
push ecx
push str.Service_Pack_3
call fcn.004459f8
add esp, 0xc
test eax, eax
jne 0x47886c
mov dword [0x501a48], 5
jmp 0x478876
mov dword [0x501a48], 2
jmp 0x47888b
cmp dword [ebp - 0x118], 2
jne 0x47888b
mov dword [0x501a48], 6
jmp 0x478940
cmp dword [ebp - 0x11c], 6
jne 0x478936
mov edx, dword [ebp - 0x118]
mov dword [ebp - 0x124], edx
cmp dword [ebp - 0x124], 0
je 0x4788c6
cmp dword [ebp - 0x124], 1
je 0x47891e
cmp dword [ebp - 0x124], 2
je 0x47892a
jmp 0x478934
push 0x7f
lea eax, [ebp - 0x10c]
push eax
push str.Service_Pack_1
call fcn.004459f8
add esp, 0xc
test eax, eax
jne 0x4788ec
mov dword [0x501a48], 8
jmp 0x47891c
push 0x7f
lea ecx, [ebp - 0x10c]
push ecx
push str.Service_Pack_2
call fcn.004459f8
add esp, 0xc
test eax, eax
jne 0x478912
mov dword [0x501a48], 9
jmp 0x47891c
mov dword [0x501a48], 7
jmp 0x478934
mov dword [0x501a48], 0xa
jmp 0x478934
mov dword [0x501a48], 0xb
jmp 0x478940
mov dword [0x501a48], 0x3e8
mov eax, dword [0x501a48]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004443e3
mov esp, ebp
pop ebp
ret
Function at 0x478960
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [0x504b00], 0
jne 0x4789c3
push str.SE_UID
push 4
push 0
push 4
call fcn.00478580
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 8], eax
push 0
push 0
push 0
push 6
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x504b00], eax
cmp dword [0x504b00], 0
jne 0x4789c3
xor ecx, ecx
jne 0x4789ab
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
and eax, 0x7fffffff
jmp 0x4789f3
mov eax, dword [0x504b00]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4789e0
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x14], ecx
jmp 0x4789f0
mov edx, dword [0x504b00]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret

Function at 0x478d60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x18], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x1c], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 0x20], edx
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x24]
test ecx, ecx
je 0x478df6
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 0x25]
test eax, eax
je 0x478dd4
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 4]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
push 0x478c10
push 0x100000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x47a100
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
mov ecx, dword [ebp + 8]
call fcn.00407070
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x47a183
mov dword [ebp - 8], 0
push 2
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.0040add0
shl eax, 1
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00407070
push eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0
mov al, 1
jmp 0x47a185
xor al, al
mov esp, ebp
pop ebp
ret 8
Function at 0x47a1e0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4fe37c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], ecx
fldz
fstp dword [ebp - 0x10]
push 0
push 0
push 0
push 0
push 0
push 0
push 3
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00407070
push eax
call fcn.004484dc
add esp, 0x24
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x47a279
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x47a279
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x30], edx
and dword [ebp - 0x28], 0x7fffffff
fild qword [ebp - 0x2c]
and dword [ebp - 0x30], 0x80000000
mov dword [ebp - 0x34], 0
fild qword [ebp - 0x34]
fchs
faddp st(1)
fdiv qword [0x4ebea8]
fstp dword [ebp - 0x10]
fld dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004443e3
mov esp, ebp
pop ebp
ret 4

Function at 0x47a530
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
add ecx, 0x4b4
call fcn.004b97a0
cmp dword [ebp - 4], 0x12345678
jne 0x47a572
mov dword [ebp - 8], 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax + 0xf8]
call edx
mov ecx, dword [ebp - 0xc]
add ecx, 0x41c
call fcn.00478a50
mov esp, ebp
pop ebp
ret