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

Disassembly:
push 0xffffffffffffffff
push 0x427b70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], 1
mov eax, dword [eax - 8]
lea esi, [eax + 1]
push esi
call fcn.0041bbf1
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
push ebx
rep stosb byte es:[edi], al
push ecx
lea eax, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.0041b5f6
mov ecx, ebp
call fcn.00403980
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push esi
push ebx
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
mov esi, eax
call fcn.0041bc1a
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 0
call fcn.0041b881
lea ecx, [esp + 0x2c]
mov dword [esp + 0x1c], 0xffffffff
call fcn.0041b881
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 0xc
Function at 0x4035c0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x427ba1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov eax, dword [0x4334c4]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x134], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push str.SystemCurrentControlSetServicesHidUsb
lea ecx, [esp + 0x14]
mov byte [esp + 0x138], 2
call fcn.0041b9c6
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.0041b5f6
mov ecx, esi
call fcn.004037b0
test eax, eax
jne 0x403752
push str.Enum
lea ecx, [esp + 0x14]
call fcn.0041bacb
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x24]
push ecx
push 0xf003f
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2c]
push str.Count
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
call fcn.0041b9c6
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x34], 0x100
call ebp
mov ebx, dword [esp + 0x2c]
mov esi, 0
and ebx, 0xff
mov dword [esp + 0x20], esi
jbe 0x403747
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2c]
push esi
lea edx, [esp + 0x18]
push 0x4332f4
rep stosd dword es:[edi], eax
push edx
call fcn.0041aafb
add esp, 0xc
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x28]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x34], 0x100
call ebp
lea ecx, [esp + 0x18]
call fcn.0041b80c
lea edx, [esp + 0x2c]
lea eax, [esp + 0x18]
push edx
push 0x4330d8
push eax
call fcn.0041aafb
add esp, 0xc
lea ecx, [esp + 0x18]
push 0
push str.USBVid_04b5Pid_0320
call fcn.0041a7c8
cmp eax, 0xffffffff
je 0x40373e
mov dword [esp + 0x20], 1
inc esi
cmp esi, ebx
jb 0x4036bc
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 1
call fcn.0041b881
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], 0
call fcn.0041b881
lea ecx, [esp + 0x10]
mov dword [esp + 0x134], 0xffffffff
call fcn.0041b881
mov ecx, dword [esp + 0x12c]
mov eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x128
ret
Function at 0x4037b0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x427bc3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x240
push ebx
push ebp
push esi
push edi
mov ecx, dword [esp + 0x260]
lea eax, [esp + 0x14]
xor ebp, ebp
push eax
push 0xf003f
push ebp
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x26c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dl, byte [0x4355e8]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x49]
mov byte [esp + 0x48], dl
lea edx, [esp + 0x2c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x38]
lea ecx, [esp + 0x40]
push eax
push ecx
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x40]
push eax
lea edx, [esp + 0x54]
push ecx
lea eax, [esp + 0x3c]
push edx
lea ecx, [esp + 0x48]
push eax
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x38]
push ebp
lea eax, [esp + 0x6c]
push edx
mov esi, 0x104
push eax
push ecx
mov dword [esp + 0x48], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov edx, dword [0x4334c4]
mov dword [esp + 0x10], edx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov eax, 1
mov byte [esp + 0x258], al
mov dword [esp + 0x1c], eax
jmp 0x40387e
mov esi, 0x104
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14c]
lea edx, [esp + 0x48]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x38]
lea ecx, [esp + 0x18]
push eax
push ecx
push edx
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x2c]
push 0
lea ecx, [esp + 0x15c]
push eax
push ecx
push ebp
push edx
mov dword [esp + 0x40], esi
mov dword [esp + 0x38], esi
call ebx
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.0041b80c
lea eax, [esp + 0x14c]
lea ecx, [esp + 0x10]
push eax
push 0x4330d8
push ecx
call fcn.0041aafb
mov edx, dword [esp + 0x1c]
push str.enum
push edx
call fcn.0040cf0b
add esp, 0x14
test eax, eax
jne 0x403903
mov dword [esp + 0x1c], eax
cmp esi, 0x103
je 0x403914
inc ebp
test esi, esi
je 0x403879
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov byte [esp + 0x258], 0
call fcn.0041b881
lea ecx, [esp + 0x260]
mov dword [esp + 0x258], 0xffffffff
call fcn.0041b881
mov ecx, dword [esp + 0x250]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24c
ret 4
Function at 0x403df0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x427c18
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov edx, 0x100
push ebx
mov ebx, ecx
push ebp
push esi
push edi
lea ecx, [ebx + 0x570]
mov eax, dword [ecx]
test eax, eax
je 0x403e26
mov dword [eax + 0x2c], 1
add ecx, 4
dec edx
jne 0x403e19
lea ecx, [ebx + 0x110]
call fcn.0041b80c
mov eax, dword [ebx + 0x78]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x1004
push eax
call ebp
mov edi, eax
xor esi, esi
test edi, edi
jle 0x403eb8
mov ecx, dword [0x4334c4]
mov dword [esp + 0x10], ecx
push 0x4332cc
lea ecx, [esp + 0x14]
mov dword [esp + 0x48], 0
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 4
call fcn.0041b9c6
mov ecx, dword [ebx + 0x78]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
mov dword [esp + 0x28], edx
push eax
push 0
push 0x1006
push ecx
call ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0x44], 0xffffffff
call fcn.0041b881
inc esi
cmp esi, edi
jl 0x403e54
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x403ed0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x427c38
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov edx, 0x100
push ebx
mov ebx, ecx
push ebp
push esi
push edi
lea ecx, [ebx + 0x570]
mov eax, dword [ecx]
xor esi, esi
cmp eax, esi
je 0x403f04
mov dword [eax + 0x2c], esi
add ecx, 4
dec edx
jne 0x403ef9
lea ecx, [ebx + 0x114]
call fcn.0041b80c
mov eax, dword [ebx + 0x78]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push esi
push esi
push 0x1004
push eax
call ebp
mov edi, eax
test edi, edi
jle 0x403f92
mov ecx, dword [0x4334c4]
mov dword [esp + 0x10], ecx
push 0x4332c4
lea ecx, [esp + 0x14]
mov dword [esp + 0x48], 0
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 4
call fcn.0041b9c6
mov ecx, dword [ebx + 0x78]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
mov dword [esp + 0x28], edx
push eax
push 0
push 0x1006
push ecx
call ebp
lea ecx, [esp + 0x10]
mov dword [esp + 0x44], 0xffffffff
call fcn.0041b881
inc esi
cmp esi, edi
jl 0x403f2e
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x411e99
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x434b60
cmp edx, dword [eax]
je 0x411ebb
add eax, 8
inc ecx
cmp eax, 0x434bf0
jl 0x411eac
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x434b60]
jne 0x411fe9
mov eax, dword [0x437654]
cmp eax, 1
je 0x411fc3
test eax, eax
jne 0x411eec
cmp dword [0x4341bc], 1
je 0x411fc3
cmp edx, 0xfc
je 0x411fe9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x411f23
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004140c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00410820
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x411f66
lea eax, [ebp - 0x1a4]
push eax
call fcn.00410820
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42c514
push edi
call fcn.00414f40
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004140c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004140d0
lea eax, [ebp - 0xa0]
push 0x42c4f4
push eax
call fcn.004140d0
push dword [esi + 0x434b64]
lea eax, [ebp - 0xa0]
push eax
call fcn.004140d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00414eab
add esp, 0x2c
pop edi
jmp 0x411fe9
lea eax, [ebp + 8]
lea esi, [esi + 0x434b64]
push 0
push eax
push dword [esi]
call fcn.00410820
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x41a0c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040d870
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41a18b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41a18b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41a13e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41a149
or bh, 8
and edi, 0x8000000
je 0x41a164
mov eax, dword [0x438e1c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41a18b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a560
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41a58b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41a5af
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41a5ca
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x41f62b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41f66d
call fcn.00423c2b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41f66d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41f664
xor eax, eax
jmp 0x41f675
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041f67b
pop edi
pop esi
pop ebx
ret 4

Function at 0x4243ea
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x424418
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x424436
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00424350
jmp 0x424436
mov eax, dword [esi + 0x14]
test eax, eax
je 0x424436
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00424350
test edi, edi
mov eax, edi
jne 0x424420
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x426bb7
Capabilities:
Receive data
Receive data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_recv
ret 0xc

Function at 0x426bce
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_send
ret 0xc

Function at 0x402a28
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x423fb0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402abc
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a79
cmp dword [ebp + 0x10], ebx
jne 0x402ab0
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a28
test eax, eax
jne 0x402a8b
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a60
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call 0x405d61
cmp eax, ebx
je 0x402ac3
push ebx
push dword [0x423fb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402abc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x423fb0], ebx
jne 0x402ab9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ab9
jmp 0x402abc
Function at 0x405710
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40572e
or eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40576f
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x401280
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push esi
call dword [sym.imp.jxbrowser_chromium_lib.dll_jxb_run_process]
add esp, 8
test eax, eax
jns 0x401317
push 0
push esi
call dword [sym.imp.jxbrowser_chromium_lib.dll_jxb_chrome_initialize]
add esp, 8
test al, al
jne 0x4012b9
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x401312
cmp dword [esp + 0xc], 2
jl 0x401312
push dword [edi + 4]
call fcn.00401dc4
add esp, 4
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
call dword [sym.imp.jxbrowser_chromium_lib.dll_jxb_init_plugins]
push esi
call dword [sym.imp.jxbrowser_chromium_lib.dll_jxb_start_ipc]
add esp, 4
call dword [sym.imp.jxbrowser_chromium_lib.dll_jxb_run_message_loop]
call dword [sym.imp.jxbrowser_chromium_lib.dll_jxb_chrome_shutdown]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov eax, 0xa
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40787a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00404845
mov dword [ebp - 0x14], eax
cmp dword [0x417224], esi
jne 0x40796d
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4078fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x407a4d
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x407a4d
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407a4d
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x417224], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x417228], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x41722c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x417234], eax
test eax, eax
je 0x40796a
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x417230], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x407992
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x407985
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4079a7
push 4
pop eax
jmp 0x407a4f
cmp dword [ebp - 0x14], esi
je 0x4079a7
push dword [0x417224]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40798c
mov eax, dword [0x417230]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x407a05
cmp dword [0x417234], edi
je 0x407a05
push eax
call ebx
push dword [0x417234]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x407a05
test eax, eax
je 0x407a05
call ecx
test eax, eax
je 0x4079fa
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4079fa
test byte [ebp - 8], 1
jne 0x407a05
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x407a35
mov eax, dword [0x417228]
cmp eax, edi
je 0x407a32
push eax
call ebx
test eax, eax
je 0x407a32
call eax
mov esi, eax
test esi, esi
je 0x407a32
mov eax, dword [0x41722c]
cmp eax, edi
je 0x407a32
push eax
call ebx
test eax, eax
je 0x407a32
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x417224]
call ebx
test eax, eax
je 0x407a4d
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x407a4f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040176c
mov esp, ebp
pop ebp
ret