joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c14f7
Capabilities:
Execute anti-debugging instructions

Disassembly:
push word [esp + 3]
mov bx, di
rdtsc
xchg dword [esp + 2], esi
jmp 0x5c14d3
xchg ch, dl
xchg byte [esp], cl
push dword [esp + 4]
setae dh
mov word [esp + 8], dx
cmc
jmp 0x5c14b3
sub esp, 0x14
add esp, 0x1d
mov bx, di
pop word [esp]
add esp, 1
mov edi, ecx
jmp 0x5c147e
pop dword [esp + 2]
push dword [esp + 4]
bsr bp, cx
btr esi, edx
push word [esp + 3]
pop word [esp + 5]
jmp 0x5c1526
xchg word [esp + 7], bx
xchg si, bp
xchg dword [esp + 8], esi
inc esi
mov byte [esp + 0xc], dh
lea edx, [ecx*4]
jmp 0x5c149f
push esp
mov byte [esp + 4], ch
mov word [esp], bx
mov ax, di
push word [esp + 0xf]
jmp 0x5c141b
push esp
mov ch, byte [esp + 5]
xchg word [esp + 0xb], cx
cpuid
xchg ah, bl
pop eax
jmp 0x5c156f
cpuid
mov esi, eax
mov bh, byte [esp + 0xb]
pop ax
setge dh
lea eax, [ebp*4]
jmp 0x5c150d
inc esi
setg ch
pop si
push edx
mov bp, 0xcbf5
mov byte [esp + 3], dh
jmp 0x5c1587
bswap edx
pop word [esp + 3]
pop edi
neg edi
xchg dh, al
lea eax, [edi*4]
jmp 0x5c153c
xchg dx, si
mov word [esp + 6], sp
mov bp, bx
mov bh, byte [esp + 3]
rdtsc
add cx, 0xdfc6
jmp 0x5c1556
xchg dword [esp], ebp
xchg dword [esp], esi
lea eax, [eax - 0x19]
bsf ax, si
btr edi, edx
mov dh, byte [esp + 5]
jmp 0x5c1f4c
sub esp, 0xe
call 0x5c15d6
mov ebp, 0xdae84d3e
mov edi, ebp
mov dword [esp + 7], esi
pop eax
mov word [esp + 4], dx
mov bx, word [esp + 0xc]
jmp 0x5c16a4
mov ax, sp
cpuid
rdtsc
cpuid
cmc
cmc
jmp 0x5c15ef
lea esp, [esp + 3]
lea esp, [esp + 4]
popfd
jmp 0x5c168b
pop word [esp + 0x11]
mov word [esp + 8], di
mov byte [esp + 0x15], dh
add esp, 1
add esp, 0x18
push word [esp + 2]
jmp 0x5c1625
push dword [esp + 5]
pop dword [esp + 0xa]
pop word [esp + 0x1b]
pop dword [esp + 0xc]
jmp 0x5c16b3
pushal
pushal
mov word [esp + 0x28], di
lea esp, [esp + 0x13]
mov byte [esp + 3], ch
jmp 0x5c165c
lea esp, [esp + 4]
jmp 0x5c1673
cpuid
lea esp, [esp + 0x10]
popal
pushal
cmc
mov byte [esp + 7], bh
jmp 0x5c1641
pop word [esp + 7]
pop dword [esp + 4]
push esp
call fcn.005c17a3
inc eax
enter 0x395e, 0xffffffffffffffc8
sbb al, 0xee
cmc
pushfd
outsd dx, dword [esi]
sbb byte [eax], 0x96
add al, 0x63
sahf
jo 0x5c165c
cpuid
mov di, word [esp]
bswap esi
bsf cx, si
mov word [esp], bx
cpuid
jmp 0x5c1618
xchg ebx, esi
xchg byte [esp], al
btr ebx, edx
cpuid
mov ax, bx
bsr bp, cx
jmp 0x5c16d5
cld
popal
pop ecx
mov al, ah
ror ch, 5
xchg word [esp], di
jmp 0x5c17ca
mov eax, 0xba321408
xchg byte [esp + 4], dl
pushal
rdtsc
mov dh, byte [esp + 0xf]
rdtsc
jmp 0x5c1b48

Function at 0x5c1803
Capabilities:
Parse pe header

Disassembly:
mov byte [esp + 1], dh
lea esp, [esp + 1]
push word [esp + 1]
push word [esp + 3]
mov word [esp], bx
mov word [esp + 2], dx
jmp 0x5c180d
mov byte [esp + 2], ch
lea esp, [esp + 1]
jmp 0x5c17e0
push word [esp + 1]
lea esp, [esp + 7]
lea esp, [esp]
lea esp, [esp + 1]
mov dword [esp + 0xc8], edi
jmp 0x5c186c
lea esp, [esp + 0xc8]
mov eax, dword fs:[0x30]
jmp 0x5c1844
Function at 0x5c188d
Capabilities:
Parse pe header

Disassembly:
call 0x5bf08e
jmp 0x5c18e9
pop dword [esp + 5]
mov word [esp + 0xd], bx
lea esp, [esp + 1]
mov dword [esp + 0xcc], esi
call fcn.005c1803
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
jmp 0x5c1852
mov eax, dword [eax + 8]
push eax
jmp 0x5bf089
lea esp, [esp + 7]
pushal
pop dword [esp + 0xd]
jmp 0x5c182b
pop eax
xor ax, ax
Function at 0x401047
Capabilities:
Set current directory

Disassembly:
push esi
push edi
push dword [esp + 0xc]
call fcn.004041a9
pop ecx
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea edi, [eax - 1]
neg edi
sbb edi, edi
neg edi
test esi, esi
je 0x401076
push dword [esp + 0xc]
call fcn.00401e62
pop ecx
mov eax, edi
pop edi
pop esi
ret

Function at 0x40130c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4241a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov word [ebp - 0xb], 0x5c3a
mov byte [ebp - 9], 0
mov al, byte [eax]
mov byte [ebp - 0xc], al
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
xor ecx, ecx
inc ecx
cmp ecx, eax
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.0040896e
mov esp, ebp
pop ebp
ret 4

Function at 0x401974
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [0x427d74]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x4019a1
push edi
mov edi, dword [esp + 0xc]
movzx ecx, byte [edi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x427380]
inc edi
sub esi, 1
jne 0x401988
pop edi
mov dword [0x427d74], edx
pop esi
ret
Function at 0x402e5f
Capabilities:
Query environment variable

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push 0x105
push esi
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x402e82
cmp byte [esi], 0
je 0x402e82
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x402ed0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x5ac]
sub esp, 0x62c
mov eax, dword [0x4241a4]
xor eax, ebp
mov dword [ebp + 0x5a8], eax
mov eax, dword [ebp + 0x5b4]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7c]
push eax
push str..wzcloudOpenWithProgids
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x402f13
xor eax, eax
jmp 0x403084
push esi
push edi
xor esi, esi
mov dword [ebp - 0x78], 0x104
push 0x208
lea eax, [ebp + 0x3a0]
mov edi, esi
push esi
push eax
call fcn.00403792
add esp, 0xc
lea eax, [ebp - 0x78]
push esi
push esi
push esi
push esi
push eax
lea eax, [ebp + 0x3a0]
push eax
push esi
jmp 0x403061
inc edi
cmp dword [ebp - 0x78], 4
jle 0x403051
push 4
lea eax, [ebp + 0x3a0]
push str.AppX
push eax
call fcn.0040c1b8
add esp, 0xc
test eax, eax
jne 0x403051
push 0x208
lea eax, [ebp + 0x198]
push esi
push eax
call fcn.00403792
push 0x208
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.00403792
lea eax, [ebp + 0x3a0]
mov dword [ebp - 0x74], 0x208
push eax
push str._sApplication
lea eax, [ebp + 0x198]
push 0x104
push eax
call fcn.004045b5
add esp, 0x28
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push 2
push str.AppUserModelID
lea eax, [ebp + 0x198]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x403051
push str.WinZipComputing.WinZipDesktop
call fcn.0040be62
push eax
lea eax, [ebp - 0x70]
push str.WinZipComputing.WinZipDesktop
push eax
call fcn.0040c1b8
add esp, 0x10
test eax, eax
jne 0x403051
lea eax, [ebp + 0x3a0]
push eax
push str._sShellopen
lea eax, [ebp + 0x198]
push 0x104
push eax
call fcn.004045b5
mov eax, dword [ebp + 0x5b8]
add esp, 0x10
add eax, eax
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x80]
lea eax, [ebp + 0x198]
push esi
push 2
push str.PackageRelativeExecutable
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x403074
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x3a0]
push eax
push edi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x402f4a
jmp 0x403077
xor esi, esi
inc esi
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp + 0x5a8]
xor ecx, ebp
call fcn.0040896e
lea esp, [ebp + 0x5ac]
pop ebp
ret
Function at 0x403099
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4241a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0xc]
push eax
call fcn.0040c440
pop ecx
cmp eax, 8
jae 0x40315c
push esi
xor esi, esi
lea eax, [ebp - 0x2c]
push esi
push esi
push esi
push esi
push esi
push 0x20
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x4030fc
mov eax, 0xffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040896e
mov esp, ebp
pop ebp
ret 4
push 7
lea eax, [ebp - 0x2c]
push str.PKBACK
push eax
call fcn.00403745
add esp, 0xc
test eax, eax
jne 0x4030e6
mov cl, byte [ebp - 0x2c]
lea eax, [ebp - 0x2c]
jmp 0x403128
cmp cl, 0x2e
je 0x40312c
cmp cl, 0x20
je 0x40312c
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x40311b
cmp byte [eax], 0
je 0x4030e6
mov cl, byte [eax]
cmp cl, 0x30
jb 0x40313d
cmp cl, 0x39
jbe 0x403151
inc eax
jmp 0x403131
movzx ecx, cl
sub ecx, 0x30
imul esi, esi, 0xa
cmp ecx, 9
ja 0x403157
add esi, ecx
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x403140
mov ax, si
jmp 0x4030eb
push 0x41d
push str.sfxhead.c
call fcn.00404482
int3

Function at 0x403946
Capabilities:
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
xor ecx, ecx
push esi
push 8
add edx, edx
pop esi
sar edx, 1
mov eax, ecx
xor eax, edx
shr ecx, 1
test al, 1
je 0x403964
xor ecx, 0xedb88320
dec esi
test esi, esi
jg 0x403952
mov eax, ecx
pop esi
ret 4
Function at 0x404207
Capabilities:
Log keystrokes via polling
Query or enumerate registry value

Disassembly:
sub esp, 0x628
mov eax, dword [0x4241a4]
xor eax, esp
mov dword [esp + 0x624], eax
push ebx
push edi
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x404343
push 0x105
mov ebx, 0x4278e0
push ebx
call fcn.00405fd1
pop ecx
pop ecx
lea eax, [esp + 8]
mov edi, 0x209
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0xc], edi
push eax
push str.winzip_shellopencommand
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
je 0x4042a1
lea eax, [esp + 0x420]
push 0x104
push eax
call fcn.00402ed0
pop ecx
pop ecx
test eax, eax
je 0x404343
push ebx
lea eax, [esp + 0x424]
push eax
push str.WinZipUWPHelper.exe_RunExe20083F0D_D8B0_49E2_B454_D6DA05DFFB81_s20083F0D_D8B0_49E2_B454_D6DA05DFFB81__s_
lea eax, [esp + 0x18]
push edi
push eax
call fcn.004045b5
add esp, 0x14
jmp 0x4042f1
cmp word [esp + 0xc], 0
push esi
lea esi, [esp + 0x10]
je 0x4042ce
push ebp
xor ebp, ebp
push 4
push str.___1
push esi
call fcn.0040c1b8
add esp, 0xc
test eax, eax
je 0x4042cd
add esi, 2
cmp word [esi], bp
jne 0x4042b1
pop ebp
lea ecx, [esp + 0x10]
mov eax, esi
sub eax, ecx
add eax, 2
push ebx
sar eax, 1
sub edi, eax
lea eax, [esi + 2]
push str.__s_
push edi
push eax
call fcn.004045b5
add esp, 0x10
pop esi
mov eax, dword [0x424040]
test eax, 0x1000
je 0x404327
test eax, 0x8000
jne 0x404327
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x7a
pop ecx
push 0x69
lea eax, [esp + eax*2 + 8]
mov word [eax], cx
pop ecx
mov word [eax + 2], cx
push 0x70
pop ecx
mov word [eax + 4], cx
push 0xffffffffffffffff
lea eax, [esp + 0x10]
push 0x41c554
push eax
call fcn.004045d1
add esp, 0xc
neg eax
sbb eax, eax
neg eax
jmp 0x404369
push 0
push 0x7d0
call fcn.004037c0
push eax
push 0x40e
call fcn.004037c0
push eax
push dword [0x427358]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
mov ecx, dword [esp + 0x62c]
pop edi
pop ebx
xor ecx, esp
call fcn.0040896e
add esp, 0x628
ret
Function at 0x404482
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x11c]
sub esp, 0x19c
mov eax, dword [0x4241a4]
xor eax, ebp
mov dword [ebp + 0x118], eax
mov eax, dword [0x424b48]
mov ecx, eax
mov edx, dword [ebp + 0x124]
inc eax
mov dword [0x424b48], eax
push esi
test ecx, ecx
je 0x4044bd
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [ebp + 0x128]
push edx
push 0x7d4
call fcn.004037c0
push eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x30
push 0x7d0
call fcn.004037c0
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [0x427358]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0x20
push 2
push 0
push 1
push 0x40000000
push str.WZSFX32.RPT
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4044b5
push 0x41c5bc
lea eax, [ebp - 0x7c]
push 0x191
push eax
call fcn.0040c3cd
add esp, 0xc
lea eax, [ebp - 0x80]
push 0
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0040c440
pop ecx
push eax
lea eax, [ebp - 0x7c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.00403bc3
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.WZSFX32.RPT
push 0x7d1
call fcn.004037c0
push eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x30
push 0x7d0
call fcn.004037c0
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [0x427358]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4044b5
Function at 0x4045d1
Capabilities:
Create process on windows

Disassembly:
sub esp, 0xfe8
mov eax, dword [0x4241a4]
xor eax, esp
mov dword [esp + 0xfe4], eax
push ebx
mov ebx, dword [esp + 0xff0]
lea eax, [esp + 0xa20]
push ebp
mov ebp, dword [esp + 0xffc]
push esi
mov esi, dword [esp + 0xffc]
push edi
push ebx
push 0x2e3
push eax
call fcn.0040bcdc
xor edi, edi
add esp, 0xc
cmp word [esi], di
je 0x404648
push 0x41c308
lea eax, [esp + 0xa30]
push 0x2e3
push eax
call fcn.0040bcdc
push esi
lea eax, [esp + 0xa3c]
push 0x2e3
push eax
call fcn.0040bc67
add esp, 0x18
cmp ebp, 0xffffffff
jne 0x4046a0
push 0x10
lea eax, [esp + 0x14]
push edi
push eax
call fcn.00403792
push 0x44
pop edi
push edi
xor ecx, ecx
lea eax, [esp + 0x30]
push ecx
push eax
call fcn.00403792
add esp, 0x18
mov dword [esp + 0x20], edi
lea eax, [esp + 0x10]
xor edi, edi
push eax
lea eax, [esp + 0x24]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [esp + 0xa4c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4046a0
mov eax, dword [esp + 0x10]
jmp 0x4047d8
lea eax, [esp + 0x464]
push eax
push edi
push ebx
call dword [sym.imp.SHELL32.dll_FindExecutableW]
mov edi, eax
cmp edi, 0x1f
jne 0x404717
mov ebp, 0x100
lea eax, [esp + 0x64]
push ebp
push eax
push 0xffffffffffffffff
push 0x427
call fcn.004037c0
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edi, edi
push eax
push edi
push edi
call esi
push ebx
lea eax, [esp + 0x68]
push eax
lea eax, [esp + 0x46c]
push 0x2e3
push eax
call fcn.004045b5
add esp, 0x10
lea eax, [esp + 0x264]
push ebp
push eax
push 0xffffffffffffffff
push 0x7d0
call fcn.004037c0
push eax
push edi
push edi
call esi
push 0x10
jmp 0x4047ba
cmp edi, 0x20
jbe 0x40475d
xor eax, eax
xor ecx, ecx
cmp word [esi], cx
push 1
cmovne eax, esi
push ecx
push eax
mov eax, dword [0x424040]
and eax, 0x20000
neg eax
push ebx
sbb eax, eax
and eax, 0x41c30c
push eax
push dword [0x427358]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edi, eax
test ebp, ebp
je 0x404754
mov dword [ebp], edi
cmp edi, 0x20
jbe 0x40475d
mov eax, edi
jmp 0x4047d8
mov ebp, 0x100
lea eax, [esp + 0x64]
push ebp
push eax
push 0xffffffffffffffff
push 0x400
call fcn.004037c0
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
xor eax, eax
push eax
push eax
call esi
push ebx
push edi
lea eax, [esp + 0x6c]
push eax
lea eax, [esp + 0x470]
push 0x2e3
push eax
call fcn.004045b5
add esp, 0x14
lea eax, [esp + 0x264]
push ebp
push eax
push 0xffffffffffffffff
push 0x7d0
call fcn.004037c0
push eax
xor ebx, ebx
push ebx
push ebx
call esi
push ebx
lea eax, [esp + 0x268]
push eax
lea eax, [esp + 0x46c]
push eax
push dword [0x427358]
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [esp + 0xff4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040896e
add esp, 0xfe8
ret
Function at 0x4049b2
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
sub esp, 0x220
lea ebp, [esp - 4]
mov eax, dword [0x4241a4]
xor eax, ebp
mov dword [ebp + 0x220], eax
push 0x140
mov eax, 0x41b0c3
call fcn.00408a27
mov esi, dword [ebp + 0x22c]
lea eax, [ebp + 0x18]
push 0x104
push 0
push eax
call fcn.00403792
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x4049fc
mov eax, dword [esi]
jmp 0x4049fe
mov eax, esi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineA]
push 0x41c5c0
push eax
lea eax, [ebp + 0x18]
push eax
call ebx
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x404b10
push 0x104
lea eax, [ebp + 0x11c]
push 0
push eax
call fcn.00403792
add esp, 0xc
test byte [ebp - 0x14c], 0x10
je 0x404ac9
lea eax, [ebp - 0x120]
push 0x41c584
push eax
call fcn.0040efa0
pop ecx
pop ecx
test eax, eax
je 0x404af3
lea eax, [ebp - 0x120]
push 0x41c5c4
push eax
call fcn.0040efa0
pop ecx
pop ecx
test eax, eax
je 0x404af3
cmp dword [esi + 0x14], 0x10
jb 0x404a87
mov eax, dword [esi]
jmp 0x404a89
mov eax, esi
lea ecx, [ebp - 0x120]
push ecx
push eax
lea eax, [ebp + 0x11c]
push eax
call ebx
lea eax, [ebp + 0x11c]
push eax
lea ecx, [ebp]
call fcn.00404903
and dword [ebp - 4], 0
lea eax, [ebp]
push eax
call fcn.004049b2
or dword [ebp - 4], 0xffffffff
pop ecx
push 0
push 1
lea ecx, [ebp]
call fcn.00405515
jmp 0x404af3
cmp dword [esi + 0x14], 0x10
jb 0x404ad3
mov eax, dword [esi]
jmp 0x404ad5
mov eax, esi
lea ecx, [ebp - 0x120]
push ecx
push eax
lea eax, [ebp + 0x11c]
push eax
call ebx
lea eax, [ebp + 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x14c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x404a2c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x14], 0x10
jb 0x404b18
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x220]
xor ecx, ebp
call fcn.0040896e
lea esp, [ebp + 0x224]
pop ebp
ret
Function at 0x404b48
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0xa8]
sub esp, 0x128
mov eax, dword [0x4241a4]
xor eax, ebp
mov dword [ebp + 0xa4], eax
push esi
mov esi, dword [ebp + 0xb0]
cmp dword [esi + 0x14], 0x10
jb 0x404b74
mov eax, dword [esi]
jmp 0x404b76
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x404c0b
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
push edi
lea eax, [ebp + 0x84]
push 0x41c5c8
push eax
call fcn.004048c9
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x404bad
mov eax, dword [esi]
jmp 0x404baf
mov eax, esi
lea ecx, [ebp + 0x84]
push ecx
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x404bdc
inc edi
jmp 0x404b8e
xor edi, edi
lea eax, [ebp - 0x80]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp byte [ebp - 0x80], 0
je 0x404bfb
lea eax, [ebp - 0x80]
push eax
call fcn.0040c440
pop ecx
mov edi, eax
push edi
lea eax, [ebp - 0x80]
mov ecx, esi
push eax
call fcn.004057f1
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp + 0xa4]
xor ecx, ebp
pop esi
call fcn.0040896e
lea esp, [ebp + 0xa8]
pop ebp
ret

Function at 0x404c21
Capabilities:
Accept command line arguments

Disassembly:
push 0x20
mov eax, 0x41b0f6
call fcn.00408a5b
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x2c], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea ecx, [ebp - 0x2c]
mov ebx, 0x41c5cc
push ecx
push ebx
push eax
jmp 0x404c74
push eax
lea ecx, [ebp - 0x28]
call fcn.00404903
lea eax, [ebp - 0x28]
mov dword [ebp - 4], edi
push eax
mov ecx, esi
call fcn.00405ba0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
push edi
push 1
call fcn.00405515
lea eax, [ebp - 0x2c]
push eax
push ebx
push edi
call fcn.0040ef5c
add esp, 0xc
test eax, eax
jne 0x404c48
call fcn.00408a16
ret

Function at 0x404da5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x4241a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 0x103
jb 0x404dd9
xor eax, eax
jmp 0x404e52
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0x208
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
test eax, eax
je 0x404e26
cmp byte [ebp - 0x310], 0
jne 0x404e10
xor eax, eax
jmp 0x404e1d
lea eax, [ebp - 0x310]
push eax
call fcn.0040c440
pop ecx
push eax
lea eax, [ebp - 0x310]
jmp 0x404e47
cmp byte [ebp - 0x108], 0
jne 0x404e33
xor eax, eax
jmp 0x404e40
lea eax, [ebp - 0x108]
push eax
call fcn.0040c440
pop ecx
push eax
lea eax, [ebp - 0x108]
push eax
mov ecx, esi
call fcn.004057f1
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040896e
mov esp, ebp
pop ebp
ret
Function at 0x40615c
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [0x427c2e]
test edi, edi
jg 0x406172
and dword [0x427d68], 0
xor eax, eax
pop edi
ret
mov eax, 0x800
cmp edi, eax
push esi
cmova edi, eax
push edi
push dword [0x427d70]
push dword [0x424b20]
call dword [sym.imp.KERNEL32.dll__lread]
cmp dword [0x424b3c], 0
mov esi, eax
mov dword [0x427d68], esi
je 0x4061f0
cmp esi, 0xffffffff
je 0x4061f0
cmp esi, edi
je 0x406201
test esi, esi
js 0x4061f0
mov ax, word [0x424060]
push dword [0x424b40]
inc ax
movzx eax, ax
push eax
call fcn.0040398d
mov esi, dword [0x427d68]
test esi, esi
jne 0x4061ea
push edi
push dword [0x427d70]
push dword [0x424b20]
call dword [sym.imp.KERNEL32.dll__lread]
mov esi, eax
mov dword [0x427d68], esi
cmp esi, 0xffffffff
cmovne edi, esi
cmp esi, edi
je 0x406201
push 2
call fcn.00401729
mov esi, dword [0x427d68]
sub dword [0x427c2e], esi
cmp dword [0x424b30], 0
mov edi, dword [0x427d70]
mov dword [0x427d6c], edi
je 0x40623d
test esi, esi
je 0x40623d
call fcn.00408056
xor byte [edi], al
movzx eax, byte [edi]
push eax
call fcn.00408130
inc edi
pop ecx
sub esi, 1
jne 0x406220
mov esi, dword [0x427d68]
mov eax, esi
dec esi
mov dword [0x427d68], esi
pop esi
pop edi
ret
Function at 0x4080a8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4241a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [0x424b38]
mov esi, dword [ebp + 8]
call fcn.00408070
push 0xc
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.0040376e
add esp, 0x10
xor esi, esi
call fcn.00408056
movzx ecx, byte [ebp + esi - 0x10]
xor eax, ecx
mov byte [ebp + esi - 0x10], al
movzx eax, al
push eax
call fcn.00408130
inc esi
pop ecx
cmp esi, 0xc
jl 0x4080d8
cmp dword [0x424b34], 0
movzx ecx, byte [ebp - 5]
pop esi
je 0x408117
movzx eax, byte [0x427c27]
cmp cx, ax
je 0x408120
or eax, 0xffffffff
jmp 0x408122
movzx eax, byte [0x427c2d]
jmp 0x40810d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040896e
mov esp, ebp
pop ebp
ret

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

Disassembly:
mov ecx, dword [0x427330]
mov eax, ecx
xor eax, dword [esp + 4]
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x427380]
movzx eax, cl
add eax, dword [0x427334]
imul eax, eax, 0x8088405
mov dword [0x427330], ecx
mov ecx, dword [0x427338]
inc eax
mov dword [0x427334], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x427380]
mov dword [0x427338], ecx
ret