joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439905
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4399a2
push ebx
push esi
call fcn.004398ce
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00438618
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x43994f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4399a1
push edi
push eax
call fcn.004359d2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x43996f
call fcn.004350d2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4399a0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00438618
add esp, 0x20
test eax, eax
jne 0x43998e
push edi
call fcn.004350d2
jmp 0x439996
push ebx
call fcn.004350d2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4399a5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4399b6
pop esi
ret
push ebx
push edi
push esi
call fcn.004398ce
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004359d2
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4399de
push ebx
push esi
push edi
call fcn.004296e0
add esp, 0xc
push 0
call fcn.004350d2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x439dae
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004399f3
Function at 0x440cd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x440cfd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x440cfd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40e4cf
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 8]
push eax
mov dword [sym.TestCountZeroes.exe_gMozillaPoisonSize], eax
call fcn.0040b010
pop ecx
mov ecx, dword [sym.TestCountZeroes.exe_gMozillaPoisonSize]
mov dword [sym.TestCountZeroes.exe_gMozillaPoisonBase], eax
test ecx, ecx
je 0x40e507
shr ecx, 1
dec ecx
add eax, ecx
mov dword [sym.TestCountZeroes.exe_gMozillaPoisonValue], eax
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401000
Capabilities:
Create process on windows
Impersonate user

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x47c
mov eax, dword [0x40c144]
xor eax, esp
mov dword [esp + 0x478], eax
push esi
push 0x40
lea eax, [esp + 0x28]
push 0
push eax
mov dword [esp + 0x2c], 0
call fcn.00403560
add esp, 0xc
xor ecx, ecx
push 0x40e
push ecx
lea edx, [esp + 0x72]
push edx
mov dword [esp + 0x10], 0xffffffff
mov word [esp + 0x74], cx
call fcn.00403560
xor eax, eax
add esp, 0xc
lea ecx, [esp + 0x68]
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
call fcn.004011a0
movzx esi, dx
xor ecx, ecx
or ecx, esi
mov dword [esp + 0x1c], edx
je 0x40108b
push edx
push eax
push 0x15
jmp 0x401178
push str.WinToUSB.exe_clone
lea eax, [esp + 0x6c]
push 0x208
push eax
call fcn.00401617
add esp, 0xc
push 0x44
lea ecx, [esp + 0x24]
push 0
push ecx
call fcn.00403560
add esp, 0xc
xor eax, eax
lea edx, [esp + 4]
push edx
push eax
push 2
push 0x40ab40
push 0x40ab44
push 0x40ab48
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], 0x44
call dword [sym.imp.ADVAPI32.dll_LogonUserW]
test eax, eax
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x88]
push edx
push 0
jne 0x40112e
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401153
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
add eax, ecx
adc ecx, 0x310015
push ecx
push eax
push 0x32
jmp 0x401178
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x401153
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
add eax, ecx
adc ecx, 0x450015
push ecx
push eax
push 0x46
jmp 0x401178
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40118a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
add eax, ecx
adc ecx, 0x520015
push ecx
push eax
push 0x53
push str..CloneLoader.cpp
push str._S__d_nRet0x_016llX_n
call fcn.00401400
add esp, 0x14
mov ecx, dword [esp + 0x47c]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00401608
mov esp, ebp
pop ebp
ret

Function at 0x401608
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c144]
jne 0x401612
repz ret
jmp fcn.00402fc2
Function at 0x4050cd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004027e4
and dword [ebp - 4], 0
cmp dword [0x40d8ec], 0
mov ebx, eax
jne 0x40517e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40522f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40522f
push eax
call fcn.00402772
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40d8ec], eax
call esi
push eax
call fcn.00402772
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40d8f0], eax
call esi
push eax
call fcn.00402772
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40d8f4], eax
call esi
push eax
call fcn.00402772
pop ecx
mov dword [0x40d8fc], eax
test eax, eax
je 0x40517e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402772
pop ecx
mov dword [0x40d8f8], eax
mov eax, dword [0x40d8f8]
cmp eax, ebx
je 0x4051d6
cmp dword [0x40d8fc], ebx
je 0x4051d6
push eax
call fcn.004027ed
push dword [0x40d8fc]
mov esi, eax
call fcn.004027ed
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4051d6
test edi, edi
je 0x4051d6
call esi
test eax, eax
je 0x4051cd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4051cd
test byte [ebp - 0xc], 1
jne 0x4051d6
or dword [ebp + 0x10], 0x200000
jmp 0x40520f
mov eax, dword [0x40d8f0]
cmp eax, ebx
je 0x40520f
push eax
call fcn.004027ed
pop ecx
test eax, eax
je 0x40520f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40520f
mov eax, dword [0x40d8f4]
cmp eax, ebx
je 0x40520f
push eax
call fcn.004027ed
pop ecx
test eax, eax
je 0x40520f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40d8ec]
call fcn.004027ed
pop ecx
test eax, eax
je 0x40522f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405231
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404130
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x40946e]
test eax, eax
jg 0x404143
and dword [0x409434], 0
xor eax, eax
ret
push edi
push esi
mov esi, 0x800
cmp eax, esi
ja 0x404150
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll__lread]
push esi
push dword [0x409430]
push dword [0x408e4c]
call edi
cmp dword [0x408e5c], 0
mov ecx, eax
mov dword [0x409434], ecx
je 0x4041bf
cmp ecx, 0xffffffff
je 0x4041bf
cmp ecx, esi
je 0x4041d0
test ecx, ecx
jl 0x4041bf
mov ax, word [0x408968]
push dword [0x408e60]
inc ax
push eax
call fcn.00401317
mov ecx, dword [0x409434]
test ecx, ecx
jne 0x4041b8
push esi
push dword [0x409430]
push dword [0x408e4c]
call edi
mov ecx, eax
mov dword [0x409434], ecx
cmp ecx, 0xffffffff
je 0x4041bf
mov esi, ecx
cmp ecx, esi
je 0x4041d0
push 2
call fcn.00401d5e
mov ecx, dword [0x409434]
sub dword [0x40946e], ecx
mov esi, dword [0x409430]
cmp dword [0x408e50], 0
mov dword [0x40947c], esi
je 0x404212
mov eax, ecx
mov edx, eax
dec eax
test edx, edx
je 0x404212
lea edi, [eax + 1]
call fcn.00405a83
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.00405a99
inc esi
dec edi
pop ecx
jne 0x4041f7
mov ecx, dword [0x409434]
mov eax, ecx
dec ecx
pop esi
mov dword [0x409434], ecx
pop edi
ret

Function at 0x405a99
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x408ed0]
xor eax, ecx
mov edx, 0xff
and eax, edx
push esi
shr ecx, 8
mov eax, dword [eax*4 + 0x408f00]
xor eax, ecx
mov ecx, dword [0x408ed8]
mov dword [0x408ed0], eax
and eax, edx
add eax, dword [0x408ed4]
mov esi, ecx
and esi, edx
imul eax, eax, 0x8088405
inc eax
mov dword [0x408ed4], eax
shr eax, 0x18
xor esi, eax
shr ecx, 8
mov eax, dword [esi*4 + 0x408f00]
pop esi
xor eax, ecx
mov dword [0x408ed8], eax
ret

Function at 0x405b80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push dword [0x408e58]
call fcn.00405af4
pop ecx
lea eax, [ebp - 0xc]
push 0xc
push dword [ebp + 8]
push eax
call fcn.00401000
add esp, 0xc
xor edi, edi
lea esi, [ebp + edi - 0xc]
call fcn.00405a83
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.00405a99
inc edi
pop ecx
cmp edi, 0xc
jl 0x405ba7
cmp dword [0x408e54], 0
movzx ax, byte [ebp - 1]
je 0x405bda
xor ecx, ecx
mov cl, byte [0x409467]
jmp 0x405be3
mov ecx, dword [0x40946a]
shr ecx, 0x18
cmp ax, cx
je 0x405bed
or eax, 0xffffffff
jmp 0x405bef
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x1490000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x149000a
jmp 0x149200f
jmp fcn.011bd058
Function at 0x411602
Capabilities:
Get number of processors

Disassembly:
add esp, 4
pop ebx
mov edx, dword fs:[0x18]
mov dword [ebp - 0x1954], edx
mov eax, dword [ebp - 0x1954]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x1958], ecx
mov edx, dword [ebp - 0x1958]
mov dword [ebp - 0x15d8], edx
push edi
or edi, 0xaa48
add edi, 0x99b9
or edi, 0x44ab
add edi, 0xc99c
pop edi
push edi
push ecx
add esp, 4
xor edi, 0xaa9b
add edi, 0x348e
and edi, 0x1014e
pop edi
cmp dword [ebp - 0x15d8], 0
jne 0x411678
mov dword [ebp - 0x31c], 0
jmp 0x411934
mov eax, dword [ebp - 0x15d8]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0xc98], edx
push edi
push eax
add esp, 4
add edi, 0x8007
pop edi
push edx
push ecx
add esp, 4
or edx, 0x70be
add edx, 0xd155
pop edx
push edi
xor edi, 0xa9a
xor edi, 0x13cb3
jmp 0x4116bb
pop edi
invalid
invalid
invalid
invalid
Function at 0x413370
Capabilities:
Resolve function by parsing pe exports

Disassembly:
inc dword [eax]
add byte [eax], al
add cl, ch
sub byte [ebx], cl
add byte [eax], al
Function at 0x415e90
Capabilities:
Encode data using xor

Disassembly:
insd dword es:[edi], dx
ret 0x202
add al, byte [edx]
add cl, byte [ebx + 0x39]
dec esi
inc ebp
test esi, eax
push es
xor ecx, 0x75
dec edx
int1
jne 0x415e7f
add al, byte [edx]
popal
enter 0xffffffffffffde87, 0xfffffffffffffff6
add dword [ecx], eax
push esp
enter 0xffffffffffffdf87, 0xfffffffffffffff6
add dword [ecx], eax
xchg edi, ebx
test byte [ecx], 1
jbe 0x415e0f
xchg eax, esp
test byte [ecx], 1
outsb dx, byte [esi]
enter 0xffffffffffffe187, 0xfffffffffffffff6
add dword [ecx], eax
dec ebx
enter 0xffffffffffffe287, 0xfffffffffffffff6
add dword [ecx], eax
xchg edx, esp
test byte [ecx], 1
jo 0x415e24
xchg ebx, esp
test byte [ecx], 1
imul ecx, eax, 0xffffff87
in al, 0xf6
add dword [ecx], eax
jbe 0x415e32
xchg ebp, esp
test byte [ecx], 1
push edi
enter 0xffffffffffffe687, 0xfffffffffffffff6
add dword [ecx], eax
xchg esi, esp
test byte [ecx], 1
jo 0x415e40
xchg edi, esp
test byte [ecx], 1
imul ecx, eax, 0xffffff87
call 0x6542607b
enter 0xffffffffffffe987, 0xfffffffffffffff6
xchg eax, ebp
test byte [ecx], 1
enter 0xffffffffffffe987, 0xfffffffffffffff6
add dword [ecx], eax
jno 0x415e55
xchg edx, ebp
test byte [ecx], 1
add dword [ecx], eax
add dword [ecx], eax
enter 0xffffffffffffeb87, 0xfffffffffffffff6
add dword [ecx], eax
enter 0xffffffffffffec87, 0xfffffffffffffff6
add dword [ecx], eax
push ebp
enter 0xffffffffffffed87, 0xfffffffffffffff6
add dword [ecx], eax
jbe 0x415e71
xchg esi, ebp
test byte [ecx], 1
je 0x415e78
xchg edi, ebp
test byte [ecx], 1
imul ecx, eax, 0xffffff87
invalid
Function at 0x4434f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
mov esi, eax
call fcn.004435c0
lea eax, [esi + 0x1d0]
push eax
call fcn.00436950
lea ecx, [esi + 0x1b4]
push ecx
call fcn.00443940
add esp, 4
cmp dword [esi + 0x1ac], 0
mov dword [esi + 0x1b0], 1
je 0x44358c
mov eax, dword [esi + 0x1ac]
test eax, eax
jne 0x443541
push 0x80004003
call fcn.0047e430
mov edx, dword [eax]
push eax
mov eax, dword [edx + 0xfc]
call eax
mov eax, dword [esi + 0x1ac]
test eax, eax
jne 0x443560
push 0x80004003
call fcn.0047e430
mov ecx, dword [eax]
mov edx, dword [ecx + 0x110]
push eax
call edx
mov eax, dword [esi + 0x1ac]
test eax, eax
jne 0x44357f
push 0x80004003
call fcn.0047e430
mov ecx, dword [eax]
mov edx, dword [ecx + 0x9c]
push 1
push eax
call edx
push 1
mov edi, esi
call fcn.004424e0
push 0
push 0
push esi
push 0x443240
push 0
push 0
mov byte [esi + 0x1ec], 0
call fcn.00480188
add esp, 0x18
pop edi
mov dword [esi + 0x1f0], eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4435c0
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi + 0x1f0]
test eax, eax
je 0x443614
push 0x4e20
push eax
mov byte [esi + 0x1ec], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4435f3
mov eax, dword [esi + 0x1f0]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x1f0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1f0], 0
mov dword [esi + 0x1b0], 0
ret

Function at 0x445ed0
Capabilities:
Get common file path

Disassembly:
cmp dword [0x4d0b48], 0
jne 0x445fcc
push 0x4d0b4c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x4d0b48], 0
jne 0x445fc1
xor ecx, ecx
push ecx
push 0x28
push 0x4d0730
xor eax, eax
push ecx
mov dword [0x4d0938], 0
mov dword [0x4d0b44], 0
mov word [0x4d0730], ax
mov word [0x4d093c], cx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x445fb7
push 0x4d0730
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, 0x4d0730
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x445f44
push 0x104
sub eax, edx
push 0x4d093c
sar eax, 1
push 0x4d0730
mov dword [0x4d0938], eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x445f78
cmp eax, 0x104
jb 0x445f81
xor edx, edx
mov word [0x4d093c], dx
push 0x4d093c
push 0x4d0730
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x445f9b
mov word [0x4d093c], ax
mov eax, 0x4d093c
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x445fa3
sub eax, edx
sar eax, 1
mov dword [0x4d0b44], eax
mov dword [0x4d0b48], 1
push 0x4d0b4c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
ret
Function at 0x44eda0
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi + 0x364]
test eax, eax
je 0x44edf1
push 0x4e20
push eax
mov byte [esi + 0x360], 1
mov byte [esi + 0x2bc], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x44edda
mov eax, dword [esi + 0x364]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x364]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x364], 0
mov dword [esi + 0x2f8], 0
mov byte [esi + 0x360], 0
mov byte [esi + 0x2bc], 0
ret

Function at 0x453230
Capabilities:
Get common file path

Disassembly:
push ebx
lea ebx, [esi + 0x88]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
jge 0x453246
xor al, al
pop ebx
ret
mov ecx, dword [esi + 0x48]
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea eax, [esi + 0x8c]
push eax
push 0
push ecx
call edi
test eax, eax
jge 0x453265
pop edi
xor al, al
pop ebx
ret
mov eax, dword [ebx]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push 0
lea ecx, [esi + 0xa4]
push ecx
mov ecx, dword [esi + 0x48]
push 0
push str.::26EE0668_A00A_44D7_9371_BEB064C98683
push 0
push ecx
push eax
call edx
mov ecx, dword [esi + 0x48]
lea eax, [esi + 0x90]
push eax
push 0x11
push ecx
call edi
mov eax, dword [esi + 0x48]
lea edx, [esi + 0x94]
push edx
push 0xa
push eax
call edi
mov edx, dword [esi + 0x48]
lea ecx, [esi + 0x98]
push ecx
push 3
push edx
call edi
mov ecx, dword [esi + 0x48]
lea eax, [esi + 0x9c]
push eax
push 5
push ecx
call edi
mov eax, dword [esi + 0x48]
lea edx, [esi + 0xa0]
push edx
push 0x2e
push eax
call edi
pop edi
mov al, 1
pop ebx
ret
Function at 0x40110c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b2030]
jne 0x401116
repz ret
jmp fcn.00401b61

Function at 0x409235
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00404c95
and dword [ebp - 4], 0
cmp dword [0x4b4794], 0
mov ebx, eax
jne 0x4092e6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409397
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x409397
push eax
call fcn.00404c23
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4b4794], eax
call esi
push eax
call fcn.00404c23
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4b4798], eax
call esi
push eax
call fcn.00404c23
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4b479c], eax
call esi
push eax
call fcn.00404c23
pop ecx
mov dword [0x4b47a4], eax
test eax, eax
je 0x4092e6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404c23
pop ecx
mov dword [0x4b47a0], eax
mov eax, dword [0x4b47a0]
cmp eax, ebx
je 0x40933e
cmp dword [0x4b47a4], ebx
je 0x40933e
push eax
call fcn.00404c9e
push dword [0x4b47a4]
mov esi, eax
call fcn.00404c9e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40933e
test edi, edi
je 0x40933e
call esi
test eax, eax
je 0x409335
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409335
test byte [ebp - 0xc], 1
jne 0x40933e
or dword [ebp + 0x10], 0x200000
jmp 0x409377
mov eax, dword [0x4b4798]
cmp eax, ebx
je 0x409377
push eax
call fcn.00404c9e
pop ecx
test eax, eax
je 0x409377
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409377
mov eax, dword [0x4b479c]
cmp eax, ebx
je 0x409377
push eax
call fcn.00404c9e
pop ecx
test eax, eax
je 0x409377
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4b4794]
call fcn.00404c9e
pop ecx
test eax, eax
je 0x409397
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409399
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b0a0
Capabilities:
Set console window title

Disassembly:
sub esp, 0x428
mov eax, dword [0x4b2030]
xor eax, esp
mov dword [esp + 0x424], eax
mov eax, dword [0x2c9201c]
push ebx
mov ebx, dword [0x2c91e68]
push esi
mov esi, dword [0x4b2f60]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40b0e1
push 0x4b0444
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov eax, dword [0x2c9201c]
mov dword [0x4b48f4], esi
cmp eax, 0x114e
jne 0x40b10b
push 0
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
lea eax, [esp + 0x14]
push eax
push str.famufinisiban
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov eax, dword [0x2c9201c]
cmp eax, 0x2f
jne 0x40b12d
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
call fcn.0040aff0
mov ecx, dword [esp + 0x430]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040110c
add esp, 0x428
ret
Function at 0x6f243610
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test byte [0x6f266598], 8
jne 0x6f2437b0
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], 1
mov edi, dword [sym.imp.advapi32.dll_RegOpenKeyExW]
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindows_NTCurrentVersion
mov dword [esp], 0x80000002
call edi
sub esp, 0x14
test eax, eax
je 0x6f243700
test byte [0x6f266598], 8
jne 0x6f2436b0
mov eax, dword [ebp + 0x14]
mov dword [esp + 4], ebx
mov dword [esp], esi
shr eax, 1
mov dword [esp + 0x14], str.SYSTEM.INI
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], 0x6f2721ec
mov dword [esp + 0xc], eax
call dword [sym.imp.kernel32.dll_GetPrivateProfileStringW]
sub esp, 0x18
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0
mov edi, eax
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], str.system.ini:__s___s___p___d_n
mov dword [esp + 8], str.DRIVER_GetLibName
mov dword [esp + 4], 0x6f266598
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6f24366e
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call edi
sub esp, 0x14
test eax, eax
je 0x6f243740
mov eax, dword [ebp - 0x24]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
push eax
jmp 0x6f243665
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov edi, dword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
sub esp, 0x18
mov dword [esp], eax
call edi
mov eax, dword [ebp - 0x24]
sub esp, 4
mov dword [esp], eax
call edi
mov edx, dword [ebp - 0x2c]
sub esp, 4
test edx, edx
jne 0x6f243665
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, esi
call sym._wine_dbgstr_wn.constprop.0
mov edi, eax
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], str.registry:__s___s___p___d_n
mov dword [esp + 8], str.DRIVER_GetLibName
mov dword [esp + 4], 0x6f266598
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x6f24362c