joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005acef
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101d5804
mov eax, dword fs:[0]
push eax
mov eax, 0x1004c
call fcn.1009da90
mov eax, dword [0x10247460]
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 esi, ecx
mov eax, dword [esi + 0x3c]
xor ebx, ebx
cmp dword [eax - 8], ebx
jne 0x1005ad34
xor eax, eax
jmp 0x1005aecc
push 1
lea eax, [esi + 0x40]
push eax
lea ecx, [ebp - 0x1003c]
call fcn.100da8b0
mov dword [ebp - 4], ebx
push 0xffffffffffffffff
lea ecx, [ebp - 0x10058]
call fcn.1003b3fe
mov byte [ebp - 4], 1
push 0xffffffffffffffff
lea ecx, [ebp - 0x10030]
call fcn.10011598
mov byte [ebp - 4], 2
mov esi, dword [esi + 0x3c]
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push esi
mov dword [ebp - 0x10024], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1005ae9a
mov esi, dword [ebp + 8]
cmp esi, ebx
je 0x1005ae89
push 0xffff
lea eax, [ebp - 0x1000f]
push ebx
push eax
mov byte [ebp - 0x10010], bl
call fcn.10096fc0
mov dword [ebp - 0x1001c], esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0xc
mov dword [ebp - 0x10020], ebx
mov dword [ebp - 0x10018], ebx
push ebx
push ebx
push dword [ebp - 0x1001c]
push edi
call esi
push ebx
lea eax, [ebp - 0x10014]
push eax
push 0x10000
lea eax, [ebp - 0x10010]
push eax
push edi
mov dword [ebp - 0x10014], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005ae75
cmp dword [ebp - 0x10014], 0x10000
jae 0x1005ae1c
mov dword [ebp - 0x10020], 1
cmp dword [ebp - 0x10014], ebx
je 0x1005ae75
push ebx
push ebx
push dword [ebp - 0x10018]
push edi
call esi
push ebx
lea eax, [ebp - 0x10028]
push eax
push dword [ebp - 0x10014]
lea eax, [ebp - 0x10010]
push eax
push edi
mov dword [ebp - 0x10028], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1005ae75
mov ecx, dword [ebp - 0x10028]
mov eax, dword [ebp - 0x10014]
cmp ecx, eax
jne 0x1005ae75
add dword [ebp - 0x1001c], eax
add dword [ebp - 0x10018], ecx
cmp dword [ebp - 0x10020], ebx
je 0x1005adce
push ebx
push ebx
push dword [ebp - 0x10018]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x1005ae93
mov dword [ebp - 0x10024], 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10030]
call fcn.100115c4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10058]
call fcn.1003b4da
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1003c]
call fcn.100da910
mov eax, dword [ebp - 0x10024]
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.10096ea4
leave
ret 4
Function at 0x1005aee8
Capabilities:
Write file on windows

Disassembly:
push 0x34
mov eax, 0x101d5844
call fcn.10096eb3
mov esi, ecx
mov eax, dword [esi + 0x3c]
xor ebx, ebx
cmp dword [eax - 8], ebx
je 0x1005afb2
cmp dword [ebp + 8], ebx
je 0x1005afb2
push 1
lea eax, [esi + 0x40]
push eax
lea ecx, [ebp - 0x24]
call fcn.100da8b0
mov dword [ebp - 4], ebx
push 0xffffffffffffffff
lea ecx, [ebp - 0x40]
call fcn.1003b3fe
mov byte [ebp - 4], 1
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.10011598
mov byte [ebp - 4], 2
mov esi, dword [esi + 0x3c]
push ebx
push ebx
push 4
push ebx
push ebx
push 0xc0000000
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x1005af8b
push 2
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp + 0xc], ebx
je 0x1005af81
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x10], ebx
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, eax
jmp 0x1005af84
xor edi, edi
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.100115c4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x40]
call fcn.1003b4da
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.100da910
mov eax, edi
jmp 0x1005afb4
xor eax, eax
call fcn.10096f8b
ret 8
Function at 0x1005afbc
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x3c
mov eax, 0x101d5877
call fcn.10096eb3
mov esi, ecx
mov eax, dword [esi + 0x3c]
xor ebx, ebx
cmp dword [eax - 8], ebx
jne 0x1005afde
xor eax, eax
call fcn.10096f8b
ret 0xc
push 1
lea eax, [esi + 0x40]
push eax
lea ecx, [ebp - 0x2c]
call fcn.100da8b0
mov dword [ebp - 4], ebx
push 0xffffffffffffffff
lea ecx, [ebp - 0x48]
call fcn.1003b3fe
mov byte [ebp - 4], 1
push 0xffffffffffffffff
lea ecx, [ebp - 0x20]
call fcn.10011598
mov byte [ebp - 4], 2
mov esi, dword [esi + 0x3c]
push ebx
push ebx
push 3
push ebx
push 3
push SysReAllocStringLen
push esi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1005b0cf
lea eax, [ebp - 0x10]
push eax
push edi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], ebx
ja 0x1005b0d4
cmp dword [ebp + 0x10], ebx
je 0x1005b055
cmp eax, 0xa00000
ja 0x1005b0d4
inc eax
push eax
call fcn.1009960a
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x1005b096
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.100115c4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x48]
call fcn.1003b4da
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.100da910
mov eax, esi
jmp 0x1005afd6
mov eax, dword [ebp - 0x14]
inc eax
push eax
push ebx
push esi
call fcn.10096fc0
add esp, 0xc
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov esi, dword [ebp - 0x14]
jmp 0x1005b06c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.100115c4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x48]
call fcn.1003b4da
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.100da910
jmp 0x1005afd4

Function at 0x1005b7a1
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
test esi, esi
jne 0x1005b7b4
push 0xd
pop eax
jmp 0x1005b7df
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x1005b7b7
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x1006080e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x428
mov eax, 0x101d6521
call fcn.10096f52
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [ebp - 0x424], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, ebx
jne 0x10060867
call fcn.1005b50c
mov esi, eax
jmp 0x10060982
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x10060880
call fcn.1005b50c
jmp 0x10060974
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, ebx
je 0x10060876
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x428], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x100608ed
mov byte [ebp - 4], bl
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x100608cf
lea ecx, [ebp - 0x418]
call fcn.1005bf43
mov esi, 0x8007000e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x424]
call fcn.1003f7bf
mov eax, esi
call fcn.10096fae
ret 0x10
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x418]
call fcn.1005ecda
mov dword [ebp - 4], 1
jmp 0x10060926
cmp dword [ebp - 0x418], ebx
jne 0x10060935
mov esi, 0x8007000e
jmp 0x10060976
push esi
push dword [ebp - 0x418]
push esi
push dword [ebp - 0x420]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x10060876
xor ecx, ecx
mov edx, dword [ebp - 0x418]
mov word [edx + eax*2], cx
push dword [ebp + 0x14]
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.100603e5
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], bl
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x100608d4
lea ecx, [ebp - 0x418]
call fcn.1005bf43
jmp 0x100608d4

Function at 0x10061c8f
Capabilities:
Get file size

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x24], 0xffffffff
push edi
jne 0x10061cfb
mov eax, dword [esi + 0x28]
xor edi, edi
cmp eax, edi
je 0x10061cbc
push edi
push 0x80
push 4
push edi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
jne 0x10061cc8
xor eax, eax
jmp 0x10061cfe
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x500000
jbe 0x10061cee
push edi
push edi
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x10061cfb
push 2
push edi
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor eax, eax
inc eax
pop edi
pop esi
ret
Function at 0x10061d01
Capabilities:
Write file on windows

Disassembly:
push 0x10
mov eax, 0x101d68eb
call fcn.10096eb3
mov esi, ecx
push 1
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100da8b0
and dword [ebp - 4], 0
mov ecx, esi
call fcn.10061c8f
test eax, eax
je 0x10061d54
cmp dword [ebp + 8], 0
je 0x10061d54
and dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
call fcn.100975a6
pop ecx
add eax, eax
push eax
push dword [ebp + 8]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.100da910
call fcn.10096f8b
ret 4

Function at 0x100623ae
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10247460]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
call fcn.10061c65
test ebx, ebx
je 0x100624b0
push esi
push ebx
call fcn.100975a6
mov esi, eax
pop ecx
test esi, esi
jbe 0x100624af
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.10096fc0
push 0x5c
push ebx
call fcn.100978f6
add esp, 0x14
mov dword [ebp - 0x210], eax
test eax, eax
jne 0x10062440
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.100975a6
pop ecx
lea esi, [esi + eax + 2]
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10063948
pop ecx
mov dword [edi + 0x28], eax
test eax, eax
je 0x100624af
lea ecx, [esi + esi + 2]
push ecx
push 0
push eax
call fcn.10096fc0
add esp, 0xc
cmp dword [ebp - 0x210], 0
jne 0x100624a2
lea eax, [ebp - 0x20c]
push eax
push dword [edi + 0x28]
call fcn.10097511
push 0x101e6fb4
push dword [edi + 0x28]
call fcn.100974e3
push ebx
push dword [edi + 0x28]
call fcn.100974e3
add esp, 0x18
jmp 0x100624af
push esi
push ebx
push dword [edi + 0x28]
call fcn.1009755c
add esp, 0xc
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.10096ea4
leave
ret 4

Function at 0x1006b4ad
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x101d7656
call fcn.10096eb3
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.10064a8a
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x1006b50f
call fcn.10067f50
cmp eax, 1
jne 0x1006b50f
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.1006ac78
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.100673bc
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.1001f916
mov dword [ebp + 8], reloc.WS2_32.dll_accept
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.1001f916
mov eax, esi
call fcn.10096f8b
ret 0x10
Function at 0x1006b538
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x101d7681
call fcn.10096eb3
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.10064a8a
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x1006b59a
call fcn.10067f50
cmp eax, 1
jne 0x1006b59a
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.1006ac78
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.100673bc
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.1001f916
mov dword [ebp + 8], reloc.WS2_32.dll_accept
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.1001f916
mov eax, esi
call fcn.10096f8b
ret 0x14

Function at 0x1006b5c6
Capabilities:
Delete registry key

Disassembly:
push 0
mov eax, 0x101d76ac
call fcn.10096eb3
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.10064a8a
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x1006b628
call fcn.10067f50
cmp eax, 1
jne 0x1006b628
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.1006ac78
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.100673bc
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.1001f916
mov dword [ebp + 8], reloc.WS2_32.dll_accept
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.1001f916
mov eax, esi
call fcn.10096f8b
ret 8

Function at 0x10079722
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x10079769
call fcn.10068b6a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10079769
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x10079785
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.1007929a
mov esi, eax
test edi, edi
je 0x10079783
test ebx, ebx
je 0x10079783
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1007d514
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x101d8a01
call fcn.10096eb3
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x1007d539
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x1007d57f
lea ecx, [ebp - 0x10]
call fcn.100642c3
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100639cb
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.1001f916
mov eax, esi
call fcn.10096f8b
ret 8

Function at 0x10086bf3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x10086c17
cmp dword [edi + 0x54], 0
jne 0x10086c17
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.10068b6a
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.10086bb4
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10096ea4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10247460]
jne 0x10096eae
repz ret
jmp fcn.100a168c
Function at 0x100bef04
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.100a0fbd
and dword [ebp - 4], 0
cmp dword [0x1026d418], 0
mov ebx, eax
jne 0x100befb5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100bf066
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1020ea94
push edi
call esi
test eax, eax
je 0x100bf066
push eax
call fcn.100a0f4b
mov dword [esp], 0x1020ea84
push edi
mov dword [0x1026d418], eax
call esi
push eax
call fcn.100a0f4b
mov dword [esp], 0x1020ea70
push edi
mov dword [0x1026d41c], eax
call esi
push eax
call fcn.100a0f4b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1026d420], eax
call esi
push eax
call fcn.100a0f4b
pop ecx
mov dword [0x1026d428], eax
test eax, eax
je 0x100befb5
push 0x1020ea3c
push edi
call esi
push eax
call fcn.100a0f4b
pop ecx
mov dword [0x1026d424], eax
mov eax, dword [0x1026d424]
cmp eax, ebx
je 0x100bf00d
cmp dword [0x1026d428], ebx
je 0x100bf00d
push eax
call fcn.100a0fc6
push dword [0x1026d428]
mov esi, eax
call fcn.100a0fc6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100bf00d
test edi, edi
je 0x100bf00d
call esi
test eax, eax
je 0x100bf004
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100bf004
test byte [ebp - 0xc], 1
jne 0x100bf00d
or dword [ebp + 0x10], 0x200000
jmp 0x100bf046
mov eax, dword [0x1026d41c]
cmp eax, ebx
je 0x100bf046
push eax
call fcn.100a0fc6
pop ecx
test eax, eax
je 0x100bf046
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100bf046
mov eax, dword [0x1026d420]
cmp eax, ebx
je 0x100bf046
push eax
call fcn.100a0fc6
pop ecx
test eax, eax
je 0x100bf046
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1026d418]
call fcn.100a0fc6
pop ecx
test eax, eax
je 0x100bf066
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100bf068
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100cacd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
mov esi, eax
shr eax, 4
and esi, 0xf
inc eax
push edi
mov edi, dword [esp + 0xc]
and eax, 0xffff
push ecx
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x100cad1e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100cad1e
xor edx, edx
xor ecx, ecx
mov cx, word [eax]
add eax, 2
cmp esi, edx
je 0x100cad23
inc edx
lea eax, [eax + ecx*2]
cmp edx, 0x10
jl 0x100cad09
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x100cad33
test esi, esi
jne 0x100cad51
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x100cad4f
mov byte [eax + esi - 1], 0
jne 0x100cad58
mov byte [esi + edi - 1], 0
mov eax, edi
pop edi
dec eax
pop esi
ret
Function at 0x100d0450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x100d04a0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x100d04a0
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x100d04a5
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x100d048b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x100d04b2
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret

Function at 0x100db700
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x100db741
lea edx, [esp + 0x14]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x100db743
mov esi, edi
test esi, esi
je 0x100db7b8
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x100db7ad
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x100db7ad
cmp dword [esp + 0x1c], eax
jbe 0x100db77e
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x100db7ad
cmp esi, edi
je 0x100db79f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp esi, edi
je 0x100db7b8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x100db7d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
mov dword [esp + 0xc], 0
je 0x100db835
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x100db835
mov ecx, dword [esp + 0x10]
mov eax, 4
cmp ecx, eax
jne 0x100db835
cmp dword [esp + 0x18], eax
jbe 0x100db81b
mov dword [esp + 0x18], eax
lea edx, [esp + 0x18]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0
push edi
push esi
call ebx
test eax, eax
mov eax, dword [esp + 0xc]
je 0x100db839
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 8
ret 8