joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44acf0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44ae9b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44ae7c
mov dl, 1
mov eax, dword [0x4122c0]
call fcn.00403b08
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404870
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44ae6b
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00438d24
test al, al
je 0x44ae5e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x44aeac
lea eax, [ebp - 0x254]
call fcn.004092a4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44ae5e
xor eax, eax
push ebp
push 0x44ae57
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x44aee4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44ae40
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404ae0
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x44ae40
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404ae0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ae5e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44ad61
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415d9c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44aea2
lea eax, [ebp - 0x260]
call fcn.00404870
ret

Function at 0x44b7d0
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x452bb0]
cmp byte [eax + 0xa5], 0
jne 0x44b841
cmp dword [0x452bc8], 0
jne 0x44b802
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44b78c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x452bc8], eax
cmp dword [0x452bc4], 0
jne 0x44b81d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x452bc4], eax
cmp dword [0x452bcc], 0
jne 0x44b841
push esp
push 0
push 0
push 0x44b730
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x452bcc], eax
pop edx
ret
Function at 0x44b938
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44b94f
add esp, 0xfffffff0
call fcn.00403e44
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419c40
mov eax, dword [0x45100c]
cmp word [eax + 2], 0
jne 0x44b977
mov eax, dword [0x45100c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044d010
mov eax, dword [0x4510b4]
cmp word [eax + 2], 0
jne 0x44b991
mov eax, dword [0x4510b4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0044d208
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411ea4]
call fcn.00403b08
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411ea4]
call fcn.00403b08
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41be14]
call fcn.00421a5c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44bb18
mov eax, dword [0x450f30]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00421e2c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x44d7a8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x450f30]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040ca8c
test eax, eax
je 0x44ba86
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408c98
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cab4
test eax, eax
je 0x44ba9a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404ae0
mov eax, dword [0x450e28]
cmp byte [eax], 0
jne 0x44bace
mov eax, ebx
call fcn.0044bc40
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0044d984
mov eax, ebx
call fcn.0044e348
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44bb0e
call fcn.00403e9c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44bec0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x452bb0]
cmp dword [eax + 0x30], 0
je 0x44bf6a
cmp dword [ebx + 0x94], 0
jne 0x44bf64
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44be50
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44bf64
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44bf2a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44bf64
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041420c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44bf39
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x44cacc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x44cb01
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404960
jmp 0x44cb0e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004048c4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x44db60
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x44dba1
mov eax, esi
call fcn.0043452c
test al, al
je 0x44dba1
mov eax, dword [ebx + 0x84]
call fcn.004342cc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x44dba1
push 0
mov eax, dword [ebx + 0x84]
call fcn.004342cc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x1003dc60
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1003de2d
pushal
mov esi, section.UPX1
lea edi, [esi - 0x22000]
push edi
or ebp, 0xffffffff
jmp 0x1003dc8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1003dc91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1003dc80
mov eax, 1
add ebx, ebx
jne 0x1003dca3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1003dc98
jne 0x1003dcb4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1003dc98
xor ecx, ecx
sub eax, 3
jb 0x1003dcc8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1003dd3a
mov ebp, eax
add ebx, ebx
jne 0x1003dcd3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1003dce0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1003dd04
inc ecx
add ebx, ebx
jne 0x1003dcf0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1003dce5
jne 0x1003dd01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1003dce5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1003dd24
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1003dd15
jmp 0x1003dc86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1003dd24
add edi, ecx
jmp 0x1003dc86
pop esi
mov edi, esi
mov ecx, 0x11d4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1003dd42
cmp byte [edi], 7
jne 0x1003dd42
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x1003dd47
lea edi, [esi + 0x39000]
mov eax, dword [edi]
or eax, eax
je 0x1003ddbf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3d508]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3d5fc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1003dd74
mov ecx, edi
jns 0x1003dda3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3d600]
or eax, eax
je 0x1003ddb9
mov dword [ebx], eax
add ebx, 4
jmp 0x1003dd91
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1003ddf0
cmp al, 0xef
ja 0x1003dde3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1003ddc5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1003ddd2
mov ebp, dword [esi + 0x3d604]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1003de24
sub esp, 0xffffff80
jmp 0x100136e7
Function at 0x401207
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84c
mov eax, dword [0x41a1f8]
xor edx, edx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x30], eax
mov eax, dword [0x41a1fc]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0xc], edx
mov esi, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x2c], 0x9e3779b9
mov dword [ebp - 0x18], eax
call fcn.00401200
add dword [ebp - 0xc], 0x23f
cmp dword [0x311a594], 0x14
jne 0x401263
push edx
lea eax, [ebp - 0x84c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov ecx, dword [0x41a200]
mov edx, dword [0x41a204]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov eax, esi
mov dword [ebp - 8], 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0x311a594], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x311a590]
cmove eax, dword [ebp - 8]
and dword [ebp - 8], 0
cmp dword [0x311a594], 0x3eb
mov dword [0x311a590], eax
mov eax, dword [0x311a4e4]
cmove eax, dword [ebp - 8]
mov dword [0x311a4e4], eax
mov eax, dword [ebp - 0xc]
add eax, esi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 0x10], eax
add dword [ebp - 0x10], edx
xor edx, edx
mov eax, dword [ebp - 4]
mov dword [0x311a58c], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x20]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
xor ecx, eax
cmp dword [0x311a594], 0x213
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
jne 0x40135a
push edx
push edx
push edx
push edx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_CompareStringA]
lea eax, [ebp - 0x44c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x38]
push eax
push 0
lea eax, [ebp - 0x4c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
mov ecx, dword [ebp - 0x10]
sub ebx, ecx
mov eax, ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp - 0xc]
shr edx, cl
add eax, ebx
mov ecx, dword [ebp - 4]
add edx, edi
xor ecx, eax
mov dword [ebp - 0x10], edx
cmp dword [0x311a594], 0xb03
mov dword [ebp - 4], ecx
jne 0x40139d
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
xor ecx, edx
sub esi, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0xc], eax
dec dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x24]
jne 0x40127f
mov edi, dword [ebp - 0x28]
mov dword [edi], esi
mov dword [edi + 4], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c017
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4195a4]
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.0040796c
mov dword [ebp - 0x14], eax
cmp dword [0x820c70], esi
jne 0x40c10a
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c097
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c1ea
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c1ea
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c1ea
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x820c70], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x820c74], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x820c78], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x820c80], eax
test eax, eax
je 0x40c107
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x820c7c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c12f
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c122
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c144
push 4
pop eax
jmp 0x40c1ec
cmp dword [ebp - 0x14], esi
je 0x40c144
push dword [0x820c70]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c129
mov eax, dword [0x820c7c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c1a2
cmp dword [0x820c80], edi
je 0x40c1a2
push eax
call ebx
push dword [0x820c80]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c1a2
test eax, eax
je 0x40c1a2
call ecx
test eax, eax
je 0x40c197
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 0x40c197
test byte [ebp - 8], 1
jne 0x40c1a2
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c1d2
mov eax, dword [0x820c74]
cmp eax, edi
je 0x40c1cf
push eax
call ebx
test eax, eax
je 0x40c1cf
call eax
mov esi, eax
test esi, esi
je 0x40c1cf
mov eax, dword [0x820c78]
cmp eax, edi
je 0x40c1cf
push eax
call ebx
test eax, eax
je 0x40c1cf
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x820c70]
call ebx
test eax, eax
je 0x40c1ea
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c1ec
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040387c
mov esp, ebp
pop ebp
ret
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x65141890
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
test byte [0x651530f8], 8
jne 0x651419b0
mov eax, dword [ebx + 8]
cmp eax, 4
jbe 0x65141978
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
mov edi, edx
or edi, ecx
je 0x65141900
cmp eax, 7
jne 0x65141920
mov edi, dword [ebx + 0x10]
mov eax, dword fs:[0x18]
cmp dword [eax + 0x24], edi
je 0x65141920
test byte [0x651530f8], 1
jne 0x651419f0
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x78
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 6
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], edx
mov edx, dword [0x6515b0c4]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [0x6515b0c0]
mov dword [ebp - 0x28], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], 2
mov dword [esp], eax
call dword [0x65153228]
mov edx, 0
mov edi, dword [ebp + 0x14]
sub esp, 0x10
test eax, eax
cmove esi, edx
mov dword [edi], esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0xc]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], str.__p__p__lu__p__n
mov dword [esp + 0x14], eax
mov dword [esp + 8], str.localmon_WritePort
mov dword [esp + 4], 0x651530f8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x651418ac
mov dword [esp + 0xc], str.used_from_other_thread_n
mov dword [esp + 8], str.localmon_WritePort
mov dword [esp + 4], 0x651530f8
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x651418e4
Function at 0x65142450
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
test byte [0x651530f8], 8
je 0x651424c7
xor eax, eax
test ebx, ebx
je 0x65142470
mov eax, dword [ebx]
call sym._wine_dbgstr_wn.constprop.0
mov dword [ebp - 0x2c], eax
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0
mov edi, eax
mov eax, dword [ebp + 8]
call sym._wine_dbgstr_wn.constprop.0
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.__s___ld___p___s_____s_n
mov dword [esp + 8], str.localmon_AddPortExW
mov dword [esp + 4], 0x651530f8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
test esi, esi
je 0x65142518
mov dword [esp + 4], 0x651550ec
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_lstrcmpiW]
sub esp, 8
test ebx, ebx
je 0x65142518
test eax, eax
jne 0x65142518
mov eax, dword [ebx]
test eax, eax
je 0x65142518
cmp word [eax], 0
je 0x65142518
cmp dword [ebp + 0xc], 1
je 0x65142538
xor esi, esi
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x7c
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x57
xor esi, esi
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
lea eax, [ebp - 0x1c]
mov dword [esp + 4], 0x65155600
mov dword [esp + 8], eax
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyW]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x651425b0
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x57
xor esi, esi
test byte [0x651530f8], 8
je 0x65142527
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.___u_with__lu_n
mov dword [esp + 0x14], eax
mov dword [esp + 8], str.localmon_AddPortExW
mov dword [esp + 4], 0x651530f8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x65142527
mov eax, dword [ebx]
call sym._does_port_exist
test eax, eax
jne 0x65142613
mov dword [esp + 0x14], 2
mov dword [esp + 0x10], 0x65155114
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov ebx, eax
mov eax, dword [ebp - 0x1c]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test ebx, ebx
jne 0x6514255d
mov esi, 1
jmp 0x6514256c
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
test byte [0x651530f8], 8
jne 0x6514263d
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x57
jmp 0x65142527
mov dword [esp + 0x10], 0x57
mov dword [esp + 0xc], str.__FALSE_with__u_n
mov dword [esp + 8], str.localmon_AddPortExW
mov dword [esp + 4], 0x651530f8
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6514262b
Function at 0x65144a70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x20]
mov esi, edx
push ebx
mov ebx, eax
lea eax, [ebp - 0x1c]
sub esp, 0x4c
mov dword [esp + 0xc], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], ebx
mov dword [ebp - 0x2c], eax
call eax
sub esp, 0x18
test eax, eax
jne 0x65144b08
cmp dword [ebp - 0x1c], 1
jne 0x65144b08
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
test eax, eax
je 0x65144b08
mov dword [esp + 0x10], eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], ebx
call eax
mov edx, dword [ebp - 0x30]
sub esp, 0x18
test eax, eax
je 0x65144b0a
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
nop
lea esi, [esi]
xor edx, edx
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret