joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f930
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a8
push ebx
push esi
or ecx, 0xffffffff
mov ebx, 0x483f68
call fcn.0040f8c0
mov esi, eax
lea eax, [esp + 0xa8]
push esi
push eax
call fcn.00413800
push esi
call fcn.0041137c
add esp, 0xc
lea esi, [esp + 0x18]
call fcn.0040f9f0
lea eax, [esp + 0xa8]
mov ecx, esi
call fcn.0040fa20
xor ebx, ebx
mov dword [edi + 8], ebx
xor ecx, ecx
mov eax, ebx
movzx edx, byte [esp + ecx + 0x18]
add eax, edx
movzx edx, byte [esp + ecx + 0x19]
add eax, edx
movzx edx, byte [esp + ecx + 0x1a]
add eax, edx
movzx edx, byte [esp + ecx + 0x1b]
add ecx, 4
add eax, edx
cmp ecx, 0x10
jl 0x40f984
mov dword [edi + 8], eax
mov eax, dword [ebp + 8]
push 0x487178
push eax
call fcn.00414b72
add esp, 8
mov dword [edi], eax
cmp eax, ebx
je 0x42821f
push edi
call fcn.0040f790
cmp eax, ebx
je 0x428229
mov ecx, dword [edi]
push ecx
mov esi, eax
call fcn.00414bf6
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 1
jmp 0x40f9e3
mov edx, dword [edi]
push edx
push 0x10
lea eax, [esp + 0x10]
push 1
push eax
call fcn.00414eb4
add esp, 0x10
push 0x99f2
push 0x10
lea ecx, [esp + 0x10]
push ecx
call fcn.0044ac61
xor eax, eax
mov dword [edi + 8], ebx
xor ecx, ecx
movzx edx, byte [esp + eax + 8]
inc eax
imul ecx, edx
cmp eax, 0x10
jl 0x428255
mov eax, dword [edi]
push eax
mov dword [edi + 8], ecx
call fcn.00415192
add esp, 4
mov dword [edi + 4], eax
xor eax, eax
jmp 0x40f9e3

Function at 0x40f9f0
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.004130e0
add esp, 0xc
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
ret

Function at 0x410720
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x497520]
push esi
push 0
mov esi, dword [sym.imp.USER32.dll_CreateWindowExW]
push eax
push 0
push 0
push 0x64
push 0x12c
push SysReAllocString
push SysReAllocString
push 0xcf0000
push str.AutoIt_v3
push str.AutoIt_v3
push 0
call esi
mov ecx, dword [0x497520]
push 0
push ecx
push 1
push eax
push 0
push 0
push 0
push 0
push 0x50b008c4
push 0
push str.edit
push 0
mov dword [0x497518], eax
call esi
mov edx, dword [0x497518]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edx
mov dword [0x497514], eax
call esi
mov eax, dword [0x497518]
push 0
push eax
call esi
pop esi
ret

Function at 0x410c30
Capabilities:
Log keystrokes

Disassembly:
push ebx
xor ebx, ebx
push edi
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov dword [esi], 5
mov dword [esi + 4], 5
mov word [esi + 8], 1
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov word [esi + 0x18], bx
push ebx
mov dword [esi + 0x1a], ebx
mov word [esi + 0x1e], bx
push 0x5b
mov dword [esi + 0xc], 4
call edi
push ebx
push 0x10
mov byte [esi + 0x29], al
call edi
push ebx
push 0xa0
mov byte [esi + 0x26], al
call edi
push ebx
push 0xa1
mov byte [esi + 0x27], al
call edi
push ebx
push 0x11
mov byte [esi + 0x28], al
call edi
push ebx
push 0x12
mov byte [esi + 0x24], al
call edi
pop edi
mov byte [esi + 0x25], al
pop ebx
ret
Function at 0x41a3c8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x490d40]
jne 0x41a3d2
repz ret
jmp fcn.00422546

Function at 0x4206dc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x490d40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00417a3c
and dword [ebp - 0x14], 0
cmp dword [0x497154], 0
mov dword [ebp - 0x18], eax
jne 0x42078f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x420837
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x420837
mov esi, dword [section..data]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x497154], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x497158], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x49715c], eax
call edi
push eax
call esi
mov dword [0x497164], eax
test eax, eax
je 0x42078f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x497160], eax
mov eax, dword [0x497160]
mov ecx, dword [ebp - 0x18]
mov esi, dword [0x490004]
cmp eax, ecx
je 0x4207e8
cmp dword [0x497164], ecx
je 0x4207e8
push eax
call esi
push dword [0x497164]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4207e8
test ebx, ebx
je 0x4207e8
call edi
test eax, eax
je 0x4207df
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4207df
test byte [ebp - 8], 1
jne 0x4207e8
or dword [ebp + 0x10], 0x200000
jmp 0x42081b
mov eax, dword [0x497158]
cmp eax, dword [ebp - 0x18]
je 0x42081b
push eax
call esi
test eax, eax
je 0x42081b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42081b
mov eax, dword [0x49715c]
cmp eax, dword [ebp - 0x18]
je 0x42081b
push eax
call esi
test eax, eax
je 0x42081b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x497154]
call esi
test eax, eax
je 0x420837
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x420839
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041a3c8
leave
ret
Function at 0x4306bc
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x24
cmp word [eax], 0
push ebx
push esi
push edi
je 0x4307dd
push 0
push 0
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4306fa
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0
push edi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov ebx, eax
push ebx
push 2
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4306ef
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push 0
lea ecx, [ebp - 0xc]
push ecx
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea edx, [ebp - 8]
push edx
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push 0x4819f0
push 0
push 0
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
push esi
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4306ef
mov ecx, dword [eax]
lea edx, [ebp + 0xc]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectW]
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
mov eax, dword [ebp + 0x14]
jne 0x4307b6
cmp dword [eax], 0
jne 0x4307b6
mov edx, dword [ebp - 0x20]
mov dword [ecx], edx
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
mov eax, dword [eax]
mov ecx, dword [ecx]
mov edx, dword [ebp + 0xc]
push 0x2000
push eax
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x4307e4
mov dword [ebp + 0xc], 0
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x60]
test eax, eax
je 0x4307f5
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp + 0xc]
push eax
push 0
mov dword [esi + 0x60], eax
mov esi, dword [esi]
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43112e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0x44
push 0
push 0x4a9568
call fcn.004130e0
push 0x10
push 0
push 0x4a9554
call fcn.004130e0
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 0x4311a2
mov edx, dword [0x4a9554]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop ebp
ret 4
Function at 0x43204d
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 0x4320e0
lea ecx, [ecx]
lea edx, [esp + 0x3c]
push 0x486cfc
push edx
call fcn.004132dc
add esp, 8
test eax, eax
je 0x4320d0
lea eax, [esp + 0x3c]
push 0x489b88
push eax
call fcn.004132dc
add esp, 8
test eax, eax
je 0x4320d0
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 0x4320fa
mov bl, 1
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x43207d
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_FindClose]
call esi
cmp byte [ebp + 0x14], 0
jne 0x43210c
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 0x489b80
call edi
mov edi, eax
cmp edi, 0xffffffff
je 0x432193
mov ebx, dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
test byte [esp + 0x10], 0x10
je 0x432183
lea eax, [esp + 0x3c]
push 0x486cfc
push eax
call fcn.004132dc
add esp, 8
test eax, eax
je 0x432183
lea ecx, [esp + 0x3c]
push 0x489b88
push ecx
call fcn.004132dc
add esp, 8
test eax, eax
je 0x432183
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.0043204d
test al, al
je 0x4321a1
push 0x489b88
call ebx
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x432125
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 0x4321af
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 0x4321e1
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.0041343b
lea edx, [ebp - 0x208]
push edx
call fcn.00411361
mov edi, eax
add esp, 0x10
cmp word [ebp + edi*2 - 0x20a], 0x5c
jne 0x43222b
cmp word [ebp + edi*2 - 0x20c], 0x3a
je 0x43222b
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 0x432245
cmp byte [ebp + 0x10], al
jne 0x432245
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 0x4322f8
push 0x14
lea ecx, [ebp - 0x820]
push 0
push ecx
call fcn.004130e0
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.0041315a
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 0x43230a
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 0x4325de
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 0x4325f6
cmp eax, 0x10000
jne 0x43261a
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x45c]
push eax
push 0x10000
push 1
push ecx
call fcn.00414eb4
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 0x432635
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 0x432666
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x458]
push ecx
push eax
push 1
push edx
call fcn.00414466
add esp, 0x10
mov dword [esi + 0x460], 0
pop esi
pop ebp
ret 4
Function at 0x43266b
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 0x4326ba
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x458]
push eax
push 0x10000
push 1
push ecx
call fcn.00414466
add esp, 0x10
mov dword [esi + 0x460], 0
pop esi
pop ebp
ret 8

Function at 0x43276b
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 0x432792
mov eax, dword [esi + 0xc]
add eax, dword [esi + 4]
push 8
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00411000
add esp, 0xc
jmp 0x4327a6
mov edx, dword [esi + 0x1c]
push edx
push 8
lea eax, [ebp - 8]
push 1
push eax
call fcn.00414eb4
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.00414ee0
add esp, 8
neg eax
sbb eax, eax
neg eax
pop esi
mov esp, ebp
pop ebp
ret 8

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

Function at 0x43374b
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 0x4337e7
jne 0x43376e
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0xf
jae 0x4337e0
mov edi, dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
lea eax, [ebp - 0x18]
push eax
call edi
test eax, eax
je 0x4337e0
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 [0x48bd98]
fldcw word [ebp - 4]
fistp qword [ebp - 8]
mov edx, dword [ebp - 8]
fldcw word [ebp + 0xa]
cmp edx, esi
jb 0x43378d
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 0x433967
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 0x4339c7
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 0x4339ce
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 0x20
je 0x433a1a
cmp ebx, 0x40
je 0x433a2d
test bl, 0xb
jne 0x4339eb
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 0x4339f7
mov ecx, 1
xor eax, eax
test bl, 2
je 0x433a03
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 0x433a3c
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 0x433b19
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 0x433b19
mov eax, dword [eax + 0xc]
xor edx, edx
cmp dword [eax], edx
je 0x433aa5
mov ecx, eax
lea ecx, [ecx]
add ecx, 4
inc edx
cmp dword [ecx], 0
jne 0x433a9c
cmp esi, edx
jle 0x433ac3
push str.0.0.0.0
push edi
call fcn.00411707
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.00411000
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.00413800
lea ecx, [ebp - 0x108]
push 0xffffffffffffffff
push ecx
call fcn.00432f4e
mov esi, eax
push esi
push edi
call fcn.00411707
push esi
call fcn.0041137c
add esp, 0x1c
call dword [sym.imp.WSOCK32.dll_WSACleanup]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x483f68
push edi
call fcn.00411707
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x433b76
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.004337ed
lea edx, [ebp - 0x20c]
push edx
call fcn.00411361
add esp, 0x10
test eax, eax
je 0x433bbe
cmp word [ebp + eax*2 - 0x20e], 0x5c
lea eax, [ebp + eax*2 - 0x20e]
jne 0x433bbe
xor ecx, ecx
mov word [eax], cx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x433c64
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
jne 0x433bf8
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x433bfd
mov al, 1
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x433c68
push esi
push edi
lea edi, [ebp - 0x20c]
call fcn.00410330
mov esi, eax
push 0x5c
push esi
call fcn.0041403a
add esp, 8
test eax, eax
jne 0x433c2c
push esi
call fcn.0041137c
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.00433b76
push esi
mov bl, al
call fcn.0041137c
add esp, 8
test bl, bl
je 0x433c5b
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 0x433bf2
xor al, al
mov esp, ebp
pop ebp
ret

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

Function at 0x433f5f
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 0x433f9e
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x433f93
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 0x434343
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x102c
call fcn.00422880
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 0x434370
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.00434304
add esp, 4
xor ebx, ebx
mov dword [ebp - 0xc], eax
test edi, edi
je 0x43447d
push esi
jmp 0x4343a3
mov ecx, dword [ebp + 0x10]
cmp byte [ecx], 0
jne 0x43447c
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 0x43446c
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.00413bbe
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x218]
push ecx
call fcn.004116d6
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x218]
push eax
call fcn.0041164b
add esp, 0x24
test eax, eax
jne 0x43444f
mov edx, dword [ebp + ebx*4 - 0x102c]
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
jmp 0x434466
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x43446c
mov eax, dword [ebp + ebx*4 - 0x102c]
cmp ecx, eax
jne 0x43446c
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 0x4343a3
pop esi
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret