joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002940
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x10026cf8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1002f1f8]
xor eax, esp
mov dword [esp + 0x24], eax
push ebp
push esi
push edi
mov eax, dword [0x1002f1f8]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x4c]
mov edi, dword [esp + 0x48]
test ebp, ebp
jne 0x1000298c
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
jmp 0x10002aa4
push 0x12
xor eax, eax
push str.SOFTWARENextLabs_
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], ax
call fcn.10002200
mov dword [esp + 0x40], 0
test edi, edi
je 0x100029d7
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100029c4
sub eax, edx
sar eax, 1
push eax
push edi
jmp 0x100029de
push 0x11
push str.Policy_Controller
lea ecx, [esp + 0x20]
call fcn.10002320
mov eax, dword [esp + 0x1c]
mov esi, 8
mov dword [esp + 0x10], 0
cmp dword [esp + 0x30], esi
jae 0x10002a02
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push ecx
push 1
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x10002a32
cmp dword [esp + 0x30], esi
jb 0x10002a2e
mov edx, dword [esp + 0x1c]
push edx
call fcn.100166fc
add esp, 4
xor al, al
jmp 0x10002aa4
mov esi, str.InstallDir
test edi, edi
je 0x10002a52
push str.Compliant_EnterprisePolicy_Controller
push edi
call fcn.10017035
add esp, 8
test eax, eax
jne 0x10002a52
mov esi, str.PolicyControllerDir
mov eax, dword [esp + 0x50]
lea edx, [esp + 0x14]
push edx
push ebp
push 0
push 0
lea ecx, [eax + eax]
mov eax, dword [esp + 0x20]
push esi
push eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x10]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x10002a91
lea ecx, [esp + 0x18]
call fcn.10001cb0
xor al, al
jmp 0x10002aa4
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esp + 0x18]
call fcn.10001cb0
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.10016aa8
add esp, 0x34
ret
Function at 0x10003260
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x10026d98
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x1002f1f8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x30], 0
call fcn.100031e0
mov ebx, dword [esp + 0x3c]
mov eax, ebx
add esp, 8
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100032b0
sub eax, edx
mov edx, dword [esp + 0x38]
push edx
push ecx
mov ecx, dword [esp + 0x40]
sar eax, 1
lea edi, [ebx + eax*2]
mov eax, esp
mov dword [eax], ecx
mov esi, dword [esp + 0x40]
mov dword [esp + 0x3c], esp
push 0
lea ecx, [esp + 0x40]
call fcn.100159e8
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jae 0x100032ef
inc eax
mov dword [esi + 4], eax
lea ecx, [esp + 0x3c]
call fcn.10015a10
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edi
push ebx
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
call fcn.10002ba0
mov edi, dword [esp + 0x58]
add esp, 0x20
mov bl, al
mov dword [esp + 0x28], 0xffffffff
test edi, edi
je 0x10003365
push 0
lea ecx, [esp + 0x38]
call fcn.100159e8
mov eax, dword [edi + 4]
test eax, eax
jbe 0x10003343
cmp eax, 0xffffffff
jae 0x10003343
dec eax
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x34]
and esi, edi
call fcn.10015a10
test esi, esi
je 0x10003365
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov al, bl
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x100052e0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
push 0x10000
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
push 0x8000
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 4], 0xffffffff
je 0x10005382
push 0
push 0
push 0
push 2
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10005378
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x10005fb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002d5e8
push 0x10017860
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
push 2
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10006026
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
cmp edx, 0x5a4d
jne 0x10006026
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x20]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0x4550
je 0x10006026
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
jmp 0x10006052
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x100063f0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov dword [ebp - 0x114], 0
lea eax, [ebp - 0x110]
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
push 0x100278a0
push 0x10027894
call fcn.100096d0
add esp, 0x14
push 1
lea eax, [ebp - 0x110]
push eax
call fcn.100094e0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10006492
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0
je 0x10006482
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x118]
mov ecx, dword [eax]
mov dword [edx], ecx
mov edx, dword [ebp - 0x118]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x114], 1
jmp 0x10006488
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x114]
mov esp, ebp
pop ebp
ret 4
Function at 0x10006be0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
cmp ecx, 0x5a4d
jne 0x10006cbf
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp dword [edx], 0x4550
jne 0x10006cbf
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
je 0x10006cbf
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x50]
jae 0x10006cbf
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
je 0x10006cbf
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0xc], 0
je 0x10006cbf
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x10], 0
je 0x10006cbf
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + 0x10]
cmp eax, dword [edx + 0x50]
jae 0x10006cbf
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x10]
je 0x10006cbf
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x10]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
cmp dword [edx], 0
je 0x10006cb4
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
cmp ecx, dword [ebp + 0xc]
jne 0x10006ca9
push 4
mov edx, dword [ebp - 0x14]
push edx
call fcn.1000a3b0
test eax, eax
je 0x10006ca9
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [eax], ecx
mov edx, dword [ebp - 0x14]
add edx, 4
mov dword [ebp - 0x14], edx
jmp 0x10006c80
mov eax, dword [ebp - 0x10]
add eax, 0x14
mov dword [ebp - 0x10], eax
jmp 0x10006c49
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10008280
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
cmp dword [0x100301f4], 0
je 0x1000829b
cmp dword [0x100301f8], 0
jne 0x10008306
push 1
push 0x100279f4
call fcn.10006650
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ecx, dword [ebp - 8]
add ecx, 0xa
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100082ec
mov edx, dword [0x100301f0]
sub edx, dword [ebp - 8]
sub edx, 0xe
mov eax, dword [ebp - 8]
mov dword [eax + 0xa], edx
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 4]
push edx
push 4
mov eax, dword [ebp - 8]
add eax, 0xa
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10008311
push 0x10007f90
call dword [0x100301f8]
mov esp, ebp
pop ebp
ret 4

Function at 0x1000a1d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002d6e8
push 0x10017860
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jbe 0x1000a2a5
cmp dword [ebp + 0xc], 0
jne 0x1000a21d
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x20], 0x71af0000
push 0x1c
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp eax, 0x1c
jne 0x1000a289
cmp dword [ebp - 0x2c], 0x10000
jne 0x1000a26b
push 0x40
push 0x2000
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x1c], eax
jmp 0x1000a289
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x38]
jne 0x1000a281
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
mov dword [ebp - 0x20], ecx
jmp 0x1000a287
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x20], edx
jmp 0x1000a22b
push 0x40
push 0x1000
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
jmp 0x1000a2d1
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1000a3b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret 8
Function at 0x10016aa8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002f1f8]
jne 0x10016ab2
repz ret
jmp fcn.1001da69

Function at 0x10025a41
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.1001c760
and dword [ebp - 4], 0
cmp dword [0x10030fa8], 0
mov ebx, eax
jne 0x10025af2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10025ba3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10025ba3
push eax
call fcn.1001c6ee
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10030fa8], eax
call esi
push eax
call fcn.1001c6ee
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10030fac], eax
call esi
push eax
call fcn.1001c6ee
mov dword [esp], 0x1002cae0
push edi
mov dword [0x10030fb0], eax
call esi
push eax
call fcn.1001c6ee
pop ecx
mov dword [0x10030fb8], eax
test eax, eax
je 0x10025af2
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1001c6ee
pop ecx
mov dword [0x10030fb4], eax
mov eax, dword [0x10030fb4]
cmp eax, ebx
je 0x10025b4a
cmp dword [0x10030fb8], ebx
je 0x10025b4a
push eax
call fcn.1001c769
push dword [0x10030fb8]
mov esi, eax
call fcn.1001c769
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10025b4a
test edi, edi
je 0x10025b4a
call esi
test eax, eax
je 0x10025b41
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10025b41
test byte [ebp - 0xc], 1
jne 0x10025b4a
or dword [ebp + 0x10], 0x200000
jmp 0x10025b83
mov eax, dword [0x10030fac]
cmp eax, ebx
je 0x10025b83
push eax
call fcn.1001c769
pop ecx
test eax, eax
je 0x10025b83
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10025b83
mov eax, dword [0x10030fb0]
cmp eax, ebx
je 0x10025b83
push eax
call fcn.1001c769
pop ecx
test eax, eax
je 0x10025b83
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10030fa8]
call fcn.1001c769
pop ecx
test eax, eax
je 0x10025ba3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10025ba5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401680
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x10
push esi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call sub.MFC42.DLL_AfxWinInit
test eax, eax
jne 0x4016c5
mov eax, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push str.Fatal_Error:_MFC_initialization_failed
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___class_std::basic_ostream_char__struct_std::char_traits_char_____char_const__]
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
add esp, 0xc
mov eax, 1
pop esi
add esp, 0x10
ret
lea ecx, [esp + 4]
mov dword [esp + 4], str.provision
push ecx
mov dword [esp + 0xc], 0x4016f0
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x4027f6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x403158
push 0x4027f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x407a58], 0xffffffff
or dword [0x407a5c], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x407a50]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x407a4c]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x407a54], eax
call fcn.0040292d
cmp dword [0x404480], 0
jne 0x402879
push 0x40292a
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00402918
push 0x404018
push 0x404014
call sub.MSVCRT.dll__initterm
mov eax, dword [0x407a48]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x407a44]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x404010
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00401680
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x68401a90
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov edi, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [ebp - 0x24], eax
mov dword [esp + 8], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [ebp - 0x20], edx
mov dword [esp + 4], 0
mov dword [esp], 0
call edi
sub esp, 0x18
mov esi, eax
add eax, eax
mov ecx, dword fs:[0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x1c], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
sub esp, 0xc
test eax, eax
je 0x68401bd0
mov dword [esp + 0x14], esi
mov ebx, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], 0
call edi
sub esp, 0x18
test byte [0x68403018], 1
jne 0x68401b90
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0x10]
mov eax, 0xffffffff
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov esi, dword [ebp - 0x24]
mov dword [esp + 0xc], str.__s___lx_:_stub_n
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov dword [esp + 8], 0x68405038
mov dword [esp + 4], 0x68403018
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x68401b52
mov dword [ecx + 0x34], 0xe
jmp 0x68401b76

Function at 0x68401c70
Capabilities:
Write file on windows

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov edi, dword [0x68406094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x684023e0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x68406094]
movzx eax, al
bt eax, esi
jae 0x68402440
mov ecx, dword [0x68406084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x684022e6
test byte [0x68403030], 8
jne 0x68402380
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x68403040], 8
jne 0x68402330
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 0x684022b5
cmp esi, 3
jbe 0x684022f0
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 8], str._s:_s:_s
lea edx, [edi + 1]
mov dword [esp], eax
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x684050f0]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x684022b5
mov ecx, dword [0x68406094]
test ecx, ecx
je 0x68402420
mov dword [esp], 0x68403040
call dword [0x68406094]
test al, 8
je 0x6840228c
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 0x6840228c
mov ebx, dword [0x68406094]
test ebx, ebx
je 0x68402400
mov dword [esp], 0x68403030
call dword [0x68406094]
test al, 8
je 0x68402279
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [esp + 0x28]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
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 0x6840227f
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x68406094
call sym._load_func.part.0
jmp 0x68402240
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x68406094
call sym._load_func.part.0
jmp 0x6840238a
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x68406094
call sym._load_func.part.0
jmp 0x6840233e
mov eax, 0xffffffff
jmp 0x684022e6
Function at 0x404e50
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test eax, eax
jne 0x404e6b
mov ebx, dword [0x407360]
mov esi, ebx
xor ecx, ecx
jmp 0x404e8e
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x404e76
inc eax
mov dword [ebp - 4], eax
cmp byte [esi], 0x3d
je 0x404e89
add ecx, dword [ebp - 4]
mov eax, dword [ebp - 4]
add esi, eax
cmp byte [esi], 0
jne 0x404e71
lea eax, [ecx + 1]
push eax
call fcn.00405590
pop ecx
mov edi, eax
mov dword [0x407298], eax
cmp dword [0x407298], 0
jne 0x404eb5
push 1
call fcn.00404570
pop ecx
mov esi, ebx
jmp 0x404eea
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x404ebe
inc eax
mov dword [ebp - 4], eax
cmp byte [esi], 0x3d
je 0x404ee5
mov ecx, edi
mov edx, esi
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x404ed5
pop eax
mov eax, dword [ebp - 4]
add edi, eax
mov eax, dword [ebp - 4]
add esi, eax
cmp byte [esi], 0
jne 0x404eb9
mov byte [edi], 0
cmp ebx, dword [0x407360]
je 0x404f01
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
pop edi
pop esi
pop ebx
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