joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431ca0
Capabilities:
Print debug messages

Disassembly:
push ebx
mov ebx, eax
sub esp, 0x38
call sym._GetLastError_0
test eax, eax
jne 0x431cb8
add esp, 0x38
pop ebx
ret
lea edx, [esp + 0x2c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x400
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1100
call sym._FormatMessageA_28
sub esp, 0x1c
test eax, eax
jne 0x431d08
call sym._IsDebuggerPresent_0
test eax, eax
je 0x431caf
int3
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym._OutputDebugStringA_4
sub esp, 4
mov dword [esp], ebx
call sym._OutputDebugStringA_4
sub esp, 4
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym._LocalFree_4
sub esp, 4
jmp 0x431cf7

Function at 0x431d40
Capabilities:
Check mutex on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp + 8], 0x4e6980
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateMutexA_12
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
test eax, eax
jne 0x431e08
mov edx, dword [0x4e6920]
mov eax, dword [edx + 4]
test eax, eax
je 0x431dd0
cmp edx, 0x4e6920
jne 0x431db5
mov dword [0x4e6920], eax
cmp eax, 0x4e6920
je 0x431dbc
lea esi, [esi]
test eax, eax
je 0x431de4
mov edx, dword [edx]
mov dword [eax], edx
mov edx, eax
mov eax, dword [edx + 4]
cmp eax, 0x4e6920
jne 0x431da8
mov eax, dword [0x4e6924]
mov dword [edx + 4], eax
test eax, eax
je 0x431de4
mov edx, eax
jmp 0x431db2
mov dword [esp], 0x4e69c0
call sym._FindAtomA_4
sub esp, 4
test ax, ax
jne 0x431e24
mov dword [esp], ebx
call sym._ReleaseMutex_4
sub esp, 4
mov dword [esp], ebx
call sym._CloseHandle_4
xor eax, eax
sub esp, 4
add esp, 0x18
pop ebx
ret
mov eax, str.failed_to_to_lock_cleanup_mutex_n
call sym.___shmem_get_error
mov dword [esp], ebx
call sym._CloseHandle_4
xor eax, eax
sub esp, 4
add esp, 0x18
pop ebx
ret
movzx eax, ax
mov dword [esp], eax
call sym._DeleteAtom_4
sub esp, 4
jmp 0x431de4
Function at 0x431e40
Capabilities:
Check mutex on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
call sym._GetCurrentProcessId_0
xor edx, edx
mov dword [esp + 0x1c], eax
movzx eax, byte [esp + edx + 0x1c]
mov ecx, eax
and eax, 0xf
shr cl, 4
add eax, 0x61
add ecx, 0x41
mov byte [edx + edx + 0x4e6981], al
mov byte [edx + edx + 0x4e6980], cl
add edx, 1
cmp edx, 4
jne 0x431e52
xor eax, eax
mov edx, 0x5f
jmp 0x431e8f
movzx edx, byte [eax + str.__shmem3_winpthreads_tdm_]
mov byte [eax + 0x4e6988], dl
add eax, 1
cmp eax, 0x1a
jne 0x431e88
xor eax, eax
mov edx, 0x5f
jmp 0x431eb7
movzx edx, byte [eax + str.__shmem3_winpthreads_tdm_]
mov byte [eax + 0x4e69c0], dl
add eax, 1
cmp eax, 0x19
jne 0x431eb0
mov dword [esp + 8], 0x4e6980
mov dword [esp + 4], 0
mov dword [esp], 0
mov byte [0x4e69d9], 0x2d
mov dword [0x4e69da], 0x61616161
mov dword [0x4e69de], 0x61616161
mov dword [0x4e69e2], 0x61616161
mov dword [0x4e69e6], 0x61616161
mov dword [0x4e69ea], 0x61616161
mov dword [0x4e69ee], 0x61616161
mov dword [0x4e69f2], 0x61616161
mov dword [0x4e69f6], 0x61616161
mov byte [0x4e69fa], 0
call sym._CreateMutexA_12
sub esp, 0xc
mov ebx, eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov esi, eax
test eax, eax
jne 0x43209a
mov dword [esp], 0x4e69c0
call sym._FindAtomA_4
sub esp, 4
test ax, ax
jne 0x431ff0
mov edx, 0x4e6920
mov eax, 0x20
nop
bt edx, eax
jae 0x431f90
mov ecx, eax
neg ecx
mov byte [ecx + 0x4e69fa], 0x41
sub eax, 1
jne 0x431f80
mov dword [esp], 0x4e69c0
call sym._AddAtomA_4
sub esp, 4
test ax, ax
je 0x432089
mov dword [esp], sym.___shmem3_winpthreads_tdm_cleanup_local_region
mov dword [0x4e6920], 0x4e6920
call sym.__onexit
mov dword [esp], ebx
call sym._ReleaseMutex_4
sub esp, 4
mov dword [esp], ebx
call sym._CloseHandle_4
mov eax, dword [0x4e6920]
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
movzx eax, ax
mov ebp, 0x20
mov edi, 1
mov dword [esp + 8], 0x3b
mov dword [esp + 4], 0x4e69c0
mov dword [esp], eax
call sym._GetAtomNameA_12
mov edx, eax
sub esp, 0xc
xor eax, eax
test edx, edx
je 0x4320b9
lea esi, [esi]
cmp byte [eax + 0x4e69da], 0x41
jne 0x43203b
mov ecx, ebp
mov edx, edi
sub ecx, eax
shl edx, cl
or esi, edx
add eax, 1
cmp eax, 0x20
jne 0x432028
mov eax, esi
mov dword [0x4e6920], eax
jmp 0x43205c
cmp edx, 0x4e6920
je 0x431fc3
mov edx, eax
mov eax, dword [eax + 4]
test eax, eax
jne 0x432050
cmp edx, 0x4e6920
je 0x431fc3
mov dword [edx + 4], 0x4e6920
mov dword [esp], sym.___shmem3_winpthreads_tdm_cleanup_local_region
call sym.__onexit
jmp 0x431fc3
mov eax, str.failed_to_add_string_to_atom_table_n
call sym.___shmem_get_error
xor eax, eax
jmp 0x431fde
mov eax, str.failed_to_to_lock_creation_mutex_n
call sym.___shmem_get_error
mov dword [esp], ebx
call sym._CloseHandle_4
xor eax, eax
sub esp, 4
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, str.failed_to_get_string_from_atom_n
call sym.___shmem_get_error
xor eax, eax
jmp 0x432045
Function at 0x43cc80
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x3c
mov dword [esp + 4], 0
mov dword [esp], 2
call sym._setlocale
test eax, eax
je 0x43cd54
mov dword [esp], eax
mov esi, eax
mov ebx, esp
call sym._strlen
lea edx, [eax + 1]
add eax, 0x10
shr eax, 4
shl eax, 4
call fcn.00428230
sub esp, eax
lea eax, [esp + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._memcpy
mov dword [esp + 4], 0x4d9f64
mov dword [esp], 2
mov esi, eax
call sym._setlocale
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._strcmp
test eax, eax
je 0x43cd60
mov dword [esp + 4], esi
mov dword [esp], 2
call sym._setlocale
mov eax, esi
mov dword [esp + 4], 0x2e
mov dword [esp], eax
call sym._strchr
test eax, eax
je 0x43cd50
add eax, 1
mov dword [esp], eax
call sym._atoi
mov edi, eax
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._GetCPInfo_8
sub esp, 8
test eax, eax
je 0x43cd50
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x43cda0
xor edi, edi
mov esp, ebx
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.LC_ALL
call sym._getenv
test eax, eax
jne 0x43cd12
mov dword [esp], str.LC_CTYPE
call sym._getenv
test eax, eax
jne 0x43cd12
mov dword [esp], str.LANG
call sym._getenv
test eax, eax
jne 0x43cd12
mov eax, esi
jmp 0x43cd12
mov esp, ebx
jmp 0x43cd54
Function at 0x6100ba70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6102c088
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x61035070]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], ecx
mov eax, dword [ebp - 0x68]
cmp dword [eax + 0x3c], 0
je 0x6100bab0
mov ecx, dword [ebp - 0x68]
movzx edx, byte [ecx + 0x41]
test edx, edx
jne 0x6100babc
mov al, 1
jmp 0x6100bc5f
mov dword [ebp - 0x10], 8
call fcn.61003410
push eax
mov eax, dword [ebp - 0x68]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x68]
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 0x3c], eax
call fcn.61003410
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.610033f0
add esp, 8
movzx eax, al
test eax, eax
je 0x6100baff
xor al, al
jmp 0x6100bc5f
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.6100b6f0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x48]
push edx
lea ecx, [ebp - 0x34]
call fcn.610047a0
mov ecx, eax
call fcn.6100bea0
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.610016d0
add esi, eax
push esi
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
call fcn.610047a0
mov ecx, eax
call fcn.6100bea0
push eax
mov ecx, dword [ebp - 0x68]
add ecx, 0x44
push ecx
mov edx, dword [ebp - 0x68]
mov ecx, dword [edx + 0x3c]
call fcn.6100c070
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x6100bb7a
cmp dword [ebp - 0x6c], 1
je 0x6100bb81
cmp dword [ebp - 0x6c], 3
je 0x6100bc1b
jmp 0x6100bc33
mov eax, dword [ebp - 0x68]
mov byte [eax + 0x41], 0
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x34]
call fcn.610047a0
mov ecx, eax
call fcn.6100bea0
mov edx, dword [ebp - 0x14]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x6100bbe4
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x34]
call fcn.610047a0
mov ecx, eax
call fcn.6100bea0
push eax
call fcn.6100f7c0
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x6100bbe4
mov byte [ebp - 0x61], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.61001690
mov al, byte [ebp - 0x61]
jmp 0x6100bc5f
mov ecx, dword [ebp - 0x68]
movzx edx, byte [ecx + 0x41]
test edx, edx
jne 0x6100bc07
mov byte [ebp - 0x62], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.61001690
mov al, byte [ebp - 0x62]
jmp 0x6100bc5f
cmp dword [ebp - 0x38], 0
jne 0x6100bc19
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.610086b0
jmp 0x6100bc4b
mov byte [ebp - 0x63], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.61001690
mov al, byte [ebp - 0x63]
jmp 0x6100bc5f
mov byte [ebp - 0x64], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.61001690
mov al, byte [ebp - 0x64]
jmp 0x6100bc5f
jmp 0x6100bb12
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.6100c9cb
mov esp, ebp
pop ebp
ret

