joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52b670
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57aeb9
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5ea6f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004e9830
mov dword [ebp - 0x34], 0x582948
lea eax, [ebp - 0x2c]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp - 0x34]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x52b6ea
lea ecx, [ebp + 8]
call fcn.004e9c20
push eax
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x28]
call fcn.004e9960
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004e9960
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005507d9
mov esp, ebp
pop ebp
ret 0x18

Function at 0x52e680
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x5ea6f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp + 8]
call fcn.004e9240
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004e1a10
add esp, 8
mov dword [ebp - 0x2c], 0x5850d8
lea ecx, [ebp - 0x20]
push ecx
push 0x2001f
push 0
mov edx, dword [ebp - 0x2c]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x52e737
xor eax, eax
mov word [ebp - 0x23c], ax
push 0x206
push 0
lea ecx, [ebp - 0x23a]
push ecx
call fcn.00550c40
add esp, 0xc
mov dword [ebp - 0x34], 1
lea ecx, [ebp - 0x1c]
call fcn.004e9250
shl eax, 1
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
push edx
lea ecx, [ebp - 0x1c]
call fcn.004e9c20
push eax
push 1
push 0
push 0x585198
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x52e788
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x52e788
lea ecx, [ebp - 0x1c]
call fcn.004e9250
shl eax, 1
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004e9c20
push eax
push 1
push 0
push 0x5851b4
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x1c]
call fcn.004e9960
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005507d9
mov esp, ebp
pop ebp
ret 4
Function at 0x52f300
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b5c9
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x5ea6f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x254], ecx
lea ecx, [ebp - 0x230]
call fcn.004e9830
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.004e9830
mov byte [ebp - 4], 1
push 0
push 0x23
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x52f37b
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x248]
call fcn.004e99b0
push str._tencentQQPCMgrAdBlockuserconfig.dat
lea edx, [ebp - 0x248]
push edx
lea eax, [ebp - 0x26c]
push eax
call fcn.004ee4c0
add esp, 0xc
mov dword [ebp - 0x250], eax
mov ecx, dword [ebp - 0x250]
push ecx
lea ecx, [ebp - 0x230]
call fcn.004e9920
lea ecx, [ebp - 0x26c]
call fcn.004e9960
lea ecx, [ebp - 0x230]
call fcn.004e9c20
push eax
call fcn.004e44a0
add esp, 4
test eax, eax
je 0x52f3da
mov byte [ebp - 0x249], 1
jmp 0x52f3e1
mov byte [ebp - 0x249], 0
mov dl, byte [ebp - 0x249]
mov byte [ebp - 0x24a], dl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.004e9960
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.004e9960
mov al, byte [ebp - 0x24a]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005507d9
mov esp, ebp
pop ebp
ret
Function at 0x5370e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c315
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x5ea6f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x38]
add ecx, 0x364
call fcn.005474c0
movzx eax, al
test eax, eax
je 0x537125
jmp 0x53720b
lea ecx, [ebp - 0x30]
push ecx
call fcn.004e3d10
add esp, 4
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x38]
add edx, 0x364
mov dword [ebp - 0x34], edx
push 4
lea ecx, [ebp - 0x14]
call fcn.0051c1f0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x34]
call fcn.00547210
push 4
lea ecx, [ebp - 0x18]
call fcn.0051c1f0
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x34]
call fcn.00547520
jmp 0x53717a
lea ecx, [ebp - 0x14]
call fcn.00545af0
lea edx, [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.005458e0
movzx eax, al
test eax, eax
je 0x5371fc
lea ecx, [ebp - 0x14]
call fcn.00545980
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
add ecx, 0x18
call fcn.004e9240
push eax
lea ecx, [ebp - 0x78]
push ecx
call fcn.004e1a10
add esp, 8
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x44], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x44]
push eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x60]
push edx
call fcn.00541e80
add esp, 0xc
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
call fcn.004e9c20
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x60]
call fcn.004e9960
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x78]
call fcn.004e9960
jmp 0x537172
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004e9960
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005507d9
mov esp, ebp
pop ebp
ret
Function at 0x537a30
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x5ea6f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x21], 0
mov dword [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x537a98
mov dword [ebp - 0x28], 1
jmp 0x537b01
push 0xf01ff
lea ecx, [ebp + 8]
call fcn.004e9c20
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x537ac2
mov dword [ebp - 0x28], 2
jmp 0x537b01
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov byte [ebp - 0x21], al
movzx ecx, byte [ebp - 0x21]
test ecx, ecx
jne 0x537ae4
mov dword [ebp - 0x28], 3
jmp 0x537b01
cmp dword [ebp - 0x1c], 1
je 0x537af0
cmp dword [ebp - 0x1c], 3
jne 0x537af9
mov dword [ebp - 0x28], 4
jmp 0x537b01
xor edx, edx
jne 0x537a77
cmp dword [ebp - 0x30], 0
je 0x537b11
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x2c], 0
je 0x537b21
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x34], edx
lea ecx, [ebp + 8]
call fcn.004e9960
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005507d9
mov esp, ebp
pop ebp
ret 0x18
Function at 0x56d295
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5ea6f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0055a480
mov dword [ebp - 0x14], eax
cmp dword [0x5f0174], esi
jne 0x56d388
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x56d315
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x56d468
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x56d468
push 0x5cdc84
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x56d468
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x5f0174], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x5f0178], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5cdcb4
push edi
mov dword [0x5f017c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5f0184], eax
test eax, eax
je 0x56d385
push 0x5cdcd0
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5f0180], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x56d3ad
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x56d3a0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x56d3c2
push 4
pop eax
jmp 0x56d46a
cmp dword [ebp - 0x14], esi
je 0x56d3c2
push dword [0x5f0174]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x56d3a7
mov eax, dword [0x5f0180]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x56d420
cmp dword [0x5f0184], edi
je 0x56d420
push eax
call ebx
push dword [0x5f0184]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x56d420
test eax, eax
je 0x56d420
call ecx
test eax, eax
je 0x56d415
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x56d415
test byte [ebp - 8], 1
jne 0x56d420
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x56d450
mov eax, dword [0x5f0178]
cmp eax, edi
je 0x56d44d
push eax
call ebx
test eax, eax
je 0x56d44d
call eax
mov esi, eax
test esi, esi
je 0x56d44d
mov eax, dword [0x5f017c]
cmp eax, edi
je 0x56d44d
push eax
call ebx
test eax, eax
je 0x56d44d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5f0174]
call ebx
test eax, eax
je 0x56d468
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x56d46a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005507d9
mov esp, ebp
pop ebp
ret
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401000
Capabilities:
Create service
Get common file path
Start service
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0x403080
push 0x400
call sub.kernel32.dll_GetCurrentDirectoryA
push str.MemPhys.sys
push 0x403080
call sub.kernel32.dll_lstrcatA
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 4], eax
push 0
push 0
push 0
push 0
push 0
push 0x403080
push 0
push 3
push 1
push 0x10030
push str.Physical_Memory_Viewer
push str.MemPhys
push dword [ebp - 4]
call sub.advapi32.dll_CreateServiceA
or eax, eax
jne 0x40109a
call sub.kernel32.dll_GetLastError
push 0
push 0x400
push 0x403280
push 0
push eax
push 0
push 0x1000
call sub.kernel32.dll_FormatMessageA
push 0x10
push str.CreateService_Failed
push 0x403280
push 0
call sub.user32.dll_MessageBoxA
jmp 0x4010fd
mov dword [ebp - 8], eax
push 0
push 0
push dword [ebp - 8]
call sub.advapi32.dll_StartServiceA
or eax, eax
je 0x4010c2
push 0
push str.Success
push str.MemPhys_Driver_is_Started
push 0
call sub.user32.dll_MessageBoxA
jmp 0x4010f5
call sub.kernel32.dll_GetLastError
push 0
push 0x400
push 0x403280
push 0
push eax
push 0
push 0x1000
call sub.kernel32.dll_FormatMessageA
push 0x10
push str.StartService_Failed
push 0x403280
push 0
call sub.user32.dll_MessageBoxA
push dword [ebp - 8]
call sub.advapi32.dll_CloseServiceHandle
push dword [ebp - 4]
call sub.advapi32.dll_CloseServiceHandle
push 0
call 0x40110c
jmp dword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x4011d0
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push 0x14
mov eax, 0x442d3f
call fcn.004420ed
mov edi, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
xor esi, esi
cmp byte [edi + 0x2a], 0
jne 0x4011f2
cmp word [edi + 0x1a], si
jbe 0x40123f
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x20]
call fcn.004047a7
mov esi, eax
test esi, esi
je 0x401216
xor eax, eax
push eax
push esi
push ecx
mov ecx, edi
call fcn.004017c2
mov eax, esi
jmp 0x40132d
lea esi, [edi + 0x2c]
push esi
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
test eax, eax
jne 0x401232
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x401203
lea eax, [ebp - 0x20]
push eax
push esi
call ebx
test eax, eax
je 0x401228
xor esi, esi
lea eax, [edi + 0x1a]
cmp word [eax], si
jbe 0x40126e
lea ecx, [ebp - 0x18]
push ecx
push eax
call ebx
test eax, eax
je 0x401228
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
js 0x40126e
mov eax, 0xe0000013
jmp 0x40132d
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
sub ecx, 0x10
call fcn.00401706
add eax, 0x10
mov dword [ebp - 0x14], eax
push str..part
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.0040145f
push ecx
lea ecx, [ebp - 0x14]
call fcn.004053c5
mov esi, dword [ebp - 0x14]
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x401309
cmp byte [edi + 0x18], 0
je 0x4012c4
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4012c4
lea eax, [ebp - 0x14]
push eax
call fcn.004013c1
mov ebx, eax
test ebx, ebx
jne 0x401309
push 2
xor eax, eax
cmp byte [edi + 0x3c], al
pop ecx
cmovne eax, ecx
push eax
xor eax, eax
push eax
mov eax, dword [ebp + 8]
push edi
push 0x401335
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
je 0x401301
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x401317
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
xor eax, eax
push eax
push ebx
push ecx
mov ecx, edi
call fcn.004017c2
jmp 0x401323
xor ebx, ebx
mov ecx, edi
push ebx
push 1
call fcn.004017a2
lea ecx, [esi - 0x10]
call fcn.00401759
mov eax, ebx
call fcn.004420b6
ret 8
Function at 0x4027bf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402818
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402809
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x402805
cmp esi, ecx
jae 0x402809
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x4027f3
cmp esi, ecx
jb 0x40280d
xor eax, eax
jmp 0x402817
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4032bb
Capabilities:
Get file size

