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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x42300c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], eax
cmp dword [ebx], 0
jne 0x4015b2
xor eax, eax
jmp 0x40163b
push esi
push edi
lea eax, [ebp - 0xc]
xor esi, esi
push eax
push esi
lea eax, [ebp - 8]
mov dword [ebp - 0xc], esi
push eax
push esi
push str.Edition
push dword [ebx]
xor edi, edi
inc edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x401637
cmp dword [ebp - 8], edi
je 0x4015ee
cmp dword [ebp - 8], 7
je 0x4015ee
cmp dword [ebp - 8], 2
jne 0x401637
xor eax, eax
add ecx, 2
setb al
neg eax
or eax, ecx
push eax
push edi
call fcn.00409a28
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x401637
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 8]
push eax
push esi
push str.Edition
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401630
mov ecx, dword [ebp - 0x10]
push edi
call fcn.00401da8
xor esi, esi
inc esi
push edi
call fcn.00409630
pop ecx
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004061a0
leave
ret 0xc

Function at 0x401807
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40185f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40185f
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x40184f
cmp esi, ecx
jae 0x40185f
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x40183d
cmp esi, ecx
jae 0x40185f
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
jmp 0x401861
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x401e13
Capabilities:
Check if file exists

Disassembly:
push 0x10
mov eax, 0x418355
call fcn.00417c26
xor ebx, ebx
mov dword [ebp - 0x18], ebx
call fcn.00401413
push eax
lea ecx, [ebp - 0x18]
call fcn.00401a56
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
call fcn.00401413
push eax
lea ecx, [ebp - 0x14]
call fcn.00401a56
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00402b63
mov edi, dword [ebp - 0x14]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [ebp - 0x18]
test eax, eax
je 0x401e83
push ecx
mov ebx, esp
lea ecx, [edi - 0x10]
mov dword [ebp - 0x1c], ebx
call fcn.004019dc
add eax, 0x10
mov dword [ebx], eax
call fcn.00403199
pop ecx
test al, al
jne 0x401eab
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401eb0
push ecx
mov ebx, esp
lea ecx, [esi - 0x10]
mov dword [ebp - 0x1c], ebx
call fcn.004019dc
add eax, 0x10
mov dword [ebx], eax
call fcn.00403199
pop ecx
test al, al
je 0x401eb0
xor ebx, ebx
inc ebx
jmp 0x401eb2
xor bl, bl
lea ecx, [edi - 0x10]
call fcn.00401de3
lea ecx, [esi - 0x10]
call fcn.00401de3
mov al, bl
call fcn.00417bd5
ret
Function at 0x40221e
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4183d7
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x42300c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edx, edx
mov dword [esi], vtable.AskDlg.0
lea ecx, [esi + 0x3c]
mov dword [esi + 4], edx
push 0xa
pop eax
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], edx
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], eax
or dword [ecx + 0x18], 0xffffffff
mov dword [ecx], edx
mov dword [ecx + 4], edx
mov dword [ecx + 8], 0x11
mov dword [ecx + 0x1c], edx
mov dword [ecx + 0x20], edx
mov dword [ecx + 0x24], eax
mov dword [ecx + 0x28], edx
mov dword [ecx + 0x2c], edx
mov dword [ecx + 0xc], 0x3f400000
mov dword [ecx + 0x10], 0x3e800000
mov dword [ecx + 0x14], 0x40100000
call fcn.00402748
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0x6b
mov dword [esi + 0x6c], eax
push dword [0x423c0c]
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esi + 0x70], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret
Function at 0x402c00
Capabilities:
Check if file exists

Disassembly:
push 0x18
mov eax, 0x4184f5
call fcn.00417c26
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], ebx
call fcn.00401413
push eax
lea ecx, [ebp - 0x18]
call fcn.00401a56
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], ebx
call fcn.00401413
push eax
lea ecx, [ebp - 0x14]
call fcn.00401a56
lea edx, [ebp - 0x14]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00402b63
mov edi, dword [ebp - 0x14]
lea eax, [esi - 0x10]
push edi
mov dword [ebp - 0x24], eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [ebp - 0x18]
test eax, eax
je 0x402cc1
push ecx
mov ebx, esp
lea ecx, [edi - 0x10]
mov dword [ebp - 0x1c], ebx
call fcn.004019dc
add eax, 0x10
mov dword [ebx], eax
call fcn.00403199
pop ecx
test al, al
jne 0x402d65
push ecx
mov ecx, dword [ebp - 0x24]
mov ebx, esp
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x20], ebx
call fcn.004019dc
add eax, 0x10
mov dword [ebx], eax
push ecx
mov byte [ebp - 4], 3
lea ecx, [edi - 0x10]
mov ebx, esp
mov dword [ebp - 0x20], ebx
call fcn.004019dc
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 2
call fcn.00402a74
pop ecx
pop ecx
test al, al
jne 0x402d65
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402ce9
push ecx
mov ebx, esp
lea ecx, [esi - 0x10]
mov dword [ebp - 0x20], ebx
call fcn.004019dc
add eax, 0x10
mov dword [ebx], eax
call fcn.00403199
pop ecx
test al, al
jne 0x402d65
push ecx
mov ecx, dword [ebp - 0x24]
mov ebx, esp
mov dword [ebp - 0x20], esp
mov dword [ebp - 0x1c], ebx
call fcn.004019dc
add eax, 0x10
mov dword [ebx], eax
push ecx
mov byte [ebp - 4], 4
lea ecx, [esi - 0x10]
mov ebx, esp
mov dword [ebp - 0x1c], ebx
call fcn.004019dc
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 2
call fcn.00402a74
pop ecx
pop ecx
test al, al
jne 0x402d65
push ecx
mov ecx, dword [ebp - 0x24]
mov ebx, esp
mov dword [ebp - 0x20], esp
mov dword [ebp - 0x1c], ebx
call fcn.004019dc
add eax, 0x10
mov dword [ebx], eax
push ecx
mov byte [ebp - 4], 5
lea ecx, [edi - 0x10]
mov ebx, esp
mov dword [ebp - 0x1c], ebx
call fcn.004019dc
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 2
call fcn.00402a74
pop ecx
pop ecx
test al, al
jne 0x402d65
xor ebx, ebx
jmp 0x402d67
mov bl, 1
lea ecx, [edi - 0x10]
call fcn.00401de3
lea ecx, [esi - 0x10]
call fcn.00401de3
mov ecx, dword [ebp - 0x24]
call fcn.00401de3
mov al, bl
call fcn.00417bd5
ret
Function at 0x402e48
Capabilities:
Check if file exists

Disassembly:
push 0x18
mov eax, 0x4185bd
call fcn.00417c26
xor ebx, ebx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
call fcn.00403036
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x18]
xor edx, edx
mov dword [ebp - 0x18], ebx
call fcn.00402fc9
push ecx
mov byte [ebp - 4], 1
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
call fcn.004016b8
pop ecx
mov byte [ebp - 4], 2
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402ee1
push ecx
mov esi, esp
mov dword [ebp - 0x20], esp
mov dword [ebp - 0x24], esi
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004019dc
add eax, 0x10
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 3
mov esi, esp
mov dword [ebp - 0x24], esi
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.004019dc
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 2
call fcn.00402d87
pop ecx
pop ecx
test al, al
je 0x402ee1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401de3
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00401de3
push 0x19
pop edx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
call fcn.00402fc9
push ecx
mov byte [ebp - 4], 4
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
call fcn.004016b8
pop ecx
mov byte [ebp - 4], 5
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402f78
push ecx
mov esi, esp
mov dword [ebp - 0x24], esp
mov dword [ebp - 0x20], esi
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.004019dc
add eax, 0x10
mov dword [esi], eax
push ecx
mov byte [ebp - 4], 6
mov esi, esp
mov dword [ebp - 0x20], esi
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.004019dc
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 5
call fcn.00402d87
pop ecx
pop ecx
test al, al
je 0x402f78
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401de3
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.00401de3
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401de3
mov al, 1
call fcn.00417bd5
ret

Function at 0x402fc9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x42300c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
mov edi, ecx
lea eax, [ebp - 0x20c]
xor ebx, ebx
mov dword [ebp - 0x210], edi
push ebx
push eax
mov esi, edx
mov dword [ebp - 0x210], edi
call fcn.00407e60
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.0040198d
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004061a0
leave
ret
Function at 0x403089
Capabilities:
Read .ini file

