joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1031afb
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
cmp word [ecx], 0
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
je 0x1031b86
cmp word [eax], 0
push ebx
push esi
push edi
je 0x1031b81
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
jmp 0x1031b67
movzx eax, word [edi]
test ax, ax
je 0x1031b8a
movzx ecx, word [esi]
movzx eax, ax
sub ecx, eax
jne 0x1031b6d
push esi
call ebx
push edi
mov dword [ebp - 4], eax
call ebx
mov ecx, dword [ebp - 4]
sub eax, edi
sub ecx, esi
xor eax, ecx
test eax, 0xfffffffe
je 0x1031b62
jmp 0x1031b6d
inc esi
inc esi
movzx ecx, word [esi]
inc edi
inc edi
movzx eax, word [edi]
sub ecx, eax
je 0x1031b67
cmp esi, dword [ebp - 4]
jb 0x1031b54
cmp word [esi], 0
jne 0x1031b27
cmp word [edi], 0
je 0x1031b8a
push dword [ebp + 8]
call ebx
cmp word [eax], 0
mov dword [ebp + 8], eax
jne 0x1031b1f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
mov eax, dword [ebp + 8]
jmp 0x1031b83
Function at 0x10333d8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x14
mov eax, 0x1044034
call fcn.01007986
xor edi, edi
mov dword [ebp - 0x14], edi
push 2
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
mov dword [ebp - 0x18], ebx
cmp ebx, edi
jne 0x1033424
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jg 0x1033418
mov esi, eax
jmp 0x1033518
and eax, 0xffff
or eax, 0x80070000
jmp 0x1033411
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x1033454
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x103350d
and eax, 0xffff
or eax, 0x80070000
jmp 0x103350d
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, edi
je 0x1033437
push esi
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp byte [esi + ebx], 0
mov edi, ebx
je 0x10334be
lea edi, [esi + 1]
cmp edi, 0x400
ja 0x1033496
push edi
call fcn.01031313
test al, al
je 0x1033496
mov eax, edi
call fcn.01015579
mov edi, esp
jmp 0x10334a1
push edi
lea ecx, [ebp - 0x14]
call fcn.010327b3
mov edi, eax
test edi, edi
jne 0x10334ac
mov esi, 0x8007000e
jmp 0x103350f
lea eax, [esi + 1]
push eax
push ebx
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov byte [edi + esi], 0
test edi, edi
jne 0x10334c6
xor eax, eax
jmp 0x1033501
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea ebx, [esi + esi]
cmp ebx, 0x400
ja 0x10334f0
push ebx
call fcn.01031313
test al, al
je 0x10334f0
mov eax, ebx
call fcn.01015579
mov eax, esp
jmp 0x10334f9
push ebx
lea ecx, [ebp - 0x14]
call fcn.010327b3
push esi
push edi
push eax
call fcn.01031408
push dword [ebp + 0x14]
lea ecx, [ebp - 0x20]
push eax
call fcn.010332d1
mov esi, eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x14]
call fcn.01031eec
mov eax, esi
lea esp, [ebp - 0x30]
call fcn.010079c3
ret 0x10
Function at 0x1033703
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 2
mov edi, ecx
xor esi, esi
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov ebx, eax
cmp ebx, esi
jl 0x10337d2
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push esi
push 1
push 0x64
push edi
call fcn.010335b5
push esi
push 1
push 0x66
push edi
call fcn.010335b5
push esi
push dword [ebp + 8]
push edi
call fcn.0103318d
mov ebx, eax
cmp ebx, esi
jl 0x10337ca
mov ecx, dword [ebp - 4]
mov edi, 0x80000002
push edi
call fcn.01028338
mov ebx, eax
cmp ebx, esi
jl 0x10337bd
push esi
lea eax, [ebp + 8]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push 0x10049e8
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
jne 0x10337a7
push 0x4c
push 0x1033958
push 1
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10337ca
jle 0x10337b3
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
push ebx
push 0x10338d8
jmp 0x10337c3
push ebx
push 0x1033848
call fcn.0100164a
pop ecx
pop ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x10337df
push ebx
push 0x10337e8
call fcn.0100164a
pop ecx
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8

Function at 0x10346ef
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ecx]
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
xor esi, esi
call dword [eax + 0x78]
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp eax, esi
je 0x1034715
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
mov dword [edi], esi
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
xor ecx, ecx
mov dword [ebx], eax
cmp eax, ecx
je 0x1034757
cmp dword [ebp + 0x1c], ecx
je 0x1034757
push eax
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x7ff8fff2
add esi, 0x8007000e
pop ecx
mov dword [edi], eax
js 0x10347a1
push dword [ebx]
push dword [ebp + 0x1c]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
xor ecx, ecx
jmp 0x1034759
mov dword [edi], ecx
push ecx
lea eax, [ebp - 4]
push eax
push ecx
push 0x20006
push ecx
push ecx
push ecx
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1034794
push dword [ebx]
push dword [edi]
push eax
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [edi]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x104], eax
jmp 0x10347a4
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
call dword [eax + 0x7c]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x18
Function at 0x1037855
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x58], edi
jne 0x10378b2
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push edi
push edi
push edi
push edi
call ebx
mov dword [esi + 0x5c], eax
cmp eax, edi
je 0x10378a4
push edi
push edi
push edi
push edi
call ebx
mov dword [esi + 0x60], eax
cmp eax, edi
je 0x10378a4
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x10377e5
push edi
push edi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x58], eax
cmp eax, edi
jne 0x10378b2
mov ecx, esi
call fcn.010144b4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [esi + 0x58]
jmp 0x10378ad

