joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430b6f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0x44
push 0
push 0x4a9568
call fcn.00413110
push 0x10
push 0
push 0x4a9554
call fcn.00413110
mov ecx, dword [ebp + 8]
add esp, 0x18
push 0x4a9554
push 0x4a9568
push 0
push 0
push 0x20
push 0
push 0
push 0
push ecx
mov eax, 1
push 0
mov dword [0x4a9568], 0x44
mov dword [0x4a9594], 1
mov word [0x4a9598], ax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x430be3
mov edx, dword [0x4a9554]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
ret 4
Function at 0x431482
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 8]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
cmp eax, ecx
push edi
mov edi, dword [esi + 0xc]
setl byte [ebp + 0x13]
cmp edi, edx
setl byte [ebp - 1]
cmp byte [ebp + 0x13], 0
je 0x4314b0
mov dword [esi], eax
mov dword [esi + 8], ecx
cmp byte [ebp - 1], 0
je 0x4314bc
mov dword [esi + 4], edi
mov dword [esi + 0xc], edx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
mov eax, dword [edx + 0x104]
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.00431436
mov eax, dword [ebp - 0x18]
add dword [esi], eax
add dword [esi + 8], eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [esi + 8]
add dword [esi + 0xc], ecx
mov ebx, dword [esi + 0xc]
sub eax, dword [esi]
add dword [esi + 4], ecx
sub ebx, dword [esi + 4]
inc eax
push 0
mov dword [ebp + 0xc], eax
inc ebx
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [ebp + 0xc]
push ebx
mov edi, eax
push ecx
push edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edx, dword [ebp - 8]
mov edi, eax
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dl, byte [ebp - 1]
mov dword [ebp - 0x10], eax
mov ecx, ebx
test dl, dl
je 0x431532
neg ecx
cmp byte [ebp + 0x13], 0
mov eax, dword [ebp + 0xc]
je 0x43153d
neg eax
test dl, dl
je 0x431546
mov edx, dword [esi + 0xc]
jmp 0x431549
mov edx, dword [esi + 4]
cmp byte [ebp + 0x13], 0
mov dword [ebp + 8], edx
je 0x431568
mov esi, dword [esi + 8]
jmp 0x43156a
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004113ac
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [esi]
mov edx, dword [ebp + 0xc]
push 0xcc0020
push ecx
mov ecx, dword [ebp - 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
push esi
push ecx
push ebx
push edx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_StretchBlt]
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
push 0
mov ecx, ebx
neg ecx
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x44]
push ecx
push 0
push 0
push 0
push esi
push edi
mov dword [ebp - 0x44], 0x28
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x38], 0x200001
mov dword [ebp - 0x34], 0
call dword [sym.imp.GDI32.dll_GetDIBits]
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp + 0x14]
push eax
mov dword [edx], eax
call fcn.004117a7
add esp, 4
push 0
lea ecx, [ebp - 0x44]
push ecx
push eax
push ebx
push 0
push esi
push edi
mov dword [ebp + 0x10], eax
call dword [sym.imp.GDI32.dll_GetDIBits]
mov edx, dword [ebp - 0x10]
push edx
push edi
mov ebx, eax
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [ebp - 0xc]
push eax
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
pop edi
pop esi
test ebx, ebx
pop ebx
je 0x431557
mov eax, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x431624
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
lea ebx, [ecx + edx]
mov edx, edi
imul edx, esi
add edx, edx
add esi, esi
or eax, 0xffffffff
add edx, edx
lea edi, [ecx + edi*4]
add esi, esi
mov dword [ebp + 8], edi
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x14], ecx
movzx edi, byte [ecx + 2]
mov esi, eax
and esi, 0xff
xor esi, edi
movzx edi, byte [ecx + 1]
shr eax, 8
xor eax, dword [esi*4 + 0x491be8]
mov esi, eax
and esi, 0xff
xor esi, edi
movzx edi, byte [ecx]
shr eax, 8
xor eax, dword [esi*4 + 0x491be8]
add ecx, edx
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x491be8]
mov esi, dword [ebp + 0x14]
cmp ecx, ebx
jb 0x4316ad
add esi, dword [ebp + 0x10]
mov dword [ebp + 0x14], esi
mov ecx, esi
cmp esi, dword [ebp + 8]
jb 0x431655
not eax
mov dword [ebp + 0x14], eax
fild dword [ebp + 0x14]
test eax, eax
jns 0x4316c4
fadd qword [0x48cd20]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x431b52
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea eax, [esp + 0x10]
mov dword [esp + 0xc], ecx
mov ecx, dword [ebp + 8]
push eax
push ecx
xor bl, bl
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x431be5
lea ecx, [ecx]
lea edx, [esp + 0x3c]
push 0x487ca4
push edx
call fcn.0041330c
add esp, 8
test eax, eax
je 0x431bd5
lea eax, [esp + 0x3c]
push 0x48ab2c
push eax
call fcn.0041330c
add esp, 8
test eax, eax
je 0x431bd5
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
not edx
and eax, edx
push eax
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x431bff
mov bl, 1
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x431b82
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
call esi
cmp byte [ebp + 0x14], 0
jne 0x431c11
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea edx, [esp + 0x10]
push edx
push 0x48ab24
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x431c98
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test byte [esp + 0x10], 0x10
je 0x431c88
lea eax, [esp + 0x3c]
push 0x487ca4
push eax
call fcn.0041330c
add esp, 8
test eax, eax
je 0x431c88
lea ecx, [esp + 0x3c]
push 0x48ab2c
push ecx
call fcn.0041330c
add esp, 8
test eax, eax
je 0x431c88
lea edx, [esp + 0x3c]
push edx
call ebx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push eax
call fcn.00431b52
test al, al
je 0x431ca6
push 0x48ab2c
call ebx
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x431c2a
push edi
call esi
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push edi
call esi
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x431cb4
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0xa28
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0xa28]
push ecx
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x431ce6
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
lea eax, [ebp - 0xa28]
push eax
lea ecx, [ebp - 0x208]
push str.___s
push ecx
call fcn.0041346b
lea edx, [ebp - 0x208]
push edx
call fcn.00411391
mov edi, eax
add esp, 0x10
cmp word [ebp + edi*2 - 0x20a], 0x5c
jne 0x431d30
cmp word [ebp + edi*2 - 0x20c], 0x3a
je 0x431d30
xor eax, eax
mov word [ebp + edi*2 - 0x20a], ax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x431d4a
cmp byte [ebp + 0x10], al
jne 0x431d4a
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
push 0
push 0x2200000
push 3
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x431dfd
push 0x14
lea ecx, [ebp - 0x820]
push 0
push ecx
call fcn.00413110
lea edx, [edi + edi]
mov word [ebp - 0x816], dx
mov eax, dword [ebp - 0x816]
push 0x104
lea ecx, [ebp - 0x208]
push ecx
lea edx, [ebp - 0x810]
add eax, 2
push edx
mov dword [ebp - 0x820], 0xa0000003
mov word [ebp - 0x814], ax
call fcn.0041318a
mov eax, dword [ebp - 0x816]
add esp, 0x18
push 0
add eax, 0xc
lea ecx, [ebp + 8]
push ecx
push 0
movzx edx, ax
push 0
add edx, 8
push edx
mov word [ebp - 0x81c], ax
lea eax, [ebp - 0x820]
push eax
push 0x900a4
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
test eax, eax
jne 0x431e0f
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4320c7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x464]
test eax, eax
je 0x4320df
cmp eax, 0x10000
jne 0x432103
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x45c]
push eax
push 0x10000
push 1
push ecx
call fcn.00414ee4
add esp, 0x10
mov dword [esi + 0x464], 0
mov ecx, dword [esi + 0x464]
mov edx, dword [esi + 0x45c]
mov al, byte [ecx + edx]
inc ecx
mov dword [esi + 0x464], ecx
pop esi
pop ebp
ret 4

Function at 0x43211e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x460]
test eax, eax
je 0x43214f
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x458]
push ecx
push eax
push 1
push edx
call fcn.00414496
add esp, 0x10
mov dword [esi + 0x460], 0
pop esi
pop ebp
ret 4
Function at 0x432154
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov dl, byte [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x460]
mov eax, dword [esi + 0x458]
mov byte [eax + ecx], dl
inc dword [esi + 0x460]
cmp dword [esi + 0x460], 0x10000
jne 0x4321a3
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x458]
push eax
push 0x10000
push 1
push ecx
call fcn.00414496
add esp, 0x10
mov dword [esi + 0x460], 0
pop esi
pop ebp
ret 8

Function at 0x432254
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 1
jne 0x43227b
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00411030
add esp, 0xc
jmp 0x43228f
mov edx, dword [esi + 0x1c]
push edx
push 8
lea eax, [ebp - 8]
push 1
push eax
call fcn.00414ee4
add esp, 0x10
movzx ecx, byte [ebp - 4]
movzx edx, byte [ebp - 3]
movzx eax, byte [ebp - 2]
add dword [esi + 0xc], 8
shl ecx, 8
or ecx, edx
movzx edx, byte [ebp - 1]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 0xc]
shl ecx, 8
or ecx, edx
mov dword [eax], ecx
lea ecx, [ebp - 8]
push str.EA06
push ecx
mov byte [ebp - 4], 0
call fcn.00414f10
add esp, 8
neg eax
sbb eax, eax
neg eax
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x432331
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [0x4a7540], eax
mov edx, 1
mov eax, 0x4a7540
push edi
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
add eax, 4
inc edx
cmp eax, 0x4a7efc
jl 0x432347
mov dword [0x49205c], 1
mov dword [0x4a7f10], 1
pop edi
pop ebp
ret

Function at 0x433263
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, dword [ebp + 8]
push edi
test esi, esi
js 0x4332ff
jne 0x433286
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0xf
jae 0x4332f8
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x18]
push eax
call edi
test eax, eax
je 0x4332f8
lea ecx, [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x10]
push edx
call edi
fnstcw word [ebp + 0xa]
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
sbb ecx, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
fild qword [ebp - 0x20]
movzx eax, word [ebp + 0xa]
fild qword [ebp - 0x28]
or eax, 0xc00
mov dword [ebp - 4], eax
fdivp st(1)
fmul qword [0x48cd48]
fldcw word [ebp - 4]
fistp qword [ebp - 8]
mov edx, dword [ebp - 8]
fldcw word [ebp + 0xa]
cmp edx, esi
jb 0x4332a5
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43347f
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4334df
lea ecx, [ebp - 0x10]
push ecx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 4]
push 0
push 0
push 0
lea edx, [ebp - 0x14]
push edx
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4334e6
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 0x20
je 0x433532
cmp ebx, 0x40
je 0x433545
test bl, 0xb
jne 0x433503
push 0
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
test bl, 0x14
je 0x43350f
mov ecx, 1
xor eax, eax
test bl, 2
je 0x43351b
mov eax, 1
mov edx, dword [ebp + 0xc]
push edx
push eax
push ecx
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownExW]
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_SetSystemPowerState]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x433554
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x298]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x433631
push 0x100
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.WSOCK32.dll_gethostname]
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x433631
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x4335bd
mov ecx, eax
lea ecx, [ecx]
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x4335b4
cmp esi, edx
jle 0x4335db
push str.0.0.0.0
push edi
call fcn.00411737
add esp, 8
call dword [sym.imp.WSOCK32.dll_WSACleanup]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [eax + esi*4 - 4]
push 4
push eax
lea ecx, [ebp - 4]
push ecx
call fcn.00411030
mov edx, dword [ebp - 4]
add esp, 0xc
push edx
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00413830
lea ecx, [ebp - 0x108]
push 0xffffffffffffffff
push ecx
call fcn.00432a5b
mov esi, eax
push esi
push edi
call fcn.00411737
push esi
call fcn.004113ac
add esp, 0x1c
call dword [sym.imp.WSOCK32.dll_WSACleanup]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x484ea8
push edi
call fcn.00411737
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43368e
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x20c
push 0x104
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00433305
lea edx, [ebp - 0x20c]
push edx
call fcn.00411391
add esp, 0x10
test eax, eax
je 0x4336d6
cmp word [ebp + eax*2 - 0x20e], 0x5c
lea eax, [ebp + eax*2 - 0x20e]
jne 0x4336d6
xor ecx, ecx
mov word [eax], cx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43377c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x433710
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x433715
mov al, 1
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x433780
push esi
push edi
lea edi, [ebp - 0x20c]
call fcn.00410350
mov esi, eax
push 0x5c
push esi
call fcn.0041406a
add esp, 8
test eax, eax
jne 0x433744
push esi
call fcn.004113ac
add esp, 4
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.0043368e
push esi
mov bl, al
call fcn.004113ac
add esp, 8
test bl, bl
je 0x433773
push 0
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test al, 0x10
jne 0x43370a
xor al, al
mov esp, ebp
pop ebp
ret

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

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

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x433ab6
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x433aab
or eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 8]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x433ad4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x14
push esi
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x433afb
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push esi
call fcn.004117a7
mov edx, dword [ebp + 8]
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push edx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
push edi
call fcn.00411391
xor ecx, ecx
add eax, 0x1a
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004117a7
mov esi, eax
push 0x485660
push esi
call fcn.00411737
push 0x485660
push edi
call fcn.0041330c
add esp, 0x18
test eax, eax
je 0x433bea
push str.StringFileInfo_
push esi
call fcn.00411706
push 0x485660
push edi
call fcn.0041369c
add esp, 0x10
test eax, eax
jne 0x433be0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
push str.VarFileInfoTranslation
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x433bbb
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push 4
lea ecx, [esi + 0x20]
push ecx
push 0
push eax
mov dword [ebp - 0xc], eax
call fcn.00432f49
mov eax, dword [ebp - 0xc]
push 4
lea edx, [esi + 0x28]
push edx
shr eax, 0x10
push 0
push eax
call fcn.00432f49
add esp, 0x20
jmp 0x433bc9
push str.04090000
push esi
call fcn.00411706
add esp, 8
push 0x485660
push esi
call fcn.00411706
push edi
push esi
call fcn.00411706
add esp, 0x10
jmp 0x433bea
push edi
push esi
call fcn.00411706
add esp, 8
push str.DefaultLangCodepage
push edi
call fcn.0041167b
add esp, 8
test eax, eax
jne 0x433c29
mov edi, dword [ebp + 0xc]
push 8
lea eax, [esi + 0x20]
push eax
push edi
call fcn.0041318a
xor ecx, ecx
push ebx
mov word [edi + 0x10], cx
call fcn.004113ac
push esi
call fcn.004113ac
add esp, 0x14
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 4]
push eax
push esi
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x433cb1
push 0x485660
push edi
call fcn.0041330c
add esp, 8
test eax, eax
jne 0x433c7b
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
push edx
mov edx, dword [ebp + 0xc]
shr ecx, 0x10
push ecx
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push str._u._u._u._u
push edx
call fcn.0041346b
add esp, 0x18
jmp 0x433c99
mov eax, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
push 0x200
push eax
push edi
call fcn.0041318a
add esp, 0xc
xor ecx, ecx
mov word [edi + 0x400], cx
push ebx
call fcn.004113ac
push esi
call fcn.004113ac
add esp, 8
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004113ac
push esi
call fcn.004113ac
add esp, 8
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x433e5f
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x102c
call fcn.00422410
lea eax, [ebp - 4]
push eax
push 0x800
lea ecx, [ebp - 0x102c]
push ecx
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x433e8c
xor al, al
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push ebx
push edi
mov edi, dword [ebp - 4]
push eax
shr edi, 2
mov byte [edx], 0
call fcn.00433e20
add esp, 4
xor ebx, ebx
mov dword [ebp - 0xc], eax
test edi, edi
je 0x433f99
push esi
jmp 0x433ebf
mov ecx, dword [ebp + 0x10]
cmp byte [ecx], 0
jne 0x433f98
mov edx, dword [ebp + ebx*4 - 0x102c]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
lea eax, [ebp - 4]
push eax
push 4
lea ecx, [ebp - 8]
push ecx
push esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
mov eax, dword [ebp - 8]
push 0x104
lea edx, [ebp - 0x424]
push edx
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
test eax, eax
je 0x433f88
lea ecx, [ebp - 0x628]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x82c]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x424]
push edx
call fcn.00413bee
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.00411706
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x218]
push eax
call fcn.0041167b
add esp, 0x24
test eax, eax
jne 0x433f6b
mov edx, dword [ebp + ebx*4 - 0x102c]
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
jmp 0x433f82
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x433f88
mov eax, dword [ebp + ebx*4 - 0x102c]
cmp ecx, eax
jne 0x433f88
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, edi
jb 0x433ebf
pop esi
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret