joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4059c8
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405bf8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405a4b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405bf8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405a4b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405c14
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405ad4
xor eax, eax
push ebp
push 0x405acd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405810
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405ab2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405c34
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405ab2
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405ad4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405bee
cmp byte [ebp - 0xd], 0
jne 0x405b1b
cmp byte [ebp - 0x12], 0
je 0x405bee
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405b34
dec ebx
cmp byte [ebx], 0x2e
je 0x405b43
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405b33
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405bee
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405b80
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405bee
cmp byte [ebp - 0xd], 0
je 0x405bee
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405bee
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a5ec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a625
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004042d8
jmp 0x40a62e
mov eax, ebx
mov edx, esi
call fcn.0040423c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a638
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a659
mov al, byte [esp]
jmp 0x40a65b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40ace0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40ab58
mov eax, dword [0x424b84]
cmp byte [eax], 0
je 0x40ad4d
mov eax, dword [0x424a90]
call fcn.00402cc4
call fcn.00402820
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407ccc
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40ad94
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ad83
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x424a68]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x425710]
call fcn.004057d4
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40ba04
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40ba68
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404450
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004078a4
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ba6f
lea eax, [ebp - 0xc]
call fcn.004041e8
ret
Function at 0x402706
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push esi
imul eax, eax, 0x61c88647
mov esi, dword [esp + 0xc]
test eax, eax
mov edx, dword [esi]
mov ecx, dword [esi + 4]
je 0x40276e
mov esi, dword [esp + 8]
push ebx
push edi
mov edi, edx
mov ebx, edx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, eax
sar ebx, 0xb
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, eax
xor ebx, edx
add eax, 0x61c88647
add edi, ebx
sub ecx, edi
mov edi, ecx
mov ebx, ecx
sar edi, 5
shl ebx, 4
xor edi, ebx
mov ebx, eax
and ebx, 3
add edi, dword [esi + ebx*4]
mov ebx, eax
xor ebx, ecx
add edi, ebx
sub edx, edi
test eax, eax
jne 0x402724
mov esi, dword [esp + 0x14]
pop edi
pop ebx
mov dword [esi], edx
mov dword [esi + 4], ecx
pop esi
ret

Function at 0x40c580
Capabilities:
Inspect section memory permissions

Disassembly:
sub esp, 0x124
push ebx
push ebp
push esi
push edi
mov ecx, 0x3e
xor eax, eax
lea edi, [esp + 0x3c]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov ecx, 0xa
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x138]
lea eax, [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x18], ebx
call fcn.0040c4b0
add eax, 4
movsx edx, word [esp + 0x50]
jo 0x40c6ae
add eax, 0x14
jo 0x40c6ae
add eax, edx
jo 0x40c6ae
mov edi, eax
mov ax, word [esp + 0x42]
sub ax, 1
jo 0x40c6ae
movsx ebp, ax
cmp ebp, ebx
jl 0x40c69f
lea ecx, [esp + 0x14]
push ecx
call fcn.0040d0a0
push 0x28
push edi
push eax
call fcn.0040cff0
mov eax, dword [esp + 0x38]
test eax, 0x20000000
je 0x40c63c
test eax, 0x40000000
je 0x40c62b
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 0x20
add eax, 0x20
jmp 0x40c661
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 0x70
add eax, 0x10
jmp 0x40c661
test eax, 0x40000000
je 0x40c654
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 2
add eax, 2
jmp 0x40c661
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 7
inc eax
lea edx, [esp + 0x10]
mov esi, eax
push edx
call fcn.0040d0a0
push eax
push esi
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x140]
mov eax, dword [esp + 0x24]
add ecx, esi
push eax
jo 0x40c6ae
push ecx
call fcn.0040cfd0
test eax, eax
je 0x40c69f
add edi, 0x28
jo 0x40c6ae
add ebx, 1
jo 0x40c6ae
cmp ebx, ebp
jle 0x40c5f5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x124
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

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 0x4013a7
Capabilities:
Encode data using xor

Disassembly:
push esi
mov ecx, dword [0x4072c0]
mov esi, dword [esp + 0xc]
mov eax, esi
dec esi
test eax, eax
je 0x4013da
mov edx, dword [esp + 8]
mov al, byte [edx]
inc edx
xor al, cl
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x406ec0]
xor eax, ecx
mov ecx, eax
mov eax, esi
dec esi
test eax, eax
jne 0x4013bd
pop esi
mov dword [0x4072c0], ecx
ret

Function at 0x401ca4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push dword [ebp + 8]
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str..exe
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4000
lea ecx, [ebp - 0x18c]
push ecx
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
jne 0x401d06
mov eax, 1
jmp 0x401d38
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
push 0x10
lea eax, [ebp - 0x18c]
push eax
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x401d36
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, 1
jmp 0x401d38
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4027dc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
lea eax, [ebp - 0x44]
push 0x44
xor esi, esi
push esi
push eax
call fcn.00401056
add esp, 0xc
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov word [ebp - 0x12], si
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x54]
mov dword [ebp - 0x10], esi
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], 0x44
mov dword [ebp - 0x18], 1
mov word [ebp - 0x14], 0xa
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
mov eax, 0
je 0x402851
mov eax, dword [ebp - 0x54]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40308b
Capabilities:
Delete file
Set file attributes

Disassembly:
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
dec eax
cmp eax, 1
sbb eax, eax
inc eax
ret
Function at 0x4030ac
Capabilities:
Check for time delay via gettickcount
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
cmp dword [0x40689c], 0
push ebx
push esi
push edi
jne 0x4032a1
mov esi, dword [ebp + 8]
test esi, esi
je 0x403286
cmp byte [esi], 0
je 0x403286
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 4
jl 0x403286
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x109], 0x5c
je 0x403120
push 0x406960
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4069d4
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x248]
lea ecx, [ebp - 0x108]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov edi, eax
je 0x403276
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x109], 0x5c
je 0x403188
push 0x406960
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp byte [ebp - 0x118], 0
je 0x403199
lea eax, [ebp - 0x118]
jmp 0x40319f
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
test byte [ebp - 0x248], 0x10
je 0x40321f
cmp byte [ebp - 0x118], 0
je 0x4031f1
cmp byte [ebp - 0x118], 0x2e
je 0x403260
push dword [ebp + 0xc]
lea ecx, [ebp - 0x108]
push ecx
call fcn.004030ac
add esp, 8
test al, al
jne 0x403260
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x403260
cmp byte [ebp - 0x21c], 0x2e
je 0x403260
push dword [ebp + 0xc]
lea ecx, [ebp - 0x108]
push ecx
call fcn.004030ac
add esp, 8
test al, al
jne 0x403260
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x403260
lea eax, [ebp - 0x108]
push eax
call fcn.0040308b
add esp, 4
test eax, eax
je 0x403260
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea ebx, [eax + 0x3e8]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, ebx
jae 0x4032a1
call fcn.00401c56
lea eax, [ebp - 0x108]
push eax
call fcn.0040308b
add esp, 4
test eax, eax
jne 0x40323e
lea eax, [ebp - 0x248]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403151
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x4032a3
push 0
push str.WinZip_Self_Extractor
push 0x13
call fcn.0040107b
push eax
push dword [0x407570]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403457
Capabilities:
Encode data using xor

Disassembly:
push esi
xor eax, eax
push edi
cmp dword [0x4073fe], eax
ja 0x40346d
mov dword [0x4073dc], eax
jmp 0x4034f0
mov esi, 0x800
cmp dword [0x4073fe], esi
ja 0x403480
mov esi, dword [0x4073fe]
push esi
mov eax, dword [0x4073d8]
push eax
push dword [0x406834]
call dword [sym.imp.KERNEL32.dll__lread]
mov dword [0x4073dc], eax
cmp eax, esi
je 0x4034a1
call fcn.00401869
mov eax, dword [0x4073dc]
mov ecx, dword [0x4073d8]
sub dword [0x4073fe], eax
mov dword [0x40740c], ecx
cmp dword [0x406838], 0
je 0x4034e5
mov esi, ecx
lea edi, [eax - 1]
test eax, eax
je 0x4034e5
call fcn.00404ab9
xor byte [esi], al
movzx eax, byte [esi]
push eax
inc esi
call fcn.00404ad2
add esp, 4
mov eax, edi
dec edi
test eax, eax
jne 0x4034ca
mov eax, dword [0x4073dc]
dec dword [0x4073dc]
pop edi
pop esi
ret
Function at 0x404ad2
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [esp + 4]
mov edx, 0xff
xor eax, dword [0x406e90]
mov ecx, dword [0x406e90]
shr ecx, 8
and eax, edx
mov eax, dword [eax*4 + 0x406ec0]
xor eax, ecx
mov dword [0x406e90], eax
and eax, edx
add dword [0x406e94], eax
mov eax, dword [0x406e94]
imul eax, eax, 0x8088405
inc eax
mov ecx, dword [0x406e98]
shr ecx, 8
mov dword [0x406e94], eax
shr eax, 0x18
xor eax, dword [0x406e98]
and eax, edx
mov eax, dword [eax*4 + 0x406ec0]
xor eax, ecx
mov dword [0x406e98], eax
ret

Function at 0x404bc7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov eax, dword [0x406840]
mov ebp, esp
sub esp, 0xc
push esi
push edi
push eax
call fcn.00404b36
add esp, 4
lea ecx, [ebp - 0xc]
xor edi, edi
push 0xc
push dword [ebp + 8]
push ecx
call section..text
add esp, 0xc
lea esi, [ebp + edi - 0xc]
call fcn.00404ab9
inc edi
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.00404ad2
add esp, 4
cmp edi, 0xc
jl 0x404bf0
cmp dword [0x40683c], 0
movzx cx, byte [ebp - 1]
je 0x404c31
mov ax, word [0x4073f6]
shr ax, 8
cmp ax, cx
je 0x404c43
mov eax, 0xffffffff
jmp 0x404c45
mov eax, dword [0x4073fa]
shr eax, 0x18
cmp ax, cx
mov eax, 0xffffffff
jne 0x404c45
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41b8a8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x41b8b7
pop dword [ebp - 0x38]
mov eax, 0x41b8b7
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x3cf7b
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0x2112b694
sub ecx, 0x211276d7
xor edi, edi
add edi, eax
mov esi, 0xc00afbec
sub esi, 0xbfc7a7ec
add esi, dword [ebp - 0x38]
mov ebx, 0x19188f71
sub dword [ebp - 4], esi
mov edx, dword [esi]
add dword [ebp - 0x10], 0xf4c8b985
add edx, ebx
sub dword [ebp - 0x18], 0x7153991c
mov dword [edi], edx
xor dword [ebp - 0x10], 0x8279af69
add edi, 0x8a348b86
sub edi, 0x8a348b82
add esi, 0xa2459215
add esi, 0x5dba6def
loop 0x41b908
add eax, 0xf1c7
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x401aa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xfc
mov edi, dword [0x405094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x401c60
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x405094]
movzx eax, al
bt eax, esi
jae 0x401cc0
mov ecx, dword [0x405084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x401b65
test byte [0x402018], 8
jne 0x401c00
lea ebx, [ebp - 0xe0]
mov edi, ebx
test byte [0x402028], 8
jne 0x401bb0
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 0x401b34
cmp esi, 3
jbe 0x401b70
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]
add esp, 0xfc
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 + 0x4030e8]
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 0x401b34
mov ecx, dword [0x405094]
test ecx, ecx
je 0x401ca0
mov dword [esp], 0x402028
call dword [0x405094]
test al, 8
je 0x401b0b
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 0x401b0b
mov ebx, dword [0x405094]
test ebx, ebx
je 0x401c80
mov dword [esp], 0x402018
call dword [0x405094]
test al, 8
je 0x401af6
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [ebp - 0xe0]
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 0x401afe
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x405094
call sym._load_func.part.0
jmp 0x401abd
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x405094
call sym._load_func.part.0
jmp 0x401c0a
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x405094
call sym._load_func.part.0
jmp 0x401bbe
mov eax, 0xffffffff
jmp 0x401b65
Function at 0x401e20
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop

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 0x100ee8c9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10167378]
jne 0x100ee8d3
repz ret
jmp fcn.100f4da6

Function at 0x100fbe8f
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.100ee9e6
and dword [ebp - 4], 0
cmp dword [0x1016945c], 0
mov ebx, eax
jne 0x100fbf40
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100fbff1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x100fbff1
push eax
call fcn.100ee974
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1016945c], eax
call esi
push eax
call fcn.100ee974
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10169460], eax
call esi
push eax
call fcn.100ee974
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10169464], eax
call esi
push eax
call fcn.100ee974
pop ecx
mov dword [0x1016946c], eax
test eax, eax
je 0x100fbf40
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100ee974
pop ecx
mov dword [0x10169468], eax
mov eax, dword [0x10169468]
cmp eax, ebx
je 0x100fbf98
cmp dword [0x1016946c], ebx
je 0x100fbf98
push eax
call fcn.100ee9ef
push dword [0x1016946c]
mov esi, eax
call fcn.100ee9ef
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100fbf98
test edi, edi
je 0x100fbf98
call esi
test eax, eax
je 0x100fbf8f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100fbf8f
test byte [ebp - 0xc], 1
jne 0x100fbf98
or dword [ebp + 0x10], 0x200000
jmp 0x100fbfd1
mov eax, dword [0x10169460]
cmp eax, ebx
je 0x100fbfd1
push eax
call fcn.100ee9ef
pop ecx
test eax, eax
je 0x100fbfd1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100fbfd1
mov eax, dword [0x10169464]
cmp eax, ebx
je 0x100fbfd1
push eax
call fcn.100ee9ef
pop ecx
test eax, eax
je 0x100fbfd1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1016945c]
call fcn.100ee9ef
pop ecx
test eax, eax
je 0x100fbff1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100fbff3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret