joyce8/EMBER2024-capa huggingface dataset:
Function at 0xce4d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xce4d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xce4d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xce4d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xce4d94
push eax
push esi
call fcn.00ce720b
add esp, 8
pop esi
ret 0x10

Function at 0xce4da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xce4e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xce4e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xcfd320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00ce6dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xce4dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xce4e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xce4ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xce4eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xcfd320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00ce6dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xce4eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xce4e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xce5000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xce5131
push esi
call fcn.00ce8145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00cd7080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xce5131
push 0
push ebp
call fcn.00cd73a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00cd7260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xce508b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00cd72f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xce5121
push 0xcfd918
push edi
call fcn.00ce63f0
push eax
push ebx
push esi
call fcn.00ce4f60
push 0xcfd8f8
push edi
call fcn.00ce63f0
push eax
push ebx
push esi
call fcn.00ce4f60
push 0xcfd8d8
push edi
call fcn.00ce63f0
push eax
push ebx
push esi
call fcn.00ce4f60
push 0xcfd8c0
push edi
call fcn.00ce63f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00ce4f60
push 0xcfd8a0
push edi
call fcn.00ce63f0
push eax
push ebx
push esi
call fcn.00ce4f60
push 0xcfd888
push edi
call fcn.00ce63f0
push eax
push ebx
push esi
call fcn.00ce4f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xce61b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00ce6140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00ce6140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00ce6140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00ce6140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xce6bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xce6c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xcf887c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xce6c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xce6c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..reloc
nop
nop
mov ebx, 0x40de38
mov ecx, 0x18f21858
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..rdata
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x61d72585
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4010e0
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push 0x30
push 0
lea eax, [ebp - 0x5c]
push eax
call fcn.00460bd0
add esp, 0xc
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x5c], 0x30
mov dword [ebp - 0x4c], 0
push 0xf0f0f0
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [ebp - 0x3c], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x54], 0x4012b0
mov dword [ebp - 0x34], 0x4742d0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x58], 3
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.USER32.dll_RegisterClassExA]
movzx eax, ax
test eax, eax
jne 0x401173
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
call fcn.004036f0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x10000000
push 0
push str.4458a579_af10_4f51_819e_b5d11f88c918
push 8
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffec
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
or eax, 0x80
or eax, 0x10000000
push eax
push 0xffffffffffffffec
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 5
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x8001
push 0x111
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push 0x1c
push 0
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00460bd0
add esp, 0xc
push 0
push 0x190
push 0x1f4
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, 0x190
cdq
sub eax, edx
sar eax, 1
push eax
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
sub eax, 0x1f4
cdq
sub eax, edx
sar eax, 1
push eax
push 0xffffffffffffffff
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push 0
lea eax, [ebp - 0x10]
push eax
push 0x4016a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x401265
or eax, 0xffffffff
jmp 0x4012aa
push 0
push 0
push 0
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x40128f
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x401265
push 0
push 0xffffffffffffffff
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401c50
Capabilities:
Initialize winhttp library
Prepare http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
mov eax, 0x50
mov word [ebp - 4], ax
cmp dword [ebp + 0x14], 0
je 0x401c7c
mov dword [ebp - 8], 0x800000
mov ecx, 0x1bb
mov word [ebp - 4], cx
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
mov eax, dword [ebp + 0x18]
cmp dword [eax], 0
jne 0x401ca4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401d2f
push 0
movzx ecx, word [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edx, dword [ebp + 0x18]
mov dword [edx + 4], eax
mov eax, dword [ebp + 0x18]
cmp dword [eax + 4], 0
jne 0x401cde
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401d2f
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edx, dword [ebp + 0x18]
mov dword [edx + 8], eax
mov eax, dword [ebp + 0x18]
cmp dword [eax + 8], 0
jne 0x401d2d
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401d2f
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x401d40
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0
je 0x401d7c
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
cmp dword [ebp + 0x10], 0
je 0x401da6
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00460e90
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.00460e90
add esp, 4
mov dword [ebp - 8], eax
push 0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401dda
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401e03
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 4], 0
jne 0x401e01
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401e03
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401e10
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 8], 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x401e54
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401eff
cmp dword [ebp - 4], 0
jne 0x401e77
mov ecx, dword [ebp - 8]
add ecx, 0x64
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
jmp 0x401e9c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 0x64]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
jne 0x401eac
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401eff
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
add ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x401ed6
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401eff
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
cmp dword [ebp - 8], 0
ja 0x401e2d
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
mov dword [edx], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
mov byte [edx + eax], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401f10
Capabilities:
Receive http response
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
jne 0x401f7b
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40207e
mov edx, dword [ebp - 8]
add edx, 1
push edx
call fcn.00460c86
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401fc0
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.00460cfc
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40207e
mov ecx, dword [ebp - 8]
add ecx, 1
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.00460bd0
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x402016
mov edx, dword [ebp - 4]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.00460cfc
add esp, 4
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40207e
push 0
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402056
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00460cfc
add esp, 4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40207e
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00460cfc
add esp, 4
cmp dword [ebp - 8], 0
ja 0x401f4a
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x403360
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 8]
push eax
call fcn.0045d210
add esp, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
shl ecx, 2
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
shl edx, 2
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
jmp 0x4033c4
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
jae 0x40340d
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0045d230
add esp, 8
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov dword [edx + ecx*4], eax
push 0
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + eax*4]
push edx
push 0x402f90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov dword [edx + ecx*4], eax
jmp 0x4033bb
push 0
push 0xffffffffffffffff
push 1
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
mov esp, ebp
pop ebp
ret
Function at 0x403430
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x47c350]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
push 0x47e818
call fcn.004552e0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea eax, [ebp - 0x40c]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045e180
add esp, 0xc
mov dword [ebp - 0x410], eax
cmp dword [ebp - 0x410], 0
jne 0x403484
xor eax, eax
jmp 0x403647
call fcn.004553d0
push eax
mov edx, dword [ebp - 0x410]
push edx
call fcn.0045cd60
add esp, 8
mov dword [ebp - 0x420], eax
call fcn.00455510
push eax
mov eax, dword [ebp - 0x420]
push eax
call fcn.0045cd60
add esp, 8
mov dword [ebp - 0x418], eax
call fcn.00458bf0
push eax
mov ecx, dword [ebp - 0x420]
push ecx
call fcn.0045cd60
add esp, 8
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x418], 0
je 0x4034fd
mov edx, dword [ebp - 0x418]
cmp dword [edx], 2
jne 0x4034fd
cmp dword [ebp - 0x41c], 0
je 0x4034fd
mov eax, dword [ebp - 0x41c]
cmp dword [eax], 2
je 0x403518
mov ecx, dword [ebp - 0x410]
push ecx
call fcn.004022e0
add esp, 4
xor eax, eax
jmp 0x403647
mov edx, dword [ebp - 0x418]
push edx
call fcn.0045d590
add esp, 4
mov dword [ebp - 0x424], eax
mov eax, dword [ebp - 0x41c]
push eax
call fcn.0045d590
add esp, 4
mov dword [ebp - 0x42c], eax
lea ecx, [ebp - 0x108]
push ecx
push 0
push 0x47435d
push 0x47e818
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea edx, [ebp - 0x108]
push edx
call fcn.00455630
push eax
push 0x104
lea eax, [ebp - 0x108]
push eax
call fcn.00402280
add esp, 0x10
mov ecx, dword [ebp - 0x424]
push ecx
push 0x4743b8
push 0x104
lea edx, [ebp - 0x310]
push edx
call fcn.00403660
add esp, 0x10
mov eax, dword [ebp - 0x42c]
push eax
push 0x47e818
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x310]
push edx
call fcn.004025e0
add esp, 0x10
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0
je 0x4035e0
mov eax, dword [ebp - 0x410]
push eax
call fcn.004022e0
add esp, 4
xor eax, eax
jmp 0x403647
call fcn.004558d0
push eax
mov ecx, dword [ebp - 0x410]
push ecx
call fcn.0045cd60
add esp, 8
mov dword [ebp - 0x414], eax
cmp dword [ebp - 0x414], 0
je 0x40360f
mov edx, dword [ebp - 0x414]
cmp dword [edx], 1
je 0x403624
mov eax, dword [ebp - 0x410]
push eax
call fcn.004022e0
add esp, 4
xor eax, eax
jmp 0x403647
mov ecx, dword [ebp - 0x414]
push ecx
call fcn.00403360
add esp, 4
mov edx, dword [ebp - 0x410]
push edx
call fcn.004022e0
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460fe2
mov esp, ebp
pop ebp
ret
Function at 0x458e40
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x47c350]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str._s__s
push 0x104
lea edx, [ebp - 0x108]
push edx
call fcn.00402280
add esp, 0x14
call fcn.004548b0
push eax
call fcn.00454700
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x3d8], eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [ebp - 0x3d4], 0x10007
push 0x44
push 0
lea ecx, [ebp - 0x42c]
push ecx
call fcn.00460bd0
add esp, 0xc
push 0x10
push 0
lea edx, [ebp - 0x3e8]
push edx
call fcn.00460bd0
add esp, 0xc
lea eax, [ebp - 0x3e8]
push eax
lea ecx, [ebp - 0x42c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x108]
push edx
push 0
call dword [ebp - 0x3d8]
test eax, eax
je 0x458f10
push 0x493e0
mov eax, dword [ebp - 0x3e8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x458f15
mov eax, 0x1fff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460fe2
mov esp, ebp
pop ebp
ret

Function at 0x459050
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [0x47f008], 0x94
push 0x47f008
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [0x47f018], 2
jne 0x45907d
cmp dword [0x47f00c], 5
jae 0x459087
call fcn.00454c10
mov dword [ebp - 4], eax
jmp 0x4590f7
cmp dword [0x47f00c], 6
jne 0x4590dc
cmp dword [0x47f010], 3
jne 0x4590a3
call fcn.00454df0
mov dword [ebp - 4], eax
jmp 0x4590da
cmp dword [0x47f010], 2
jne 0x4590b6
call fcn.00454eb0
mov dword [ebp - 4], eax
jmp 0x4590da
cmp dword [0x47f010], 1
jne 0x4590c9
call fcn.00454f60
mov dword [ebp - 4], eax
jmp 0x4590da
cmp dword [0x47f010], 0
jne 0x4590da
call fcn.00455020
mov dword [ebp - 4], eax
jmp 0x4590f7
cmp dword [0x47f00c], 0xa
jne 0x4590ef
call fcn.00454d20
mov dword [ebp - 4], eax
jmp 0x4590f7
call fcn.004550b0
mov dword [ebp - 4], eax
call fcn.00459000
movsx eax, al
test eax, eax
je 0x45910c
mov dword [ebp - 8], 0x40
jmp 0x459113
mov dword [ebp - 8], 0x20
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
push str._s__d
push 0x400
push 0x47f0a0
call fcn.00402280
add esp, 0x14
mov eax, 0x47f0a0
mov esp, ebp
pop ebp
ret