Function at 0x6100c9cb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x61035070]
jne 0x6100c9d5
repz ret
jmp fcn.6100fcbc
Function at 0x6101b4e7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.610106cb
and dword [ebp - 4], 0
cmp dword [0x61275524], 0
mov ebx, eax
jne 0x6101b598
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x6101b649
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x6101b649
push eax
call fcn.61010659
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x61275524], eax
call esi
push eax
call fcn.61010659
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x61275528], eax
call esi
push eax
call fcn.61010659
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x6127552c], eax
call esi
push eax
call fcn.61010659
pop ecx
mov dword [0x61275534], eax
test eax, eax
je 0x6101b598
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.61010659
pop ecx
mov dword [0x61275530], eax
mov eax, dword [0x61275530]
cmp eax, ebx
je 0x6101b5f0
cmp dword [0x61275534], ebx
je 0x6101b5f0
push eax
call fcn.610106d4
push dword [0x61275534]
mov esi, eax
call fcn.610106d4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x6101b5f0
test edi, edi
je 0x6101b5f0
call esi
test eax, eax
je 0x6101b5e7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x6101b5e7
test byte [ebp - 0xc], 1
jne 0x6101b5f0
or dword [ebp + 0x10], 0x200000
jmp 0x6101b629
mov eax, dword [0x61275528]
cmp eax, ebx
je 0x6101b629
push eax
call fcn.610106d4
pop ecx
test eax, eax
je 0x6101b629
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x6101b629
mov eax, dword [0x6127552c]
cmp eax, ebx
je 0x6101b629
push eax
call fcn.610106d4
pop ecx
test eax, eax
je 0x6101b629
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x61275524]
call fcn.610106d4
pop ecx
test eax, eax
je 0x6101b649
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x6101b64b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x610227a0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0x10325476
pop ebp
ret
Function at 0x61028220
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6102b7e8
mov eax, dword fs:[0]
push eax
sub esp, 0x170
mov eax, dword [0x61035070]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
push 0
push 0x5c
mov ecx, dword [ebp + 8]
call fcn.61004800
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [0x610303bc]
je 0x61028361
mov ecx, dword [ebp - 0x14]
push ecx
push 0
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp + 8]
call fcn.61004820
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.610016d0
test eax, eax
jbe 0x61028333
lea ecx, [ebp - 0x34]
call fcn.610016d0
cmp eax, 2
jne 0x610282ba
push 1
lea ecx, [ebp - 0x34]
call fcn.610047d0
movsx eax, byte [eax]
cmp eax, 0x3a
jne 0x610282ba
jmp 0x61028333
mov byte [ebp - 0x35], 0
lea ecx, [ebp - 0x17c]
push ecx
lea ecx, [ebp - 0x34]
call fcn.610016b0
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xffffffff
je 0x610282ee
mov edx, dword [ebp - 0x17c]
and edx, 0x10
je 0x610282ee
mov byte [ebp - 0x35], 1
jmp 0x610282f2
mov byte [ebp - 0x35], 0
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
movzx ecx, byte [ebp - 0x35]
test ecx, ecx
jne 0x61028333
push 0
lea ecx, [ebp - 0x34]
call fcn.610016b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x61028333
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.61001690
jmp 0x61028361
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
push eax
push 0x5c
mov ecx, dword [ebp + 8]
call fcn.61004800
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.61001690
jmp 0x61028261
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.6100c9cb
mov esp, ebp
pop ebp
ret
Function at 0x7b1370
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 0x7b138e
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 0x7da074
push ecx
mov edi, eax
call fcn.007c5198
mov esi, eax
add esp, 8
test esi, esi
jne 0x7b13cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.007c502e
push esi
call fcn.007c4fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x7b4850
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 0x7b48ae
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 0x7df720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x7b48ba
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.007c51e1
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 0x7b48ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x7df720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x7b492a
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.007c6082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x7b4957
mov word [eax], si
add eax, 2
push eax
call fcn.007c6030
add esp, 4
jmp 0x7b4959
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 0x7b48ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x7b48b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x7b4ff0
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 0x7b5080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x7b50c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x7da458
push ecx
call fcn.007c51e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.007c51e1
add esp, 0x10
jmp 0x7b50d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.007c520b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.007c4dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.007b5050
mov eax, dword [0x7df728]
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 0x7b513b
push esi
call fcn.007b4fb0
add esp, 4
mov dword [0x7df728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x7b514c
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.007b4ff0
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 0x7b8440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x7b84b7
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 0x7b848e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x7b8471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x7b847e
add edx, ecx
cmp ebx, edx
jb 0x7b848a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x7b8467
xor ecx, ecx
jmp 0x7b84a2
test eax, eax
jne 0x7b8492
xor ecx, ecx
jmp 0x7b84a2
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.007b83c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x7b88f0
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 0x7b8921
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 0x7b8946
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 0x7b896e
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 0x7b8993
push ecx
push esi
call fcn.007b84c0
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 0x7b9c00
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 0x7b9c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x7b9c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x7b9c38
add edx, eax
cmp ebx, edx
jb 0x7b9c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x7b9c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x7b9c50
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 0x7b9c70
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 0x7b9cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x7b9c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x7b9ca8
add edx, ecx
cmp ebx, edx
jb 0x7b9cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x7b9c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x7b9f60
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.007c6145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x7b9ffb
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 0x7b9fdd
lea eax, [esp + 0x18]
push eax
jmp 0x7b9fe2
push 0x7df720
call fcn.007c5fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x7b9fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x7b9f40
push 4
push ecx
push eax
call fcn.007c643f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x7ba310
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.007c6145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x7ba3ab
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 0x7ba38d
lea eax, [esp + 0x18]
push eax
jmp 0x7ba392
push 0x7df720
call fcn.007c5fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x7ba360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x7b9f40
push 4
push ecx
push eax
call fcn.007c643f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret