joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b2490
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb310
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4fc00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
lea edx, [ebx + 8]
mov eax, dword [edi]
mov dword [ebx], eax
mov dword [ebp + 8], edx
mov eax, dword [edi + 8]
mov dword [edx], eax
mov dword [edx + 4], 0
mov ecx, dword [edi + 0xc]
mov eax, dword [edx + 4]
mov dword [edi + 0xc], eax
mov dword [edx + 4], ecx
mov dword [edi + 8], 0
lea ecx, [edx + 8]
mov dword [ebp - 4], 0
lea eax, [edi + 0x10]
mov dword [ebp - 0x14], ecx
push eax
mov dword [ecx], 0
call fcn.004a1330
add edi, 0x30
mov dword [ebp - 4], 1
lea esi, [ebx + 0x30]
push edi
mov ecx, esi
mov dword [ebp + 8], esi
call fcn.004abf00
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4b2550
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb33b
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4fc00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, dword [ebp + 8]
lea edi, [ecx + 4]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edi
mov eax, dword [ebx]
lea esi, [ebx + 4]
mov dword [ecx], eax
mov ecx, edi
push esi
call fcn.004adc10
mov al, byte [esi + 0xc]
mov byte [edi + 0xc], al
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [edi]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 0x18]
sub eax, dword [esi]
and eax, 0xfffffff8
add dword [edi + 0x18], eax
mov dword [ebp - 4], 0
lea edi, [ebx + 0x38]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x24]
push edi
mov dword [ecx + 0x24], eax
mov eax, dword [ebx + 0x28]
mov dword [ecx + 0x28], eax
add ecx, 0x30
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x10], ecx
lea esi, [ecx + 8]
mov dword [ecx], eax
mov ecx, esi
mov dword [ebp - 0x10], esi
call fcn.004afa40
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x34], 0
mov edx, dword [edi + 0x34]
mov ecx, dword [esi + 0x34]
mov dword [edi + 0x34], ecx
mov dword [esi + 0x34], edx
mov dword [edi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4b2ee0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb47e
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4fc00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov ebx, dword [ebp + 8]
push dword [0x501d5c]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b2f31
cmp dword [eax], edi
je 0x4b2f6a
mov eax, dword [eax + 8]
test eax, eax
jne 0x4b2f26
push esi
push 0x98
mov dword [ebp - 0x34], esi
call fcn.0048d200
add esp, 8
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4b2f86
push esi
mov ecx, eax
call fcn.004b35d0
mov edi, eax
jmp 0x4b2f88
cmp dword [eax + 4], 0
je 0x4b2f31
push esi
push esi
mov dword [ebp - 4], 0
call fcn.004b44f0
add esp, 8
jmp 0x4b3022
xor edi, edi
mov ecx, dword [ebp - 0x20]
push edi
mov byte [ebp - 4], 1
push ebx
mov dword [ebp - 0x2c], edi
call fcn.0048ff30
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
test al, al
je 0x4b3022
mov eax, dword [ebx]
xorps xmm0, xmm0
push dword [0x501d5c]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push dword [0x501d5c]
mov dword [ebp - 0x18], eax
call esi
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 4
call fcn.004c3de0
push 0
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x20]
push edi
push dword [eax + 0x14]
call fcn.004b34a0
add esp, 0x10
lea ecx, [ebp - 0x28]
call fcn.0048faf0
push dword [ebp - 0x14]
push dword [0x501d5c]
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bde8e
mov esp, ebp
pop ebp
ret 8
Function at 0x4b48d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb848
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4fc00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ebp + 0xc]
lea ecx, [ebx + 8]
mov dword [ebp + 0xc], ecx
mov eax, dword [edx]
mov dword [ebx], eax
lea eax, [edx + 8]
push eax
call fcn.004aa970
mov esi, dword [ebp + 8]
lea edi, [ebx + 0x30]
mov dword [ebp - 4], 0
lea ecx, [edi + 0x18]
mov dword [ebp + 0xc], edi
mov dword [ebp + 0xc], ecx
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x18]
mov dword [ecx], eax
lea eax, [esi + 0x20]
push eax
add ecx, 8
call fcn.004abf00
mov eax, dword [esi + 0x58]
mov dword [edi + 0x58], eax
mov eax, dword [esi + 0x5c]
mov dword [edi + 0x5c], eax
mov eax, dword [esi + 0x60]
mov dword [edi + 0x60], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4b4a40
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb310
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4fc00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
lea edx, [ebx + 8]
mov eax, dword [edi]
mov dword [ebx], eax
mov dword [ebp + 8], edx
mov eax, dword [edi + 8]
mov dword [edx], eax
mov dword [edx + 4], 0
mov ecx, dword [edi + 0xc]
mov eax, dword [edx + 4]
mov dword [edi + 0xc], eax
mov dword [edx + 4], ecx
mov dword [edi + 8], 0
lea ecx, [edx + 8]
mov dword [ebp - 4], 0
lea eax, [edi + 0x10]
mov dword [ebp - 0x14], ecx
push eax
mov dword [ecx], 0
call fcn.004a1330
mov dword [ebp - 4], 1
lea esi, [ebx + 0x30]
mov dword [ebp + 8], esi
lea ecx, [esi + 0x18]
mov eax, dword [edi + 0x30]
mov dword [esi], eax
mov eax, dword [edi + 0x34]
mov dword [esi + 4], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 8], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x10], eax
mov dword [ebp + 8], ecx
mov eax, dword [edi + 0x48]
mov dword [ecx], eax
lea eax, [edi + 0x50]
push eax
add ecx, 8
call fcn.004abf00
mov eax, dword [edi + 0x88]
mov dword [esi + 0x58], eax
mov eax, dword [edi + 0x8c]
mov dword [esi + 0x5c], eax
mov eax, dword [edi + 0x90]
mov dword [esi + 0x60], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4b4b30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb8ce
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4fc00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov ebx, dword [ebp + 8]
push dword [0x501d5c]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b4b81
cmp dword [eax], edi
je 0x4b4bb7
mov eax, dword [eax + 8]
test eax, eax
jne 0x4b4b76
push esi
push 0x60
mov dword [ebp - 0x34], esi
call fcn.0048d200
add esp, 8
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4b4bd3
push esi
mov ecx, eax
call fcn.004b50d0
mov edi, eax
jmp 0x4b4bd5
cmp dword [eax + 4], 0
je 0x4b4b81
push esi
push esi
mov dword [ebp - 4], 0
call fcn.004b4400
add esp, 8
jmp 0x4b4c6f
xor edi, edi
mov ecx, dword [ebp - 0x20]
push edi
mov byte [ebp - 4], 1
push ebx
mov dword [ebp - 0x2c], edi
call fcn.0048ff30
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
test al, al
je 0x4b4c6f
mov eax, dword [ebx]
xorps xmm0, xmm0
push dword [0x501d5c]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push dword [0x501d5c]
mov dword [ebp - 0x18], eax
call esi
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 4
call fcn.004c3de0
push 0
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x20]
push edi
push dword [eax + 0x14]
call fcn.004b4fe0
add esp, 0x10
lea ecx, [ebp - 0x28]
call fcn.0048faf0
push dword [ebp - 0x14]
push dword [0x501d5c]
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bde8e
mov esp, ebp
pop ebp
ret 8
Function at 0x4b4c90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cb92e
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4fc00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], ecx
mov ebx, dword [ebp + 8]
push dword [0x501d5c]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4b4ce1
cmp dword [eax], edi
je 0x4b4d1a
mov eax, dword [eax + 8]
test eax, eax
jne 0x4b4cd6
push esi
push 0xb8
mov dword [ebp - 0x34], esi
call fcn.0048d200
add esp, 8
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 1
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4b4d36
push esi
mov ecx, eax
call fcn.004b4f80
mov edi, eax
jmp 0x4b4d38
cmp dword [eax + 4], 0
je 0x4b4ce1
push esi
push esi
mov dword [ebp - 4], 0
call fcn.004b5130
add esp, 8
jmp 0x4b4dd2
xor edi, edi
mov ecx, dword [ebp - 0x20]
push edi
mov byte [ebp - 4], 1
push ebx
mov dword [ebp - 0x2c], edi
call fcn.0048ff30
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
test al, al
je 0x4b4dd2
mov eax, dword [ebx]
xorps xmm0, xmm0
push dword [0x501d5c]
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push dword [0x501d5c]
mov dword [ebp - 0x18], eax
call esi
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx]
mov dword [ebp - 0x24], eax
mov byte [ebp - 4], 4
call fcn.004c3de0
push 0
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x20]
push edi
push dword [eax + 0x14]
call fcn.004b4e40
add esp, 0x10
lea ecx, [ebp - 0x28]
call fcn.0048faf0
push dword [ebp - 0x14]
push dword [0x501d5c]
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bde8e
mov esp, ebp
pop ebp
ret 8

Function at 0x4b97d0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4fc00c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0xf003f
push 0
push 0x4ebd18
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4b9819
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bde8e
mov esp, ebp
pop ebp
ret
push 0x4ebd18
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
and eax, 0x80004005
call fcn.004bde8e
mov esp, ebp
pop ebp
ret
Function at 0x4bb2a0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc308
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4fc00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
xor ecx, ecx
mov eax, dword [ebp + 8]
push esi
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x28]
push eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
call fcn.00489cb0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x4bb31d
push 2
inc ecx
push ecx
push dword [ebp - 0x28]
call fcn.00404960
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bde8e
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4bc2a0
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x501d7c]
cmp eax, dword [ecx + 4]
jle 0x4bc2ed
push 0x501d7c
call fcn.004be627
add esp, 4
cmp dword [0x501d7c], 0xffffffff
jne 0x4bc2ed
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 0x4ccf20
mov dword [0x501d78], eax
call fcn.004be44f
push 0x501d7c
call fcn.004be5e8
add esp, 8
mov eax, 0x501d78
ret
Function at 0x4c2f20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cc8fe
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4fc00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4fc018]
cmp eax, 0xffffffff
jne 0x4c2f56
xor ebx, ebx
jmp 0x4c2f5f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x4c2fa1
nop dword [eax]
cmp dword [ebx + 0x18], 0
mov esi, dword [ebx + 0xc]
jne 0x4c2fe0
test esi, esi
jne 0x4c2fe4
push 0x4c1db0
push 0x501080
call fcn.004c1aa0
mov eax, dword [0x4fc018]
add esp, 8
cmp eax, 0xffffffff
je 0x4c2fa1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x4c2fce
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x4c2fce
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4c3026
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x4c300f
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x4c2fe4
cmp dword [ebx + 0x18], 0
je 0x4c2f70
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x4c3049
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x4c3049
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.00495d90
cmp dword [ebx + 0x18], 0
jne 0x4c3030
jmp 0x4c2f70

Function at 0x4c3070
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, ecx
mov edx, dword [edi]
lea eax, [edx + 0x10]
push eax
push 4
push edx
push 0x4c30d0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x4c309a
pop edi
xor al, al
pop ebx
ret
mov eax, dword [edi]
push esi
add eax, 4
lock inc dword [eax]
mov esi, dword [edi]
mov eax, dword [esi + 8]
test eax, eax
je 0x4c30b8
cmp eax, 0xffffffff
je 0x4c30b8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
mov eax, dword [edi]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop edi
mov al, 1
pop ebx
ret
Function at 0x997370
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 0x99738e
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 0x9c0074
push ecx
mov edi, eax
call fcn.009ab198
mov esi, eax
add esp, 8
test esi, esi
jne 0x9973cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.009ab02e
push esi
call fcn.009aafb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x99a850
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 0x99a8ae
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 0x9c5720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x99a8ba
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.009ab1e1
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 0x99a8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x9c5720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x99a92a
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.009ac082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x99a957
mov word [eax], si
add eax, 2
push eax
call fcn.009ac030
add esp, 4
jmp 0x99a959
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 0x99a8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x99a8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x99b0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x9c0458
push ecx
call fcn.009ab1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.009ab1e1
add esp, 0x10
jmp 0x99b0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.009ab20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.009aadff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.0099b050
mov eax, dword [0x9c5728]
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 0x99b13b
push esi
call fcn.0099afb0
add esp, 4
mov dword [0x9c5728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x99b14c
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.0099aff0
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 0x99e440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x99e4b7
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 0x99e48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x99e471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x99e47e
add edx, ecx
cmp ebx, edx
jb 0x99e48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x99e467
xor ecx, ecx
jmp 0x99e4a2
test eax, eax
jne 0x99e492
xor ecx, ecx
jmp 0x99e4a2
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.0099e3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x99e8f0
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 0x99e921
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 0x99e946
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 0x99e96e
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 0x99e993
push ecx
push esi
call fcn.0099e4c0
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