joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452c30
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x452d3c
test eax, eax
je 0x452d3c
push esi
push edi
mov ecx, 0x10
mov esi, 0x46dff0
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x452d23
lea edi, [eax + 4]
jmp 0x452c87
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x452c9c
mov dword [ebp - 4], 2
jmp 0x452cbd
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x452cb3
mov dword [ebp - 4], 1
jmp 0x452cbd
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x452d33
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x452cf6
mov byte [ecx], 0x3d
jmp 0x452d02
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x452d0d
mov byte [ecx], 0x3d
jmp 0x452d13
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x452c84
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x58edaf
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [eax + 4]
cmp bp, 0x185f
xor edx, edx
jmp 0x645aac
jbe 0x4e840c
mov eax, dword [ebx]
cmp dl, 0x5b
clc
stc
xor edx, edx
jmp 0x5f8337
fild qword [ebp - 0x18]
jmp 0x5f3860
cmp dword [ebx + 4], 0
jmp 0x492a8e
mov edx, 5
cwde
mov eax, dword [ebp + 8]
jmp 0x528add
jb 0x68f327
inc esi
movzx edi, word [ebx]
xor eax, 0x12ec5492
shr edi, 0xc
movzx eax, word [ebx]
test bx, 0x4cbf
cmc
cmp di, 0x4cc
and ax, 0xfff
movzx eax, ax
stc
clc
mov dword [ebp - 0x10], eax
cmp edi, 3
jne 0x553b90
mov eax, dword [ebp + 0xc]
clc
test di, si
xor edx, edx
push edx
cmovle edx, edx
push eax
mov eax, 0x4f447d1c
cdq
lahf
mov eax, dword [ebp - 0x10]
cdq
push edx
jmp 0x68a96e
ja 0x649715
pop edi
pop esi
pop ebx
jmp 0x4eea43
mov esp, ebp
pop ebp
jmp 0x62be58
push eax
lea eax, [ebp - 8]
jmp 0x6666b1
sub eax, eax
mov dword [ebp - 0x14], eax
jmp 0x4945bd
call fcn.00439ee0
mov ebx, eax
clc
cmp al, bh
jmp 0x4a93e2
call fcn.00439db8
call fcn.00439d88
add ebx, 2
dec esi
jmp 0x68f321
mov eax, dword [eax + 4]
jmp 0x593055
push ebp
mov ebp, esp
jmp 0x63af6c
call fcn.00439db8
mov dword [ebp - 8], eax
jmp 0x6666b6
call fcn.004045c0
mov esi, eax
jmp 0x660e5d
fdiv dword [0x43a0e8]
jmp 0x5dc039
push edx
jmp 0x634c69
call fcn.00439db8
mov ebx, eax
mov al, 0x2b
adc al, 0x51
mov eax, dword [ebp - 8]
test ebp, ebx
mov eax, dword [eax + 4]
sub eax, 8
cmc
mov dword [ebp - 0x18], eax
cmp cx, 0x2de4
jmp 0x52650a
ret 8
push eax
mov eax, dword [ebp + 8]
jmp 0x57c2dd
add esp, 0xffffffe8
push ebx
cdq
movsx edx, di
mov edx, esp
push esi
push edi
setp al
jmp 0x4a9e6a
push edx
jmp 0x523c81
mov eax, dword [ebp - 8]
cmp di, 0x532a
mov eax, dword [eax]
cmp cx, 0x226f
xor edx, edx
push edx
jmp 0x665bf8
dec esi
test esi, esi
jmp 0x4dc173
push eax
movzx ax, dh
mov eax, 0x29c40b52
cwde
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
call fcn.00439db8
mov dword [ebp - 0xc], eax
push 0
mov ah, 0xc
push 8
mov eax, esi
setp al
not ax
mov eax, dword [ebp - 8]
jmp 0x602bcf
call fcn.00439d88
mov eax, dword [ebp - 8]
test di, 0x37c8
test edx, ebp
cmp dword [eax], 0
jmp 0x4e8406
push eax
mov eax, dword [ebp - 0xc]
jmp 0x553b86
jne 0x4dc17a
mov eax, dword [ebp - 8]
clc
test edx, edi
jmp 0x488e1e

Function at 0x59ce86
Capabilities:
Inspect section memory permissions

Disassembly:
or edx, 0x10
jmp 0x4d7bda
je 0x615603
test eax, 0x80000000
jmp 0x5fb272
je 0x4d8135
test eax, 0x80000000
jmp 0x693e10
je 0x67c865
or edx, 0x200
jmp 0x67c865
or edx, 1
mov ebp, edi
movsx ebp, ax
mov eax, edx
mov ebp, 0x3b623c7a
movsx ebp, bp
pop ebp
ret 4
test eax, 0x80000000
je 0x44c207
or edx, 0x80
jmp 0x60fe18
jmp 0x4d7bda
test eax, 0x40000000
jmp 0x44ccf6
test eax, 0x4000000
jmp 0x4a7b19
push ebp
not ax
mov ebp, esp
xor ah, 0xc7
mov eax, dword [ebp + 8]
stc
cmp di, bp
cmc
xor edx, edx
jmp 0x564713
or edx, 2
jmp 0x4d7bda
or edx, 0x20
jmp 0x68a8b2
je 0x4d7bd2
or edx, 8
jmp 0x62421f
je 0x5cce07
or edx, 4
jmp 0x683381
jmp 0x4d7bda
test eax, 0x80000000
jmp 0x5f18d5
jmp 0x4d7bda
test eax, 0x20000000
je 0x55b072
test eax, 0x40000000
jmp 0x45b2f2
jmp 0x4d7bda
jmp 0x4d7bda
je 0x5d0d9b
or edx, 0x40
jmp 0x4ffc49
Function at 0x635db9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
adc edx, dword [esp + 4]
test si, 0x30a6
jmp 0x518972
dec esi
jne 0x5c8c0f
mov eax, dword [ebp + 8]
movsx edx, ax
mov edx, 0x272e6a73
xchg dl, dl
mov edx, dword [ebp - 0x1c]
call fcn.00406ef0
mov esi, dword [ebp - 0x1c]
cmc
test esi, esi
jmp 0x5a6f7d
mov esp, ebp
jmp 0x638c02
jle 0x49d207
sub ecx, ecx
inc ebx
jmp 0x481413
dec esi
jmp 0x4e338c
jne 0x5680d9
pop edi
movsx bx, dl
cmovle ebx, eax
movsx ebx, sp
pop esi
pop ebx
jmp 0x495eed
add esp, 8
stc
test ebp, 0x6f2d4328
movzx eax, byte [eax]
clc
xor byte [ebp + ecx - 0x14], al
jmp 0x6c8bb2
inc eax
jmp 0x5e5fb3
ret 4
call fcn.00407454
mov word [eax + ebx*2 - 2], di
jmp 0x580a84
push 0x10
push ebp
jmp 0x573aa6
push 0
jmp 0x566514
call fcn.004bb843
pop ecx
xor edx, edx
jmp 0x6049f0
inc ebx
jmp 0x4a5e52
push esi
mov bl, dl
push edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
not ax
setns ah
mov ebx, 0x14
movsx eax, sp
dec al
lea eax, [ebp - 0x14]
jmp 0x605e89
jle 0x4e3392
mov ebx, 1
jmp 0x5680d9
jl 0x48141a
inc esi
btc ax, 0x11
xor ebx, ebx
or eax, eax
mov eax, dword [ebp - 0x18]
sub edx, edx
test si, si
jmp 0x679c2b
dec esi
cmp esp, 0x55340ff6
test esi, esi
jmp 0x5c8bff
dec ebx
jne 0x605e89
sub ecx, ecx
mov esi, edx
jmp 0x5d753e
call fcn.00407cd0
add eax, 1
movzx edi, di
adc edx, 0
mov dh, al
movsx edi, bp
movzx edx, di
mov edx, 0x43c17c
mov di, 0x3653
movzx edi, word [edx + eax*2 - 2]
movsx eax, si
mov ax, 0x2bf7
bswap ax
mov eax, dword [ebp + 8]
jmp 0x55427f
mov byte [eax], 7
jmp 0x522313
push ebx
xchg ebx, ebx
jmp 0x593234
add esp, 0xffffffe4
jmp 0x620bbc
push ebp
mov ebp, esp
jmp 0x632c56
pop ebp
jmp 0x53730e
push edx
dec dl
push eax
cwd
mov eax, ebx
btr edx, 0x7b
add dh, cl
cmp ax, si
cdq
cmp al, 0xb
jmp 0x682202
add eax, dword [esp]
jmp 0x47e37b
inc ecx
cmp ecx, 0x13
jmp 0x49d1ff
Function at 0x401031
Capabilities:
Hide graphical window

Disassembly:
push 0
call sub.kernel32.dll_GetModuleHandleA
mov dword [0x403100], eax
call sub.kernel32.dll_GetCommandLineA
mov dword [0x403104], eax
push 0xa
push dword [0x403104]
push 0
push dword [0x403100]
call 0x401031
push eax
call sub.kernel32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xffffffb0
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], 0x401138
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
push dword [0x403100]
pop dword [ebp - 0x1c]
mov dword [ebp - 0x10], 6
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], str.WinClass
push 0x7f00
push 0
call sub.user32.dll_LoadIconA
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [ebp - 0x14], eax
push 0x3f
call sub.user32.dll_GetSystemMetrics
cmp eax, 3
jne 0x4010b8
add eax, 0x1d
and eax, eax
jne 0x4010a5
push 0x400000
push 0
call fcn.0040139b
lea eax, [ebp - 0x30]
push eax
call sub.user32.dll_RegisterClassExA
push 0
push dword [ebp + 8]
push 0
push 0
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.Application
push str.WinClass
push 0
call sub.user32.dll_CreateWindowExA
mov dword [ebp - 0x50], eax
push dword [ebp + 0x14]
push dword [ebp - 0x50]
call sub.user32.dll_ShowWindow
push dword [ebp - 0x50]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_GetMessageA
or eax, eax
je 0x401131
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x4c]
push eax
call sub.user32.dll_DispatchMessageA
jmp 0x40110a
mov eax, dword [ebp - 0x44]
leave
ret 0x10
Function at 0x401165
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pushal
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, str.GetLastError
sub eax, 0x2000
add eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, 0x403008
sub eax, 0x2000
add eax, dword [ebp + 0x10]
push dword [eax]
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, 0x403004
sub eax, 0x2000
add eax, dword [ebp + 0x10]
call dword [eax]
push eax
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, 0x403031
sub eax, 0x2000
add eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, 0x403008
sub eax, 0x2000
add eax, dword [ebp + 0x10]
push dword [eax]
mov eax, dword [ebp + 0x14]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, 0x403004
sub eax, 0x2000
add eax, dword [ebp + 0x10]
call dword [eax]
pop eax
call eax
or eax, eax
jne 0x401226
push eax
jmp 0x401234
cmp eax, 0x7f
jne 0x401232
push 0x100
jmp 0x401234
push 1
mov esi, dword [ebp + 8]
mov ebx, 0xa
mov ecx, dword [ebp + 0xc]
shr ecx, 2
xor edx, edx
mov eax, dword [ebp + 0xc]
shr eax, 2
sub eax, ecx
push eax
div ebx
add edx, 2
sub dword [esi], edx
xor edx, edx
pop eax
div ebx
add edx, dword [esp]
add edx, 0x3587fa22
xor dword [esi], edx
add esi, 4
loop 0x401242
pop eax
popal
leave
ret 0x10

Function at 0x40126f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
and eax, 0xffff0000
mov dword [ebp - 4], eax
mov dword [ebp - 4], eax
cmp word [eax], 0x5a4d
jne 0x401297
add eax, dword [eax + 0x3c]
cmp word [eax], 0x4550
je 0x4012a3
sub eax, 0x10000
cmp eax, 0x10000
jne 0x401283
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [edx], eax
add eax, dword [eax + 0x3c]
lea edx, [eax + 0x18]
lea eax, [edx + 0x60]
mov edx, dword [eax]
add edx, dword [ebp - 4]
mov eax, dword [edx + 0x20]
add eax, dword [ebp - 4]
xor ebx, ebx
mov esi, dword [eax + ebx*4]
add esi, dword [ebp - 4]
mov edi, dword [ebp + 0x10]
add edi, dword [edi + 0x3c]
add edi, 0x14
add edi, 4
mov edi, dword [edi + 0x18]
add edi, str.GetProcAddress
sub edi, 0x2000
add edi, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
add eax, dword [eax + 0x3c]
add eax, 0x14
add eax, 4
mov eax, dword [eax + 0x18]
add eax, section..data
sub eax, 0x2000
add eax, dword [ebp + 0xc]
mov ecx, dword [eax]
pop eax
repe cmpsb byte [esi], byte es:[edi]
or ecx, ecx
je 0x401311
inc ebx
cmp ebx, dword [edx + 0x18]
jne 0x4012c1
mov esi, dword [edx + 0x24]
add esi, dword [ebp - 4]
xor eax, eax
mov ax, word [esi + ebx*2]
add eax, dword [edx + 0x10]
mov ebx, eax
dec ebx
mov esi, dword [edx + 0x1c]
add esi, dword [ebp - 4]
mov eax, dword [esi + ebx*4]
add eax, dword [ebp - 4]
pop ebx
leave
ret 0xc
Function at 0x403434
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x455214]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x404], ax
lea eax, [ebp - 0x402]
push eax
call fcn.004226c0
add esp, 0xc
push 0x200
lea eax, [ebp - 0x404]
push eax
push dword [edi + 0x68]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x404]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x403483
sub eax, ecx
push esi
sar eax, 1
lea esi, [edi + 0x8c]
lea ecx, [ebp - 0x404]
call fcn.00401efe
push 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.0042066a
leave
ret
Function at 0x405ce9
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x455214]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 4]
push edi
or ecx, 0x2001f
push ecx
push eax
push dword [esi]
xor ebx, ebx
lea edi, [ebp - 0x218]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], ebx
call fcn.00405ca2
mov edi, eax
cmp edi, ebx
je 0x405d57
cmp dword [ebp - 0x218], ebx
je 0x405d50
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x405e1a
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x405d7b
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x218]
call fcn.00405ce9
mov dword [ebp - 0x224], eax
cmp eax, ebx
jne 0x405de4
lea eax, [ebp - 0x22c]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], 0x100
call edi
test eax, eax
je 0x405d5f
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x218], ebx
je 0x405dc6
push dword [ebp - 0x218]
call edi
mov dword [ebp - 0x218], ebx
mov eax, dword [esi + 8]
push dword [ebp - 0x220]
mov dword [ebp - 0x214], ebx
push dword [esi]
cmp eax, ebx
je 0x405e00
mov esi, eax
call fcn.00405e7c
jmp 0x405e06
cmp dword [ebp - 0x218], ebx
je 0x405df8
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x224]
jmp 0x405e1a
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
cmp dword [ebp - 0x218], ebx
je 0x405e18
push dword [ebp - 0x218]
call edi
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042066a
leave
ret 4
Function at 0x406737
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x441ed6
call fcn.00426a0b
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor esi, esi
mov edi, edx
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x40678f
call fcn.004051ff
mov esi, eax
jmp 0x406899
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x4067a8
call fcn.004051ff
jmp 0x40688b
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, esi
je 0x40679e
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x424], edi
cmp eax, edi
jae 0x4067e5
mov esi, 0x8007000e
jmp 0x40688d
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, esi
ja 0x4067fa
cmp eax, 0xffffffff
jbe 0x406804
push 0x80070216
call fcn.00402b92
cmp eax, 0x400
jbe 0x406831
push eax
lea eax, [ebp - 0x418]
push eax
call fcn.004051dc
jmp 0x40683d
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], esi
je 0x4067db
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x40679e
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x10]
xor ecx, ecx
mov word [edx + eax*2], cx
mov ecx, dword [ebp - 0x418]
lea edx, [ebp - 0x42c]
call fcn.004065d7
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4068b2
lea eax, [ebp - 0x418]
call fcn.004051c6
mov eax, esi
call fcn.00426a67
ret 0xc
Function at 0x408ae8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x455214]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x10], edi
jne 0x408c23
push ebx
lea eax, [ebp - 0x220]
push eax
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x408c22
lea eax, [ebp - 0x220]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x408b2e
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x220]
call fcn.00401efe
push 8
pop ebx
cmp dword [esi + 0x14], ebx
jb 0x408b54
mov eax, dword [esi]
jmp 0x408b56
mov eax, esi
push eax
call fcn.00421c01
pop ecx
test eax, eax
jne 0x408c22
push str.DoneEx
push 7
pop edi
mov eax, esi
call fcn.0040372a
cmp dword [esi + 0x14], ebx
jb 0x408b7d
mov eax, dword [esi]
jmp 0x408b7f
mov eax, esi
push eax
call fcn.00421c01
pop ecx
test eax, eax
je 0x408ba0
cmp dword [esi + 0x14], ebx
jb 0x408b93
mov eax, dword [esi]
jmp 0x408b95
mov eax, esi
push eax
call fcn.00421d2d
pop ecx
test eax, eax
jne 0x408c16
push str.XCell_Compiler
push 0xf
pop edi
mov eax, esi
call fcn.0040372a
cmp dword [esi + 0x14], ebx
jb 0x408bb8
mov eax, dword [esi]
jmp 0x408bba
mov eax, esi
push eax
call fcn.00421c01
pop ecx
test eax, eax
je 0x408bdb
cmp dword [esi + 0x14], ebx
jb 0x408bce
mov eax, dword [esi]
jmp 0x408bd0
mov eax, esi
push eax
call fcn.00421d2d
pop ecx
test eax, eax
jne 0x408c16
push str.AddIns
push 7
pop edi
mov eax, esi
call fcn.0040372a
cmp dword [esi + 0x14], ebx
jb 0x408bf3
mov eax, dword [esi]
jmp 0x408bf5
mov eax, esi
push eax
call fcn.00421c01
pop ecx
test eax, eax
je 0x408c22
cmp dword [esi + 0x14], ebx
jb 0x408c09
mov eax, dword [esi]
jmp 0x408c0b
mov eax, esi
push eax
call fcn.00421d2d
pop ecx
test eax, eax
je 0x408c22
xor eax, eax
mov ecx, 0x4482ac
call fcn.00401efe
pop ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042066a
leave
ret

Function at 0x408c33
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [eax + 0x14], 8
jb 0x408c3e
mov eax, dword [eax]
push esi
push 0x44c944
push eax
call fcn.00421e1d
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x408c86
cmp dword [edi + 0x14], 0x10
jb 0x408c5c
mov eax, dword [edi]
jmp 0x408c5e
mov eax, edi
add eax, dword [ebp + 8]
push esi
push 1
push dword [ebp + 0xc]
push eax
call fcn.00421f8b
add esp, 0x10
push esi
cmp eax, 1
je 0x408c80
call fcn.00422072
pop ecx
xor eax, eax
jmp 0x408c89
call fcn.00422072
pop ecx
xor eax, eax
inc eax
pop esi
pop ebp
ret 8
Function at 0x40ceb7
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, 0xb1
mov eax, esi
mov ecx, edi
mov byte [ebp - 1], 0
call fcn.0040d2f1
mov ebx, dword [edi + 0x10]
cmp ebx, esi
jae 0x40cf65
call fcn.004215c7
push 0x24
cdq
pop ecx
idiv ecx
cmp edx, 9
ja 0x40cef0
add dl, 0x30
jmp 0x40cef3
add dl, 0x57
lea eax, [edx - 0x30]
mov cl, 9
cmp cl, al
sbb al, al
inc al
mov byte [ebp - 5], dl
test ebx, ebx
jne 0x40cf0d
test al, al
jne 0x40cf56
test ebx, ebx
je 0x40cf1f
cmp dword [edi + 0x14], 0x10
jb 0x40cf17
mov esi, dword [edi]
jmp 0x40cf19
mov esi, edi
cmp byte [esi + ebx - 1], dl
je 0x40cf56
cmp byte [ebp - 1], 0
jne 0x40cf49
test al, al
je 0x40cf2f
mov byte [ebp - 1], 1
jmp 0x40cf49
cmp dword [edi + 0x10], 0xb0
jne 0x40cf49
call fcn.004215c7
push 0xa
cdq
pop ecx
idiv ecx
add dl, 0x30
mov byte [ebp - 5], dl
push dword [ebp - 5]
xor ebx, ebx
inc ebx
mov esi, edi
call fcn.0040d29a
mov ebx, dword [edi + 0x10]
cmp ebx, 0xb1
jb 0x40cedb
pop esi
mov eax, edi
pop ebx
leave
ret

Function at 0x40eca5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x40ecc3
cmp word [eax], bx
je 0x40ecc3
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40ecc3
test al, 0x10
jne 0x40ecc3
mov bl, 1
mov al, bl
pop ebx
ret

Function at 0x40ed0d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x455214]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x30], 0
push ebx
push esi
push edi
push 9
xor eax, eax
mov ebx, ecx
pop ecx
push dword [ebp + 8]
mov word [ebp - 0x2c], ax
lea edi, [ebp - 0x2a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x2c]
push 0x44cd24
push eax
mov esi, edx
call fcn.00421a16
add esp, 0xc
push ebx
lea eax, [ebp - 0x2c]
push eax
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebx
je 0x40edc5
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x40edc5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x38], eax
cmp eax, ebx
je 0x40edc5
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x34], eax
cmp eax, ebx
je 0x40edc5
mov ecx, dword [esi + 0x10]
inc eax
cmp eax, ecx
ja 0x40ed9b
or ecx, 0xffffffff
call fcn.00407fdd
jmp 0x40eda7
push ebx
mov ebx, eax
sub ebx, ecx
mov edi, esi
call fcn.0040f1fd
or ecx, 0xffffffff
xor eax, eax
call fcn.00407fdd
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
mov edx, esi
call fcn.0040822c
mov dword [ebp - 0x30], 1
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x30]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042066a
leave
ret
Function at 0x40edd7
Capabilities:
Get common file path

Disassembly:
push 0x85c
mov eax, 0x442361
call fcn.004269d5
mov eax, dword [ebp + 8]
mov dword [ebp - 0x868], eax
xor eax, eax
push 0x7fe
mov word [ebp - 0x810], ax
xor edi, edi
lea eax, [ebp - 0x80e]
push edi
push eax
call fcn.004226c0
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x810]
push eax
lea esi, [ebp - 0x848]
call fcn.00406b7a
mov dword [ebp - 4], edi
xor eax, eax
mov dword [ebp - 0x818], 7
mov dword [ebp - 0x81c], edi
mov word [ebp - 0x82c], ax
mov byte [ebp - 4], 1
or eax, 0xffffffff
xor ecx, ecx
lea esi, [ebp - 0x82c]
call fcn.00401c10
push 0xa
mov eax, esi
pop ebx
call fcn.0040cf6b
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x864]
push eax
mov ebx, esi
call fcn.0040f27a
cmp dword [eax + 0x14], 8
pop ecx
pop ecx
jb 0x40ee8c
mov eax, dword [eax]
push 0
push eax
call fcn.00422165
pop ecx
mov ebx, eax
pop ecx
neg ebx
sbb bl, bl
push 1
xor edi, edi
lea esi, [ebp - 0x864]
call fcn.00402032
inc bl
jne 0x40ee53
lea eax, [ebp - 0x848]
push eax
lea eax, [ebp - 0x864]
push eax
lea ebx, [ebp - 0x82c]
call fcn.0040f27a
pop ecx
pop ecx
mov ebx, eax
mov eax, dword [ebp - 0x868]
mov byte [ebp - 4], 2
call fcn.00403620
push 1
lea esi, [ebp - 0x864]
call fcn.00402032
mov eax, dword [ebp - 0x868]
cmp dword [eax + 0x14], 8
jb 0x40eef8
mov ebx, dword [eax]
jmp 0x40eefa
mov ebx, eax
push 1
xor edi, edi
lea esi, [ebp - 0x82c]
call fcn.00402032
push 1
lea esi, [ebp - 0x848]
call fcn.00402032
mov eax, ebx
call fcn.00426a58
ret