joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ec9
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 0x402eec
cmp byte [esi], 0
je 0x402eec
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x402f3a
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 0x402f7d
xor eax, eax
jmp 0x4030ee
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.00403817
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 0x4030cb
inc edi
cmp dword [ebp - 0x78], 4
jle 0x4030bb
push 4
lea eax, [ebp + 0x3a0]
push str.AppX
push eax
call fcn.0040c0bf
add esp, 0xc
test eax, eax
jne 0x4030bb
push 0x208
lea eax, [ebp + 0x198]
push esi
push eax
call fcn.00403817
push 0x208
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.00403817
lea eax, [ebp + 0x3a0]
mov dword [ebp - 0x74], 0x208
push eax
push str._sApplication
lea eax, [ebp + 0x198]
push 0x104
push eax
call fcn.004046ba
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 0x4030bb
push str.WinZipComputing.
call fcn.0040bcc6
push eax
lea eax, [ebp - 0x70]
push str.WinZipComputing.
push eax
call fcn.0040c0bf
add esp, 0x10
test eax, eax
jne 0x4030bb
lea eax, [ebp + 0x3a0]
push eax
push str._sShellopen
lea eax, [ebp + 0x198]
push 0x104
push eax
call fcn.004046ba
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 0x4030de
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 0x402fb4
jmp 0x4030e1
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.0040886e
add ebp, 0x5ac
leave
ret
Function at 0x403103
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.0040c2b0
pop ecx
cmp eax, 8
jae 0x4031cc
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
je 0x4031c5
push 7
lea eax, [ebp - 0x2c]
push str.PKBACK
push eax
call fcn.004037ca
add esp, 0xc
test eax, eax
jne 0x4031c5
mov al, byte [ebp - 0x2c]
lea edx, [ebp - 0x2c]
test al, al
je 0x4031c5
mov cl, al
cmp al, 0x2e
je 0x403184
cmp al, 0x20
je 0x403184
inc edx
mov al, byte [edx]
mov cl, al
test al, al
jne 0x403171
test cl, cl
je 0x4031c5
cmp cl, 0x30
jb 0x403192
cmp cl, 0x39
jbe 0x403197
inc edx
mov cl, byte [edx]
jmp 0x403188
push edi
movzx edi, cl
imul esi, esi, 0xa
lea eax, [edi - 0x30]
cmp eax, 9
ja 0x4031b2
inc edx
add esi, 0xffffffd0
add esi, edi
mov cl, byte [edx]
test cl, cl
jne 0x403198
mov ax, si
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040886e
leave
ret 4
mov eax, 0xffff
jmp 0x4031b6
push 0x41f
push str.sfxhead.c
call fcn.00404587
int3

Function at 0x4039c7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 8]
xor edx, edx
push edi
push 8
add esi, esi
pop edi
mov ecx, edx
sar esi, 1
shr ecx, 1
mov eax, edx
xor eax, esi
mov edx, ecx
xor edx, 0xedb88320
and al, 1
cmove edx, ecx
dec edi
test edi, edi
jg 0x4039d4
pop edi
mov eax, edx
pop esi
ret 4
Function at 0x404286
Capabilities:
Create process on windows
Log keystrokes via polling
Query or enumerate registry value

Disassembly:
sub esp, 0xa40
mov eax, dword [0x4241a4]
xor eax, esp
mov dword [esp + 0xa3c], eax
push ebx
push ebp
push esi
push edi
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x404456
mov ebx, 0x105
mov ebp, 0x427480
push ebx
push ebp
call fcn.00405cdc
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x230]
push ebx
push eax
call fcn.0040bb99
add esp, 0x18
lea eax, [esp + 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [esp + 0x10]
mov edi, 0x209
push eax
lea eax, [esp + 0x430]
mov dword [esp + 0x14], edi
push eax
push str.winzip_shellopencommand
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
test eax, eax
je 0x40437e
lea eax, [esp + 0x840]
push 0x104
push eax
call fcn.00402f3a
pop ecx
pop ecx
test eax, eax
je 0x404456
push 0xffffffffffffffff
push str.WinZipUWPHelper.exe
lea eax, [esp + 0x434]
push edi
push eax
call fcn.0040bb99
push 0x20a
xor esi, esi
lea eax, [esp + 0x28]
push esi
push eax
call fcn.00403817
push ebp
lea eax, [esp + 0x860]
push eax
push str.RunExe20083F0D_D8B0_49E2_B454_D6DA05DFFB81_s20083F0D_D8B0_49E2_B454_D6DA05DFFB81__s_
lea eax, [esp + 0x3c]
push edi
push eax
call fcn.004046ba
push 0xffffffffffffffff
lea eax, [esp + 0x48]
push eax
push edi
push ebp
call fcn.0040bb99
add esp, 0x40
jmp 0x4043ff
xor esi, esi
lea edi, [esp + 0x42c]
mov ebx, esi
cmp word [esp + 0x42c], bx
je 0x4043b0
push 4
push str.___1
push edi
call fcn.0040c0bf
add esp, 0xc
test eax, eax
je 0x4043b0
add edi, 2
inc ebx
cmp word [edi], si
jne 0x404393
add ebx, ebx
cmp ebx, 0x412
jae 0x404495
xor eax, eax
push 0x20a
mov word [esp + ebx + 0x430], ax
lea eax, [esp + 0x18]
push esi
push eax
call fcn.00403817
push ebp
push str.__s_
mov edi, 0x105
lea eax, [esp + 0x28]
push edi
push eax
call fcn.004046ba
push 0xffffffffffffffff
lea eax, [esp + 0x34]
push eax
push edi
push ebp
call fcn.0040bb99
add esp, 0x2c
mov eax, dword [0x424048]
test eax, 0x1000
je 0x404434
test eax, 0x8000
jne 0x404434
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x7a
pop ecx
push 0x69
lea eax, [eax*2 + 0x427478]
mov word [eax], cx
pop ecx
push 0x70
mov word [eax + 2], cx
pop ecx
mov word [eax + 4], cx
push 1
lea eax, [esp + 0x224]
push eax
push ebp
lea eax, [esp + 0x438]
push eax
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
test eax, eax
setne al
jmp 0x40447c
push 0
push 0x7d0
call fcn.00403845
push eax
push 0x40e
call fcn.00403845
push eax
push dword [0x427458]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
mov ecx, dword [esp + 0xa4c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040886e
add esp, 0xa40
ret
call fcn.00408794
int3
Function at 0x404587
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 [0x424e5c]
mov ecx, eax
mov edx, dword [ebp + 0x124]
inc eax
mov dword [0x424e5c], eax
push esi
test ecx, ecx
jne 0x404695
push dword [ebp + 0x128]
push edx
push 0x7d4
call fcn.00403845
push eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x30
push 0x7d0
call fcn.00403845
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [0x427458]
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 0x404695
push 0x41c5ac
lea eax, [ebp - 0x7c]
push 0x191
push eax
call fcn.0040c238
add esp, 0xc
lea eax, [ebp - 0x80]
push 0
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0040c2b0
pop ecx
push eax
lea eax, [ebp - 0x7c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.00403c47
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.WZSFX32.RPT
push 0x7d1
call fcn.00403845
push eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x30
push 0x7d0
call fcn.00403845
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [0x427458]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4046e3
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.0040ba6a
xor edi, edi
add esp, 0xc
cmp word [esi], di
je 0x40475a
push 0x41c308
lea eax, [esp + 0xa30]
push 0x2e3
push eax
call fcn.0040ba6a
push esi
lea eax, [esp + 0xa3c]
push 0x2e3
push eax
call fcn.0040b9f5
add esp, 0x18
cmp ebp, 0xffffffff
jne 0x4047b2
push 0x10
lea eax, [esp + 0x14]
push edi
push eax
call fcn.00403817
push 0x44
pop edi
push edi
xor ecx, ecx
lea eax, [esp + 0x30]
push ecx
push eax
call fcn.00403817
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 0x4047b2
mov eax, dword [esp + 0x10]
jmp 0x4048ea
lea eax, [esp + 0x464]
push eax
push edi
push ebx
call dword [sym.imp.SHELL32.dll_FindExecutableW]
mov edi, eax
cmp edi, 0x1f
jne 0x404829
mov ebp, 0x100
lea eax, [esp + 0x64]
push ebp
push eax
push 0xffffffffffffffff
push 0x427
call fcn.00403845
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.004046ba
add esp, 0x10
lea eax, [esp + 0x264]
push ebp
push eax
push 0xffffffffffffffff
push 0x7d0
call fcn.00403845
push eax
push edi
push edi
call esi
push 0x10
jmp 0x4048cc
cmp edi, 0x20
jbe 0x40486f
xor eax, eax
xor ecx, ecx
cmp word [esi], cx
push 1
cmovne eax, esi
push ecx
push eax
mov eax, dword [0x424048]
and eax, 0x20000
neg eax
push ebx
sbb eax, eax
and eax, 0x41c30c
push eax
push dword [0x427458]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edi, eax
test ebp, ebp
je 0x404866
mov dword [ebp], edi
cmp edi, 0x20
jbe 0x40486f
mov eax, edi
jmp 0x4048ea
mov ebp, 0x100
lea eax, [esp + 0x64]
push ebp
push eax
push 0xffffffffffffffff
push 0x400
call fcn.00403845
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.004046ba
add esp, 0x14
lea eax, [esp + 0x264]
push ebp
push eax
push 0xffffffffffffffff
push 0x7d0
call fcn.00403845
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 [0x427458]
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.0040886e
add esp, 0xfe8
ret
Function at 0x404f6f
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x224]
sub esp, 0x224
push 0xffffffffffffffff
push 0x41b720
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x4241a4]
xor eax, ebp
mov dword [ebp + 0x220], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x22c]
lea eax, [ebp + 0x18]
push 0x104
push 0
push eax
call fcn.00403817
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x404fce
mov eax, dword [esi]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineA]
push 0x41c610
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 0x4050d8
push 0x104
lea eax, [ebp + 0x11c]
push 0
push eax
call fcn.00403817
add esp, 0xc
test byte [ebp - 0x14c], 0x10
je 0x405093
lea eax, [ebp - 0x120]
push 0x41c568
push eax
call fcn.0040f680
pop ecx
pop ecx
test eax, eax
je 0x4050bb
lea eax, [ebp - 0x120]
push 0x41c614
push eax
call fcn.0040f680
pop ecx
pop ecx
test eax, eax
je 0x4050bb
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x405057
mov eax, dword [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.00404de6
and dword [ebp - 4], 0
lea eax, [ebp]
push eax
call fcn.00404f6f
or dword [ebp - 4], 0xffffffff
pop ecx
lea ecx, [ebp]
call fcn.004055ed
jmp 0x4050bb
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x40509d
mov eax, dword [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 0x404ffc
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x14], 0x10
jb 0x4050e0
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
setne al
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.0040886e
add ebp, 0x224
leave
ret
Function at 0x40510f
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x4241a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x405130
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4051c6
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
push edi
lea eax, [ebp - 0x24]
push 0x41c618
push eax
call fcn.00404da8
add esp, 0xc
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x405164
mov eax, dword [esi]
lea ecx, [ebp - 0x24]
push ecx
push eax
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x405197
inc edi
jmp 0x405148
push 0
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x128]
push eax
call fcn.0040c2b0
pop ecx
push eax
lea eax, [ebp - 0x128]
mov ecx, esi
push eax
call fcn.004056f6
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040886e
leave
ret

Function at 0x405398
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 edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 0x103
jb 0x4053cc
xor eax, eax
jmp 0x405418
push esi
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
lea ecx, [ebp - 0x108]
lea esi, [ebp - 0x310]
cmove esi, ecx
push esi
call fcn.0040c2b0
pop ecx
push eax
push esi
mov ecx, edi
call fcn.004056f6
xor eax, eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0040886e
leave
ret
Function at 0x405f4c
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [0x427d6e]
test edi, edi
jg 0x405f62
and dword [0x427ea8], 0
xor eax, eax
pop edi
ret
mov eax, 0x800
cmp edi, eax
push esi
cmova edi, eax
push edi
push dword [0x427eb0]
push dword [0x424c20]
call dword [sym.imp.KERNEL32.dll__lread]
cmp dword [0x424c3c], 0
mov esi, eax
mov dword [0x427ea8], esi
je 0x405fe0
cmp esi, 0xffffffff
je 0x405fe0
cmp esi, edi
je 0x405ff1
test esi, esi
js 0x405fe0
mov ax, word [0x424024]
push dword [0x424c40]
inc ax
movzx eax, ax
push eax
call fcn.00403a15
mov esi, dword [0x427ea8]
test esi, esi
jne 0x405fda
push edi
push dword [0x427eb0]
push dword [0x424c20]
call dword [sym.imp.KERNEL32.dll__lread]
mov esi, eax
mov dword [0x427ea8], esi
cmp esi, 0xffffffff
cmovne edi, esi
cmp esi, edi
je 0x405ff1
push 2
call fcn.0040175f
mov esi, dword [0x427ea8]
sub dword [0x427d6e], esi
cmp dword [0x424c30], 0
mov edi, dword [0x427eb0]
mov dword [0x427eac], edi
je 0x40602d
test esi, esi
je 0x40602d
call fcn.00407dc2
xor byte [edi], al
movzx eax, byte [edi]
push eax
call fcn.00407e93
inc edi
pop ecx
sub esi, 1
jne 0x406010
mov esi, dword [0x427ea8]
lea eax, [esi - 1]
mov dword [0x427ea8], eax
mov eax, esi
pop esi
pop edi
ret
Function at 0x407e14
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 [0x424c38]
mov esi, dword [ebp + 8]
call fcn.00407ddc
push 0xc
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.004037f3
add esp, 0x10
xor esi, esi
call fcn.00407dc2
xor byte [ebp + esi - 0x10], al
movzx eax, byte [ebp + esi - 0x10]
push eax
call fcn.00407e93
inc esi
pop ecx
cmp esi, 0xc
jl 0x407e44
cmp dword [0x424c34], 0
movzx ecx, byte [ebp - 5]
movzx eax, byte [0x427d67]
pop esi
jne 0x407e7b
movzx eax, byte [0x427d6d]
cmp cx, ax
je 0x407e85
or eax, 0xffffffff
jmp 0x407e87
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040886e
leave
ret

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

Disassembly:
mov ecx, dword [0x427430]
mov eax, ecx
xor eax, dword [esp + 4]
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x4276c0]
xor eax, ecx
mov ecx, dword [0x427438]
mov dword [0x427430], eax
movzx eax, al
add eax, dword [0x427434]
imul eax, eax, 0x8088405
inc eax
mov dword [0x427434], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4276c0]
mov dword [0x427438], ecx
ret

Function at 0x847521
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x8472a2
push 0x53e9d5
mov ecx, dword [esp]
add esp, 4
or edx, edx
add edx, 0xa390b216
call fcn.0084755c
and ecx, ecx
or edx, ecx
mov edx, edx
xor dword [edi], eax
sub ecx, ecx
inc edi
add ecx, edx
cmp edi, esi
jne fcn.00847521
inc edx
sub ecx, 0x29104346
ret
Function at 0x9c9370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x9c938e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x9f2074
push ecx
mov edi, eax
call fcn.009dd198
mov esi, eax
add esp, 8
test esi, esi
jne 0x9c93cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.009dd02e
push esi
call fcn.009dcfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x9cc850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x9cc8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x9f7720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x9cc8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.009dd1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x9cc8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x9f7720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x9cc92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.009de082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x9cc957
mov word [eax], si
add eax, 2
push eax
call fcn.009de030
add esp, 4
jmp 0x9cc959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x9cc8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x9cc8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x9ccff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x9cd080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x9cd0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x9f2458
push ecx
call fcn.009dd1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.009dd1e1
add esp, 0x10
jmp 0x9cd0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.009dd20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.009dcdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.009cd050
mov eax, dword [0x9f7728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], reloc.wtsapi32.dll_WTSSetSessionInformationW
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x9cd13b
push esi
call fcn.009ccfb0
add esp, 4
mov dword [0x9f7728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x9cd14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.009ccff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x9d0440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x9d04b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x9d048e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x9d0471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x9d047e
add edx, ecx
cmp ebx, edx
jb 0x9d048a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x9d0467
xor ecx, ecx
jmp 0x9d04a2
test eax, eax
jne 0x9d0492
xor ecx, ecx
jmp 0x9d04a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.009d03c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret