joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ef5c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45ef73
add esp, 0xfffffff0
call fcn.00403bf4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041dbd4
mov eax, dword [0x483138]
cmp word [eax + 2], 0
jne 0x45ef9b
mov eax, dword [0x483138]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00460a0c
mov eax, dword [0x4831f0]
cmp word [eax + 2], 0
jne 0x45efb5
mov eax, dword [0x4831f0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00460c18
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x415734]
call fcn.004038a0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x415734]
call fcn.004038a0
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x415734]
call fcn.004038a0
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x4222b0]
call fcn.00429a98
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x45f16c
mov eax, dword [0x483044]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00429e6c
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4612d8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x483044]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d06c
test eax, eax
je 0x45f0bc
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409140
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d0a0
test eax, eax
je 0x45f0d0
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040496c
mov byte [ebx + 0xd4], 0
push ebx
push 0x46056c
call fcn.0041ed50
mov dword [ebx + 0xc8], eax
mov eax, dword [0x482f08]
cmp byte [eax], 0
jne 0x45f121
mov eax, ebx
call fcn.0045f2b0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004614b4
mov eax, ebx
call fcn.00462014
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45f161
call fcn.00403c4c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45f530
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4875ac]
cmp dword [eax + 0x30], 0
je 0x45f5da
cmp dword [ebx + 0x94], 0
jne 0x45f5d4
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45f4c0
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45f5d4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45f59a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45f5d4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00417b68
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45f5a9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4602f4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x460329
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004047ec
jmp 0x460336
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404750
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x461698
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x461706
mov eax, esi
call fcn.0044b934
test al, al
je 0x461706
mov eax, dword [ebx + 0x84]
call fcn.0044b594
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x461706
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x4616fa
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044b594
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.004439b4
jmp 0x461706
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004614d4
pop esi
pop ebx
ret
Function at 0x401610
Capabilities:
Check mutex on windows

Disassembly:
push 0x3c
mov eax, 0x46cd73
call fcn.00469a33
xor ebx, ebx
cmp dword [esi + 4], ebx
jne 0x4016d0
lea edi, [esi + 8]
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
cmp eax, 0xb7
jne 0x401691
push str.cant_create_mutex
lea eax, [ebp - 0x2c]
call fcn.00401cc7
push edi
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], ebx
call fcn.00401cf8
lea eax, [ebp - 0x2c]
call fcn.00401489
mov ecx, dword [esi + 0x208]
push eax
push str.ERROR
call fcn.00414290
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
mov dword [esi + 4], ebx
call fcn.004012b8
xor eax, eax
inc eax
jmp 0x4016d2
push str.Mutex_is_created
lea eax, [ebp - 0x48]
call fcn.00401cc7
push edi
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 4], 1
call fcn.00401cf8
lea eax, [ebp - 0x48]
call fcn.00401489
mov ecx, dword [esi + 0x208]
push eax
push str.INFO
call fcn.00414290
lea ecx, [ebp - 0x48]
call fcn.004012b8
xor eax, eax
call fcn.00469a7d
ret
Function at 0x403870
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x140c
call fcn.004601c0
mov eax, dword [0x48f310]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ecx]
lea ecx, [ebp - 0x140c]
push ecx
lea edx, [ebp - 0x404]
push edx
lea ecx, [ebp - 0x1408]
push ecx
push 0
push eax
push esi
mov dword [ebp - 0x140c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40390c
mov eax, dword [ebp - 0x1408]
cmp eax, 1
je 0x4038d4
cmp eax, 2
je 0x4038d9
cmp eax, 7
je 0x4038d4
cmp eax, 3
jne 0x40390c
cmp eax, 2
jne 0x4038fb
push 0x1000
lea edx, [ebp - 0x1404]
push edx
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x1404]
push ecx
jmp 0x403902
lea edx, [ebp - 0x404]
push edx
push ebx
push edi
call fcn.00450e0b
add esp, 0xc
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0045080d
mov esp, ebp
pop ebp
ret

Function at 0x403930
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x48f310]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ecx]
lea ecx, [ebp - 0x40c]
push ecx
lea edx, [ebp - 0x404]
push edx
lea ecx, [ebp - 0x410]
push ecx
push 0
push eax
push esi
mov dword [ebp - 0x408], 0
mov dword [ebp - 0x40c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4039a8
cmp dword [ebp - 0x410], 4
jne 0x4039a8
mov eax, dword [ebp - 0x40c]
push 4
lea edx, [ebp - 0x404]
push edx
push eax
lea ecx, [ebp - 0x408]
push ecx
call fcn.00451974
add esp, 0x10
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x408]
xor ecx, ebp
pop esi
call fcn.0045080d
mov esp, ebp
pop ebp
ret

Function at 0x4039d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
or esi, 0xffffffff
test edi, edi
je 0x403a33
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x403a33
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403a00
mov ecx, dword [ebp + 8]
sub eax, edx
mov edx, dword [ebp - 4]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403a40
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x830
mov eax, dword [0x48f310]
xor eax, esp
mov dword [esp + 0x82c], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea edx, [esp + 0x30]
push edx
xor ecx, ecx
push 0x400
mov dword [esp + 0x14], eax
mov word [ebx], cx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [esp + 0x32], 0
lea esi, [esp + 0x30]
mov dword [esp + 8], 0
je 0x403b1e
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x403b00
mov ax, word [esi]
mov word [esp + 0x28], ax
xor eax, eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
mov word [esp + 0x32], ax
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x3a], 0x5c003a
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x403b00
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
shrd edi, edx, 0x14
shr edx, 0x14
cmp edi, dword [esp + 8]
jbe 0x403b00
push esi
push 8
push ebx
mov dword [esp + 0x14], edi
call fcn.00450e0b
mov eax, dword [esp + 0x18]
add esp, 0xc
mov dword [eax], edi
lea esp, [esp]
add esi, 2
cmp word [esi], 0
jne 0x403b00
cmp word [esi + 2], 0
je 0x403b1e
add esi, 2
cmp word [esi + 2], 0
jne 0x403a90
mov ecx, dword [esp + 0x834]
pop edi
pop esi
xor ecx, esp
call fcn.0045080d
mov esp, ebp
pop ebp
ret

Function at 0x403b40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
cmp word [edi], 0
je 0x403bc4
test ebx, ebx
je 0x403b9b
push esi
push 0x800
call fcn.0045081c
add esp, 4
mov esi, eax
mov eax, dword [ebp + 8]
push eax
push edi
push 0x479210
push 0x479270
call fcn.00405c30
add esp, 8
push eax
push 0x400
push esi
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
push esi
push str.INFO
mov ecx, ebx
call fcn.00414290
push esi
call fcn.00450827
add esp, 4
pop esi
mov ecx, dword [ebp + 8]
push 1
push 0
push ecx
push edi
push 0x479274
push 0x47927c
call fcn.00405c30
add esp, 8
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebp
ret
Function at 0x403bd0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x220
mov eax, dword [0x48f310]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x44
push 0x40
mov edi, ecx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov eax, dword [ebp + 0x10]
neg edi
sbb edi, edi
mov dword [esp + 8], 0xfffffffb
and edi, 0xfffffff6
push 0x479280
add edi, 0xa
push 0x479270
mov dword [esi], 0x44
mov dword [esi + 0x2c], 0x101
mov word [esi + 0x30], di
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x38], ecx
call fcn.00405c30
add esp, 8
push eax
push str.INFO
mov ecx, ebx
call fcn.00414290
mov edi, dword [esp + 0xc]
push edi
push str.INFO
mov ecx, ebx
call fcn.00414290
lea edx, [esp + 0x10]
push edx
push esi
push 0
push 0
push 0
push 1
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x403d12
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.nd_waiting_process_:
push 0x479270
call fcn.00405c30
add esp, 8
push eax
push str.INFO
mov ecx, ebx
call fcn.00414290
push edi
push str.INFO
mov ecx, ebx
call fcn.00414290
mov edx, dword [esp + 0x10]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x403cff
cmp dword [esp + 8], 0x103
jne 0x403d07
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [esp + 8], 0xfffffffc
jmp 0x403d07
mov dword [esp + 8], 0xfffffffe
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
test eax, eax
je 0x403d57
push eax
push ecx
push str.xit_code_is__d
push 0x479270
call fcn.00405c30
add esp, 0xc
push eax
lea edx, [esp + 0x28]
push 0x100
push edx
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
lea eax, [esp + 0x20]
push eax
push str.INFO
mov ecx, ebx
call fcn.00414290
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x224]
pop edi
pop esi
xor ecx, esp
call fcn.0045080d
mov esp, ebp
pop ebp
ret
Function at 0x403d70
Capabilities:
Create pipe
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov edi, eax
xor eax, eax
push eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x10], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
mov ecx, 1
call fcn.00403bd0
push 0x100
push 0
push edi
mov esi, eax
call fcn.004579d0
add esp, 0x18
test esi, esi
jne 0x403de7
mov ecx, dword [ebp - 4]
push esi
lea eax, [ebp - 0xc]
push eax
push 0x100
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [ebp - 4]
push eax
call edi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x403e10
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor eax, eax
push eax
push 1
push 3
push eax
push 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x403e4f
lea ecx, [ebp - 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4040a0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.004601c0
mov eax, dword [0x48f310]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1004]
push eax
push 0
push 0
push 0x26
push 0
mov dword [ebp - 0x1008], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x1004]
push ecx
mov eax, esi
call fcn.00401cc7
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.0045080d
mov esp, ebp
pop ebp
ret

Function at 0x4041b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push 0
push 1
push 3
push 0
push 1
push SysReAllocString
push eax
mov dword [edi], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40422f
lea ecx, [ebp - 0x10]
push ecx
push esi
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x404228
mov edx, dword [ebp - 0x10]
inc edx
push edx
call fcn.0045081c
mov edx, dword [ebp - 0x10]
add esp, 4
push 0
lea ecx, [ebp - 4]
push ecx
push edx
push eax
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [edi]
mov ecx, dword [ebp - 0x10]
mov byte [ecx + eax], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4042c0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x48f310]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push 0x110
lea eax, [ebp - 0x124]
push ebx
push eax
mov byte [ebp - 0x129], bl
mov dword [ebp - 0x128], 0x114
call fcn.004579d0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x128]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x118], 2
mov dword [ebp - 0x130], ebx
je 0x40432a
mov byte [ebp - 0x129], 1
jmp 0x4043f9
lea edx, [ebp - 0x130]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4043f9
mov ecx, dword [ebp - 0x130]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x134]
push eax
push ebx
push ebx
push 2
push ecx
mov dword [ebp - 0x14], 0x201
mov dword [ebp - 0x10], 0x5000000
mov dword [ebp - 0xc], 0x20
mov dword [ebp - 8], 0x220
call edi
test eax, eax
jne 0x4043f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4043f8
mov edx, dword [ebp - 0x134]
push esi
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
je 0x4043f7
mov ecx, dword [ebp - 0x134]
mov edx, dword [ebp - 0x130]
lea eax, [ebp - 0x134]
push eax
push ecx
push esi
push 2
push edx
call edi
test eax, eax
je 0x4043f0
xor edi, edi
cmp dword [esi], ebx
jbe 0x4043f0
lea ebx, [esi + 4]
jmp 0x4043d0
mov ecx, dword [ebx]
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4043e8
mov byte [ebp - 0x129], 1
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x4043d0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
pop edi
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x129]
xor ecx, ebp
pop ebx
call fcn.0045080d
mov esp, ebp
pop ebp
ret

Function at 0x404420
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.004601c0
mov eax, dword [0x48f310]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x4793ec
push eax
mov edi, ecx
call fcn.0045158b
mov esi, eax
add esp, 8
test esi, esi
je 0x40446f
push 0x4793f4
push edi
call fcn.0045158b
add esp, 8
mov edi, eax
push esi
test edi, edi
jne 0x404481
call fcn.00451d90
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045080d
mov esp, ebp
pop ebp
ret
push 0x1000
lea eax, [ebp - 0x1004]
push 1
push eax
call fcn.00451957
add esp, 0x10
test eax, eax
je 0x4044cb
jmp 0x4044a0
push edi
push eax
lea ecx, [ebp - 0x1004]
push 1
push ecx
call fcn.00451b40
push esi
push 0x1000
lea edx, [ebp - 0x1004]
push 1
push edx
call fcn.00451957
add esp, 0x20
test eax, eax
jne 0x4044a0
push esi
call fcn.00451d90
push edi
call fcn.00451d90
mov ecx, dword [ebp - 4]
add esp, 8
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.0045080d
mov esp, ebp
pop ebp
ret
Function at 0x404a80
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0x47953c
push 0x4794b0
mov ebx, eax
call fcn.00405c30
add esp, 8
push eax
push str.INFO
mov ecx, edi
call fcn.00414290
mov eax, ebx
call fcn.00401489
push eax
push str.INFO
mov ecx, edi
call fcn.00414290
mov eax, dword [ebp + 0xc]
movzx ecx, word [ebp + 8]
push eax
push ecx
push 0
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x404b7a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0
push 2
push 0
push 0
mov dword [ebp - 8], eax
push 0x40000000
mov eax, ebx
mov dword [ebp + 8], 0
call fcn.00401489
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x404b4c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
push 0
lea edx, [ebp + 8]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov bl, 1
test eax, eax
jne 0x404b3d
mov bl, byte [ebp - 1]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push str.ant_create_file
push 0x479304
call fcn.00405c30
add esp, 8
push eax
push str.ERROR
mov ecx, edi
call fcn.00414290
push edi
call fcn.004141f0
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.esource_file_not_found
push 0x4795bc
call fcn.00405c30
add esp, 8
push eax
push str.ERROR
mov ecx, edi
call fcn.00414290
mov al, byte [ebp - 1]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405330
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x48f310]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x22c
mov esi, eax
lea eax, [ebp - 0x230]
push edi
push eax
call fcn.004579d0
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4053e0
mov ecx, ebx
lea eax, [ebp - 0x20c]
jmp 0x405390
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4053b6
test dx, dx
je 0x4053b2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4053b6
add eax, 4
add ecx, 4
test dx, dx
jne 0x405390
xor eax, eax
jmp 0x4053bb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4053ca
mov eax, dword [ebp - 0x228]
cmp eax, 0xffffffff
jne 0x4053de
lea edx, [ebp - 0x230]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x405383
jmp 0x4053e0
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0045080d
mov esp, ebp
pop ebp
ret