Disassembly:
push 0x810
mov eax, 0x41860d
call fcn.00417c26
mov esi, ecx
mov dword [ebp - 0x818], esi
mov dword [ebp - 0x818], esi
push 0x802
lea eax, [ebp - 0x814]
mov dword [ebp - 4], 2
push 0
push eax
call fcn.00407e60
add esp, 0xc
lea eax, [ebp - 0x814]
push dword [ebp + 8]
push 0x400
push eax
push 0x41f01c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x814]
mov ecx, esi
push eax
call fcn.0040198d
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00401de3
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.00401de3
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.00401de3
mov eax, esi
call fcn.00417bd5
ret
Function at 0x4058e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x418998
call fcn.00417c92
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x20], esi
push 0x404
lea eax, [ebp - 0x424]
mov dword [ebp - 4], esi
push esi
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], esi
call fcn.00407e60
add esp, 0xc
mov dword [ebp - 0x424], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x430], edi
test edi, edi
jne 0x405969
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x430], eax
test edi, edi
jne 0x405969
call fcn.004041ad
mov esi, eax
jmp 0x405a6c
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x40598c
call fcn.004041ad
jmp 0x405a5f
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x405982
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x42c], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x4059bf
mov esi, 0x8007000e
jmp 0x405a61
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, esi
ja 0x405a8f
jb 0x4059da
cmp eax, 0xffffffff
ja 0x405a8f
cmp eax, 0x400
jbe 0x4059ef
push eax
lea ecx, [ebp - 0x424]
call fcn.00404188
jmp 0x405a11
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
jmp 0x405a11
mov dword [ebp - 4], 1
cmp dword [ebp - 0x424], 0
je 0x4059b5
push ebx
push dword [ebp - 0x424]
push ebx
push dword [ebp - 0x428]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x405982
mov eax, dword [ebp - 0x424]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x424]
call fcn.00405790
mov esi, eax
test edi, edi
je 0x405a6c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x405a85
lea ecx, [ebp - 0x424]
call fcn.00404173
mov eax, esi
call fcn.00417be4
ret 0x10
push 0x80070216
call fcn.0040118f
int3

Function at 0x406ca3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406ce2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x406ce2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406ce2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x406ce2
cmp dword [ecx + 0x74], 0xe
jbe 0x406ce2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x409651
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x40968c
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x409673
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x409684
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x40968e
inc edi
add eax, 0x28
cmp edi, esi
jb 0x409669
xor eax, eax
pop edi
pop esi
ret

Function at 0x4099de
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cwde
pop ss
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov eax, dword [0xa245c62e]
xor eax, 0x24a345c6

Function at 0x409a15
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
cmpsb byte [esi], byte es:[edi]
inc ecx
call fcn.00409621
push eax
push esi
push dword [ebp + 8]
call fcn.004095d6
mov dword [ebp - 0xbc], eax
test dword [edi + edi*8 - 1], eax
dec dword [ebp + 0x5d88d445]
invalid

Function at 0x409a28
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [edi + edi*8 - 1], eax
dec dword [ebp + 0x5d88d445]
aam 0x50
push eax

Function at 0x409a33
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [edi + edi*8 - 1], eax
dec dword [ebp + 0x5d88d445]
aam 0x50
push eax

Function at 0x409a3e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00409621
push eax
push esi
push dword [ebp + 8]
call fcn.004095d6
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00409611
adc al, 0x56
mov bl, dl
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
mov byte [ebp - 0x82], 0xe9
mov byte [ebp - 0x81], bl
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
nop
push ss
call fcn.00409611
rol byte [eax - 0x7a722154], 1
jl 0x409afc
invalid
invalid
Function at 0x40a190
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sbb bh, bh
jne 0x40a1a8
call fcn.004095d6
add esp, 0xc
mov dword [ebp - 0x67c], eax
and byte [ebp - 0x524], 0
and byte [ebp - 0x523], 0
add byte [eax - 0x5225b], al
inc dword [eax]
mov byte [ebp - 0x522], 0x15
and byte [ebp - 0x521], 0
mov byte [ebp - 0x520], 0xa2
mov byte [ebp - 0x51f], 0x8f
mov byte [ebp - 0x51e], 0x8b
mov byte [ebp - 0x51d], 0x9a
mov byte [ebp - 0x51c], 0xac
mov byte [ebp - 0x51b], 0x98
mov byte [ebp - 0x51a], 0x8f
mov byte [ebp - 0x519], 0x8f
mov byte [ebp - 0x518], 0xea
lea eax, [ebp - 0x524]
push eax
call fcn.00409621
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004095d6
add esp, 0xc
mov dword [ebp - 0x39c], eax
call fcn.00409611
movsd dword es:[edi], dword [esi]
scasb al, byte es:[edi]
xchg ebp, eax
fadd dword [eax - 0x5135b]
inc dword [eax]
and byte [ebp - 0x513], 0
mov byte [ebp - 0x512], 0xe3
and byte [ebp - 0x511], 0
mov byte [ebp - 0x510], 0x5b
mov byte [ebp - 0x50f], 0x79
mov byte [ebp - 0x50e], 0x68
mov byte [ebp - 0x50d], 0x5a
mov byte [ebp - 0x50c], 0x75
mov byte [ebp - 0x50b], 0x70
mov byte [ebp - 0x50a], 0x79
mov byte [ebp - 0x509], 0x4f
mov byte [ebp - 0x508], 0x75
mov byte [ebp - 0x507], 0x66
mov byte [ebp - 0x506], 0x79
mov byte [ebp - 0x505], 0x1c
lea eax, [ebp - 0x514]
push eax
call fcn.00409621
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004095d6
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.00409611
out 0xb0, al
mov edx, 0x10468e7
add byte [eax], al
add byte [ebp - 0x3337b], cl
call dword [eax - 1]
jne 0x40a2da
Function at 0x40e527
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41b094
push 0x41b08c
push str.FlsAlloc
push 0x1f
call fcn.0040e462
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40e55b
push dword [ebp + 8]
mov ecx, esi
call dword [0x41922c]
call esi
jmp 0x40e561
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40e5a5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41b0a4
push 0x41b09c
push str.FlsGetValue
push 0x21
call fcn.0040e462
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40e5dc
push dword [ebp + 8]
mov ecx, esi
call dword [0x41922c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40e5e4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41b0ac
push 0x41b0a4
push str.FlsSetValue
push 0x22
call fcn.0040e462
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40e61e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41922c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40fb84
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x42300c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x40fbcf
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040fd1f
test al, al
jne 0x40fbc9
sub edx, 2
cmp edx, edi
jne 0x40fbaf
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x40fbf1
lea eax, [edi + 2]
cmp edx, eax
je 0x40fbf1
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0040fad0
add esp, 0x10
jmp 0x40fceb
push esi
lea ecx, [ebp - 0x255]
call fcn.0040fd1f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40fc34
push dword [ebp - 0x25c]
jmp 0x40fbe1
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40fc71
cmp word [ebp - 0x226], 0
je 0x40fc92
cmp word [ebp - 0x226], ax
jne 0x40fc71
cmp word [ebp - 0x224], 0
je 0x40fc92
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0040fad0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x40fcde
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x40fc4b
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x40fcc6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x40fceb
push 0x40f900
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00413de0
add esp, 0x10
jmp 0x40fcbb
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004061a0
leave
ret
Function at 0x417b90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x417bbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x417bbd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x407df4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x52b008], 0x8088405
inc edx
mov dword [ebx + 0x52b008], edx
mul edx
mov eax, edx
pop ebx
ret
Function at 0x420f7c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x420fd5
test eax, edx
je 0x420fd8
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x420f93
movzx eax, word [eax]
sub eax, ecx
jmp 0x420fba
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x420fbb
add ecx, 4
js 0x420fab
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x420fb8
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x420fba
xor eax, eax
ret
test eax, eax
je 0x420fe4
test edx, edx
jne 0x420f84
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x429258
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0040acc4
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040fad0
mov edi, eax
cmp edi, 0x104
jbe 0x429203
mov eax, edi
add eax, eax
call fcn.00407a0c
mov esi, eax
jmp 0x429205
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040fad0
push esi
call fcn.00414a0c
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42923e
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x429228
mov eax, esp
cmp esi, eax
je 0x42924b
mov eax, esi
call fcn.00407a28
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x429284
cmp bl, 0
je 0x429280
cmp bl, 0x41
jl 0x42927b
cmp bl, 0x5a
jg 0x42927b
or bl, 0x20
xor al, bl
inc esi
jmp 0x42925f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4291c4
Function at 0x481284
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x48128c
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4e12e8
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4e12ee
ret