Disassembly:
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push esi
push SysReAllocString
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4032eb
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test edi, edi
je 0x4032f2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
ret

Function at 0x403415
Capabilities:
Get geographical location

Disassembly:
push 8
mov eax, 0x442fdb
call fcn.004420ed
xor ebx, ebx
movzx eax, cx
push ebx
push ebx
push 0x1004
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x403441
xor al, al
jmp 0x4034ad
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042e934
mov esi, eax
pop ecx
mov dword [ebp - 0x14], esi
push edi
push esi
push 0x1004
mov dword [ebp - 4], ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
je 0x4034a4
call fcn.0040268c
push eax
lea eax, [edi - 1]
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.0040245d
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 1
call fcn.004023ce
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00401759
mov bl, 1
push esi
call fcn.0042e92f
pop ecx
mov al, bl
call fcn.004420b6
ret
Function at 0x403af0
Capabilities:
Create process on windows

Disassembly:
push 0x48
mov eax, 0x4430b2
call fcn.004420ed
mov dword [ebp - 0x14], edx
mov edi, ecx
xor ebx, ebx
lea eax, [ebp - 0x50]
push 0x38
push ebx
push eax
mov dword [ebp - 0x10], ebx
call fcn.0042fde0
mov esi, dword [edi]
mov eax, 0x400
add esp, 0xc
mov dword [ebp - 0x54], 0x3c
cmp dword [ebp + 8], ebx
lea ecx, [eax + 0x40]
cmovne eax, ecx
mov ecx, edi
mov dword [ebp - 0x50], eax
call fcn.004051e3
test al, al
je 0x403b3d
add esi, 8
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x38], 1
mov ecx, dword [ecx]
mov dword [ebp - 0x48], str.open
cmp dword [ecx - 0xc], ebx
cmovne eax, ecx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], ebx
jne 0x403b7e
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.00404ea2
mov dword [ebp - 4], ebx
xor ebx, ebx
mov edi, dword [ebp + 0x18]
inc ebx
jmp 0x403b99
add ecx, 0xfffffff0
call fcn.00401706
lea edi, [eax + 0x10]
mov dword [ebp + 0x18], edi
push 2
lea eax, [ebp + 0x18]
mov dword [ebp - 4], 1
pop ebx
mov ecx, dword [eax]
sub ecx, 0x10
mov dword [ebp - 0x10], ebx
call fcn.00401706
lea esi, [eax + 0x10]
mov dword [ebp + 0x18], esi
mov dword [ebp - 4], 2
test bl, 2
je 0x403bc3
lea ecx, [edi - 0x10]
and ebx, 0xfffffffd
call fcn.00401759
mov byte [ebp - 4], 4
test bl, 1
je 0x403bd7
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00401759
lea ecx, [ebp + 0x18]
mov edi, esi
call fcn.004051e3
test al, al
je 0x403be8
lea edi, [esi + 8]
lea eax, [ebp - 0x54]
mov dword [ebp - 0x3c], edi
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x403bfd
xor ebx, ebx
jmp 0x403c23
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x403c12
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x403c21
call fcn.00403c33
mov dword [ebx], eax
cmp dword [ebp - 0x1c], 0
je 0x403c21
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
lea ecx, [esi - 0x10]
call fcn.00401759
mov al, bl
call fcn.004420b6
ret
Function at 0x404cc5
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x80
mov eax, dword [0x45800c]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push ebp
push edi
xor ebx, ebx
mov eax, edx
push ebx
push 0x80
push 3
push ebx
push 3
push SysReAllocString
push ecx
mov dword [esp + 0x34], eax
mov byte [eax], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x404dc8
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x404dc8
test ebp, ebp
je 0x404dc8
push esi
push 0x10000
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
call fcn.00403c85
mov esi, dword [esp + 0x14]
test esi, esi
je 0x404dc0
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov byte [esp + 0x13], bl
call fcn.00405c41
push ebx
lea eax, [esp + 0x1c]
push eax
push 0x10000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404da8
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x404da8
mov edx, dword [esp + 0x14]
lea eax, [ecx + edx]
cmp eax, ebp
jbe 0x404d8b
mov ecx, ebp
mov byte [esp + 0x13], 1
sub ecx, edx
mov dword [esp + 0x18], ecx
push ecx
push esi
lea ecx, [esp + 0x28]
call fcn.00405acf
mov eax, dword [esp + 0x14]
add eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
cmp byte [esp + 0x13], bl
je 0x404d54
lea ecx, [esp + 0x20]
call fcn.00405b6e
push dword [esp + 0x1c]
lea ecx, [esp + 0x24]
call fcn.00405bee
mov bl, al
push esi
call fcn.0042e92f
pop ecx
pop esi
test edi, edi
je 0x404dd3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x88]
mov al, bl
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042e8fb
add esp, 0x80
ret

Function at 0x404e12
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x45800c]
xor eax, ebp
mov dword [ebp + 0x190], eax
and dword [ebp - 0x80], 0
lea eax, [ebp - 0x78]
push esi
push eax
mov esi, ecx
push 0x104
mov dword [ebp - 0x7c], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x404e6f
call fcn.0040268c
push eax
mov ecx, esi
call fcn.004024c1
mov ecx, dword [ebp + 0x190]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042e8fb
lea esp, [ebp + 0x194]
pop ebp
ret
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x7a], cx
je 0x404e7f
mov word [ebp + eax*2 - 0x78], cx
inc eax
add eax, eax
cmp eax, 0x208
jae 0x404e9c
xor ecx, ecx
mov word [ebp + eax - 0x78], cx
lea eax, [ebp - 0x78]
push eax
mov ecx, esi
call fcn.00402a4c
jmp 0x404e57
call fcn.0042ef34
int3