joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429d70
Capabilities:
Persist via run registry key

Disassembly:
push 0xffffffffffffffff
push 0x5c7388
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov dword [esp + 0x24], 0
cmp dword [esp + 0x2c], 0
je 0x429ea8
cmp dword [esp + 0x30], 0
je 0x429e29
push str.__LM
lea ecx, [esp + 0x18]
call fcn.0043bf90
mov esi, eax
mov byte [esp + 0x24], 1
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x10]
call fcn.00438190
mov byte [esp + 0x24], 2
push esi
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.00428bf0
mov byte [esp + 0x30], 3
mov eax, dword [eax]
push eax
push str.MAgent
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004242f0
add esp, 0x1c
mov byte [esp + 0x24], 2
lea ecx, [esp + 4]
call fcn.004381e0
mov byte [esp + 0x24], 1
lea ecx, [esp + 0xc]
call fcn.004381e0
mov byte [esp + 0x24], 0
lea ecx, [esp + 0x14]
call fcn.004381e0
jmp 0x429ecd
push str.__CU
lea ecx, [esp + 8]
call fcn.0043bf90
mov esi, eax
mov byte [esp + 0x24], 4
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x10]
call fcn.00438190
mov byte [esp + 0x24], 5
push esi
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00428bf0
mov byte [esp + 0x30], 6
mov eax, dword [eax]
push eax
push str.MAgent
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WSOCK32.dll_accept
call fcn.004242f0
add esp, 0x1c
mov byte [esp + 0x24], 5
lea ecx, [esp + 0x14]
call fcn.004381e0
mov byte [esp + 0x24], 4
lea ecx, [esp + 0xc]
call fcn.004381e0
mov byte [esp + 0x24], 0
lea ecx, [esp + 4]
call fcn.004381e0
jmp 0x429ecd
cmp dword [esp + 0x30], 0
push str.MAgent
push str.SoftwareMicrosoftWindowsCurrentVersionRun
je 0x429ec0
push reloc.OLEAUT32.dll_SysReAllocString
jmp 0x429ec5
push reloc.WSOCK32.dll_accept
call fcn.00424430
add esp, 0xc
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.004381e0
mov ecx, dword [esp + 0x1c]
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x429ef0
Capabilities:
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x5c73e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x81c
push ebx
push esi
xor ebx, ebx
mov dword [esp + 0x18], ebx
xor esi, esi
mov dword [esp + 8], esi
push edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x830], 1
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetServicesTcpipParameters
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x429ffb
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x14], esi
push str.DataBasePath
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0x3ff
call fcn.0041d860
test eax, eax
jne 0x429ffb
push 0x3ff
lea eax, [esp + 0x2c]
push eax
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x24]
call fcn.0043bf90
mov byte [esp + 0x830], 2
push str.hosts
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00406610
add esp, 0xc
mov byte [esp + 0x830], 4
lea ecx, [esp + 0x20]
call fcn.004381e0
mov edi, dword [esp + 0x838]
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call fcn.00438190
mov dword [esp + 0x1c], 1
mov byte [esp + 0x830], 1
lea ecx, [esp + 0x14]
call fcn.004381e0
jmp 0x42a016
mov edi, dword [esp + 0x838]
push 0x5dbe20
mov ecx, edi
call fcn.0043bf90
mov dword [esp + 0x1c], 1
mov byte [esp + 0x830], bl
cmp esi, ebx
je 0x42a02c
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], ebx
mov ecx, dword [esp + 0x828]
mov eax, edi
pop edi
mov dword [esp + 0xc], ebx
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x828
ret
Function at 0x42a050
Capabilities:
Copy file
Delete file
Get common file path
Move file

Disassembly:
push 0xffffffffffffffff
push 0x5c742f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x818
mov dword [esp + 0x820], 0
lea ecx, [esp + 0x828]
call fcn.00437d00
test eax, eax
jne 0x42a0b2
mov dword [esp + 0x820], 0xffffffff
lea ecx, [esp + 0x828]
call fcn.004381e0
mov ecx, dword [esp + 0x818]
mov dword fs:[0], ecx
add esp, 0x824
ret
lea eax, [esp + 0x18]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x18]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42a0d0
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x16], 0x5c
push esi
push edi
je 0x42a104
lea edi, [esp + 0x20]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x42a0f0
mov ecx, dword [0x5dc7b4]
mov dword [edi], ecx
lea edi, [esp + 0x20]
add edi, 0xfffffffe
jmp 0x42a110
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x42a110
push 0x5dc7b4
lea edx, [esp + 0x834]
push edx
lea eax, [esp + 0x10]
mov ecx, 8
mov esi, 0x5e0238
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00406610
mov byte [esp + 0x834], 1
push 0x5e0238
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.00406610
add esp, 0x18
mov byte [esp + 0x828], 2
mov eax, dword [eax]
push 0
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov byte [esp + 0x828], 1
lea ecx, [esp + 0x10]
call fcn.004381e0
mov byte [esp + 0x828], 0
lea ecx, [esp + 8]
call fcn.004381e0
push 5
push 0
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [esp + 0x830]
push ecx
lea edx, [esp + 0x1c]
push str._uninstalltmp__
push edx
call fcn.00414090
mov byte [esp + 0x834], 3
push 0x5dde88
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00406610
add esp, 0x18
mov esi, eax
mov byte [esp + 0x828], 4
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xc]
call fcn.0043bf90
mov byte [esp + 0x828], 5
mov esi, dword [esi]
mov eax, dword [eax]
push 1
push 0x7530
push 0
push esi
push eax
call fcn.00460fe0
add esp, 0x14
mov byte [esp + 0x828], 4
lea ecx, [esp + 8]
call fcn.004381e0
mov byte [esp + 0x828], 3
lea ecx, [esp + 0x10]
call fcn.004381e0
mov byte [esp + 0x828], 0
lea ecx, [esp + 0x18]
call fcn.004381e0
mov dword [esp + 0x828], 0xffffffff
lea ecx, [esp + 0x830]
call fcn.004381e0
pop edi
mov ecx, dword [esp + 0x81c]
pop esi
mov dword fs:[0], ecx
add esp, 0x824
ret
Function at 0x42a750
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x5c7540
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov dword [esp + 0x20], 0
lea ecx, [esp + 0x10]
call fcn.00438090
mov bl, 1
mov byte [esp + 0x20], bl
push 0x5e0330
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.00406610
add esp, 0xc
mov byte [esp + 0x20], 2
push eax
lea ecx, [esp + 0x14]
call fcn.00439f20
mov byte [esp + 0x20], bl
lea ecx, [esp + 8]
call fcn.004381e0
sub esp, 8
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x10], esp
push edx
call fcn.00438190
mov byte [esp + 0x28], 3
mov byte [esp + 0x28], bl
call fcn.00481580
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 8
push eax
call esi
push str.Mail.Ru_Portal.lnk
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x10]
push edx
call fcn.00406610
add esp, 0xc
mov byte [esp + 0x20], 4
push eax
lea ecx, [esp + 0x14]
call fcn.00439f20
mov byte [esp + 0x20], bl
lea ecx, [esp + 8]
call fcn.004381e0
sub esp, 8
lea eax, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
call fcn.00438190
mov byte [esp + 0x28], 5
mov byte [esp + 0x28], bl
call fcn.00481580
mov ecx, dword [esp + 0x18]
add esp, 8
push ecx
call esi
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x10]
call fcn.004381e0
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.004381e0
mov ecx, dword [esp + 0x18]
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret
Function at 0x42ffa0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x42fff0
mov eax, dword [esi + 8]
push 0
push 0
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov ecx, dword [esi + 0x2c]
push 0x3e8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42ffd8
mov edx, dword [esi + 4]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x2c]
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
pop esi
ret

Function at 0x430070
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5c80af
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x12]
mov dword [esp + 0xc], 0
push ecx
mov word [esp + 0x14], ax
call fcn.0051d400
add esp, 0xc
lea edx, [esp + 8]
push edx
push 1
push 0
push 0x14
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, dword [esp + 0x220]
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.0043bf90
mov dword [esp + 0x218], 0
mov ecx, dword [esp + 0x210]
mov dword [esp + 4], 1
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret

Function at 0x430160
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 8]
push eax
push 0
push esi
push 0x430060
push 0
push 0
call fcn.0052174d
add esp, 0x18
mov dword [esi + 4], eax
test eax, eax
je 0x430193
mov ecx, dword [esi + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4305e0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0xffffffffffffffff
push 0x5c81d9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
xor ebx, ebx
push esi
mov dword [esp + 0x24], ebx
mov dword [esp + 8], ebx
mov esi, dword [esp + 0x2c]
mov ecx, esi
call fcn.00438090
mov dword [esp + 0x24], ebx
mov eax, dword [esi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x1000
or eax, ecx
mov dword [esp + 8], 1
jge 0x430640
push 0x1000
mov ecx, esi
call fcn.00402650
mov eax, dword [esi]
push 1
push 0x26
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [esi]
mov ecx, dword [eax - 8]
cmp eax, ebx
jne 0x43065b
xor eax, eax
jmp 0x43066d
push ecx
push eax
call fcn.0051d859
add esp, 8
cmp eax, ebx
jl 0x4306ef
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x4306ef
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
push 0x5dc7b4
lea ecx, [esp + 0x10]
call fcn.0043bf90
mov dword [esp + 0x24], 1
push 0xffffffffffffffff
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.00439f70
mov byte [esp + 0x24], 2
push eax
mov ecx, esi
call fcn.00439f20
mov byte [esp + 0x24], 1
lea ecx, [esp + 0x14]
call fcn.004381e0
mov byte [esp + 0x24], bl
lea ecx, [esp + 0xc]
call fcn.004381e0
push str.Mail.RuSputnik
mov ecx, esi
call fcn.0043a8a0
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
push 0x80070057
call fcn.00401300
int3

Function at 0x430700
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x5c81f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
lea ecx, [esp]
call fcn.00438090
mov dword [esp + 0x10], 0
mov edx, dword [esp]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, 0x1000
or eax, ecx
jge 0x430750
push 0x1000
lea ecx, [esp + 4]
call fcn.00402650
mov edx, dword [esp]
push 1
push 0x1c
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [esp]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.0051d859
add esp, 8
test eax, eax
jl 0x430819
mov ecx, dword [esp]
cmp eax, dword [ecx - 8]
jg 0x430819
mov dword [ecx - 0xc], eax
mov edx, dword [esp]
xor ecx, ecx
mov word [edx + eax*2], cx
push str.VirtualStore
lea ecx, [esp + 4]
call fcn.0043a8a0
mov ecx, dword [0x65962c]
cmp dword [ecx - 4], 1
jle 0x4307bb
mov eax, dword [ecx - 0xc]
push eax
mov ecx, 0x65962c
call fcn.00401ba0
mov ecx, dword [0x65962c]
movzx eax, word [ecx]
cmp ax, 0x5c
je 0x4307d6
test ax, ax
je 0x4307d6
movzx eax, word [ecx + 2]
add ecx, 2
cmp ax, 0x5c
jne 0x4307c4
push ecx
lea ecx, [esp + 4]
call fcn.0043a8a0
mov ecx, dword [esp]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x4307fa
mov edx, dword [esp]
push edx
call fcn.0045f2c0
add esp, 4
mov dword [esp + 0x10], 0xffffffff
lea ecx, [esp]
call fcn.004381e0
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push 0x80070057
call fcn.00401300
int3
Function at 0x443980
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5cb0ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 4], ecx
push eax
lea ecx, [esi + 0xc]
mov dword [esp + 8], esi
mov dword [esi + 8], edx
call fcn.00443840
xor eax, eax
mov dword [esp + 0x10], eax
mov cl, byte [esp + 0x28]
mov byte [esi + 0x30], cl
mov byte [esi + 0x31], al
mov dword [esp + 0x10], 0xffffffff
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14

Function at 0x44399e
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5cb0ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 4], ecx
push eax
lea ecx, [esi + 0xc]
mov dword [esp + 8], esi
mov dword [esi + 8], edx
call fcn.00443840
xor eax, eax
mov dword [esp + 0x10], eax
mov cl, byte [esp + 0x28]
mov byte [esi + 0x30], cl
mov byte [esi + 0x31], al
mov dword [esp + 0x10], 0xffffffff
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14
Function at 0x448ae0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5cba21
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], 1
lea edi, [esi + 4]
mov ecx, edi
mov dword [esi], 0x5e2de8
call fcn.00438090
mov byte [esp + 0x18], 2
lea ebx, [esi + 0x18]
mov ecx, ebx
call fcn.00438090
mov byte [esp + 0x18], 3
lea ecx, [esi + 0x20]
call fcn.00438090
mov byte [esp + 0x18], 4
lea eax, [esp + 0x20]
push eax
mov ecx, edi
call fcn.00439f20
lea ecx, [esp + 0x28]
push ecx
mov ecx, ebx
call fcn.00439f20
xor eax, eax
cmp dword [esp + 0x30], eax
mov dword [esi + 0x2d], eax
setne dl
mov byte [esi + 0x3d], al
mov byte [esi + 0x28], dl
mov dword [esi + 0x29], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x39], eax
mov dword [esi + 0x31], eax
mov byte [esp + 0x18], al
lea ecx, [esp + 0x20]
call fcn.004381e0
mov dword [esp + 0x18], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.004381e0
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14

Function at 0x44a590
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov eax, ecx
push esi
lea esi, [eax + 2]
lea ebx, [ebx]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x44a5a0
sub eax, esi
sar eax, 1
mov edx, eax
lea edx, [ecx + edx*2]
mov eax, 0x811c9dc5
cmp ecx, edx
je 0x44a5d2
lea ecx, [ecx]
movzx esi, word [ecx]
imul eax, eax, 0x1000193
add ecx, 2
xor eax, esi
cmp ecx, edx
jne 0x44a5c0
pop esi
ret

Function at 0x451360
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5cc751
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
xor eax, eax
mov esi, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 4], eax
lea eax, [esp + 0xc]
push eax
call fcn.00448a80
mov dword [esp + 0x24], 1
push 0x5e2e54
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00450cc0
mov byte [esp + 0x24], 2
sub esp, 8
mov edx, esp
mov dword [esp + 0x10], esp
push eax
lea eax, [esp + 0x18]
push eax
push edx
call fcn.00428bf0
add esp, 0xc
mov byte [esp + 0x2c], 3
mov esi, dword [esp + 0x34]
push esi
mov byte [esp + 0x30], 2
call fcn.00450130
add esp, 0xc
mov dword [esp + 4], 1
mov byte [esp + 0x24], 1
lea ecx, [esp + 0x14]
call fcn.004381e0
mov byte [esp + 0x24], 0
lea ecx, [esp + 0xc]
call fcn.004381e0
mov ecx, dword [esp + 0x1c]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x24
ret 4
Function at 0x458790
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5cd59c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x3824
call fcn.0051f3e0
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x20]
call fcn.00438190
xor ebx, ebx
mov dword [esp + 0x383c], ebx
lea ecx, [esp + 0x1c]
call fcn.00438f70
push eax
lea ecx, [esp + 0x20]
call fcn.00439f20
push 0xffc
lea ecx, [esp + 0x38]
push ebx
push ecx
mov dword [esp + 0x3c], ebx
call fcn.0051d400
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0x1000
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x20], ebx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x458935
push 0x27fe
lea edx, [esp + 0x1036]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x103c], cx
call fcn.0051d400
add esp, 0xc
lea ecx, [esp + 0x24]
call fcn.00438090
mov byte [esp + 0x383c], 1
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x14], ebx
jbe 0x458925
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + eax*4 + 0x30]
push ecx
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x458912
mov dword [esp + 0xc], 0x5e3010
mov dword [esp + 0x10], esi
mov byte [esp + 0x383c], 2
push 0x1400
lea edx, [esp + 0x1034]
push edx
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
cmp eax, ebx
je 0x4588fb
xor ecx, ecx
lea edx, [esp + 0x1030]
mov word [esp + eax*2 + 0x1030], cx
push edx
lea ecx, [esp + 0x28]
call fcn.0043a980
push ebx
sub esp, 8
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x38], esp
push eax
call fcn.00438190
mov byte [esp + 0x3848], 3
lea ecx, [esp + 0x30]
call fcn.00438f70
mov byte [esp + 0x3848], 2
mov ecx, eax
call fcn.00439ae0
cmp eax, ebx
jge 0x458960
mov byte [esp + 0x383c], 1
push esi
mov dword [esp + 0x10], 0x5e3010
call edi
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x14]
jb 0x45885e
mov byte [esp + 0x383c], bl
lea ecx, [esp + 0x24]
call fcn.004381e0
mov dword [esp + 0x383c], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.004381e0
xor al, al
mov ecx, dword [esp + 0x3834]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [esp + 0x383c], 1
push esi
mov dword [esp + 0x10], 0x5e3010
call edi
mov dword [esp + 0x10], ebx
mov byte [esp + 0x383c], bl
lea ecx, [esp + 0x24]
call fcn.004381e0
mov dword [esp + 0x383c], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.004381e0
mov ecx, dword [esp + 0x3834]
pop edi
pop esi
mov al, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4592e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x400
push esi
xor eax, eax
push 0x3fe
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.0051d400
add esp, 0xc
push 0x1ff
lea edx, [esp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x3c
push 1
call fcn.00522dfa
mov ecx, dword [esp + 0x410]
mov esi, eax
add esp, 8
lea eax, [esp + 4]
push esi
mov dword [esi], 0x3c
mov dword [esi + 4], 0x40
mov dword [esi + 8], 0
mov dword [esi + 0xc], str.runas
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push esi
call fcn.0051d4db
add esp, 4
pop esi
add esp, 0x400
ret

Function at 0x45e090
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esp + 4]
push 0
push 0x2000000
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x45e0c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x45e0bf
cmp eax, 3
jne 0x45e0c9
xor eax, eax
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45e26a
test al, 0x10
je 0x45e26a
mov eax, 1
ret
xor eax, eax
ret

Function at 0x45e7c0
Capabilities:
Check if file exists
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x5ce2e8
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, dword [esp + 0x1c]
push 0
push 0x2000000
push 3
push 0
push 3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x45e855
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x45e808
cmp eax, 3
jne 0x45e85c
push esi
lea ecx, [esp + 8]
call fcn.0043bf90
mov dword [esp + 0x14], 0
mov eax, dword [esp + 4]
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
xor ecx, ecx
test eax, eax
sete cl
mov esi, ecx
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 4]
call fcn.004381e0
mov eax, esi
pop esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xc]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x45e880
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x5ce31b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push edi
mov ebx, 1
mov dword [esp + 0x1c], ebx
push 0x24
call fcn.004d9305
add esp, 4
mov dword [esp + 0x10], eax
mov byte [esp + 0x1c], 2
test eax, eax
je 0x45e8ca
mov ecx, eax
call fcn.00496c30
mov ebp, eax
mov dword [esp + 0xc], ebp
jmp 0x45e8d6
mov dword [esp + 0xc], 0
mov ebp, dword [esp + 0xc]
mov byte [esp + 0x1c], bl
mov ebx, dword [esp + 0x34]
test ebx, ebx
jne 0x45e8eb
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x45e90e
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x45e941
mov byte [esp + 0x1c], 0
lea ecx, [esp + 0x24]
call fcn.004381e0
mov dword [esp + 0x1c], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.004381e0
pop edi
mov eax, ebp
pop ebp
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x34], eax
test eax, eax
je 0x45e90e
push esi
mov esi, dword [ebp + 0x10]
add ebp, 0x10
push edi
push ebx
add esi, 4
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x38]
push eax
mov eax, dword [esi]
push edx
mov ecx, ebp
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov byte [esp + 0x20], 0
lea ecx, [esp + 0x28]
call fcn.004381e0
mov dword [esp + 0x20], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.004381e0
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
pop esi
pop edi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret