joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10071a70
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10071e60
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1014ee04], 0
jne 0x10071aad
cmp dword [0x1014ee00], 0
je 0x10071aad
mov eax, dword [0x1014ee00]
mov dword [0x1014ee04], eax
cmp dword [0x1014ee04], 0
je 0x10071b2a
mov ecx, dword [0x1014ee04]
cmp dword [ecx + 8], 0
je 0x10071b2a
mov edx, dword [0x1014ee04]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x10071b2a
mov ecx, dword [0x1014ee04]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x10071b2a
mov eax, dword [0x1014ee04]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x10071af9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x10071b00
xor eax, eax
jmp 0x10071c49
mov ecx, dword [0x1014ee04]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call fcn.10079b70
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x10071c49
mov edx, dword [0x1014ee00]
mov dword [0x1014ee04], edx
jmp 0x10071b46
mov eax, dword [0x1014ee04]
mov ecx, dword [eax + 4]
mov dword [0x1014ee04], ecx
cmp dword [0x1014ee04], 0
je 0x10071b86
cmp dword [0x1014ee04], 0
je 0x10071b84
mov edx, dword [0x1014ee04]
cmp dword [edx + 8], 0
je 0x10071b84
mov eax, dword [0x1014ee04]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10071b84
mov edx, dword [0x1014ee04]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10071b84
jmp 0x10071ade
jmp 0x10071b38
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10071c50
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10071c47
mov eax, dword [ebp - 0x18]
mov dword [0x1014ee04], eax
mov ecx, dword [0x1014ee04]
mov dword [ecx], 0x52727464
mov edx, dword [0x1014ee04]
mov dword [edx + 8], 0
mov eax, dword [0x1014ee04]
mov ecx, dword [0x1014ee00]
mov dword [eax + 4], ecx
mov edx, dword [0x1014ee04]
mov dword [0x1014ee00], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1014ee04]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x10071c17
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x10071c37
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x10071c0e
mov eax, dword [0x1014ee04]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x10071ade
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10072990
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1014ee00]
mov dword [ebp - 4], eax
jmp 0x100729a9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x100729d0
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x100729ce
call sub.KERNEL32.dll_GetLastError
jmp 0x100729d2
jmp 0x100729a0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10072e70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1014ee10], eax
je 0x10072e94
mov eax, 0x10dd
jmp 0x1007303c
cmp dword [0x1014ee14], 0
je 0x10072ea7
mov eax, dword [0x1014ee14]
jmp 0x1007303c
cmp dword [ebp + 0xc], 0
jne 0x10072eb7
mov eax, 0x57
jmp 0x1007303c
cmp dword [ebp + 8], 0
jne 0x10072ec7
mov eax, 6
jmp 0x1007303c
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10072ef0
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x1014ee14], ecx
mov edx, dword [ebp + 8]
mov dword [0x1014ee18], edx
mov eax, dword [ebp - 8]
jmp 0x1007303c
push 0x18
call fcn.10074550
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10072f4b
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x1014ee14], ecx
cmp dword [ebp - 4], 0
je 0x10072f3a
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.100750b0
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x1014ee18], ecx
mov eax, dword [ebp - 8]
jmp 0x1007303c
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.10072e50
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10072e50
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x10072f8b
cmp dword [ebp - 0xc], 0x1e
jbe 0x10072fa7
mov dword [ebp - 8], 9
cmp dword [0x1014ee08], 0
je 0x10072fa2
jmp 0x10072f19
jmp 0x10072f10
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x10072fce
mov dword [ebp - 8], 9
cmp dword [0x1014ee08], 0
je 0x10072fc9
jmp 0x10072f19
jmp 0x10072f10
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x10072ff9
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x10072f10
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x1014ee20]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x1014ee20], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x10073050
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1014ee10], eax
je 0x1007306d
mov eax, 0x10dd
jmp 0x10073150
mov eax, dword [0x1014ee20]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100730ec
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x100730c8
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x100730c8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.10071ef0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.100750b0
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10073075
mov dword [0x1014ee20], 0
call fcn.100727d0
mov ecx, dword [0x1014ee1c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1007313a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.100750b0
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x10073104
mov dword [0x1014ee1c], 0
mov dword [0x1014ee10], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10073630
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1014ee14], 0
je 0x10073649
mov eax, dword [0x1014ee14]
jmp 0x100736e8
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1007365a
xor eax, eax
jmp 0x100736e8
push 8
call fcn.10074550
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100736b2
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1007369b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.100750b0
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x1014ee14], eax
mov dword [0x1014ee18], 0
mov eax, dword [ebp - 8]
jmp 0x100736e8
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x100736ca
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1007367a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1014ee1c]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1014ee1c], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x1009ec70
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
call fcn.100a4b90
mov byte [ebp - 1], al
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1009ecae
cmp dword [ebp + 8], 0
je 0x1009ec9c
lea eax, [ebp + 8]
push eax
call fcn.1009ee70
add esp, 4
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x1009ecae
mov eax, 4
jmp 0x1009edde
call fcn.100a4990
movzx edx, al
test edx, edx
jne 0x1009ecdc
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1009eccd
mov dword [ebp - 0xc], 4
jmp 0x1009ecd4
mov dword [ebp - 0xc], 3
mov eax, dword [ebp - 0xc]
jmp 0x1009edde
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1009ed85
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0x1009ee20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
lea ecx, [ebp - 8]
call fcn.100a3a30
lea ecx, [ebp - 8]
call fcn.1009eeb0
movzx edx, al
test edx, edx
jne 0x1009ed47
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 8]
call fcn.1009ee90
mov eax, dword [ebp - 0x10]
jmp 0x1009edde
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.100b12f0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
je 0x1009ed72
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 8]
call fcn.1009ee90
mov eax, dword [ebp - 0x14]
jmp 0x1009edde
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 8]
call fcn.1009ee90
mov eax, dword [ebp - 0x18]
jmp 0x1009edde
call fcn.100a4ae0
movzx ecx, al
test ecx, ecx
jne 0x1009edbe
mov edx, dword [ebp + 0x10]
or edx, 0x200000
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.1009edf0
add esp, 0x10
jmp 0x1009edde
call fcn.100a49f0
mov dword [ebp - 0x24], eax
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.1009edf0
add esp, 0x10
mov esp, ebp
pop ebp
ret

Function at 0x100a7aa0
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x100a7ac7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1008fdb0
add esp, 4
or eax, 0xffffffff
jmp 0x100a7ac9
xor eax, eax
pop ebp
ret
Function at 0x100af19b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp 0x100bda10
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x1014f198], 1
jge 0x100bda7f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x100bda55
mov edx, dword [ebx + 8]
movzx eax, word [edx]
movzx ecx, word [ebx + 0xc]
cmp eax, ecx
je 0x100bda55
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x100bda32
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x100bda6b
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jmp 0x100bda72
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x100bdb6f
movzx ecx, word [ebx + 0xc]
movd xmm0, ecx
movaps xmmword [ebp - 0x30], xmm0
pshuflw xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
pshufd xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
mov edx, dword [ebx + 8]
and edx, 0xfff
cmp edx, 0xff0
ja 0x100bdb40
mov eax, dword [ebx + 8]
movups xmm0, xmmword [eax]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pxor xmm0, xmmword [ebp - 0x20]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pcmpeqw xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x40]
pcmpeqw xmm0, xmmword [ebp - 0x30]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
por xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pmovmskb ecx, xmm0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x100bdb35
bsf edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 8]
movzx edx, word [ecx]
movzx eax, word [ebx + 0xc]
cmp edx, eax
jne 0x100bdb29
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xc], ecx
jmp 0x100bdb30
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
jmp 0x100bdb6f
mov edx, dword [ebx + 8]
add edx, 0x10
mov dword [ebx + 8], edx
jmp 0x100bdb6a
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x100bdb53
mov eax, dword [ebx + 8]
jmp 0x100bdb6f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x100bdb61
xor eax, eax
jmp 0x100bdb6f
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x100bda9f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x100af1a6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100aed37

Function at 0x100c18d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x100c1fb0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x100c1fee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.100c20e0
add esp, 4
push eax
lea ecx, [ebp - 0x10]
call fcn.100c28f0
push 0x10147104
lea edx, [ebp - 0x10]
push edx
call fcn.100785d0
mov esp, ebp
pop ebp
ret
Function at 0x62b370
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 0x62b38e
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 0x654074
push ecx
mov edi, eax
call fcn.0063f198
mov esi, eax
add esp, 8
test esi, esi
jne 0x62b3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0063f02e
push esi
call fcn.0063efb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x62e850
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 0x62e8ae
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 0x659720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x62e8ba
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.0063f1e1
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 0x62e8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x659720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x62e92a
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.00640082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x62e957
mov word [eax], si
add eax, 2
push eax
call fcn.00640030
add esp, 4
jmp 0x62e959
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 0x62e8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x62e8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x62f0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x654458
push ecx
call fcn.0063f1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.0063f1e1
add esp, 0x10
jmp 0x62f0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0063f20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.0063edff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.0062f050
mov eax, dword [0x659728]
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 0x62f13b
push esi
call fcn.0062efb0
add esp, 4
mov dword [0x659728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x62f14c
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.0062eff0
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 0x632440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x6324b7
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 0x63248e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x632471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x63247e
add edx, ecx
cmp ebx, edx
jb 0x63248a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x632467
xor ecx, ecx
jmp 0x6324a2
test eax, eax
jne 0x632492
xor ecx, ecx
jmp 0x6324a2
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.006323c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x6328f0
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 0x632921
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 0x632946
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 0x63296e
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 0x632993
push ecx
push esi
call fcn.006324c0
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 0x633c00
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 0x633c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x633c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x633c38
add edx, eax
cmp ebx, edx
jb 0x633c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x633c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x633c50
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 0x633c70
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 0x633cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x633c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x633ca8
add edx, ecx
cmp ebx, edx
jb 0x633cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x633c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x633f60
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.00640145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x633ffb
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 0x633fdd
lea eax, [esp + 0x18]
push eax
jmp 0x633fe2
push 0x659720
call fcn.0063ffd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x633fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x633f40
push 4
push ecx
push eax
call fcn.0064043f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret