joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407178
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x406ff0
mov eax, dword [0x419b60]
cmp byte [eax], 0
je 0x4071f4
mov eax, dword [0x419ab8]
call fcn.0040270c
call fcn.0040260c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00405f78
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40723c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40722a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x419a98]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x41a660]
call fcn.0040435c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x407be8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x407c4c
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0040393c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00405e4c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407c53
lea eax, [ebp - 0xc]
call fcn.004036f4
ret

Function at 0x4093e8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
push esi
call sub.kernel32.dll_lstrlenA_1
mov ebx, eax
push 0x40
push 0x3000
lea ebp, [ebx + ebx*2]
push ebp
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov edi, eax
push ebp
push edi
push ebx
push esi
push 0
push 0
call sub.kernel32.dll_MultiByteToWideChar
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x409420
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
push esi
call sub.kernel32.dll_lstrlenW
mov ebx, eax
push 0x40
push 0x3000
lea ebp, [ebx + 1]
push ebp
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov edi, eax
push 0
push 0
push ebp
push edi
push ebx
push esi
push 0
push 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4096ec
Capabilities:
Allocate or change rwx memory
Get file size
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, edx
xor edx, edx
mov dword [esi], edx
xor edi, edi
push 0
push 0x86
push 3
push 0
push 1
push 0x80000000
push eax
call sub.kernel32.dll_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x409751
push 0
push ebx
call sub.kernel32.dll_GetFileSize
mov dword [esi], eax
push 0x40
push 0x3000
mov eax, dword [esi]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov edi, eax
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [esp + 4]
push eax
mov eax, dword [esi]
push eax
push edi
push ebx
call sub.kernel32.dll_ReadFile
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a20c
Capabilities:
Allocate or change rwx memory
Get common file path
Write file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov esi, ecx
mov ebp, edx
mov edi, eax
push 0x40
push 0x3000
push 0x410
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
push ebx
push 0x410
call sub.kernel32.dll_GetCurrentDirectoryW
push 0x40a290
push ebx
call sub.kernel32.dll_lstrcatW
push esi
push ebx
call sub.kernel32.dll_lstrcatW
push 0
push 0x86
push 2
push 0
push 2
push 0x40000000
push esi
call sub.kernel32.dll_CreateFileW
mov esi, eax
push 0
lea eax, [esp + 4]
push eax
push ebp
push edi
push esi
call sub.kernel32.dll_WriteFile_1
push esi
call sub.kernel32.dll_CloseHandle
push 0x8000
push 0
push edi
call sub.kernel32.dll_VirtualFree_1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40a4cc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
push 0x40
push 0x3000
push ebx
call sub.kernel32.dll_lstrlenW
lea eax, [eax + eax*2]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
push ebx
call sub.kernel32.dll_lstrlenW
cmp eax, 1
jb 0x40a515
cmp di, word [ebx + eax*2]
jne 0x40a510
inc eax
mov edx, eax
add edx, edx
add ebx, edx
push ebx
push esi
call sub.kernel32.dll_lstrcpyW
mov esi, eax
jmp 0x40a515
dec eax
test eax, eax
jne 0x40a4f8
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x40ac2c
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffa8
mov ebx, ecx
mov edi, edx
mov esi, eax
lea eax, [esp + 4]
mov edx, 0x44
call fcn.00404f10
mov dword [esp + 4], 0x44
mov dword [esp + 0x30], 1
mov word [esp + 0x34], 1
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push esi
call sub.kernel32.dll_CreateProcessW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [esp], al
test bl, bl
jne 0x40aca6
mov ebx, 1
push 0x1f40
call sub.kernel32.dll_Sleep
inc ebx
push esi
call sub.kernel32.dll_DeleteFileW
test eax, eax
jne 0x40aca6
cmp ebx, 8
jne 0x40ac8c
mov al, byte [esp]
add esp, 0x58
pop edi
pop esi
pop ebx
ret
Function at 0x40adc8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffdc
mov esi, ecx
mov edi, edx
mov ebx, eax
push 9
push ebx
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_lstrcpynA_1
push 5
push ebx
lea eax, [esp + 0x11]
push eax
call sub.kernel32.dll_lstrcpynA_1
push 0x40aee4
lea eax, [esp + 0x16]
push eax
call sub.kernel32.dll_lstrcpyA
push 0x40aef0
lea eax, [esp + 0x1f]
push eax
call sub.kernel32.dll_lstrcpyA
lea eax, [esp + 0x12]
push eax
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_lstrcmpA
test eax, eax
jne 0x40ae74
push 0x40
push 0x3000
push 0xb
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [esi], eax
mov edx, 0x40aef8
mov ecx, edi
mov eax, ebx
call fcn.00409760
dec eax
jle 0x40ae54
push 0x40af00
mov eax, dword [esi]
push eax
call sub.kernel32.dll_lstrcpyW
jmp 0x40aedd
mov edx, 0x40af0c
mov ecx, edi
mov eax, ebx
call fcn.00409760
dec eax
jle 0x40aedd
jmp 0x437b3d
lea eax, [esp + 0x1b]
push eax
lea eax, [esp + 0xd]
push eax
call sub.kernel32.dll_lstrcmpA
test eax, eax
jne 0x40aed9
push 0x40
push 0x3000
push 0xb
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [esi], eax
mov edx, 0x40af20
mov ecx, edi
mov eax, ebx
call fcn.00409760
dec eax
jle 0x40aeb9
push 0x40af30
mov eax, dword [esi]
push eax
call sub.kernel32.dll_lstrcpyW
jmp 0x40aedd
mov edx, 0x40af3c
mov ecx, edi
mov eax, ebx
call fcn.00409760
dec eax
jle 0x40aedd
push 0x40af4c
mov eax, dword [esi]
push eax
call sub.kernel32.dll_lstrcpyW
jmp 0x40aedd
xor eax, eax
mov dword [esi], eax
add esp, 0x24
pop edi
pop esi
pop ebx
ret
Function at 0x40af58
Capabilities:
Allocate or change rwx memory
Delete file

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
xor eax, eax
call fcn.004094ac
mov esi, eax
lea edx, [esp + 8]
mov eax, esi
call fcn.004096ec
mov edi, eax
push 0x40
push 0x3000
push 0x10
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [esp + 4], eax
push 0x40b104
mov eax, dword [esp + 8]
push eax
call sub.kernel32.dll_lstrcpyA
lea eax, [esp + 4]
call fcn.00409894
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
mov eax, edi
call fcn.00409760
mov ebp, eax
cmp ebp, 1
jle 0x40b0fa
lea eax, [ebp + 0x10]
mov ebx, dword [esp + 8]
sub ebx, eax
push 0x40
push 0x3000
push ebx
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [esp], eax
lea edx, [ebp + 0x10]
add edx, edi
mov ecx, ebx
mov eax, dword [esp]
call fcn.0040988c
mov eax, 0x419a3c
mov edx, 0x80
call fcn.004098f4
push 0x40
push 0x3000
push ebx
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov edi, eax
mov edx, edi
mov eax, dword [esp]
mov ecx, ebx
call fcn.00409b0c
lea ecx, [esp + 0xc]
mov edx, ebx
mov eax, edi
call fcn.0040adc8
cmp dword [esp + 0xc], 0
je 0x40b09d
mov dx, 0x5c
mov eax, esi
call fcn.0040a4cc
mov ebp, eax
push ebp
push esi
call sub.kernel32.dll_lstrcpyW
push esi
call sub.kernel32.dll_lstrlenW
mov ecx, eax
mov edx, 0x40b118
mov eax, esi
call fcn.004097f4
test eax, eax
jle 0x40b057
mov word [esi + eax*2], 0x2d
push 0x40b11c
push esi
call sub.kernel32.dll_lstrcatW
mov eax, dword [esp + 0xc]
push eax
push esi
call sub.kernel32.dll_lstrcatW
mov ecx, esi
mov edx, ebx
mov eax, edi
call fcn.0040a20c
mov edi, eax
push 0x8000
push 0
push ebp
call sub.kernel32.dll_VirtualFree_1
push 0
push 0
push 1
mov edx, 0x40b124
mov ecx, edi
xor eax, eax
call fcn.00409560
jmp 0x40b0c1
mov al, 6
call fcn.00409c40
call fcn.004093e8
mov ecx, eax
mov edx, ebx
mov eax, edi
call fcn.0040a20c
mov edi, eax
xor ecx, ecx
xor edx, edx
mov eax, edi
call fcn.0040ac2c
mov ebx, 1
push 0x1f40
call sub.kernel32.dll_Sleep
inc ebx
push edi
call sub.kernel32.dll_DeleteFileW
test eax, eax
jne 0x40b0e0
cmp ebx, 3
jne 0x40b0c6
push 0x8000
push 0
push esi
call sub.kernel32.dll_VirtualFree_1
push 0x8000
push 0
push edi
jmp 0x4386c1
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x40b413
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
call fcn.004094ac
mov ebx, eax
push 0x40b424
push ebx
call sub.kernel32.dll_lstrcatW
push ebx
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40b30a
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004096ec
mov esi, eax
jmp 0x40b3f0
jmp 0x438eaa
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b41a
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00403718
lea eax, [ebp - 0x18]
call fcn.004036f4
ret
Function at 0x40b7b8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
xor edx, edx
mov dword [ebp - 0xc], edx
test eax, eax
je 0x40b830
mov ebx, eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00409760
mov esi, eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, ebx
call fcn.00409760
mov edi, eax
cmp esi, edi
jae 0x40b830
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_lstrlenA_1
add eax, esi
sub edi, eax
inc edi
push 0x40
push 0x3000
mov eax, edi
add eax, eax
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_lstrlenA_1
add esi, eax
add ebx, esi
push edi
push ebx
mov eax, dword [ebp - 0xc]
push eax
jmp 0x43911b
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b9c4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403b58
xor eax, eax
push ebp
push 0x40ba69
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40
push 0x3000
mov eax, dword [ebp - 4]
call fcn.00403968
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00403968
push eax
lea eax, [ebp - 4]
call fcn.00403bc0
mov ecx, ebx
pop edx
call fcn.00404f60
mov esi, eax
mov eax, 0x419a3c
mov edx, 0x80
call fcn.004098f4
push 0x40
push 0x3000
lea eax, [esi + 0x20]
push eax
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov edi, eax
mov edx, edi
mov eax, ebx
mov ecx, esi
call fcn.00409b0c
push 0x8000
push 0
push ebx
call sub.kernel32.dll_VirtualFree_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ba70
lea eax, [ebp - 4]
call fcn.004036f4
ret
Function at 0x40c0c8
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x40c4d2
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00409cf8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40c136
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
call fcn.004096ec
mov ebx, eax
cmp dword [ebp - 0x2c], 3
jbe 0x40c128
lea edx, [ebp - 0x20]
mov eax, ebx
call fcn.00409ce4
jmp 0x40c143
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_DeleteFileW
jmp 0x40c497
lea eax, [ebp - 0x20]
mov edx, 0x40c4e8
call fcn.0040378c
mov eax, dword [ebp - 0x20]
call fcn.0040b9c4
lea edx, [ebp - 0x40]
call fcn.00409ce4
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 4]
mov edx, 0x40c568
call fcn.0040b8e8
mov ebx, eax
mov edx, 0x4199b0
lea eax, [ebp - 0x1c]
mov ecx, 0x8b
call fcn.004037e4
dec ebx
test ebx, ebx
jl 0x40c451
inc ebx
jmp 0x436887
push 0x493e0
call sub.kernel32.dll_Sleep
mov eax, 0x40c5dc
call fcn.0040b9c4
call fcn.004093e8
call fcn.0040b83c
mov ebx, eax
test ebx, ebx
je 0x40c487
push ebx
call sub.kernel32.dll_lstrlenA_1
mov edx, eax
mov ecx, dword [ebp - 0xc]
mov eax, ebx
jmp 0x437e29
push 0x8000
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_VirtualFree_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c4d9
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.00403718
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00403718
lea eax, [ebp - 8]
mov edx, dword [0x409398]
jmp 0x436c6d
Function at 0x5a7370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x5a738e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x5d0074
push ecx
mov edi, eax
call fcn.005bb198
mov esi, eax
add esp, 8
test esi, esi
jne 0x5a73cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.005bb02e
push esi
call fcn.005bafb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x5aa850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x5aa8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x5d5720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5aa8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.005bb1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x5aa8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x5d5720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5aa92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.005bc082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x5aa957
mov word [eax], si
add eax, 2
push eax
call fcn.005bc030
add esp, 4
jmp 0x5aa959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x5aa8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x5aa8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x5aaff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x5ab080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x5ab0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x5d0458
push ecx
call fcn.005bb1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.005bb1e1
add esp, 0x10
jmp 0x5ab0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.005bb20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.005badff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.005ab050
mov eax, dword [0x5d5728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x5ab13b
push esi
call fcn.005aafb0
add esp, 4
mov dword [0x5d5728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x5ab14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.005aaff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x5ae440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x5ae4b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x5ae48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x5ae471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x5ae47e
add edx, ecx
cmp ebx, edx
jb 0x5ae48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x5ae467
xor ecx, ecx
jmp 0x5ae4a2
test eax, eax
jne 0x5ae492
xor ecx, ecx
jmp 0x5ae4a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.005ae3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x5ae8f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5ae921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x5ae946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x5ae96e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x5ae993
push ecx
push esi
call fcn.005ae4c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0x5afc00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0x5afc4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x5afc2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x5afc38
add edx, eax
cmp ebx, edx
jb 0x5afc46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x5afc21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x5afc50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0x5afc70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x5afcb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x5afc9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x5afca8
add edx, ecx
cmp ebx, edx
jb 0x5afcb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x5afc91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x5aff60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.005bc145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x5afffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x5affdd
lea eax, [esp + 0x18]
push eax
jmp 0x5affe2
push 0x5d5720
call fcn.005bbfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x5affb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x5aff40
push 4
push ecx
push eax
call fcn.005bc43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x5b0310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.005bc145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x5b03ab
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x5b038d
lea eax, [esp + 0x18]
push eax
jmp 0x5b0392
push 0x5d5720
call fcn.005bbfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x5b0360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x5aff40
push 4
push ecx
push eax
call fcn.005bc43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret