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

Disassembly:
sub esp, 0x30
mov eax, dword [0x46d004]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
push edi
mov edi, 0xffff
mov esi, ecx
cmp di, bx
jne 0x408451
xor eax, eax
jmp 0x408529
mov eax, dword [esi + 0x20]
push ebp
mov ecx, dword [eax]
test ecx, ecx
je 0x408481
mov edx, dword [esi + 0x30]
mov ebp, dword [edx]
lea eax, [ecx + ebp*2]
cmp ecx, eax
jae 0x408481
lea ecx, [ebp - 1]
mov ax, bx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x408528
cmp dword [esi + 0x4c], 0
je 0x408525
mov ecx, esi
call fcn.0040a43f
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4084ae
push dword [esi + 0x4c]
push ebx
call fcn.0041f62b
pop ecx
pop ecx
cmp ax, di
je 0x408525
movzx edi, bx
jmp 0x408525
movzx eax, bx
mov dword [esp + 0x18], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2a]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x408525
cmp eax, 1
jle 0x4084f5
cmp eax, 3
jne 0x408525
push dword [esi + 0x4c]
push dword [esp + 0x1c]
jmp 0x40849d
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x1c]
sub ebp, eax
je 0x408514
push dword [esi + 0x4c]
push ebp
push 1
push eax
call fcn.00420052
add esp, 0x10
cmp ebp, eax
jne 0x408525
lea eax, [esp + 0x18]
mov byte [esi + 0x3e], 1
cmp dword [esp + 0x14], eax
mov ax, bx
jne 0x408528
mov ax, di
pop ebp
mov ecx, dword [esp + 0x38]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00419349
add esp, 0x30
ret 4
Function at 0x409563
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x46d004]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push ebp
or ebp, 0xffffffff
push esi
mov esi, ecx
cmp ebx, ebp
jne 0x409588
xor eax, eax
jmp 0x409655
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4095b1
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4095b1
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x40961f
cmp dword [esi + 0x4c], 0
je 0x409652
mov ecx, esi
call fcn.0040a76b
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4095ce
movsx eax, bl
jmp 0x40960e
mov byte [esp + 0x1b], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x2f]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x409652
cmp eax, 1
jle 0x409623
cmp eax, 3
jne 0x409652
movsx eax, byte [esp + 0x1b]
push dword [esi + 0x4c]
push eax
call fcn.0041f0f2
pop ecx
pop ecx
cmp eax, ebp
jne 0x40961f
mov ebx, ebp
mov eax, ebx
jmp 0x409654
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x1c]
sub edi, eax
je 0x409642
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00420052
add esp, 0x10
cmp edi, eax
jne 0x409652
lea eax, [esp + 0x1b]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x14], eax
mov eax, ebx
jne 0x409654
mov eax, ebp
pop edi
mov ecx, dword [esp + 0x38]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00419349
add esp, 0x30
ret 4

Function at 0x40a4c6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x46d004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x40a54e
cmp byte [esi + 0x3e], 0
je 0x40a54e
mov edi, 0xffff
push edi
call fcn.00408429
cmp di, ax
je 0x40a520
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x40a524
sub eax, 1
je 0x40a528
dec eax
sub eax, 1
je 0x40a54e
xor al, al
jmp 0x40a550
mov byte [esi + 0x3e], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40a545
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00420052
add esp, 0x10
cmp edi, eax
jne 0x40a520
cmp byte [esi + 0x3e], 0
sete al
jmp 0x40a550
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00419349
leave
ret
Function at 0x40a78e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x46d004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x40a812
cmp byte [esi + 0x3d], 0
je 0x40a812
push 0xffffffffffffffff
call fcn.00409563
cmp eax, 0xffffffff
je 0x40a7e4
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x40a7e8
sub eax, 1
je 0x40a7ec
dec eax
sub eax, 1
je 0x40a812
xor al, al
jmp 0x40a814
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40a809
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00420052
add esp, 0x10
cmp edi, eax
jne 0x40a7e4
cmp byte [esi + 0x3d], 0
sete al
jmp 0x40a814
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00419349
leave
ret

Function at 0x40f9a0
Capabilities:
Parse credit card information

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x40faf9
push 0x29
pop ebp
mov edx, 0x10000000
cmp eax, 0x7c
je 0x40faf9
cmp eax, ebp
jne 0x40f9e1
cmp dword [esi + 0x10], 0
mov eax, ebp
jne 0x40faf9
cmp eax, ebp
jne 0x40f9e1
test dword [esi + 0x50], edx
je 0x40fb07
cmp eax, 0x2e
jne 0x40f9fc
push 5
lea ecx, [esi + 0x24]
call fcn.0040fbf4
mov ecx, esi
call fcn.0040f977
jmp 0x40fae4
cmp eax, 0x5c
jne 0x40fa51
mov ecx, esi
call fcn.0040f977
test byte [esi + 0x50], 0x80
je 0x40fa45
movzx eax, word [esi + 0x48]
cmp eax, 0x62
jne 0x40fa2d
push 4
lea ecx, [esi + 0x24]
call fcn.0040fbf4
mov ecx, esi
call fcn.0040f977
jmp 0x40faeb
cmp eax, 0x42
jne 0x40fa45
push 4
lea ecx, [esi + 0x24]
call fcn.0040fbf4
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x40fa21
mov ecx, esi
call fcn.00410208
jmp 0x40fae4
cmp eax, 0x5b
jne 0x40fa71
mov ecx, esi
call fcn.0040f977
mov ecx, esi
call fcn.004101bc
cmp dword [esi + 0x4c], 0x5d
je 0x40f9f0
push 4
jmp 0x40fb09
cmp eax, 0x28
jne 0x40fa8d
mov ecx, esi
call fcn.0040f977
mov ecx, esi
call fcn.004102f8
mov bl, al
cmp dword [esi + 0x4c], ebp
jne 0x40fb07
jmp 0x40fad9
cmp eax, 0x5e
jne 0x40fa96
push 2
jmp 0x40fa19
cmp eax, 0x24
jne 0x40faa2
push 3
jmp 0x40fa19
cmp eax, 0x2a
je 0x40fb03
cmp eax, 0x2b
je 0x40fb03
cmp eax, 0x3f
je 0x40fb03
cmp eax, 0x7b
je 0x40fb03
cmp eax, 0x7d
jne 0x40fac0
test dword [esi + 0x50], edx
je 0x40faff
cmp eax, 0x5d
jne 0x40faca
test dword [esi + 0x50], edx
je 0x40fa6a
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.0041047f
mov bl, 1
mov ecx, esi
call fcn.0040f977
test bl, bl
je 0x40faeb
mov ecx, esi
call fcn.004103a8
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x40f9b6
pop esi
pop ebp
mov al, cl
pop ebx
ret
push 6
jmp 0x40fb09
push 0xa
jmp 0x40fb09
push 5
call fcn.0040f2e8
int3
Function at 0x416a28
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x416a30
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x416a43
test al, 0x10
je 0x416a43
mov al, 1
ret
xor al, al
ret

Function at 0x416a46
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [0x46d004]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
mov esi, edx
push edi
mov eax, dword [esi]
mov dword [esi + 4], eax
test ecx, ecx
je 0x416af9
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x416af9
push ebx
push ebp
xor ebp, ebp
mov dword [esi + 4], eax
push ebp
push 0x80
push 3
push ebp
push 5
push 0x120089
push ecx
mov dword [esp + 0x2c], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x416aed
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x416ae6
cmp edi, dword [esp + 0x14]
jb 0x416ab4
mov edi, dword [esp + 0x14]
push esi
push edi
mov ecx, esi
call fcn.00416cea
mov eax, dword [esi + 4]
lea ecx, [esp + 0x10]
sub eax, dword [esi]
push ebp
push ecx
push eax
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416ae1
mov eax, dword [esi + 4]
sub eax, dword [esi]
cmp dword [esp + 0x10], eax
je 0x416ae6
mov eax, dword [esi]
mov dword [esi + 4], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
cmp eax, dword [esi + 4]
pop ebp
setne al
pop ebx
jmp 0x416afb
xor al, al
mov ecx, dword [esp + 0x14]
pop edi
pop esi
xor ecx, esp
call fcn.00419349
add esp, 0x10
ret

Function at 0x416b0c
Capabilities:
Enumerate files on windows

Disassembly:
push 0x26c
mov eax, 0x453079
call fcn.0044859e
mov edi, edx
cmp dword [ecx + 0x14], 8
jb 0x416b25
mov ecx, dword [ecx]
lea eax, [ebp - 0x260]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x416b41
xor al, al
jmp 0x416bd6
cmp word [ebp - 0x234], 0x2e
je 0x416bb7
test byte [ebp - 0x260], 0x10
jne 0x416bb7
and dword [ebp - 0x268], 0
lea ecx, [ebp - 0x278]
xor eax, eax
mov dword [ebp - 0x264], 7
mov word [ebp - 0x278], ax
lea eax, [ebp - 0x234]
push eax
call fcn.0040a0af
and dword [ebp - 4], 0
lea ecx, [ebp - 0x278]
mov eax, dword [edi + 4]
push ecx
cmp dword [edi + 8], eax
je 0x416ba0
mov ecx, eax
call fcn.0040aeab
add dword [edi + 4], 0x18
jmp 0x416ba8
push eax
mov ecx, edi
call fcn.00416bdc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x278]
call fcn.004011f3
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x416b41
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
call fcn.00448548
ret
Function at 0x4171ca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ecx
mov dword [esp + 4], ecx
push ebx
mov ebx, edx
mov edx, dword [esp + 0x14]
mov dword [esp + 4], edx
push ebp
push esi
mov eax, dword [edx]
mov dword [edx + 4], eax
push edi
mov edi, dword [esp + 0x1c]
test ecx, ecx
je 0x417285
cmp dword [edi + 0x10], 0
je 0x417285
cmp dword [ebx + 0x10], 0
je 0x417285
mov esi, dword [0x46f4fc]
mov ebp, dword [0x46f500]
cmp esi, ebp
je 0x417285
mov edx, edi
mov ecx, esi
call fcn.00412ee6
test al, al
jne 0x417227
add esi, 0x18
cmp esi, ebp
jne 0x417213
cmp esi, ebp
je 0x417285
cmp dword [edi + 0x14], 8
jb 0x417233
mov edi, dword [edi]
cmp dword [ebx + 0x14], 8
jb 0x41723b
mov ebx, dword [ebx]
push edi
push ebx
mov ebx, dword [esp + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x417285
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x417285
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x417285
push dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
lea edx, [eax + edi]
push edx
push eax
call fcn.004175cc
mov al, 1
jmp 0x417287
xor al, al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x425c1a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004258da

Function at 0x42b867
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042b52a

Function at 0x42b872
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042b6ab
Function at 0x401070
Capabilities:
Accept command line arguments
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x4010e0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40117b
cmp ax, 9
je 0x401168
cmp ax, 0x20
je 0x401168
mov dword [ebp - 0x6c], 0
xor edi, edi
lea esi, [esi]
cmp ax, 0x5c
je 0x4011d0
cmp ax, 0x22
je 0x4011e0
mov dword [ebp - 0x6c], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40117b
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x401120
test edi, 1
jne 0x401120
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x401168
cmp ax, 0x20
je 0x401168
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x4011f8
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00401050
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
add dword [ebp - 0x6c], 1
jmp 0x40113b
and dword [ebp - 0x6c], 1
jne 0x401134
xor edi, 1
jmp 0x40113b
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x401194
Function at 0x4010e0
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x4010e0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x78
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x40117b
cmp ax, 9
je 0x401168
cmp ax, 0x20
je 0x401168
mov dword [ebp - 0x6c], 0
xor edi, edi
lea esi, [esi]
cmp ax, 0x5c
je 0x4011d0
cmp ax, 0x22
je 0x4011e0
mov dword [ebp - 0x6c], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x40117b
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x401120
test edi, 1
jne 0x401120
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x401168
cmp ax, 0x20
je 0x401168
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x4011f8
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00401050
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
add dword [ebp - 0x6c], 1
jmp 0x40113b
and dword [ebp - 0x6c], 1
jne 0x401134
xor edi, 1
jmp 0x40113b
mov eax, 1
mov esi, 1
mov word [ebp - 0x2c], ax
jmp 0x401194

Function at 0x414de4
Capabilities:
Encode data using xor

Disassembly:
xor dword [ebx], edi
sub ecx, edx
add ebx, 4
push edx
mov eax, dword [esp]
add esp, 4
add edx, 0x759d3f5e
cmp ebx, esi
jne fcn.00414de4
ret

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x403d4e
Capabilities:
Suspend thread

Disassembly:
push 0x10
mov eax, 0x5e7ce3
call fcn.005bd067
mov edi, ecx
cmp byte [edi + 0x2e6], 0
jne 0x403e91
mov byte [edi + 0x2e6], 1
push ecx
mov byte [0x6834b3], 1
call fcn.00405e36
mov eax, dword [edi + 0x2e8]
test eax, eax
je 0x403d96
mov eax, dword [eax]
test eax, eax
je 0x403d96
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
xor ebx, ebx
lea ecx, [ebp - 0x1c]
push str.cyri_api_LogUserEvent
mov dword [ebp - 0x1c], ebx
call fcn.004030b4
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.004771d4
push eax
lea ecx, [ebp - 0x18]
call fcn.004022fc
mov byte [ebp - 4], 2
lea eax, [ebp - 0x14]
push eax
call fcn.00401e93
mov byte [ebp - 4], 3
push dword [eax]
lea eax, [ebp - 0x18]
push str.Tag:_detection_app__EventType:_cancel__Description:_cancel__UserId:__s_
push eax
call fcn.004035cc
add esp, 0xc
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00402325
push 1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00405e7e
mov eax, dword [edi + 0x2ec]
test eax, eax
je 0x403e12
push eax
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_KillTimer]
push 0x1a
mov ecx, edi
call fcn.004045d7
push ebx
push 0x19
mov ecx, edi
call fcn.0040461e
mov dword [ebp - 0x14], ebx
call fcn.004771d4
push eax
lea ecx, [ebp - 0x14]
call fcn.004022fc
mov byte [ebp - 4], 6
push 0x1e
call fcn.004795fd
test eax, eax
je 0x403e50
push 0x1e
push eax
lea ecx, [ebp - 0x14]
call fcn.0040335b
mov esi, dword [ebp - 0x14]
lea ecx, [edi + 0x1d0]
push esi
call fcn.004904de
push 2
mov ecx, edi
call fcn.0049281f
mov byte [ebp - 4], 2
lea ecx, [esi - 0x10]
call fcn.00402325
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00402325
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00402325
xor eax, eax
call fcn.005bd011
ret 8
Function at 0x4097ca
Capabilities:
Parse credit card information

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x409927
mov edx, 0x10000000
cmp eax, 0x7c
je 0x409927
cmp eax, 0x29
jne 0x409803
cmp dword [esi + 0x10], 0
jne 0x409927
test dword [esi + 0x50], edx
je 0x40992d
cmp eax, 0x2e
jne 0x40981e
push 5
lea ecx, [esi + 0x24]
call fcn.00409a52
mov ecx, esi
call fcn.004097a5
jmp 0x409911
cmp eax, 0x5c
jne 0x409873
mov ecx, esi
call fcn.004097a5
test byte [esi + 0x50], 0x80
je 0x409867
movzx eax, word [esi + 0x48]
cmp eax, 0x62
jne 0x40984f
push 4
lea ecx, [esi + 0x24]
call fcn.00409a52
mov ecx, esi
call fcn.004097a5
jmp 0x409918
cmp eax, 0x42
jne 0x409867
push 4
lea ecx, [esi + 0x24]
call fcn.00409a52
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x409843
mov ecx, esi
call fcn.0040a85f
jmp 0x409911
cmp eax, 0x5b
jne 0x409893
mov ecx, esi
call fcn.004097a5
mov ecx, esi
call fcn.0040a813
cmp dword [esi + 0x4c], 0x5d
je 0x409812
push 4
jmp 0x40992f
cmp eax, 0x28
jne 0x4098b7
mov ecx, esi
call fcn.004097a5
mov ecx, esi
call fcn.0040a90d
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x40992d
mov ecx, esi
call fcn.004097a5
jmp 0x40990d
cmp eax, 0x5e
jne 0x4098c3
push 2
jmp 0x40983b
cmp eax, 0x24
jne 0x4098cf
push 3
jmp 0x40983b
cmp eax, 0x2a
je 0x409923
cmp eax, 0x2b
je 0x409923
cmp eax, 0x3f
je 0x409923
cmp eax, 0x7b
je 0x409923
cmp eax, 0x7d
jne 0x4098ed
test dword [esi + 0x50], edx
je 0x40991f
cmp eax, 0x5d
jne 0x4098f7
test dword [esi + 0x50], edx
je 0x40988c
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.0040aa81
mov ecx, esi
call fcn.004097a5
mov bl, 1
test bl, bl
je 0x409918
mov ecx, esi
call fcn.0040a9bd
mov cl, 1
jmp 0x4097d1
push 6
jmp 0x40992f
push 0xa
jmp 0x40992f
pop esi
mov al, cl
pop ebx
pop ecx
ret
push 5
call fcn.0040888b
int3
Function at 0x417bd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ea390
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x677010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test byte [esi + 0x3c], 1
je 0x417c60
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x417c0e
mov eax, dword [esi + 0x30]
mov eax, dword [eax]
lea edx, [ecx + eax*2]
jmp 0x417c1b
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax]
mov eax, dword [esi + 0x1c]
mov eax, dword [eax]
lea edx, [eax + ecx*2]
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
sub edx, ecx
mov dword [ebp - 4], 0xffffffff
sar edx, 1
cmp edx, 0x7fffffff
ja 0x417cb1
lea eax, [edx + edx]
cmp eax, 0x1000
jb 0x417c57
test cl, 0x1f
jne 0x417cb1
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x417cb1
sub ecx, eax
cmp ecx, 4
jb 0x417cb1
cmp ecx, 0x23
ja 0x417cb1
mov ecx, eax
push ecx
call fcn.00476ee1
add esp, 4
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [esi + 0x10]
mov dword [eax], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
and dword [esi + 0x3c], 0xfffffffe
mov dword [esi + 0x38], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
call fcn.005c3f14
int3