Function at 0x103f91f
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.010154f7
mov eax, dword [0x10489a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1018], eax
cmp eax, ebx
jne 0x103f953
xor eax, eax
jmp 0x103fa17
mov ecx, dword [ebp + 0x10]
push esi
add ecx, ecx
push ecx
push ebx
push eax
call sub.msvcrt.dll_memset
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1004]
push ebx
push eax
mov dword [ebp - 0x1008], ebx
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x1004]
mov dword [ebp - 0x100c], eax
xor eax, eax
add esp, 0x18
mov word [ebp - 0x1010], ax
lea eax, [ebp - 0x101c]
push eax
push 0xc
lea eax, [ebp - 0x1014]
push eax
push 0x58
mov dword [ebp - 0x1014], edi
mov word [ebp - 0x100e], si
mov dword [ebp - 0x101c], ebx
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
pop esi
test eax, eax
jl 0x103fa11
mov ecx, dword [ebp - 0x100c]
cmp ecx, ebx
je 0x103fa11
cmp word [ebp - 0x1010], bx
je 0x103fa11
movzx eax, word [ebp - 0x1010]
shr eax, 1
cmp eax, 0x800
jb 0x103f9ea
mov eax, 0x7ff
xor edx, edx
mov word [ecx + eax*2], dx
push dword [ebp - 0x100c]
push dword [ebp + 0x10]
push dword [ebp - 0x1018]
call fcn.01003f4f
xor ecx, ecx
test eax, eax
setge cl
mov dword [ebp - 0x1008], ecx
mov eax, dword [ebp - 0x1008]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.01001b23
leave
ret 0xc
Function at 0x103fef6
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
xor edx, edx
mov dword [ebp - 4], 0x80004005
cmp dword [ebp + 0xc], edx
je 0x103ffb5
mov eax, dword [ebp + 0xc]
push esi
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, dx
jne 0x103ff16
sub eax, esi
sar eax, 1
je 0x103ffb4
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [ebp + 0x10]
push edi
push edx
push edx
push edx
push dword [ebp + 0xc]
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x103ffb2
mov eax, dword [edi]
cmp eax, 0x28
jb 0x103ffb2
cmp eax, 0xffff
ja 0x103ffb2
mov esi, dword [ebp + 0x14]
mov eax, dword [esi]
test eax, eax
je 0x103ff66
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
and dword [esi], 0
pop ecx
push dword [edi]
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [esi], eax
test eax, eax
je 0x103ffb2
push dword [edi]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
push dword [esi]
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x103ffb2
mov eax, dword [esi]
mov ecx, dword [eax]
cmp ecx, dword [edi]
jne 0x103ffa8
cmp dword [eax + 4], 2
jne 0x103ffa8
and dword [ebp - 4], 0
jmp 0x103ffb2
push eax
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
and dword [esi], 0
pop ecx
pop edi
pop ebx
pop esi
mov eax, dword [ebp - 4]
leave
ret 0x10
Function at 0x10409fc
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10489a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x214], ecx
cmp edx, 0xa
je 0x1040a33
cmp edx, 0x14
je 0x1040a33
cmp edx, 0x1e
jne 0x1040b3e
test eax, eax
je 0x1040b3e
test ecx, ecx
je 0x1040b3e
push eax
push edx
push 0x101cda0
lea eax, [ebp - 0x208]
push 0x100
push eax
call fcn.0100790b
add esp, 0x14
test eax, eax
jl 0x1040b3e
and dword [ebp - 0x210], 0
push ebx
push esi
push edi
lea eax, [ebp - 0x210]
push eax
mov ebx, 0xf003f
push ebx
push 0
mov edi, 0x101cd58
push edi
mov esi, 0x80000002
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ecx, ecx
cmp eax, ecx
jle 0x1040aa1
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x20c], eax
cmp eax, 0x80070002
jne 0x1040ad7
push ecx
lea eax, [ebp - 0x210]
push eax
push ecx
push ebx
push ecx
push ecx
push ecx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jle 0x1040ad1
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
pop edi
pop esi
pop ebx
jl 0x1040b48
mov eax, dword [ebp - 0x214]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1040aec
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0x214]
lea eax, [ebp - 0x208]
push 1
push 0
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jle 0x1040b2a
and eax, 0xffff
or eax, 0x80070000
push dword [ebp - 0x210]
mov dword [ebp - 0x20c], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1040b48
mov dword [ebp - 0x20c], 0x80070057
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x20c]
xor ecx, ebp
call fcn.01001b23
leave
ret 0xc
Function at 0x1040b61
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x10489a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0x14]
xor esi, esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x220], eax
cmp dword [ebp + 0xc], esi
jbe 0x1040cef
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x214]
push eax
push 0x20019
push esi
push 0x101cd58
push 0x80000002
mov dword [ebp - 0x214], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jle 0x1040bce
and eax, 0xffff
or eax, 0x80070000
cmp eax, esi
mov dword [ebp - 0x20c], eax
jl 0x1040cf9
push ebx
push 0xa
mov dword [ebp - 0x210], esi
pop ebx
cmp dword [ebp - 0x210], esi
jne 0x1040cc6
push dword [ebp - 0x224]
lea eax, [ebp - 0x208]
push ebx
push 0x101cda0
push 0x100
push eax
call fcn.0100790b
add esp, 0x14
test eax, eax
jl 0x1040cbc
mov eax, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x21c]
push eax
push edi
lea eax, [ebp - 0x218]
push eax
push esi
lea eax, [ebp - 0x208]
push eax
push dword [ebp - 0x214]
mov dword [ebp - 0x218], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jle 0x1040c5e
and eax, 0xffff
or eax, 0x80070000
cmp eax, esi
jl 0x1040caf
cmp dword [ebp - 0x218], 1
jne 0x1040caf
mov eax, dword [ebp - 0x21c]
cmp eax, esi
jbe 0x1040caf
test al, 1
jne 0x1040caf
shr eax, 1
dec eax
mov esi, eax
xor eax, eax
cmp ax, word [edi + esi*2]
jne 0x1040cad
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1040c89
sub eax, edx
sar eax, 1
cmp eax, esi
jne 0x1040cad
mov eax, dword [ebp - 0x220]
mov dword [eax], ebx
mov dword [ebp - 0x210], 1
xor esi, esi
add ebx, 0xa
cmp ebx, 0x1e
ja 0x1040cc6
jmp 0x1040be6
mov dword [ebp - 0x20c], 0x80070057
cmp dword [ebp - 0x20c], esi
pop ebx
jl 0x1040ce1
cmp dword [ebp - 0x210], esi
jne 0x1040ce1
mov dword [ebp - 0x20c], 1
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1040cf9
mov dword [ebp - 0x20c], 0x80070057
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x20c]
pop edi
xor ecx, ebp
pop esi
call fcn.01001b23
leave
ret 0x10

Function at 0x105b486
Capabilities:
Encode data using xor

Disassembly:
push 8
xor dl, cl
call dword [esp + 0x58]
inc dword [ebp - 0x137]
call dword [esp + 0x58]
adc dh, bh
inc cl
mov dh, 0x33
push esp
call dword [esp + 0x5c]
lea ecx, [eax]
call dword [esp + 0x5c]
cmp ch, bl
inc ecx
inc edx
not cl
call dword [esp + 0x58]
call edi
cmp esi, eax
mov edx, 0x537903
nop
je fcn.0105b486
or al, 0
xchg ecx, edx
push eax
rdtsc
add ch, al
pop esi
dec cl
ret
Function at 0x969370
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 0x96938e
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 0x992074
push ecx
mov edi, eax
call fcn.0097d198
mov esi, eax
add esp, 8
test esi, esi
jne 0x9693cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0097d02e
push esi
call fcn.0097cfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x96c850
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 0x96c8ae
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 0x997720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x96c8ba
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.0097d1e1
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 0x96c8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x997720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x96c92a
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.0097e082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x96c957
mov word [eax], si
add eax, 2
push eax
call fcn.0097e030
add esp, 4
jmp 0x96c959
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 0x96c8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x96c8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x96d0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x992458
push ecx
call fcn.0097d1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.0097d1e1
add esp, 0x10
jmp 0x96d0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0097d20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.0097cdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.0096d050
mov eax, dword [0x997728]
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 0x96d13b
push esi
call fcn.0096cfb0
add esp, 4
mov dword [0x997728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x96d14c
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.0096cff0
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 0x970440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x9704b7
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 0x97048e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x970471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x97047e
add edx, ecx
cmp ebx, edx
jb 0x97048a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x970467
xor ecx, ecx
jmp 0x9704a2
test eax, eax
jne 0x970492
xor ecx, ecx
jmp 0x9704a2
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.009703c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x9708f0
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 0x970921
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 0x970946
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 0x97096e
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 0x970993
push ecx
push esi
call fcn.009704c0
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 0x971c00
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 0x971c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x971c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x971c38
add edx, eax
cmp ebx, edx
jb 0x971c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x971c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x971c50
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 0x971c70
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 0x971cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x971c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x971ca8
add edx, ecx
cmp ebx, edx
jb 0x971cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x971c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x971f60
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.0097e145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x971ffb
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 0x971fdd
lea eax, [esp + 0x18]
push eax
jmp 0x971fe2
push 0x997720
call fcn.0097dfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x971fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x971f40
push 4
push ecx
push eax
call fcn.0097e43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x972310
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.0097e145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x9723ab
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 0x97238d
lea eax, [esp + 0x18]
push eax
jmp 0x972392
push 0x997720
call fcn.0097dfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x972360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x971f40
push 4
push ecx
push eax
call fcn.0097e43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret