joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437ff5
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x51046f
call fcn.00485da1
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x1c]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x4380ec
cmp edi, dword [ebx + 0xc]
jge 0x4380ec
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x43804c
cmp edi, dword [esi + 8]
jl 0x4380da
cmp dword [ebp + 0xc], 0
je 0x4380da
xor edi, edi
jmp 0x43807e
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.004379dd
mov esi, eax
test esi, esi
je 0x438066
mov dword [esi], vtable.CThreadData.0
jmp 0x438068
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [esi + eax], ecx
mov dword [ebx + 0x14], esi
push 4
push dword [ebx + 0xc]
call fcn.0041b7e7
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x43809a
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4380a6
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x438113
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push edi
push eax
call fcn.004a95d0
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4380ec
cmp edi, dword [esi + 8]
jge 0x4380ec
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00485d06
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.004141ba
int3

Function at 0x438dae
Capabilities:
Delete registry key

Disassembly:
push 8
mov eax, 0x51064c
call fcn.00485d38
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040e111
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
cmp esi, 0x80000000
jne 0x438e10
call fcn.0041c582
cmp eax, 1
jne 0x438e10
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push str.SoftwareClasses_
push eax
call fcn.004198c3
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0041745a
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
lea ecx, [ecx - 0x10]
call fcn.004101ea
inc esi
push dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
push esi
test ecx, ecx
je 0x438e22
call fcn.00419ef0
jmp 0x438e28
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
lea ecx, [ecx - 0x10]
call fcn.004101ea
mov eax, esi
call fcn.00485d06
ret 0xc
Function at 0x438f73
Capabilities:
Query or enumerate registry value

Disassembly:
push 8
mov eax, 0x5106e2
call fcn.00485d38
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040e111
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
cmp esi, 0x80000000
jne 0x438fd1
call fcn.0041c582
cmp eax, 1
jne 0x438fd1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push str.SoftwareClasses_
push eax
call fcn.004198c3
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0041745a
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.004101ea
inc esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.004101ea
mov eax, esi
call fcn.00485d06
ret 0x10

Function at 0x438ff8
Capabilities:
Set registry value

Disassembly:
push 8
mov eax, 0x510714
call fcn.00485d38
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.0040e111
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
cmp esi, 0x80000000
jne 0x439056
call fcn.0041c582
cmp eax, 1
jne 0x439056
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push str.SoftwareClasses_
push eax
call fcn.004198c3
add esp, 0xc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0041745a
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.004101ea
inc esi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp - 0x10]
mov esi, eax
add ecx, 0xfffffff0
call fcn.004101ea
mov eax, esi
call fcn.00485d06
ret 0x14
Function at 0x446d6a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
lea eax, [ebp - 4]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x446d94
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x446d9a
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop esi
leave
ret
lea ecx, [esi + 0xc]
call fcn.00414789
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.0045e4e0
int3

Function at 0x446e61
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi], ebx
je 0x446ea8
push 0x520f84
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x446eb7
push str.MoveFileTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x446eb7
push dword [esi]
mov ecx, edi
push 2
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x519a74]
call edi
jmp 0x446eb9
cmp dword [esi + 4], ebx
je 0x446eb7
pop edi
pop esi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_MoveFileW]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4470ee
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x4470ff
xor eax, eax
jmp 0x44711b
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x447120
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
lea ecx, [esi + 0xc]
call fcn.00414789
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.0045e4e0
int3

Function at 0x4471fb
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
push 0
push dword [ebp + 0xc]
mov eax, dword [edi]
push dword [ebp + 8]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x519a74]
mov ecx, edi
call esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x44722e
pop edi
pop esi
pop ebp
ret 8
lea ecx, [edi + 0xc]
call fcn.00414789
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.0045e4e0
int3

Function at 0x447307
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
je 0x447332
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x447338
cmp dword [ebp - 4], esi
jne 0x44734f
pop edi
pop esi
leave
ret 8
lea ecx, [edi + 0xc]
call fcn.00414789
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.0045e4e0
lea ecx, [edi + 0xc]
call fcn.00414789
push eax
push 0xffffffffffffffff
push 0xd
call fcn.0045e0b2
int3
Function at 0x44e9c6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x84], 0
mov esi, dword [ebx + 0x8c]
mov edi, dword [ebx + 0x88]
je 0x44ea0e
call fcn.0041c534
push 5
push dword [ebx + 0x84]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x44ea0e
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x44ea1b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor eax, eax
inc eax
test esi, esi
je 0x44ea57
mov edx, 0xffff
lea ecx, [esi + 0xc]
cmp word [esi + 2], dx
jne 0x44ea3a
movzx edi, word [esi + 0x12]
movzx edx, word [esi + 0x14]
jmp 0x44ea43
movzx edx, word [ecx]
mov ecx, esi
movzx edi, word [esi + 0xa]
test dword [ecx], 0x1801
jne 0x44ea55
test di, di
jne 0x44ea55
test dx, dx
je 0x44ea57
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44ea5c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [esi + 0x84], edi
test edi, 0xffff0000
jne 0x44ea87
cmp dword [esi + 0x80], 0
jne 0x44ea87
movzx eax, di
mov dword [esi + 0x80], eax
call fcn.0041c534
push 5
push edi
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x44eab7
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x44eab7
push ebx
push dword [ebp + 0xc]
mov ecx, esi
push eax
call fcn.0044ed23
jmp 0x44eab9
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x44eac0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
call fcn.0041c534
push 5
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x44eb00
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x44eb00
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.0044eb08
jmp 0x44eb02
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x44ee26
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x51224b
call fcn.00485da1
mov edi, ecx
mov dword [ebp - 0x24], edi
mov ebx, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
mov dword [ebp - 0x18], ebx
call fcn.0041c534
cmp dword [edi + 0x84], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
je 0x44ee85
call fcn.0041c534
push 5
push dword [edi + 0x84]
mov ebx, dword [eax + 0xc]
push ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x44ee99
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp - 0x18]
mov esi, eax
test esi, esi
je 0x44ee95
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x18], eax
test ebx, ebx
jne 0x44eea1
or eax, 0xffffffff
jmp 0x44eff3
mov ecx, edi
call fcn.0044f4b4
mov ebx, eax
mov dword [ebp - 0x2c], ebx
call fcn.004201bf
xor esi, esi
and dword [ebp - 0x1c], esi
and dword [ebp - 0x28], esi
mov dword [ebp - 0x14], esi
test ebx, ebx
je 0x44ef2d
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x44ef2d
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x44ef2d
push esi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x14], 1
call fcn.0040ec1e
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x44ef2a
mov ecx, dword [esi]
mov esi, dword [ecx + 0x150]
mov ecx, esi
call dword [0x519a74]
mov ecx, dword [ebp - 0x1c]
call esi
test eax, eax
je 0x44ef2a
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.00427a78
test eax, eax
je 0x44ef2a
push 0
mov ecx, esi
call fcn.004271c4
mov dword [ebp - 0x28], 1
mov esi, dword [ebp - 0x14]
and dword [ebp - 4], 0
push edi
call fcn.0041fe2d
push ebx
call fcn.00421731
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.0044edc9
test eax, eax
jne 0x44ef76
cmp dword [edi + 0x9c], eax
jne 0x44ef76
call fcn.0041c534
push ebx
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
call fcn.00421731
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.0044edc9
and dword [edi + 0x9c], 0
jmp 0x44efa1
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 0
je 0x44efb5
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.004271c4
test esi, esi
je 0x44efc2
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x44efd8
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 0x20]
jne 0x44efd8
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [edi]
mov esi, dword [eax + 0x60]
mov ecx, esi
call dword [0x519a74]
mov ecx, edi
call esi
mov ecx, edi
call fcn.0044f468
mov eax, dword [edi + 0x68]
call fcn.00485d06
ret
Function at 0x451512
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 4], ebx
test byte [edi + 4], 1
mov esi, dword [edi + 0xc]
jne 0x451568
push 5
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x451541
call fcn.0041dcaf
push esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x451556
call fcn.0041dcaf
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x451568
call fcn.0041dcaf
call fcn.0041c534
cmp dword [eax + 0x3c], 0
je 0x45157d
push esi
mov ecx, ebx
call fcn.00450b2f
mov esi, eax
push dword [ebp + 0xc]
push esi
call fcn.00451852
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4515a6
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4515b2
mov esi, ebx
mov dword [eax + 0x88], ebx
or dword [edi + 4], 1
mov dword [edi + 0xc], esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x45ec4f
Capabilities:
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x561584]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x230
xor edi, edi
push edi
push esi
call fcn.004a95d0
push 0xffffffffffffffff
push dword [ebx + 0xc]
lea eax, [esi + 0x24]
push 0x104
push eax
call fcn.004e0236
push eax
call fcn.0040ebf4
mov eax, dword [ebx + 4]
add esp, 0x20
cmp eax, dword [0x524b4c]
je 0x45edad
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x45edc1
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x45edc1
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ecx
mov eax, dword [ebx + 0xc]
cmp dword [eax - 0xc], edi
je 0x45ed0b
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x45ecff
lea edx, [ebp - 0x28]
push edx
push edi
push eax
call fcn.0045e869
neg eax
sbb eax, eax
and eax, dword [ebp - 0x28]
jmp 0x45ed06
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x45ed0d
mov eax, edi
mov ecx, esi
mov dword [ecx + 0x20], eax
lea eax, [ebp - 0x38]
push eax
call fcn.0045ef95
test eax, eax
je 0x45ed34
push 0xffffffffffffffff
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
call fcn.0045e5c9
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x45ed38
mov ecx, edi
mov eax, edi
mov dword [esi], ecx
mov dword [esi + 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.0045ef95
test eax, eax
je 0x45ed5f
push 0xffffffffffffffff
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x50]
call fcn.0045e5c9
mov ecx, dword [eax]
mov eax, dword [eax + 4]
jmp 0x45ed63
mov ecx, edi
mov eax, edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x48]
push eax
call fcn.0045ef95
test eax, eax
je 0x45ed8b
push 0xffffffffffffffff
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x50]
call fcn.0045e5c9
mov edi, dword [eax]
mov ecx, dword [eax + 4]
jmp 0x45ed8d
mov ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x45ed9f
mov dword [esi], edi
mov dword [esi + 4], ecx
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x45edad
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], ecx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00485cf8
leave
ret 4
xor eax, eax
jmp 0x45edb0
Function at 0x45efdd
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x45f01e
push 0x520f84
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x45f02d
push str.SetFileAttributesTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x45f02d
push dword [esi]
mov ecx, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x519a74]
call edi
jmp 0x45f02f
cmp dword [esi + 4], 0
je 0x45f02d
pop edi
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
pop ebp
ret 8

Function at 0x4678b1
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
push 0
pop ebx
and edi, 1
je 0x467940
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push str.Insertable
push dword [ebp + 8]
mov esi, ebx
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.00439080
test eax, eax
jne 0x467919
push ebx
push ebx
push 0x2001f
push ebx
push ebx
push str.Insertable
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00439080
mov esi, dword [ebp - 0x10]
test eax, eax
jne 0x467919
inc ebx
test esi, esi
je 0x467924
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x1c], 0
je 0x467933
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4679da
mov ecx, dword [ebp + 0x10]
xor ebx, ebx
mov eax, ecx
and al, 2
movzx esi, al
neg esi
sbb esi, esi
and esi, str.Apartment
test cl, 4
je 0x46795b
mov esi, str.Free
and ecx, 6
cmp cl, 6
jne 0x46796a
mov esi, str.Both
jmp 0x467972
test esi, esi
je 0x4679f7
lea eax, [ebp - 4]
push eax
push 0x20006
push ebx
push str.InprocServer32
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x4679c7
push esi
call fcn.004b7298
pop ecx
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push str.ThreadingModel
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
neg eax
sbb ebx, ebx
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4679d2
call fcn.0041c534
cmp byte [eax + 0x14], 0
je 0x4679f7
test ebx, ebx
jne 0x4679f7
test edi, edi
je 0x4679f3
mov esi, str.Insertable
push esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, ebx
jmp 0x4679fa
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x46c678
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x46c7be
mov ecx, 0x56154c
call fcn.00437e2b
mov esi, eax
test esi, esi
je 0x46c7b3
xor eax, eax
cmp word [esi + 8], ax
jne 0x46c77d
push str.comctl32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
je 0x46c739
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [ebp + 0x10]
mov ecx, 0x3ff
and ax, cx
cmp ax, 0x11
jne 0x46c6ff
push 0x529c8c
call fcn.0046c80f
pop ecx
test eax, eax
je 0x46c6ff
mov eax, edi
neg eax
push 0xfc11
sbb eax, eax
and eax, 0xe
add eax, 0x3ee
push eax
push 5
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x46c71a
neg edi
push 5
sbb edi, edi
and edi, 0xe
add edi, 0x3ee
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46c739
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test eax, eax
je 0x46c73f
push ebx
push edi
push eax
call fcn.0046b92a
add esp, 0xc
jmp 0x46c73f
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 2
mov eax, dword [eax - 0xc]
inc eax
push eax
call fcn.0041b7e7
pop ecx
pop ecx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, eax
mov dword [esi + 4], ecx
test ecx, ecx
je 0x46c7b8
mov eax, dword [edi]
push eax
mov eax, dword [eax - 0xc]
inc eax
push eax
push ecx
call fcn.004393c7
mov ax, word [ebx]
add esp, 0xc
mov word [esi + 8], ax
xor eax, eax
jmp 0x46c780
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi + 4]
test edi, edi
je 0x46c78e
push edi
call fcn.004b7298
pop ecx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.00410285
movzx ecx, word [esi + 8]
mov edx, 0xffff
xor eax, eax
mov word [ebx], cx
pop edi
cmp cx, dx
pop esi
setne al
pop ebx
pop ebp
ret 0xc
call fcn.00414190
call fcn.004141ba
int3
Function at 0x47d289
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
push ebx
push esi
mov esi, ecx
push edi
push 1
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x47d2b6
or dword [esi + 0x3c], 1
or dword [esi + 0x38], 2
jmp 0x47d2cb
push 2
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x47d2cb
or dword [esi + 0x3c], 2
or dword [esi + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
mov edi, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], edx
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.00421731
jmp 0x47d39c
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.00421731
cmp eax, edi
jne 0x47d3a6
push 1
push 0x209
push 0x200
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x47d338
push 1
push 0x109
push 0x100
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x47d37c
mov eax, dword [ebp - 0x1c]
cmp eax, 0x202
je 0x47d3a6
cmp eax, 0x205
je 0x47d3a6
cmp eax, 0x201
je 0x47d3a6
cmp eax, 0x204
je 0x47d3a6
cmp eax, 0x100
jne 0x47d364
cmp dword [ebp - 0x18], 0x1b
je 0x47d3a6
push dword [ebp - 8]
lea eax, [esi + 0x24]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount64]
sub eax, ebx
sbb edx, dword [ebp - 4]
test edx, edx
jb 0x47d39c
ja 0x47d395
cmp eax, dword [0x567abc]
jbe 0x47d39c
mov dword [esi + 0x34], 1
cmp dword [esi + 0x34], 0
je 0x47d2ed
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x34]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x487005
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x487044
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x487044
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x487044
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x487044
cmp dword [ecx + 0x74], 0xe
jbe 0x487044
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x488a5d
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00488a39
pop esi
leave
ret 8