joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10021900
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
test ecx, ecx
je 0x1002199c
test edx, edx
je 0x1002199c
cmp dword [ebp + 8], 0
je 0x1002199c
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
xor eax, eax
mov esi, 0x100
cmp dword [ebp + 0xc], eax
cmove eax, esi
or eax, 0x20006
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x10021980
mov edx, dword [ebp + 0x10]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10021955
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x14]
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x10021995
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x80004003
mov esp, ebp
pop ebp
ret

Function at 0x10021a00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
test ecx, ecx
je 0x10021aa5
test edx, edx
je 0x10021aa5
cmp dword [ebp + 8], 0
je 0x10021aa5
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x10021aa5
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
xor eax, eax
mov esi, 0x100
cmp dword [ebp + 0xc], eax
cmove eax, esi
or eax, 0x20006
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x10021a88
push edi
xor edi, edi
mov esi, ebx
lea ebx, [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea esi, [esi + eax*2]
lea edi, [edi + eax*2]
cmp eax, 1
jne 0x10021a60
push edi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
pop edi
mov eax, dword [ebp - 4]
test eax, eax
je 0x10021a9d
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x80004003
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10021b00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
xor eax, eax
mov esi, 0x100
cmp dword [ebp + 0xc], eax
cmove eax, esi
or eax, 0x20019
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x10021b68
mov dword [ebp + 0xc], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0xc]
mov dword [ebp - 8], 4
push eax
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x10021b63
cmp dword [ebp + 0xc], 4
je 0x10021b68
mov esi, 0xd
mov eax, dword [ebp - 4]
test eax, eax
je 0x10021b7d
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10021be0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
test ecx, ecx
je 0x10021c54
test edx, edx
je 0x10021c54
cmp dword [ebp + 8], 0
je 0x10021c54
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
xor eax, eax
mov edi, 0x100
cmp dword [ebp + 0xc], eax
cmove eax, edi
or eax, 0x20006
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x10021c38
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x10021c4d
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 0x80004003
mov esp, ebp
pop ebp
ret

Function at 0x10021cc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
test edx, edx
je 0x10021d36
cmp dword [ebp + 8], 0
je 0x10021d36
cmp dword [ebp + 0x10], 0
je 0x10021d36
push edi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
xor eax, eax
mov edi, 0x100
cmp dword [ebp + 0xc], eax
cmove eax, edi
or eax, 0x20006
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x10021d1a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 3
push eax
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x10021d2f
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
mov eax, 0x80004003
mov esp, ebp
pop ebp
ret
Function at 0x10035110
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
mov byte [ebp - 0x130], 0
push 0x12b
lea eax, [ebp - 0x12f]
push 0
push eax
mov dword [edi], vtable.core_log::log_device_file.0
call fcn.101a01b0
add esp, 0xc
call fcn.10005140
mov ecx, eax
test ecx, ecx
je 0x100351ff
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, eax
lea eax, [ebp - 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push str.c:MyLog_
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10035181
test al, 0x10
jne 0x1003518e
push 0
push str.c:MyLog_
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebp - 0x13a]
push eax
movzx eax, word [ebp - 0x13e]
push eax
movzx eax, word [ebp - 0x140]
push eax
push str.c:MyLogMyLog__d__02d__02d.log
push 0xffffffffffffffff
lea eax, [ebp - 0x130]
push 0x12c
push eax
call fcn.101a87ab
push 0x1022b52c
lea eax, [ebp - 0x130]
push eax
lea eax, [edi + 4]
push eax
call fcn.101abf1e
add esp, 0x28
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x100351ed
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.101a0193
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10012a10
int3

Function at 0x10035290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x100352c7
push eax
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.101aaac6
push dword [esi + 4]
push 2
push 1
push 0x1022b530
call fcn.101aaac6
push dword [esi + 4]
call fcn.101aa22c
add esp, 0x24
pop esi
pop ebp
ret 8

Function at 0x10035890
Capabilities:
Read file via mapping

Disassembly:
push esi
push str.GlobalFA6FBBB1_8C8E_43b1_B8EC_35573A94C231
push 0
push 6
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [esi], eax
test eax, eax
je 0x100358cc
push 0
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 4], eax
test eax, eax
jne 0x100358d0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
xor eax, eax
pop esi
ret
mov dword [esi + 8], eax
mov eax, 1
pop esi
ret
Function at 0x10035af0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x20119
push 0
push str.SOFTWAREMyLogLog
push reloc.OLEAUT32.dll_SysReAllocString
mov word [0x1027b314], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10035b9f
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 4
push eax
push 0
push 0
push str.EnableLogToView
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, 1
test eax, eax
jne 0x10035b65
movzx eax, byte [0x1027b314]
cmp dword [ebp - 4], edi
cmove eax, edi
mov byte [0x1027b314], al
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push str.EnableLogToFile
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10035b95
movzx eax, byte [0x1027b315]
cmp dword [ebp - 4], edi
cmove eax, edi
mov byte [0x1027b315], al
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x1003a830
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1003a865
xor eax, eax
pop edi
pop ebp
ret 8
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1003a885
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
pop ebp
ret 8
test esi, esi
je 0x1003a87d
push ebx
push 0x10277e4a
push esi
mov dword [ebp + 8], 0
call fcn.101a88fa
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1003a8b5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
xor eax, eax
pop edi
pop ebp
ret 8
push esi
push 0
push ebx
call fcn.101a01b0
add esp, 0xc
lea eax, [ebp + 8]
push 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003a8d9
cmp dword [ebp + 8], esi
je 0x1003a8e4
push ebx
call fcn.101a1ad1
add esp, 4
xor ebx, ebx
mov eax, dword [ebp + 0xc]
push edi
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret 8

Function at 0x1003d630
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e6618
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x102683e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0x34], 7
xor eax, eax
mov dword [esi + 0x30], 0
xorps xmm0, xmm0
mov word [esi + 0x20], ax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0x83
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x44], eax
movdqu xmmword [esi + 4], xmm0
mov dword [esi + 0x58], eax
movdqa xmm0, xmmword [0x1023a630]
movdqu xmmword [esi + 0x48], xmm0
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0
mov dword [esi], vtable.miniskin::CVContainer.0
mov dword [esi + 0x68], eax
push 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
call fcn.1003fd00
mov dword [esi + 0x6c], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x1c], eax
mov eax, esi
mov dword [esi + 0x14], 0x64
mov dword [esi + 0x3c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x80], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10044220
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x1c
push esi
mov esi, ecx
mov dword [esi + 0x13c], 0
mov dword [esi + 0x138], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [esi + 0x138], eax
jne 0x10044254
mov dword [esi + 0x138], 0
mov eax, dword [esi + 0x138]
test eax, eax
je 0x1004426d
push 2
push eax
call dword [sym.imp.USER32.dll_GetAncestor]
mov dword [esi + 0x138], eax
mov eax, dword [ebp + 0x18]
mov ecx, esi
push 1
push 0
push 0
push dword [esi + 0x138]
neg eax
push dword [ebp + 0x14]
sbb eax, eax
push dword [ebp + 0x10]
and eax, 0x40000
push 0
push 0
or eax, 0x86080000
push eax
push dword [ebp + 0xc]
push str.GPUISkin
push 0
call fcn.1004c480
push 0
push 0
push 0x110
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push dword [esi + 4]
call fcn.1004bfb0
add esp, 8
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 0x138]
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x1004432f
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call edi
lea eax, [ebp - 0x1c]
push eax
call ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1004432d
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x10044300
pop edi
pop ebx
cmp dword [ebp - 0x18], 0x12
jne 0x1004433e
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [esi + 0x13c]
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x100446e0
Capabilities:
Hide graphical window
Set global application hook

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x10044739
cmp dword [ebp + 0x10], 0
jle 0x100447b9
cmp dword [ebp + 0x14], 0
jle 0x100447b9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
push 0x50
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
push 0
mov ecx, esi
call fcn.10041580
pop esi
pop ecx
pop ebp
ret 0x10
push 4
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x10279098], 0
jne 0x100447b9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jle 0x1004476e
mov eax, dword [ebp + 0x14]
test eax, eax
jle 0x1004476e
push 0x50
push eax
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
jmp 0x10044778
push 0x53
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
push 0
mov ecx, esi
call fcn.10041580
cmp dword [esi + 0x130], 0
mov dword [0x10279098], esi
jne 0x100447b9
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x10044570
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [esi + 0x130], eax
pop esi
pop ecx
pop ebp
ret 0x10
Function at 0x10045b40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101e6ad0
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x102683e0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x130], 0x1027b340
mov dword [0x1027b340], 0x1022c344
mov dword [0x1027b370], 7
mov dword [0x1027b36c], 0
mov word [0x1027b35c], ax
mov dword [ebp - 4], eax
mov dword [0x1027b378], eax
mov dword [0x1027b37c], eax
call fcn.10047d70
mov dword [0x1027b378], eax
mov byte [ebp - 4], 1
mov dword [0x1027b384], 0
mov dword [0x1027b388], 0
call fcn.10047d70
mov dword [0x1027b384], eax
mov byte [ebp - 4], 2
mov dword [0x1027b38c], 0
mov dword [0x1027b390], 0
call fcn.10047d70
mov dword [0x1027b38c], eax
mov byte [ebp - 4], 3
mov dword [0x1027b394], 0
mov dword [0x1027b398], 0
call fcn.10047d70
mov dword [0x1027b394], eax
mov byte [ebp - 4], 4
mov dword [0x1027b39c], 0
mov dword [0x1027b3a0], 0
call fcn.10047d70
mov dword [0x1027b39c], eax
mov byte [ebp - 4], 5
mov dword [0x1027b3a4], 0
mov dword [0x1027b3a8], 0
call fcn.10047d70
mov dword [0x1027b3a4], eax
mov byte [ebp - 4], 6
mov dword [0x1027b3ac], 0
mov dword [0x1027b3b0], 0
call fcn.10047d70
mov dword [0x1027b3ac], eax
mov byte [ebp - 4], 7
mov dword [0x1027b3b4], 0
mov dword [0x1027b3b8], 0
call fcn.10045460
push 0x11c
mov dword [0x1027b3b4], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x12c]
mov dword [0x1027b358], 0
push 0
push eax
movdqu xmmword [0x1027b344], xmm0
mov dword [0x1027b354], 0
mov dword [0x1027b374], 0
mov dword [0x1027b380], 0
call fcn.101a01b0
add esp, 0xc
mov dword [ebp - 0x12c], 0x11c
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x10045d1f
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10045d28
cmp dword [ebp - 0x128], 6
jae 0x10045d32
mov dword [0x102790d0], 1
mov eax, 0x1027b340
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
Function at 0x100507e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101e6e20
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x102683e0]
xor eax, esp
mov dword [esp + 0x48], eax
push esi
mov eax, dword [0x102683e0]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
push 0xffffffffffffffff
push ecx
mov word [esp + 0x10], cx
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], 0
call fcn.100040d0
mov dword [esp + 0x60], 0
cmp dword [esp + 0x18], 0
jne 0x100508f2
lea eax, [esp + 0x38]
push 0
push eax
call fcn.100191e0
push str.node.dll
push eax
lea eax, [esp + 0x30]
mov byte [esp + 0x70], 1
push eax
call fcn.1001edd0
mov esi, eax
add esp, 0x14
lea eax, [esp + 8]
cmp eax, esi
je 0x100508b1
cmp dword [esp + 0x1c], 8
jb 0x10050890
push dword [esp + 8]
call fcn.101a02f0
add esp, 4
xor eax, eax
mov dword [esp + 0x1c], 7
push esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
mov word [esp + 0xc], ax
call fcn.10003640
cmp dword [esp + 0x34], 8
jb 0x100508c4
push dword [esp + 0x20]
call fcn.101a02f0
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
mov byte [esp + 0x60], al
cmp dword [esp + 0x4c], 8
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
jb 0x100508f2
push dword [esp + 0x38]
call fcn.101a02f0
add esp, 4
cmp dword [esp + 0x1c], 8
lea eax, [esp + 8]
cmovae eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1005092f
cmp dword [esp + 0x1c], 8
lea eax, [esp + 8]
cmovae eax, dword [esp + 8]
mov dword [str.node.dll], eax
call fcn.1004d440
dec eax
neg eax
sbb eax, eax
inc eax
mov dword [0x10279170], eax
cmp dword [esp + 0x1c], 8
jb 0x10050942
push dword [esp + 8]
call fcn.101a02f0
add esp, 4
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
Function at 0x10050ad0
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101e6e98
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x102683e0]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
push edi
mov eax, dword [0x102683e0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [0x10279170], 0
jne 0x10050b4f
push 0x1022a5e4
lea ecx, [esp + 0x14]
call fcn.100031d0
lea eax, [esp + 0x10]
mov dword [esp + 0x50], 0
push eax
call fcn.100507e0
add esp, 4
mov dword [esp + 0x50], 0xffffffff
cmp dword [esp + 0x24], 8
jb 0x10050b4f
push dword [esp + 0x10]
call fcn.101a02f0
add esp, 4
cmp dword [edi + 0x68], 0
jne 0x10050cc3
call dword [0x1027a028]
mov dword [edi + 0x68], eax
test eax, eax
jne 0x10050b7e
push str.Create_MiniBrowser_failed_2
push eax
push str.minibrowserMiniBrowser.cpp
call fcn.10036720
add esp, 0xc
jmp 0x10050cc3
push str.Mozilla___5.0__Windows_NT_10.0__WOW64__Trident___7.0__rv:11.0__like_Gecko
lea ecx, [esp + 0x2c]
call fcn.100031d0
mov dword [esp + 0x50], 1
lea eax, [esp + 0x28]
cmp dword [esp + 0x3c], 8
cmovae eax, dword [esp + 0x28]
push eax
push dword [edi + 0x68]
call dword [0x10279fc0]
mov eax, dword [edi + 0x3c]
add esp, 8
mov edx, dword [edi + 0x6c]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + 4]
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 8]
push eax
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
push eax
push ecx
lea ecx, [edi + 0x6c]
call dword [edx]
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + 0x10]
push dword [eax + 4]
push dword [edi + 0x68]
call dword [0x10279fd8]
push edi
push 0x100504b0
push dword [edi + 0x68]
call dword [0x10279de8]
add esp, 0x14
push edi
push 0x10050460
push dword [edi + 0x68]
call dword [0x10279dd0]
lea eax, [edi + 0x94]
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x10050c13
mov eax, dword [eax]
push 1
push edi
push 0x10050490
push eax
call dword [0x10279c34]
push 1
push dword [edi + 0x68]
call dword [0x1027a00c]
push 1
push dword [edi + 0x68]
call dword [0x10279fcc]
mov eax, dword [edi + 0x10]
sub eax, dword [edi + 8]
push eax
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
push eax
push dword [edi + 0x68]
call dword [0x10279f44]
add esp, 0x2c
push edi
push 0x100504f0
push dword [edi + 0x68]
call dword [0x10279dc4]
add esp, 0xc
lea ecx, [esp + 0x10]
push str.newwindow
call fcn.10003120
push ecx
lea eax, [esp + 0x14]
mov byte [esp + 0x54], 2
push eax
mov ecx, edi
call fcn.10050960
mov byte [esp + 0x50], 1
cmp dword [esp + 0x24], 0x10
jb 0x10050c9c
push dword [esp + 0x10]
call fcn.101a02f0
add esp, 4
push str.CreateMiniBrowser_OK
push 0
push str.minibrowserMiniBrowser.cpp
call fcn.10036720
add esp, 0xc
cmp dword [esp + 0x3c], 8
jb 0x10050cc3
push dword [esp + 0x28]
call fcn.101a02f0
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.101a0193
mov esp, ebp
pop ebp
ret
Function at 0x10050e10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi + 0x68], 0
je 0x10050ed7
cmp dword [0x10279170], 0
je 0x10050ed7
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
push esi
shr eax, 0x10
xor esi, esi
cwde
push 0x10
mov dword [ebp - 4], ecx
mov dword [ebp + 0x10], eax
call ebx
push 0x11
call ebx
test ax, ax
mov ecx, 8
push 0x10
cmovs esi, ecx
call ebx
test ax, ax
jns 0x10050e67
or esi, 4
push 1
call ebx
test ax, ax
jns 0x10050e73
or esi, 1
push 4
call ebx
test ax, ax
jns 0x10050e7f
or esi, 0x10
push 2
call ebx
test ax, ax
jns 0x10050e8b
or esi, 2
mov ecx, dword [ebp + 8]
push esi
cmp ecx, 0x20a
jne 0x10050eba
mov eax, dword [ebp + 0xc]
shr eax, 0x10
cwde
push eax
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [edi + 0x68]
call dword [0x10279e90]
add esp, 0x14
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0x10]
sub eax, dword [edi + 8]
push eax
mov eax, dword [ebp - 4]
sub eax, dword [edi + 4]
push eax
push ecx
push dword [edi + 0x68]
call dword [0x10279e98]
add esp, 0x14
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10059ba0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [ebp + 0xc]
mov edi, ecx
xor bl, bl
push dword [ebp + 8]
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x10059bcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
xor al, al
pop ebx
pop ebp
ret 0x10
push esi
push eax
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x10059be7
pop esi
pop edi
xor al, al
pop ebx
pop ebp
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
je 0x10059c44
cmp dword [ebp + 0x10], 0
push dword [ebp + 0xc]
push dword [edi + 0x14]
jne 0x10059c1e
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x14]
mov bl, 1
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
pop edi
mov al, bl
pop ebx
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov dword [ebp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x14]
cmp ecx, eax
jl 0x10059c44
push ecx
push dword [ebp + 8]
push dword [ebp + 0x10]
call fcn.101a1180
add esp, 0xc
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
pop edi
mov al, bl
pop ebx
pop ebp
ret 0x10

Function at 0x1005b2f0
Capabilities:
Set global application hook

Disassembly:
push 0
push 0
mov dword [0x1027b418], 0
mov dword [0x1027b41c], 0
call fcn.1003fd00
mov dword [0x1027b418], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0
push 0x1005b1e0
push 3
mov dword [0x1027b414], eax
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x1027b410], eax
mov eax, 0x1027b410
ret