joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4073cd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b108
cmp edx, dword [eax]
je 0x4073ef
add eax, 8
inc ecx
cmp eax, 0x40b198
jl 0x4073e0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b108]
jne 0x40751d
mov eax, dword [0x40b4ac]
cmp eax, 1
je 0x4074f7
test eax, eax
jne 0x407420
cmp dword [0x40b04c], 1
je 0x4074f7
cmp edx, 0xfc
je 0x40751d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407457
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408750
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406350
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40749a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406350
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x409860
push edi
call fcn.004088d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408750
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408760
lea eax, [ebp - 0xa0]
push 0x409840
push eax
call fcn.00408760
push dword [esi + 0x40b10c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408760
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00408840
add esp, 0x2c
pop edi
jmp 0x40751d
lea eax, [ebp + 8]
lea esi, [esi + 0x40b10c]
push 0
push eax
push dword [esi]
call fcn.00406350
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 0x403548
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4ca008], 0x8088405
inc edx
mov dword [ebx + 0x4ca008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x409a7c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x409ace
test eax, edx
je 0x409ad1
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409a91
movzx eax, byte [eax]
sub eax, ecx
ret
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]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x409ab7
add ecx, 4
js 0x409aa7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409ab4
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x409add
test edx, edx
jne 0x409a84
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x42781c
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 0x427822
ret
Function at 0x4baff8
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.00403b50
ret

Function at 0x69405d
Capabilities:
Encode data using xor

Disassembly:
fadd dword [ebp - 0x1bf2ee4]
or al, 0xf9
pop ss
push 0xfbe6708b
fild word [ecx*4 + 0xf042464]
lea esp, [esp + 4]
invalid
invalid
lea esp, [esp + 4]
jl 0x6c789a
call fcn.0066bad0
sub dword [ebp + 0x2fb9a38b], edi
add dword [esi + ecx*2 + 0x283cc7e4], eax
mov al, 0x71
inc ecx
sbb al, ah
xor dl, byte [edx - 0x30]
je 0x69404d
invalid

Function at 0x6a05a2
Capabilities:
Check for software breakpoints

Disassembly:
push edi
lea esp, [esp + 0x34]
jne fcn.006e8ad0
test esi, eax
bsf dx, di
adc dl, dl
sal dh, 7
mov edx, dword [ecx + 1]
bt bx, cx
sub edx, 0x13a5b738
call fcn.006648ff
jmp fcn.006677a0

Function at 0x6e3e1b
Capabilities:
Encode data using xor

Disassembly:
movsx di, dl
mov ebx, dword [esp + 0x1c]
pushal
call fcn.006c4006
movsb byte es:[edi], byte [esi]
pop ds
sub eax, 0x5687ef49
cld
pop ds
or dh, byte [ebx - 0x2a53c461]
jg 0x6d4863
add dword [0xaf311b03], esp
lea edi, [ebx]
sbb bl, dh
inc eax
in al, 0x62
cli
xor esi, edi
xor dword [ebp - 0x29], ecx
div dword [ecx]
dec ebp
xlatb
outsd dx, dword [esi]
push ds
xor dword [edx + 0x56], 0xffffffac
mov ebp, 0x160da9e4
sbb al, 0xd2
pushfd
fucomi st(2)
push ebx
pop ss
push 0xd360768c
push 5
sub esi, esp
xor byte [ebp - 0x68857019], ch
pop edx
mov ah, 0xe4
jge 0x6d48db
push dword [ecx + ebx*4]
xchg edi, eax
invalid
mov dword [0x58fd0b87], eax
sub eax, 0x5a1547c3
mov eax, 0x2e1628a2
sub al, 0x48
xor eax, 0x4a8c0f32
cmc
jmp 0x8b5c6b44
mov byte [esp], 0x9a
pushfd
lea esp, [esp + 0xc]
jb 0x6b0174
dec di
movsx bx, bl
inc dword [esi + 0x38]
pushal
pop edi
jmp 0x6d4834

Function at 0x6e435e
Capabilities:
Encode data using xor

Disassembly:
jmp 0x70000e
lea esp, [esp + 0x48]
call fcn.006b3111
movsx bp, al
call fcn.006f4192
pop es
cmp eax, 0x4ade3051
push ecx
xor dh, bl
dec edx
out dx, eax
cmp bh, byte ds:[eax + 0x282e3275]
inc esp
rcr dword [ecx - 0x7808c271], 1
push 0x58
jp 0x700022
retf
Function at 0x70862c
Capabilities:
Encode data using xor

Disassembly:
mov dword [esp], ebp
xchg bp, ax
add eax, eax
mov ebp, esp
movsx ax, al
bts eax, 0x1d
sbb al, 0xf4
cwde
sub esp, 0x18
pushfd
mov dword [esp], esi
clc
push edi
lea eax, [ecx - 0x319a65b5]
bt esi, 0x1a
movsx ax, bl
push ebx
sal al, cl
push edx
shrd ax, sp, cl
bswap ax
or ah, 0x1b
rcr ah, cl
mov eax, dword [ebp + 8]
cmc
bt dx, di
call fcn.00706d87
add byte [eax], al
dec ebp
jae 0x7086ed
popal
inc edx
outsd dx, dword [esi]
js 0x7086d8
add byte [eax], al
add byte [ebx + 0x65], dl
je 0x7086ca
imul ecx, dword [ebp + 0x6f], 0x64
add byte gs:[eax], al
add byte [edi + 0x65], al
je 0x7086eb
imul ebp, dword [esi + 0x64], 0x6f4c776f
outsb dx, byte [esi]
push edi
add byte [edi], dl
and al, 0xe
mov ebp, 0xbf5bb5c4
cdq
movsd dword es:[edi], dword [esi]
or esi, ecx
xchg ebx, eax
dec eax
hlt
mov al, 0x22
mov eax, dword [0xf84b8674]
push ecx
test al, 0x28
jnp 0x708718
leave
pop esi
test eax, 0xb4ad2d83
movsd dword es:[edi], dword es:[esi]
jo 0x708719
ljmp 0x6879:0xe53f7b82
xchg esp, eax
into
in eax, dx
invalid
test ch, bh
std
push 0xffffffffffffffa6
mov dl, 0x68
xchg esi, eax
and ebp, dword [esp + esi*4 + 0x79]
dec ecx
and al, 0x7d
sbb byte [edi + ecx*8 + 0x6c802285], bh
sbb eax, 0xb8dfccb9
dec ecx
sti
cmp esp, ecx
sbb bh, cl
sbb al, 0x86
call ebx
mov cl, 0x2d
or edi, dword [0x650abe0]
push ds
loopne 0x708756
invalid
mov bh, 0xe2
mov bl, 0x7f
or al, byte [edi + 0x59b45672]
jge 0x708735
inc ebp
invalid
Function at 0x4015e0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4495d5
mov eax, dword fs:[0]
push eax
sub esp, 0x83c
mov eax, dword [0x463fcc]
xor eax, esp
mov dword [esp + 0x838], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x463fcc]
xor eax, esp
push eax
lea eax, [esp + 0x850]
mov dword fs:[0], eax
mov eax, dword [0x465aac]
mov edx, dword [eax + 0xc]
mov esi, ecx
mov ecx, 0x465aac
mov dword [esp + 0x14], esi
call edx
add eax, 0x10
mov dword [esi], eax
mov eax, dword [0x465aac]
mov edx, dword [eax + 0xc]
mov ecx, 0x465aac
mov dword [esp + 0x858], 0
lea edi, [esi + 4]
call edx
add eax, 0x10
mov dword [edi], eax
mov eax, dword [0x465aac]
mov edx, dword [eax + 0xc]
mov ecx, 0x465aac
mov byte [esp + 0x858], 1
lea ebx, [esi + 8]
call edx
add eax, 0x10
mov dword [ebx], eax
mov eax, dword [0x465aac]
mov edx, dword [eax + 0xc]
mov ecx, 0x465aac
mov byte [esp + 0x858], 2
lea ebp, [esi + 0xc]
call edx
add eax, 0x10
mov dword [ebp], eax
push 0x104
lea eax, [esp + 0x30]
push eax
push 0
mov byte [esp + 0x864], 3
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x644]
push ecx
lea edx, [esp + 0x238]
push edx
lea eax, [esp + 0x444]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x3c]
push edx
call fcn.0042e8f8
lea eax, [esp + 0x40]
add esp, 0x14
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4016e1
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.00401500
lea eax, [esp + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401704
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call fcn.00401500
lea eax, [esp + 0x43c]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401730
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x440]
push edx
mov ecx, edi
call fcn.00401470
lea eax, [esp + 0x234]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401760
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x238]
push eax
mov ecx, ebx
call fcn.00401500
lea eax, [esp + 0x644]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401790
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x648]
push ecx
mov ecx, ebp
call fcn.00401500
mov eax, esi
mov ecx, dword [esp + 0x850]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x838]
xor ecx, esp
call fcn.0042ed09
add esp, 0x848
ret
Function at 0x401990
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4019a9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4019e4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4019e0
lea ebx, [ebx]
cmp esi, eax
jae 0x4019e4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4019d0
cmp esi, eax
jb 0x4019ea
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402260
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x402280
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, ecx
jne 0x402296
push 0x80004005
call fcn.004011d0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x4022c0
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esp + 4], ecx
jne 0x4022d8
push 0x80004005
call fcn.004011d0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4022e5
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x4028f0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x463fcc]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x22c]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x40295e
test ecx, ecx
je 0x402950
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x40296c
test ecx, ecx
je 0x402a11
push ecx
jmp 0x402a0b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x4029de
jmp 0x4029a0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.004028f0
mov edi, eax
test edi, edi
jne 0x402a2d
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x4029a0
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4029f5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x402a11
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0042ed09
add esp, 0x21c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x402a3c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x402a13
Function at 0x4043d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x4498a0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x463fcc]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [ebp + 0x418]
mov edi, dword [ebp + 0x410]
mov ebx, dword [ebp + 0x414]
mov dword [ebp - 0x14], eax
call dword [0x463fa8]
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], eax
mov dword [ebp], eax
push 2
push eax
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x18], edi
jne 0x40445d
call fcn.004020e0
mov esi, eax
jmp 0x404545
mov ecx, dword [ebp - 0x14]
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x404479
call fcn.004020e0
jmp 0x40453c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x20], eax
jne 0x404492
call fcn.004020e0
jmp 0x40453c
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
mov dword [ebp - 0x14], esi
jae 0x4044c8
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x4044b6
lea ecx, [ebp]
call fcn.00407ea0
lea ecx, [ebp - 0x1c]
call fcn.00402860
mov eax, 0x8007000e
jmp 0x404562
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.004031c0
mov dword [ebp - 4], 1
jmp 0x4044f1
mov ebx, dword [ebp]
test ebx, ebx
jne 0x4044ff
mov esi, 0x8007000e
jmp 0x40453e
call dword [0x463fa8]
mov ecx, dword [ebp - 0x20]
push esi
push ebx
push esi
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x404520
call fcn.004020e0
jmp 0x40453c
mov edx, dword [ebp]
mov word [edx + eax*2], 0
mov eax, dword [ebp + 0x41c]
mov ecx, dword [ebp]
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00404000
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp + 4]
cmp dword [ebp], edx
je 0x404560
lea ecx, [ebp]
call fcn.00407ea0
jmp 0x404560
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.0042ed09
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4052d0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x449a49
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x463fcc]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
xor ebp, ebp
mov dword [esp + 0x14], ebp
mov eax, dword [0x465aac]
mov edx, dword [eax + 0xc]
mov ecx, 0x465aac
mov dword [esp + 0x20], ebp
call edx
mov esi, dword [esp + 0x28]
add eax, 0x10
mov dword [esi], eax
mov ebx, dword [esp + 0x2c]
mov edx, dword [ebx]
cmp dword [edx - 0xc], ebp
mov ecx, 1
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], ecx
je 0x4053bc
mov ebp, dword [esp + 0x30]
mov edx, dword [ebp]
cmp dword [edx - 0xc], 0
je 0x4053bc
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
mov edi, dword [edi + 4]
sub eax, 0x80
or eax, ecx
jge 0x405360
push 0x80
mov ecx, esi
call fcn.00401370
mov eax, dword [esi]
mov ecx, dword [ebp]
mov edx, dword [ebx]
push edi
push 0x80
push eax
push 0x44e890
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edx, dword [esi]
test edx, edx
jne 0x405385
xor ecx, ecx
jmp 0x4053a1
mov ecx, edx
lea ebx, [ecx + 2]
lea ebx, [ebx]
mov di, word [ecx]
add ecx, 2
test di, di
jne 0x405390
sub ecx, ebx
sar ecx, 1
js 0x4053d4
cmp ecx, dword [edx - 8]
jg 0x4053d4
test eax, eax
mov dword [edx - 0xc], ecx
mov edx, dword [esi]
mov word [edx + ecx*2], 0
jg 0x4053bc
mov ecx, esi
call fcn.00401200
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
push 0x80070057
call fcn.004011d0
int3

Function at 0x405a30
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0x28
mov eax, dword [0x463fcc]
xor eax, esp
mov dword [esp + 0x24], eax
xor ecx, ecx
xor eax, eax
movsx edx, byte [eax + 0x4633e0]
sub edx, 1
cmp edx, ecx
je 0x405a5a
add eax, 1
cmp eax, 0x20
jl 0x405a42
jmp 0x405a5e
mov byte [esp + ecx + 4], al
add ecx, 1
cmp ecx, 0x20
jl 0x405a40
mov eax, dword [0x465768]
push ebx
push ebp
push esi
push edi
lea edi, [esp + 0x15]
mov ebp, 0x4631e0
xor esi, esi
mov dword [esp + 0x10], eax
mov edi, edi
mov eax, esi
sar eax, 1
mov ecx, esi
and ecx, 1
and eax, 0xf
shl ecx, 4
or eax, ecx
mov ecx, esi
and ecx, 0x20
or eax, ecx
movsx eax, byte [eax + ebp]
xor edx, edx
test al, 8
je 0x405ab4
movzx edx, byte [edi - 1]
mov ecx, 0x1f
sub ecx, edx
mov edx, 1
shl edx, cl
test al, 4
je 0x405acb
movzx ebx, byte [edi]
mov ecx, 0x1f
sub ecx, ebx
mov ebx, 1
shl ebx, cl
or edx, ebx
test al, 2
je 0x405ae3
movzx ebx, byte [edi + 1]
mov ecx, 0x1f
sub ecx, ebx
mov ebx, 1
shl ebx, cl
or edx, ebx
test al, 1
je 0x405afb
movzx eax, byte [edi + 2]
mov ecx, 0x1f
sub ecx, eax
mov eax, 1
shl eax, cl
or edx, eax
mov eax, dword [esp + 0x10]
mov dword [eax], edx
add esi, 1
add eax, 4
cmp esi, 0x40
mov dword [esp + 0x10], eax
jl 0x405a80
add ebp, 0x40
add edi, 4
cmp ebp, 0x4633e0
jl 0x405a78
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042ed09
add esp, 0x28
ret
Function at 0x406440
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x20
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 4]
push 0x3f9
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x20
push 0x20
push 0x1036
push eax
mov dword [esi + 0x24], eax
call edi
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], eax
mov eax, dword [ecx + 0x50]
push eax
push 0
push 0x1057
push edx
mov dword [esp + 0x18], 0xf
mov dword [esp + 0x24], eax
call edi
mov ecx, dword [esi + 0x24]
add eax, 0xf
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
push eax
push 0
push 0x1061
push ecx
mov dword [esp + 0x2c], 0
call edi
mov edx, dword [esi + 0x24]
push 0x190
push 0
push 0x101e
push edx
call edi
mov ecx, dword [esi + 0x24]
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x20]
mov eax, dword [eax + 0x54]
push eax
push 0
push 0x1057
push ecx
mov dword [esp + 0x18], 0xd
mov dword [esp + 0x1c], 1
mov dword [esp + 0x24], eax
call edi
lea edx, [esp + 8]
push edx
add eax, 0xf
push 1
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x24]
push 0x1061
push eax
mov dword [esp + 0x2c], 1
call edi
push 0xa0
push 1
push 0x101e
mov ecx, dword [esi + 0x24]
push ecx
call edi
pop edi
pop esi
add esp, 0x20
ret
Function at 0x4080f0
Capabilities:
Get file size

Disassembly:
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x10]
push eax
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
xor ecx, ecx
cmp edx, ecx
mov dword [esp + 0xc], eax
ja 0x40812c
jb 0x408120
cmp eax, ebx
jae 0x40812c
mov eax, ebx
mov edx, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x28]
push 0
push eax
push edx
push ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [esi + 8], eax
jne 0x408153
call fcn.004020e0
pop edi
pop esi
pop ebx
add esp, 8
ret 0x18
test ebx, ebx
mov edx, dword [esp + 0x20]
jne 0x408166
mov ecx, dword [esp + 0xc]
sub ecx, edx
mov dword [esi + 4], ecx
jmp 0x408169
mov dword [esi + 4], ebx
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x10], edx
mov edx, dword [esp + 0x24]
push 0
mov dword [esi + 0x14], edx
mov edx, dword [esi + 4]
push edx
mov edx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x14]
push edx
push ecx
push eax
mov dword [esi + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
test eax, eax
mov dword [esi], eax
jne 0x4081b9
call fcn.004020e0
mov edi, eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
mov dword [esi + 8], 0
pop esi
pop ebx
add esp, 8
ret 0x18
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 0x18
Function at 0x409440
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x449ec0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x463fcc]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x463fcc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [0x465aac]
mov edx, dword [eax + 0xc]
mov edi, ecx
mov ecx, 0x465aac
mov dword [esp + 0x14], edi
call edx
add eax, 0x10
mov dword [edi], eax
mov ebp, dword [esp + 0x44]
xor ecx, ecx
cmp ebp, ecx
mov dword [esp + 0x38], ecx
jle 0x4095e3
mov ax, word [esp + 0x40]
cmp ax, cx
mov word [esp + 0x18], ax
mov word [esp + 0x1a], cx
lea esi, [ecx + 1]
je 0x4094cf
lea esi, [esp + 0x18]
lea edx, [esi + 2]
lea esp, [esp]
mov ax, word [esi]
add esi, 2
cmp ax, cx
jne 0x4094c0
sub esi, edx
sar esi, 1
mov dword [esp + 0x1c], ecx
lea eax, [esi + 1]
mov edx, 2
mul edx
cmp edx, ecx
mov byte [esp + 0x38], 1
ja 0x4094eb
cmp eax, 0xffffffff
jbe 0x4094f5
push 0x80070057
call fcn.004011d0
cmp eax, 0xa
jbe 0x409506
push eax
lea ecx, [esp + 0x20]
call fcn.00407f30
jmp 0x40950e
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
push 2
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esi + esi + 2]
push edx
push eax
call fcn.0042e66f
push eax
call fcn.00401850
mov eax, dword [edi]
mov edx, dword [eax - 8]
mov ebx, esi
imul ebx, ebp
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, ebx
add esp, 0x14
or ecx, edx
jge 0x409550
push ebx
mov ecx, edi
call fcn.00401370
cmp esi, 1
mov edi, dword [edi]
jne 0x40957a
test ebp, ebp
mov eax, dword [esp + 0x1c]
movzx eax, word [eax]
jle 0x4095aa
mov dx, ax
mov ecx, ebp
shl edx, 0x10
mov dx, ax
shr ecx, 1
mov eax, edx
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
jmp 0x4095aa
test ebp, ebp
mov ecx, edi
jle 0x4095aa
xor eax, eax
test esi, esi
jle 0x4095a5
jmp 0x409590
mov edx, dword [esp + 0x1c]
mov dx, word [edx + eax*2]
mov word [ecx], dx
add eax, 1
add ecx, 2
cmp eax, esi
jl 0x409590
sub ebp, 1
jne 0x409580
test ebx, ebx
jl 0x4094eb
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
cmp ebx, dword [eax - 8]
jg 0x4094eb
mov dword [eax - 0xc], ebx
mov eax, dword [ecx]
lea ecx, [esp + 0x20]
mov word [eax + ebx*2], 0
cmp dword [esp + 0x1c], ecx
je 0x4095df
lea ecx, [esp + 0x1c]
call fcn.00407ea0
mov edi, dword [esp + 0x14]
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0042ed09
add esp, 0x28
ret 8