joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4301f8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
push esi
or ecx, 0x50000000
push edi
mov edi, dword [ebp + 8]
test eax, 0x80000
je 0x430218
and eax, 0xfff7ffff
mov edx, dword [0x4a8684]
push 0
push edx
mov edx, dword [ebp + 0x2c]
push edx
mov edx, dword [edi]
push edx
mov edx, dword [ebp + 0x28]
push edx
mov edx, dword [ebp + 0x24]
push edx
mov edx, dword [ebp + 0x20]
push edx
mov edx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
je 0x430283
cmp byte [ebp + 0x30], 0
je 0x430268
push 0
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push 0x30
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [edi + 0x190], 0
jl 0x430283
cmp byte [edi + 0x19c], 0
je 0x430283
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
mov eax, esi
pop esi
pop ebp
ret 0x2c
Function at 0x430b0f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0x44
push 0
push 0x4a9568
call fcn.00412f40
push 0x10
push 0
push 0x4a9554
call fcn.00412f40
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 0x430b83
mov edx, dword [0x4a9554]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
ret 4
Function at 0x4313ca
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 0x4313f8
mov dword [esi], eax
mov dword [esi + 8], ecx
cmp byte [ebp - 1], 0
je 0x431404
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.0043137e
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 0x43147a
neg ecx
cmp byte [ebp + 0x13], 0
mov eax, dword [ebp + 0xc]
je 0x431485
neg eax
test dl, dl
je 0x43148e
mov edx, dword [esi + 0xc]
jmp 0x431491
mov edx, dword [esi + 4]
cmp byte [ebp + 0x13], 0
mov dword [ebp + 8], edx
je 0x4314b0
mov esi, dword [esi + 8]
jmp 0x4314b2
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004111dc
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.004115d7
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 0x43149f
mov eax, dword [ebp + 0x10]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43156c
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 0x4315f5
add esi, dword [ebp + 0x10]
mov dword [ebp + 0x14], esi
mov ecx, esi
cmp esi, dword [ebp + 8]
jb 0x43159d
not eax
mov dword [ebp + 0x14], eax
fild dword [ebp + 0x14]
test eax, eax
jns 0x43160c
fadd qword [0x48cd18]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x431a86
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 0x431b19
lea ecx, [ecx]
lea edx, [esp + 0x3c]
push 0x487ca4
push edx
call fcn.0041313c
add esp, 8
test eax, eax
je 0x431b09
lea eax, [esp + 0x3c]
push 0x48ab30
push eax
call fcn.0041313c
add esp, 8
test eax, eax
je 0x431b09
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 0x431b33
mov bl, 1
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x431ab6
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
call esi
cmp byte [ebp + 0x14], 0
jne 0x431b45
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 0x48ab28
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x431bcc
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test byte [esp + 0x10], 0x10
je 0x431bbc
lea eax, [esp + 0x3c]
push 0x487ca4
push eax
call fcn.0041313c
add esp, 8
test eax, eax
je 0x431bbc
lea ecx, [esp + 0x3c]
push 0x48ab30
push ecx
call fcn.0041313c
add esp, 8
test eax, eax
je 0x431bbc
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.00431a86
test al, al
je 0x431bda
push 0x48ab30
call ebx
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x431b5e
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 0x431be8
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 0x431c1a
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.0041329b
lea edx, [ebp - 0x208]
push edx
call fcn.004111c1
mov edi, eax
add esp, 0x10
cmp word [ebp + edi*2 - 0x20a], 0x5c
jne 0x431c64
cmp word [ebp + edi*2 - 0x20c], 0x3a
je 0x431c64
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 0x431c7e
cmp byte [ebp + 0x10], al
jne 0x431c7e
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 0x431d31
push 0x14
lea ecx, [ebp - 0x820]
push 0
push ecx
call fcn.00412f40
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.00412fba
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 0x431d43
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 0x432017
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 0x43202f
cmp eax, 0x10000
jne 0x432053
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x45c]
push eax
push 0x10000
push 1
push ecx
call fcn.00414d04
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 0x43206e
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 0x43209f
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x458]
push ecx
push eax
push 1
push edx
call fcn.004142b6
add esp, 0x10
mov dword [esi + 0x460], 0
pop esi
pop ebp
ret 4
Function at 0x4320a4
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 0x4320f3
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x458]
push eax
push 0x10000
push 1
push ecx
call fcn.004142b6
add esp, 0x10
mov dword [esi + 0x460], 0
pop esi
pop ebp
ret 8

Function at 0x4321a4
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 0x4321cb
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00410e60
add esp, 0xc
jmp 0x4321df
mov edx, dword [esi + 0x1c]
push edx
push 8
lea eax, [ebp - 8]
push 1
push eax
call fcn.00414d04
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.00414d30
add esp, 8
neg eax
sbb eax, eax
neg eax
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x432281
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 0x432297
mov dword [0x49205c], 1
mov dword [0x4a7f10], 1
pop edi
pop ebp
ret

Function at 0x4331a2
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 0x43323e
jne 0x4331c5
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0xf
jae 0x433237
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x18]
push eax
call edi
test eax, eax
je 0x433237
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 [0x48cd40]
fldcw word [ebp - 4]
fistp qword [ebp - 8]
mov edx, dword [ebp - 8]
fldcw word [ebp + 0xa]
cmp edx, esi
jb 0x4331e4
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 0x4333be
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 0x43341e
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 0x433425
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 0x20
je 0x433471
cmp ebx, 0x40
je 0x433484
test bl, 0xb
jne 0x433442
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 0x43344e
mov ecx, 1
xor eax, eax
test bl, 2
je 0x43345a
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 0x433493
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 0x433570
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 0x433570
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x4334fc
mov ecx, eax
lea ecx, [ecx]
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x4334f3
cmp esi, edx
jle 0x43351a
push str.0.0.0.0
push edi
call fcn.00411567
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.00410e60
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.00413650
lea ecx, [ebp - 0x108]
push 0xffffffffffffffff
push ecx
call fcn.0043299a
mov esi, eax
push esi
push edi
call fcn.00411567
push esi
call fcn.004111dc
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.00411567
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4335cd
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.00433244
lea edx, [ebp - 0x20c]
push edx
call fcn.004111c1
add esp, 0x10
test eax, eax
je 0x433615
cmp word [ebp + eax*2 - 0x20e], 0x5c
lea eax, [ebp + eax*2 - 0x20e]
jne 0x433615
xor ecx, ecx
mov word [eax], cx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4336bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x43364f
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x433654
mov al, 1
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x4336bf
push esi
push edi
lea edi, [ebp - 0x20c]
call fcn.00410160
mov esi, eax
push 0x5c
push esi
call fcn.00413e8a
add esp, 8
test eax, eax
jne 0x433683
push esi
call fcn.004111dc
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.004335cd
push esi
mov bl, al
call fcn.004111dc
add esp, 8
test bl, bl
je 0x4336b2
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 0x433649
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x433998
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 0x4339b2
test al, 0x10
je 0x4339b2
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x4339b6
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 0x4339f5
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4339ea
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 0x433a13
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 0x433a3a
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push esi
call fcn.004115d7
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.004111c1
xor ecx, ecx
add eax, 0x1a
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004115d7
mov esi, eax
push 0x48565c
push esi
call fcn.00411567
push 0x48565c
push edi
call fcn.0041313c
add esp, 0x18
test eax, eax
je 0x433b29
push str.StringFileInfo_
push esi
call fcn.00411536
push 0x48565c
push edi
call fcn.004134bd
add esp, 0x10
test eax, eax
jne 0x433b1f
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 0x433afa
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.00432e88
mov eax, dword [ebp - 0xc]
push 4
lea edx, [esi + 0x28]
push edx
shr eax, 0x10
push 0
push eax
call fcn.00432e88
add esp, 0x20
jmp 0x433b08
push str.04090000
push esi
call fcn.00411536
add esp, 8
push 0x48565c
push esi
call fcn.00411536
push edi
push esi
call fcn.00411536
add esp, 0x10
jmp 0x433b29
push edi
push esi
call fcn.00411536
add esp, 8
push str.DefaultLangCodepage
push edi
call fcn.004114ab
add esp, 8
test eax, eax
jne 0x433b68
mov edi, dword [ebp + 0xc]
push 8
lea eax, [esi + 0x20]
push eax
push edi
call fcn.00412fba
xor ecx, ecx
push ebx
mov word [edi + 0x10], cx
call fcn.004111dc
push esi
call fcn.004111dc
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 0x433bf0
push 0x48565c
push edi
call fcn.0041313c
add esp, 8
test eax, eax
jne 0x433bba
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.0041329b
add esp, 0x18
jmp 0x433bd8
mov eax, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
push 0x200
push eax
push edi
call fcn.00412fba
add esp, 0xc
xor ecx, ecx
mov word [edi + 0x400], cx
push ebx
call fcn.004111dc
push esi
call fcn.004111dc
add esp, 8
pop ebx
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push ebx
call fcn.004111dc
push esi
call fcn.004111dc
add esp, 8
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x433d9e
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x102c
call fcn.00422240
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 0x433dcb
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.00433d5f
add esp, 4
xor ebx, ebx
mov dword [ebp - 0xc], eax
test edi, edi
je 0x433ed8
push esi
jmp 0x433dfe
mov ecx, dword [ebp + 0x10]
cmp byte [ecx], 0
jne 0x433ed7
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 0x433ec7
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.00413a0e
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.00411536
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x218]
push eax
call fcn.004114ab
add esp, 0x24
test eax, eax
jne 0x433eaa
mov edx, dword [ebp + ebx*4 - 0x102c]
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
jmp 0x433ec1
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x433ec7
mov eax, dword [ebp + ebx*4 - 0x102c]
cmp ecx, eax
jne 0x433ec7
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 0x433dfe
pop esi
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret