joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d260
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x495118
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x4aeb00]
xor eax, ebp
mov dword [ebp - 0x40], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebp - 0x5c]
add ecx, 0xd8
call fcn.00455570
push eax
lea ecx, [ebp - 0x10]
call fcn.00455580
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], 0x424d5453
mov dword [ebp - 0x38], 0x4347414d
mov dword [ebp - 0x30], 0x4347414d
mov dword [ebp - 0x3c], 0x10
xor ecx, ecx
mov word [ebp - 0x4c], cx
xor edx, edx
mov dword [ebp - 0x4a], edx
mov dword [ebp - 0x46], edx
mov byte [ebp - 0x4c], 0x43
mov byte [ebp - 0x4b], 0x5a
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x4a], eax
push 6
lea ecx, [ebp - 0x4c]
push ecx
call fcn.0045d840
add esp, 8
mov dword [ebp - 0x46], eax
mov edx, dword [ebp + 0x10]
add edx, 0x2e
mov dword [ebp - 0x24], edx
push 0xc
call fcn.0046047b
add esp, 4
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x54], 0
je 0x45d331
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x54]
call fcn.0045d940
mov dword [ebp - 0x60], eax
jmp 0x45d338
mov dword [ebp - 0x60], 0
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x50], ecx
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x50]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0045db80
mov byte [ebp - 4], 2
push 0x10
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0045da70
mov ecx, eax
call fcn.0045d990
push 0xa
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0045da70
mov ecx, eax
call fcn.0045d990
push 4
lea edx, [ebp + 8]
push edx
lea ecx, [ebp - 0x2c]
call fcn.0045da70
mov ecx, eax
call fcn.0045d990
cmp dword [ebp + 0xc], 0
je 0x45d3b4
cmp dword [ebp + 0x10], 0
jle 0x45d3b4
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.0045da70
mov ecx, eax
call fcn.0045d990
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], 0x424d5445
mov dword [ebp - 0x1c], 0x4347414d
mov dword [ebp - 0x14], 0x4347414d
mov dword [ebp - 0x20], 0x10
push 0x10
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0045da70
mov ecx, eax
call fcn.0045d990
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x58], esp
lea edx, [ebp - 0x2c]
push edx
call fcn.004555f0
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x5c]
add ecx, 0x38
call fcn.00455450
mov ecx, dword [ebp - 0x5c]
add ecx, 0x78
call fcn.0045b6b0
mov ecx, eax
call fcn.0045b650
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004555d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004555b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x40]
xor ecx, ebp
call fcn.0045fcea
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45ecee
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4b1958], 0
push esi
jne 0x45ec5c
call fcn.0045eb70
test eax, eax
je 0x45ec9f
mov eax, dword [0x4b1958]
cmp eax, 1
jne 0x45ec7d
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x45ec9f
pop esi
ret
push eax
call dword [0x4b1960]
test eax, eax
jne 0x45ece7
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x45eca3
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4b1958]
call dword [0x4b1960]
mov edi, eax
test edi, edi
je 0x45ecc8
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x45ece4
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4b1958]
call dword [0x4b195c]
add edi, 0x10
cmp edi, esi
jb 0x45ecd0
mov eax, edi
pop edi
pop esi
ret
jmp 0x45ec49

Function at 0x45fcea
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4aeb00]
jne 0x45fcf4
repz ret
jmp fcn.00467f43

Function at 0x481874
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.004686a5
and dword [ebp - 4], 0
cmp dword [0x4b2758], 0
mov ebx, eax
jne 0x481925
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4819d6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4819d6
push eax
call fcn.00468633
mov dword [esp], 0x49ef58
push edi
mov dword [0x4b2758], eax
call esi
push eax
call fcn.00468633
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4b275c], eax
call esi
push eax
call fcn.00468633
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4b2760], eax
call esi
push eax
call fcn.00468633
pop ecx
mov dword [0x4b2768], eax
test eax, eax
je 0x481925
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00468633
pop ecx
mov dword [0x4b2764], eax
mov eax, dword [0x4b2764]
cmp eax, ebx
je 0x48197d
cmp dword [0x4b2768], ebx
je 0x48197d
push eax
call fcn.004686ae
push dword [0x4b2768]
mov esi, eax
call fcn.004686ae
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x48197d
test edi, edi
je 0x48197d
call esi
test eax, eax
je 0x481974
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x481974
test byte [ebp - 0xc], 1
jne 0x48197d
or dword [ebp + 0x10], 0x200000
jmp 0x4819b6
mov eax, dword [0x4b275c]
cmp eax, ebx
je 0x4819b6
push eax
call fcn.004686ae
pop ecx
test eax, eax
je 0x4819b6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4819b6
mov eax, dword [0x4b2760]
cmp eax, ebx
je 0x4819b6
push eax
call fcn.004686ae
pop ecx
test eax, eax
je 0x4819b6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4b2758]
call fcn.004686ae
pop ecx
test eax, eax
je 0x4819d6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4819d8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48d4d0
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2c14
call fcn.0045fd00
mov eax, dword [0x4aeb00]
xor eax, esp
mov dword [esp + 0x2c10], eax
mov eax, dword [esp + 0x2c18]
push edi
xor edi, edi
mov dword [esp + 0xc], eax
cmp eax, edi
je 0x48d63b
cmp dword [esp + 0x2c20], edi
je 0x48d63b
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov dword [esp + 0x10], edi
xor ebx, ebx
lea ebx, [ebx]
push ebx
push str..PhysicalDrive_d
lea eax, [esp + 0x30]
push 0x100
push eax
call fcn.0048ceb0
add esp, 0x10
push edi
push edi
push 3
push edi
push 3
push edi
lea ecx, [esp + 0x40]
push ecx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x48d614
xor eax, eax
push 0x2710
lea edx, [esp + 0x514]
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
push edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call fcn.0045fc70
add esp, 0xc
push edi
lea eax, [esp + 0x18]
push eax
push 0x2710
lea ecx, [esp + 0x51c]
push ecx
push 0xc
lea edx, [esp + 0x30]
push edx
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x48d607
push 0x3e8
lea eax, [esp + 0x12c]
push edi
push eax
call fcn.0045fc70
mov edx, dword [esp + 0x534]
lea ecx, [esp + 0x134]
push ecx
push 1
push edx
lea eax, [esp + 0x528]
push eax
call fcn.0048f0a0
mov edx, dword [esp + 0x2c48]
mov eax, dword [esp + 0x34]
add esp, 0x1c
lea ecx, [esp + 0x128]
push ecx
push edx
push eax
call fcn.0043a890
test eax, eax
jne 0x48d607
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], edi
jne 0x48d61e
inc ebx
cmp ebx, 0x10
jl 0x48d520
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x2c10]
xor ecx, esp
call fcn.0045fcea
add esp, 0x2c14
ret
mov ecx, dword [esp + 0x2c14]
pop edi
xor ecx, esp
xor eax, eax
call fcn.0045fcea
add esp, 0x2c14
ret
Function at 0x48d920
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x2ec
mov eax, dword [0x4aeb00]
xor eax, esp
mov dword [esp + 0x2e8], eax
push edi
mov edi, dword [esp + 0x2f4]
mov dword [esp + 0x18], edi
test edi, edi
je 0x48db21
cmp dword [esp + 0x2f8], 0
je 0x48db21
push 0x64
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0045fc70
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 8
push 0
push 0x49f06c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x48dae8
mov ecx, dword [esp + 4]
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x100]
push eax
push ebx
mov esi, 0x104
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x48dadb
lea ebx, [ebx]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 1
push 0
lea eax, [esp + 0xf8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x48daa9
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1f4]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push str.ServiceName
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x48da9e
push 0x64
push eax
lea eax, [esp + 0x90]
push eax
call fcn.0045fc70
lea ecx, [esp + 0x1fc]
push 0x64
push ecx
lea edi, [esp + 0x9c]
call fcn.0048d810
add esp, 0x14
test eax, eax
je 0x48da9e
cmp byte [esp + 0x24], 0
je 0x48da62
lea edx, [esp + 0x24]
push edx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x48da9e
lea eax, [esp + 0x24]
lea esi, [esp + 0x88]
mov ecx, eax
mov edx, 0x64
sub esi, ecx
lea ecx, [edx + 0x7fffff9a]
test ecx, ecx
je 0x48da91
mov cl, byte [esi + eax]
test cl, cl
je 0x48da91
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x48da76
jmp 0x48da95
test edx, edx
jne 0x48da96
dec eax
mov byte [eax], 0
mov esi, 0x104
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x100]
push ecx
inc ebx
push ebx
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x48d9c0
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
cmp byte [esp + 0x1c], 0
je 0x48db21
mov edx, dword [esp + 0x2f8]
lea ecx, [esp + 0x1c]
push ecx
push edx
push edi
call fcn.0043a890
xor ecx, ecx
test eax, eax
setge cl
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.0045fcea
add esp, 0x2ec
ret
mov ecx, dword [esp + 0x2ec]
pop edi
xor ecx, esp
xor eax, eax
call fcn.0045fcea
add esp, 0x2ec
ret
Function at 0x48dd90
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x50c
mov eax, dword [0x4aeb00]
xor eax, esp
mov dword [esp + 0x508], eax
push ebp
mov ebp, dword [esp + 0x514]
test edi, edi
je 0x48df0d
cmp ebp, 0x20
jb 0x48df0d
push 0x400
lea eax, [esp + 0x110]
push 0
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0x400
call fcn.0045fc70
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x10]
push eax
push 0x49f0dc
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x48df0d
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48de20
sub eax, edx
cmp eax, 0x40
jne 0x48df0d
push ebx
lea edx, [eax + 0x40]
push esi
lea eax, [esp + 0x14]
lea esi, [esp + 0x114]
mov ecx, eax
sub esi, ecx
lea ecx, [edx - 0x60]
test ecx, ecx
je 0x48de5e
mov cl, byte [esi + eax]
test cl, cl
je 0x48de5e
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x48de46
jmp 0x48de62
test edx, edx
jne 0x48de63
dec eax
mov byte [eax], 0
lea eax, [esp + 0x94]
lea edx, [esp + 0x134]
mov ecx, eax
mov esi, 0x80
sub edx, ecx
lea ecx, [ecx]
lea ecx, [esi + 0x7fffff7e]
test ecx, ecx
je 0x48de9b
mov cl, byte [edx + eax]
test cl, cl
je 0x48de9b
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x48de80
jmp 0x48de9f
test esi, esi
jne 0x48dea0
dec eax
push 0x400
lea edx, [esp + 0x118]
push 0
push edx
mov byte [eax], 0
call fcn.0045fc70
push 0x400
lea ebx, [esp + 0x124]
lea ecx, [esp + 0x24]
call fcn.0048cf40
add esp, 0x10
lea eax, [esp + 0x94]
push eax
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop esi
pop ebx
test eax, eax
jne 0x48df0d
lea edx, [esp + 0xc]
push edx
push ebp
push edi
call fcn.0043a890
neg eax
sbb eax, eax
inc eax
pop ebp
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.0045fcea
add esp, 0x50c
ret
mov ecx, dword [esp + 0x50c]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0045fcea
add esp, 0x50c
ret

Function at 0x48df30
Capabilities:
Set registry value

Disassembly:
sub esp, 0x188
mov eax, dword [0x4aeb00]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
push esi
push 0x80
lea eax, [esp + 0xc]
push 0
push eax
mov esi, ecx
call fcn.0045fc70
push 0x80
lea ebx, [esp + 0x18]
mov ecx, esi
call fcn.0048cf40
lea eax, [esp + 0x98]
mov ecx, eax
add esp, 0x10
mov edx, 0x104
sub esi, ecx
lea esp, [esp]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x48df9b
mov cl, byte [esi + eax]
test cl, cl
je 0x48df9b
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x48df80
jmp 0x48df9f
test edx, edx
jne 0x48dfa0
dec eax
lea edx, [esp + 8]
push edx
mov byte [eax], 0
push 0x104
lea eax, [esp + 0x90]
push eax
call fcn.0044a470
lea eax, [esp + 0x88]
pop esi
lea edx, [eax + 1]
pop ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x48dfc6
sub eax, edx
push eax
lea ecx, [esp + 0x84]
push ecx
push 1
push 0x49f0dc
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.0045fcea
add esp, 0x188
ret
Function at 0x401440
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x43601c
push 0x80000002
call dword [0x43882c]
test eax, eax
jne 0x40146c
mov eax, 0xd903
jmp 0x401516
mov dword [0x438824], 0x24e1
mov ecx, dword [0x438824]
sub ecx, 0x24e1
mov dword [0x438824], ecx
mov edx, 1
test edx, edx
je 0x401516
mov eax, dword [0x438824]
cmp eax, dword [ebp + 0xc]
jb 0x4014a1
jmp 0x401516
jmp 0x45cad8
mov esp, ebp
pop ebp
ret

Function at 0x401a60
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebp
pop dword [0x438810]
push dword [0x438810]
push 0x401a7b
jmp loc.0045bd6c
Function at 0x67182a40
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]
test eax, eax
je 0x67182ab0
cmp byte [esi + eax - 1], 0xa
mov ebx, eax
je 0x67182aa8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x67187084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
xor eax, eax
jmp 0x67182a6d
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x67183180
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov ebx, dword [ebp + 0xc]
mov dword [esp], ebx
call sym.___wine_dbg_get_channel_flags
movzx ecx, byte [ebp + 8]
movzx eax, al
sar eax, cl
test al, 1
je 0x67183358
mov edx, dword [0x67187084]
mov eax, dword fs:[0x18]
cmp dword [eax + 0x24], edx
je 0x67183348
test byte [0x67184078], 8
jne 0x671832f0
lea edi, [esp + 0x28]
mov esi, edi
test byte [0x67184088], 8
jne 0x671832b0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov ecx, str._04x:
mov dword [esp + 4], ecx
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x6718320b
cmp dword [ebp + 8], 3
jbe 0x67183270
mov dword [esp], 2
mov ebx, edi
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov esi, dword [ebx]
add ebx, 4
lea ecx, [esi - 0x1010101]
not esi
and ecx, esi
and ecx, 0x80808080
je 0x6718321a
mov dword [esp + 0xc], eax
mov esi, ecx
mov eax, 1
mov dword [esp + 4], eax
shr esi, 0x10
test ecx, 0x8080
mov dword [esp], edi
cmove ecx, esi
lea esi, [ebx + 2]
mov dl, cl
cmove ebx, esi
add dl, cl
sbb ebx, 3
sub ebx, edi
mov dword [esp + 8], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp + 0x10]
add eax, esi
inc ebx
mov dword [esp + 0x10], ebx
mov dword [esp], eax
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 8]
mov ecx, dword [edx*4 + 0x67186388]
mov edx, str._s:_s:_s
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov ecx, edi
sub ecx, eax
add ecx, 0xc8
mov dword [esp + 4], ecx
call sym._snprintf.constprop.0
jmp 0x6718320b
mov dword [esp], 0x67184088
call sym.___wine_dbg_get_channel_flags
and al, 8
je 0x671831e0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov ecx, str._04x:
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sym._sprintf
add esi, eax
jmp 0x671831e0
mov dword [esp], 0x67184078
call sym.___wine_dbg_get_channel_flags
and al, 8
je 0x671831cd
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
mov esi, str._3u._03u:
mov dword [esp + 4], esi
lea edi, [esp + 0x28]
mov dword [esp], edi
mov ecx, eax
mul edx
shr edx, 6
mov dword [esp + 8], edx
imul eax, edx, 0x3e8
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea esi, [edi + eax]
jmp 0x671831d3
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xffffffff
jmp 0x67183268
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
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 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x403f59
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x403f68
pop dword [ebp - 0x44]
mov eax, 0x5b309da5
sub eax, 0x5af05e3d
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x81b86ac0
sub dword [ebp - 0x54], 0x33662575
mov dword [ebp - 0x50], 0xa970e1d0
add dword [ebp - 0x50], 0x88c26a75
mov dword [ebp - 0x4c], 0xd4d2ae2
sub dword [ebp - 0x4c], 0xc100e6b4
mov dword [ebp - 0x48], 0x8b820eaa
sub dword [ebp - 0x48], 0x8b820eaa
lea eax, [ebp - 0x54]
push eax
mov eax, 0xb484ca80
sub eax, 0xb443fa2c
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xc43cce39
sub dword [ebp - 0x54], 0x4fca64e3
mov dword [ebp - 0x50], 0x820e9cd3
add dword [ebp - 0x50], 0xbf5dc4a2
mov dword [ebp - 0x4c], 0x73c63d63
add dword [ebp - 0x4c], 0xefa92f09
mov dword [ebp - 0x48], 0x9e38f1c3
add dword [ebp - 0x48], 0x61c70e3d
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0xbb21512f
sub eax, 0xbae080e3
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3b110
push 0
call eax
mov ecx, 0xdc377515
sub ecx, 0xdc372733
xor esi, esi
add esi, eax
mov edi, 0x17857ac1
sub edi, 0x1743cac1
add edi, dword [ebp - 0x44]
mov ebx, 0xd9cfb907
sub ebx, 0x4f608e73
sub dword [ebp - 0x30], 0x54741e3c
mov edx, dword [edi]
sub dword [ebp - 0x14], eax
sub edx, ebx
sub dword [ebp - 0x1c], 0x28ef2bbb
mov dword [esi], edx
xor dword [ebp - 0x24], eax
add esi, 0x7d728a29
add esi, 0x828d75db
add edi, 0xa357a7a1
sub edi, 0xa357a79d
loop 0x40408c
add eax, 0x3a9c4962
add eax, 0xc564e0f9
mov ebx, eax
add eax, 5
mov ecx, 0x538a212c
sub ecx, 0x534a212c
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x137fe80
Capabilities:
Encode data using xor

Disassembly:
jmp 0x137fe8a
pushal
call 0x137fe90
pop ebp
sub ebp, 0x10
sub ebp, 0xf7fe80
jmp 0x137fea6
mov eax, 0xf7fe80
add eax, ebp
add eax, 0x4c
mov ecx, 0x5fe
mov edx, 0xc4eb24ba
xor byte [eax], dl
inc eax
dec ecx
jne 0x137febd
jmp 0x137fed0
xor dword [edi + 0x31], esi
xor eax, dword [esi + 0x3bbababa]
jnp 0x137ff1d
mov edx, 0x77b9baba
add dh, byte [eax + 0xbababa]
xchg edx, eax
mov edx, 0x584dbaba
mov ecx, 0xb63b3172
mov edx, 0x7fb9baba
aaa
ficomp word [esi - 0x6141ccba]
aaa
ficomp word [esi - 0x6141ccba]
ror byte [esi - 0x2d454b3a], cl
invalid
mov edx, 0xeeefbaba
out 0x31, eax
aas
mov dl, 0xba
mov edx, 0xb62f31ba
mov edx, 0x3731baba
stosb byte es:[edi], al
mov edx, 0x537bbaba
mov eax, 0x7839b88b
mov esi, 0x4e3fb5f3
inc ebp
inc ebp
inc ebp
xor dword [esi - 0x6121c862], edx
mov esi, 0x31bab678
sahf
mov esi, 0xd2bababa
mov es, esi
mov ah, 0xba
sal al, cl
cmp byte [ebx - 0x46], dl
mov ebx, 0x52eb9e96
mov edi, 0x53bababa
test dword [eax - 0x11104546], edi
out 0x45, eax
iretd
Function at 0x41934c
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
push esi
xor esi, esi
cmp dword [ebp + 8], esi
push edi
mov edi, ecx
mov dword [ebp - 4], esi
jne 0x41936f
mov eax, 0x8876086c
jmp 0x419484
cmp dword [ebp + 0xc], esi
push ebx
je 0x419407
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
je 0x4193e7
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
push 0xfde9
call ebx
push eax
mov dword [ebp + 0xc], eax
call fcn.0049ca55
cmp eax, esi
pop ecx
mov dword [ebp - 4], eax
jne 0x4193cb
mov eax, 0x8007000e
jmp 0x419483
push esi
push esi
push dword [ebp + 0xc]
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
push 0xfde9
call ebx
mov eax, dword [ebp - 4]
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], esi
cmp dword [ebp + 0xc], esi
je 0x419407
push esi
push 0x10000000
push 3
push esi
push 1
push bind
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x419420
push esi
push 0x10000000
push 3
push esi
push 1
push bind
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push dword [ebp - 4]
mov dword [edi], eax
call fcn.0049ccf0
mov eax, dword [edi]
cmp eax, 0xffffffff
pop ecx
je 0x419471
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
je 0x419471
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 0xc], eax
je 0x419471
cmp eax, esi
je 0x41947e
push esi
push esi
push esi
push 4
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [edi + 8], eax
jne 0x419481
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x419483
mov dword [edi + 8], esi
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 8