joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100e5020
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10133920
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x100e51c7
mov ecx, dword [0x10260054]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x100e511c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.100e3d40
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.1012350c
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.1012341f
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x10257490
call fcn.1012348d
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.100e4100
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.1012350c
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.1012341f
lea ecx, [esp + 0xc]
call fcn.101238e7
mov ecx, dword [esp + 0xc]
push 0x10257ecc
push ecx
call fcn.10111fb4
add esp, 8
test eax, eax
je 0x100e5144
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x100e507d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.1012341f
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.1012341f
jmp 0x100e51cb
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.100e4dc0
test eax, eax
push 0
je 0x100e51af
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.100e3460
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x100e5195
cmp eax, 0x64
jg 0x100e5183
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x100e5120
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x100e5120
cmp eax, 0x64
jge 0x100e511c
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x100e5120
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.100e3460
mov esi, eax
jmp 0x100e5120
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x100e51d5
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x100f18e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x1029eba4]
xor edx, edx
cmp eax, edx
jne 0x100f1906
xor eax, eax
mov byte [eax + 0x1029eaa4], al
inc eax
cmp eax, 0x100
jl 0x100f18ee
mov dword [0x1029eba4], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x1029eaa4
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x100f1997
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x100f196a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x100f1938
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x100f19a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x100f19f3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x100f19da
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100f83a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10133d6e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.100f8cc0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x10170634
call fcn.10123160
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x100f8433
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.10123160
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x100f842c
push 0
mov ecx, eax
call fcn.100ef510
mov dword [esi + 0xc], eax
jmp 0x100f8435
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x100f8435
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x10125800
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10125838
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.1012387a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.10123852
jmp 0x10125844
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x10126ef3
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 0x10126f35
call fcn.1012ccf0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x10126f35
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x10126f2c
xor eax, eax
jmp 0x10126f3d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.10126f43
pop edi
pop esi
pop ebx
ret 4
Function at 0x402250
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x24]
mov esi, dword [ebp + 0x3c]
mov edi, dword [ebp + 0x44]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x34], eax
test byte [global___dbch.0], 8
jne 0x402302
mov eax, dword [ebp - 0x34]
mov dword [ebp + 0x34], edi
mov dword [ebp + 0x30], esi
mov dword [ebp + 0x2c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp + 0x18], edx
mov edx, dword [ebp - 0x10]
mov dword [ebp + 0x28], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp + 0x24], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp + 8], ebx
mov dword [ebp + 0x20], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp + 0x38], 0
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x18]
add esp, 0x58
pop ebx
pop esi
pop edi
pop ebp
jmp sym._create_serviceW.isra.9
mov eax, edx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], edx
call sym._wine_dbgstr_wn.constprop.13
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x14]
call sym._wine_dbgstr_wn.constprop.13
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x10]
call sym._wine_dbgstr_wn.constprop.13
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], str.__s___s__0x_lx___s__n
mov dword [esp + 8], global___func__.39
mov dword [esp + 4], global___dbch.0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.16
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
jmp 0x4022ad
Function at 0x404340
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x24]
mov esi, dword [ebp + 0x3c]
mov edi, dword [ebp + 0x44]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x38]
mov dword [ebp - 0x34], eax
test byte [global___dbch.0], 8
jne 0x4043f2
mov eax, dword [ebp - 0x34]
mov dword [ebp + 0x34], edi
mov dword [ebp + 0x30], esi
mov dword [ebp + 0x2c], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp + 0x18], edx
mov edx, dword [ebp - 0x10]
mov dword [ebp + 0x28], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp + 0x24], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp + 8], ebx
mov dword [ebp + 0x20], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp + 0x38], 1
mov dword [ebp + 0x1c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x18]
add esp, 0x58
pop ebx
pop esi
pop edi
pop ebp
jmp sym._create_serviceW.isra.9
mov eax, edx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], edx
call sym._wine_dbgstr_wn.constprop.13
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x14]
call sym._wine_dbgstr_wn.constprop.13
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x10]
call sym._wine_dbgstr_wn.constprop.13
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], str.__s___s__0x_lx___s__n
mov dword [esp + 8], global___func__.50
mov dword [esp + 4], global___dbch.0
mov dword [esp], 3
call sym._wine_dbg_log.constprop.16
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
jmp 0x40439d
Function at 0x405190
Capabilities:
Contain obfuscated stackstrings
Listen for remote procedure calls

Disassembly:
push ebp
xor eax, eax
xor edx, edx
mov ebp, esp
push ebx
sub esp, 0x40
mov dword [ebp - 0x30], 0x63006e
mov dword [ebp - 0x2c], 0x630061
mov dword [ebp - 0x28], 0x5f006e
mov dword [ebp - 0x24], 0x70006e
mov word [ebp - 0x20], ax
mov dword [ebp - 0x1e], 0x70005c
mov dword [ebp - 0x1a], 0x700069
mov dword [ebp - 0x16], 0x5c0065
mov dword [ebp - 0x12], 0x760073
mov dword [ebp - 0xe], 0x630063
mov dword [ebp - 0xa], 0x6c0074
mov word [ebp - 6], dx
call dword [sym.imp.kernel32.dll_CreateThreadpoolCleanupGroup]
mov dword [section..bss], eax
test eax, eax
je 0x4052a0
lea eax, [ebp - 0x1e]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
lea eax, [ebp - 0x30]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.rpcrt4.dll_RpcServerUseProtseqEpW]
sub esp, 0x10
mov ebx, eax
test eax, eax
je 0x405240
test byte [global___dbch.0], 2
jne 0x405324
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
mov eax, dword [0x40b188]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.rpcrt4.dll_RpcServerRegisterIf]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x4052c0
test byte [global___dbch.0], 2
je 0x405235
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.RpcServerRegisterIf_failed_with_error__lu_n
mov dword [esp + 8], global___func__.8
mov dword [esp + 4], global___dbch.0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.16
jmp 0x405235
test byte [global___dbch.0], 2
jne 0x405353
mov eax, dword fs:[0x18]
mov ebx, dword [eax + 0x34]
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
mov dword [esp + 8], 1
mov dword [esp + 4], 0x4d2
mov dword [esp], 1
call dword [sym.imp.rpcrt4.dll_RpcServerListen]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x405390
test byte [global___dbch.0], 2
je 0x405235
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.RpcServerListen_failed_with_error__lu_n
mov dword [esp + 8], global___func__.8
mov dword [esp + 4], global___dbch.0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.16
jmp 0x405235
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], str.RpcServerUseProtseq_failed_with_error__lu_n
mov dword [esp + 8], global___func__.8
mov dword [esp + 4], global___dbch.0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.16
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], 0x40d4b8
mov dword [esp + 8], global___func__.8
mov dword [esp + 0x10], eax
mov dword [esp + 4], global___dbch.0
mov dword [esp], 1
call sym._wine_dbg_log.constprop.16
jmp 0x4052ad
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x411180
mov dword [esp + 4], 0x3e8
mov dword [esp], 0xffffffff
call dword [sym.imp.ntdll.dll_NtSetInformationProcess]
sub esp, 0x10
jmp 0x405235
Function at 0x408120
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x10]
push ebx
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov ebx, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [eax], 0
lea eax, [ebp - 0x14]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp], eax
call ebx
sub esp, 0x18
test eax, eax
je 0x4081d1
mov edi, eax
cmp eax, 2
je 0x408260
xor ecx, ecx
test byte [0x40b080], 2
jne 0x408195
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], ecx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.Error__ld_while_reading_value__s_n
mov dword [esp + 8], global___func__.48
mov dword [esp + 4], 0x40b080
mov dword [esp], 1
call sym._wine_dbg_log.constprop.1
mov ecx, dword [ebp - 0x18]
jmp 0x408182
mov eax, dword [ebp - 0x10]
cmp eax, 1
je 0x4081f0
cmp eax, 2
jne 0x4081e5
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x4081f0
mov edi, 0x70c
jmp 0x408177
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x1c], eax
call eax
mov dword [esp + 0xc], esi
mov ecx, eax
lea eax, [ebp - 0x14]
mov dword [esp + 8], 0
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], ecx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov dword [esp], eax
call ebx
mov ecx, dword [ebp - 0x18]
sub esp, 0x18
test eax, eax
mov edi, eax
jne 0x408179
mov eax, dword [ebp - 0x14]
xor edx, edx
and eax, 0xfffffffe
cmp dword [ebp - 0x10], 2
mov word [ecx + eax], dx
je 0x408270
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
xor edi, edi
pop ebx
mov eax, edi
pop esi
pop edi
pop ebp
ret
mov dword [esp], ecx
mov esi, dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call esi
mov ecx, dword [ebp - 0x18]
sub esp, 0xc
test eax, eax
mov ebx, eax
mov dword [ebp - 0x14], eax
jne 0x4082b0
mov eax, dword fs:[0x18]
mov edi, dword [eax + 0x34]
jmp 0x408179
lea eax, [eax + eax]
mov dword [ebp - 0x18], ecx
mov dword [esp], eax
mov eax, dword [ebp - 0x1c]
call eax
mov ecx, dword [ebp - 0x18]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], ecx
mov dword [ebp - 0x1c], eax
call esi
mov ecx, dword [ebp - 0x18]
sub esp, 0xc
mov dword [esp], ecx
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
jmp 0x40818b
Function at 0x4082f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x14]
lea esi, [ebp - 0x10]
push ebx
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], edi
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov dword [esp], eax
mov eax, dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [ebp - 0x18], eax
call eax
sub esp, 0x18
test eax, eax
je 0x4083b0
mov ebx, eax
xor edx, edx
cmp eax, 2
je 0x408450
test byte [0x40b080], 2
jne 0x408370
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_free]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], edx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.Error__ld_while_reading_value__s_n
mov dword [esp + 8], global___func__.7
mov dword [esp + 4], 0x40b080
mov dword [esp], 1
call sym._wine_dbg_log.constprop.1
mov edx, dword [ebp - 0x18]
jmp 0x408354
mov eax, dword [ebp - 0x10]
cmp eax, 7
je 0x4083e0
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4083c4
cmp eax, 1
je 0x4083e0
mov ebx, 0x70c
xor edx, edx
test byte [0x40b080], 2
je 0x408354
jmp 0x408370
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp + 0x14], edi
mov dword [ebp - 0x1c], eax
mov dword [esp + 0x10], eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], esi
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x18]
call eax
mov edx, dword [ebp - 0x1c]
sub esp, 0x18
test eax, eax
mov ebx, eax
jne 0x40834b
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
xor esi, esi
xor edx, edx
and eax, 0xfffffffe
mov word [ecx + eax], dx
mov word [ecx + eax + 2], si
mov eax, dword [ebp + 0x14]
mov dword [eax], ecx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 2
xor ebx, ebx
mov dword [esp], 1
call dword [sym.imp.ucrtbase.dll_calloc]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x408480
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea edx, [ebp - 0x10]
sub esp, 0x20
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], 4
mov dword [eax], 0
mov dword [esp + 0x10], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], edx
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
sub esp, 0x18
mov ebx, eax
test eax, eax
je 0x408521
cmp eax, 2
je 0x408542
test byte [0x40b080], 2
jne 0x4084e5
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], str.Error__ld_while_reading_value__s_n
mov dword [esp + 8], global___func__.64
mov dword [esp + 4], 0x40b080
mov dword [esp], 1
call sym._wine_dbg_log.constprop.1
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ebp - 0xc]
sub eax, 3
cmp eax, 1
ja 0x408532
cmp dword [ebp - 0x10], 4
je 0x4084dc
mov ebx, 0x70c
test byte [0x40b080], 2
je 0x4084dc
jmp 0x4084e5
lea esp, [ebp - 8]
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop ebp
ret

Function at 0x408620
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_strlen]
mov esi, eax
xor eax, eax
test esi, esi
je 0x408678
cmp byte [ebx + esi - 1], 0xa
je 0x40864c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x411164], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], esi
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x408c90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call dbg.__wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x408e54
mov edx, dword fs:[0x18]
xor eax, eax
mov edi, dword [0x411164]
cmp dword [edx + 0x24], edi
je 0x408d77
test byte [0x40b1a8], 8
jne 0x408e00
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x40b1b8], 8
jne 0x408dc3
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x408d19
cmp esi, 3
jbe 0x408d82
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x408d2a
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x410208]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.2
jmp 0x408d19
mov dword [esp], 0x40b1b8
call dbg.__wine_dbg_get_channel_flags
test al, 8
je 0x408cf0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x408cf0
mov dword [esp], 0x40b1a8
call dbg.__wine_dbg_get_channel_flags
test al, 8
je 0x408cdb
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x408ce3
mov eax, 0xffffffff
jmp 0x408d77

Function at 0x408ee0
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov ebx, dword [eax]
call sym.___p___argv
mov esi, dword [eax]
call sym.__get_initial_narrow_environment
mov edi, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edx, dword [eax + 8]
mov eax, dword [edx + 0x3c]
cmp word [edx + eax + 0x5c], 2
sete dl
movzx edx, dl
add edx, 1
mov dword [esp], edx
call sym.__set_app_type
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dbg.main
mov dword [esp], eax
call sym._exit
nop
nop
nop