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

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x67affb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x67b035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.0067ae00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x67afc5
mov edi, 0x6958b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x67b035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0067ae00
add edi, 4
add esp, 0xc
cmp edi, 0x6958c0
jb 0x67b000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x67b070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.00681082
mov esi, eax
add esp, 8
test esi, esi
je 0x67b107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x67b102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00680946
add esp, 8
test eax, eax
je 0x67b0e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x67b0e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00680946
add esp, 8
test eax, eax
jne 0x67b0c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x67b102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x67bf10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x6909fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x67c002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.0067fdff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x67c002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.006776e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0068020b
push 0x10
call fcn.006801d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x67bfc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.0066c1c0
jmp 0x67bfc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.0067bb80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x67bff0
mov ecx, edi
call fcn.0066c2c0
push edi
call fcn.006801c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x67c021
inc ebx
cmp ebx, 0x20
jb 0x67bf3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x67d250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x691808
push 0x681288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x67d329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x67d329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.006801d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x67d329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x67d329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x67d32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.0067d351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x67dd20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x67dd58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x67dd60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x67dd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x67dd94
push eax
push esi
call fcn.0068020b
add esp, 8
pop esi
ret 0x10

Function at 0x67dda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x67de22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x67de15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x696320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0067fdff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x67ddda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x67de30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x67dec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x67deb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x696320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0067fdff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x67deab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x67de6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x67e000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x67e131
push esi
call fcn.00681145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00670080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x67e131
push 0
push ebp
call fcn.006703a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00670260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x67e08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.006702f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x67e121
push 0x696918
push edi
call fcn.0067f3f0
push eax
push ebx
push esi
call fcn.0067df60
push 0x6968f8
push edi
call fcn.0067f3f0
push eax
push ebx
push esi
call fcn.0067df60
push 0x6968d8
push edi
call fcn.0067f3f0
push eax
push ebx
push esi
call fcn.0067df60
push 0x6968c0
push edi
call fcn.0067f3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.0067df60
push 0x6968a0
push edi
call fcn.0067f3f0
push eax
push ebx
push esi
call fcn.0067df60
push 0x696888
push edi
call fcn.0067f3f0
push eax
push ebx
push esi
call fcn.0067df60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x67f1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.0067f140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0067f140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0067f140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0067f140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x67fbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x67fc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x69187c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x67fc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x67fc52
xor eax, eax
pop esi
leave
ret 4

Function at 0x419b00
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0xa56218a8
sbb eax, 0xa054bd
xlatb
and al, 0x53
xor ah, dh
fcomp qword [edi + 0xb8270fd]
cmc
sub eax, 0x3d0774e4
sbb byte [edi + 0x17], bl
aaa
xor ecx, edx
jecxz 0x419b1c
jl 0x419b5b
mov dword [0x7e9c2ec7], eax
inc edi
out 0xd0, eax
mov edi, dword [esi]
sbb esi, dword [edx]
int 0xcf
rcl byte [eax]
fiadd dword [ebp + 0x12]
jecxz 0x419b69
sbb al, byte [eax + eax + 0x74000000]
stc
test byte [eax], al
add byte [eax], al
add byte [ecx + edi*8 - 0x43], dh
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
invalid
jp 0x419b0c
je 0x419afb
mov ebp, 0x7731d031
add dword [eax], eax
call 0xab419b88
jae 0x419b16
add byte [ebx + 0x26000673], ch
add byte [esi], ah
add eax, 0x31a8d00
add byte [ecx], ch
cdq
sub byte [0x45157ab7], 0x2e
loopne 0x419abf
add eax, dword [eax]
sub dword [ecx + 0x7ab72d82], ebx
mov bh, 0x7a
adc eax, 0x9ce02e45
int 0x9e
fimul dword [ebp - 0x7d]
shr byte [edx - 0x675b92], 0xf3
ja 0x419b81
leave
inc edi
hlt
jge 0x419bb6
outsd dx, dword [esi]
dec eax
mov bl, dh
xor esi, ebp
aas
wait
sbb ebx, ebx
std
clc
into
ret 0xab06
salc
adc eax, 0xe3fec155
mov dword [0x7160e872], eax
and dword gs:[eax], ebx
lea ebp, [edx]
lea eax, [eax]
cmpsd dword [esi], dword es:[edi]
std
mov ebp, 0x4b70e31b
dec edi
sbb ch, cl
mov eax, 0xdabfde48
hlt
int 0xf8
scasb al, byte es:[edi]
xor ebx, dword [ebx + 0x54]
ret
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x10002290
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
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 0x100022e8
cmp byte [esi + ebx - 1], 0xa
je 0x100022bc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x100110a4], 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]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10002940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xfc
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x10002b18
mov edi, dword [0x100110a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x10002a27
test byte [0x10003040], 8
jne 0x10002ac0
lea ebx, [ebp - 0xe0]
mov edi, ebx
test byte [0x10003050], 8
jne 0x10002a80
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 sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x100029c9
cmp esi, 3
jbe 0x10002a38
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x100029da
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 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 + 0x1000d170]
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 0x100029c9
mov dword [esp], 0x10003050
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x100029a0
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 sym._sprintf
add edi, eax
jmp 0x100029a0
mov dword [esp], 0x10003040
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x1000298b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xe0]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x10002993
mov eax, 0xffffffff
jmp 0x10002a27
Function at 0x4084e0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [edx]
push edi
mov edi, dword [esp + 0x14]
mov ecx, esi
xor ecx, eax
and ecx, 0xff
shr esi, 8
mov ecx, dword [edi + ecx*4]
xor ecx, esi
mov esi, dword [edx + 4]
mov dword [edx], ecx
and ecx, 0xff
add ecx, esi
mov esi, dword [edx + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov ebx, esi
mov dword [edx + 4], ecx
and ebx, 0xff
shr ecx, 0x18
xor ecx, ebx
shr esi, 8
mov ecx, dword [edi + ecx*4]
pop edi
xor ecx, esi
pop esi
mov dword [edx + 8], ecx
pop ebx
ret
Function at 0x409730
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0xc
cmp eax, 0xc
jge 0x409742
xor eax, eax
add esp, 0xc
ret
mov eax, dword [0x419e3c]
inc eax
cmp eax, 1
mov dword [0x419e3c], eax
jne 0x409767
push 0
call fcn.0040baa6
xor eax, 0xbb40e64e
push eax
call fcn.0040ba7e
add esp, 8
mov eax, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov edi, dword [esp + 0x30]
push edi
push ebp
push eax
call fcn.004098a0
add esp, 0xc
xor esi, esi
call fcn.0040ba88
mov ebx, eax
push edi
sar ebx, 7
push ebp
and ebx, 0xff
call fcn.00409880
push ebx
push edi
push ebp
mov dword [esp + 0x3c], eax
call fcn.004084e0
mov dl, byte [esp + 0x3c]
add esp, 0x14
xor bl, dl
mov byte [esp + esi + 0x10], bl
inc esi
cmp esi, 0xa
jl 0x409784
mov ecx, dword [esp + 0x20]
push edi
push ebp
push ecx
call fcn.004098a0
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x1c]
add esp, 0xc
xor esi, esi
sub eax, edx
mov dword [esp + 0x20], eax
push edi
push ebp
call fcn.00409880
mov bl, byte [esp + esi + 0x18]
mov dword [esp + 0x30], eax
mov eax, ebx
and eax, 0xff
push eax
push edi
push ebp
call fcn.004084e0
mov dl, byte [esp + 0x3c]
mov ecx, dword [esp + 0x34]
add esp, 0x14
xor bl, dl
add ecx, esi
inc esi
cmp esi, 0xa
mov byte [esp + ecx + 0x10], bl
jl 0x4097d9
push edi
push ebp
call fcn.00409880
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
shr ebx, 0x10
mov edx, ebx
and edx, 0xff
push edx
push edi
push ebp
call fcn.004084e0
mov al, byte [esp + 0x3c]
push edi
xor bl, al
mov eax, dword [esp + 0x3c]
push ebp
mov byte [esi + eax], bl
inc esi
call fcn.00409880
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x44], eax
shr ebx, 0x18
push ebx
push edi
push ebp
call fcn.004084e0
mov al, byte [esp + 0x50]
mov ecx, dword [esp + 0x4c]
add esp, 0x28
xor bl, al
mov byte [esi + ecx], bl
lea eax, [esi + 1]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x409b90
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x4090]
test eax, eax
je 0x409bfb
mov eax, dword [esi + 0x6c]
test eax, eax
jbe 0x409bfb
mov eax, 0xffffff78
push ebx
push ebp
sub eax, esi
push edi
lea ebp, [esi + 0x4094]
lea edi, [esi + 0x88]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x40a0]
push eax
push ebp
call fcn.00409880
mov edx, dword [esi + 0x40a0]
xor ecx, ecx
mov cl, byte [edi]
mov ebx, eax
push ecx
push edx
push ebp
call fcn.004084e0
mov al, byte [edi]
add esp, 0x14
xor al, bl
mov byte [edi], al
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0x6c]
inc edi
add eax, edi
cmp eax, ecx
jb 0x409bc0
pop edi
pop ebp
pop ebx
mov ecx, dword [esi + 0x6c]
mov eax, dword [esi + 0x20]
lea edx, [esi + 0x88]
push ecx
mov ecx, dword [esi + 0x1c]
push edx
push eax
push ecx
call dword [esi + 8]
mov ecx, dword [esi + 0x6c]
add esp, 0x10
cmp eax, ecx
je 0x409c27
mov dword [esi + 0x6c], 0
or eax, 0xffffffff
pop esi
ret
mov dword [esi + 0x6c], 0
xor eax, eax
pop esi
ret
Function at 0x40ab90
Capabilities:
Copy file

Disassembly:
push esi
mov esi, ecx
push edi
push 0
lea edi, [esi + 0x104]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x40abad
pop edi
xor al, al
pop esi
ret
push 0x4173a4
push edi
call fcn.0040b56f
add esp, 8
mov dword [0x41a104], eax
test eax, eax
jne 0x40abc9
pop edi
xor al, al
pop esi
ret
push 2
push 0
push eax
call fcn.0040b9f2
mov eax, dword [0x41a104]
push eax
call fcn.0040b3f7
add esp, 0x10
mov dword [esi + 0x208], eax
mov al, 1
pop edi
pop esi
ret

Function at 0x40ac40
Capabilities:
Check if file exists

Disassembly:
mov edx, dword [esp + 4]
sub esp, 8
test edx, edx
push esi
push edi
mov esi, ecx
je 0x40ac72
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40ac72
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40ac72
pop edi
xor al, al
pop esi
add esp, 8
ret 4
add esi, 0x104
push 0x417380
push esi
call fcn.0040b56f
mov edi, eax
add esp, 8
test edi, edi
jne 0x40ac96
pop edi
xor al, al
pop esi
add esp, 8
ret 4
push 2
push 0xfffffffffffffff5
push edi
call fcn.0040b9f2
add esp, 0xc
test eax, eax
je 0x40acba
push edi
call fcn.0040b826
add esp, 4
xor al, al
pop edi
pop esi
add esp, 8
ret 4
push ebx
push edi
call fcn.0040b3f7
push edi
push 4
lea eax, [esp + 0x24]
push 1
push eax
call fcn.0040b73e
push edi
push 7
lea ecx, [esp + 0x28]
push 1
push ecx
mov byte [esp + 0x37], 0
call fcn.0040b73e
add esp, 0x24
mov esi, str._faSig_
lea eax, [esp + 0xc]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40ad18
test cl, cl
je 0x40ad14
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40ad18
add eax, 2
add esi, 2
test cl, cl
jne 0x40acf0
xor eax, eax
jmp 0x40ad1d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
pop ebx
je 0x40ad35
push edi
call fcn.0040b826
add esp, 4
xor al, al
pop edi
pop esi
add esp, 8
ret 4
mov eax, dword [esp + 0x14]
push 0
push eax
push edi
call fcn.0040b9f2
add esp, 0xc
test eax, eax
je 0x40ad5c
push edi
call fcn.0040b826
add esp, 4
xor al, al
pop edi
pop esi
add esp, 8
ret 4
mov dword [0x41a104], edi
pop edi
mov al, 1
pop esi
add esp, 8
ret 4
Function at 0x40f3b9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x419948
cmp edx, dword [eax]
je 0x40f3db
add eax, 8
inc ecx
cmp eax, 0x4199d8
jl 0x40f3cc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x419948]
jne 0x40f509
mov eax, dword [0x419ed8]
cmp eax, 1
je 0x40f4e3
test eax, eax
jne 0x40f40c
cmp dword [0x417638], 1
je 0x40f4e3
cmp edx, 0xfc
je 0x40f509
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40f443
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040c880
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040eb20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40f486
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040eb20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41660c
push edi
call fcn.0040aec0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040c880
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040c890
lea eax, [ebp - 0xa0]
push 0x4165ec
push eax
call fcn.0040c890
push dword [esi + 0x41994c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040c890
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00410b4b
add esp, 0x2c
pop edi
jmp 0x40f509
lea eax, [ebp + 8]
lea esi, [esi + 0x41994c]
push 0
push eax
push dword [esi]
call fcn.0040eb20
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x41076b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x7001c297
xor ecx, ebp
loop 0x410773
pop ebp
ret