joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004e6d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x100ab6c], ebx
push esi
push edi
jne 0x1004eed
push 0x1001924
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1004f28
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001918
push edi
call esi
test eax, eax
mov dword [0x100ab6c], eax
je 0x1004f28
push 0x1001908
push edi
call esi
push 0x10018f4
push edi
mov dword [0x100ab70], eax
call esi
cmp dword [0x100aa00], 2
mov dword [0x100ab74], eax
jne 0x1004eed
push 0x10018d8
push edi
call esi
test eax, eax
mov dword [0x100ab7c], eax
je 0x1004eed
push 0x10018c0
push edi
call esi
mov dword [0x100ab78], eax
mov eax, dword [0x100ab78]
test eax, eax
je 0x1004f32
call eax
test eax, eax
je 0x1004f19
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x100ab7c]
test eax, eax
je 0x1004f19
test byte [ebp - 8], 1
jne 0x1004f32
cmp dword [0x100aa0c], 4
jb 0x1004f2c
or byte [ebp + 0x12], 0x20
jmp 0x1004f51
xor eax, eax
jmp 0x1004f61
or byte [ebp + 0x12], 4
jmp 0x1004f51
mov eax, dword [0x100ab70]
test eax, eax
je 0x1004f51
call eax
mov ebx, eax
test ebx, ebx
je 0x1004f51
mov eax, dword [0x100ab74]
test eax, eax
je 0x1004f51
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x100ab6c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1005ee4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x100c328]
push ebx
push esi
push edi
jae 0x1006069
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x100c340]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x14], ebx
je 0x1006069
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
jne 0x1005f38
xor eax, eax
jmp 0x100607d
test al, 0x20
je 0x1005f49
push 2
push edi
push edi
push ecx
call fcn.01007867
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1006005
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp + 8], edi
jbe 0x100603d
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x418]
cmp ecx, dword [ebp + 0x10]
jae 0x1005f9f
mov edx, dword [ebp - 4]
inc dword [ebp - 4]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1005f90
inc dword [ebp - 0x10]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x14]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x1005f75
mov edi, eax
lea eax, [ebp - 0x418]
sub edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x418]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1005fdf
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
cmp eax, edi
jl 0x1005fe8
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x1005f69
jmp 0x1005fea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 8]
cmp eax, edi
jne 0x1006064
cmp dword [ebp + 8], edi
je 0x100603d
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x1006032
mov dword [0x100a9f8], eax
jmp 0x1006070
push edi
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1006027
mov eax, dword [ebp - 0xc]
mov dword [ebp + 8], edi
mov dword [ebp - 8], eax
jmp 0x1005fea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x1005fea
push dword [ebp + 8]
call fcn.01007752
pop ecx
jmp 0x100607a
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1006052
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x1005f31
mov dword [0x100a9f4], 0x1c
mov dword [0x100a9f8], edi
jmp 0x100607a
sub eax, dword [ebp - 0x10]
jmp 0x100607d
and dword [0x100a9f8], 0
mov dword [0x100a9f4], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1008713
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.01004110
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10087a8
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x100aa00]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x10087a8
cmp eax, 1
je 0x10087c0
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10087a8
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x100877d
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x10087a4
xor eax, eax
inc eax
jmp 0x10087dc
cmp esi, ebx
jae 0x10087ac
xor eax, eax
jmp 0x10087dc
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x100aa00]
jmp 0x10087c2
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4177e3
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0
mov eax, 0x417802
mov dl, byte [eax]
add dl, 0xca
mov byte [eax], dl
add ecx, 1
add eax, 1
cmp ecx, 0x590
jne 0x4177ed
out dx, al
in eax, dx
lodsb al, byte [esi]
ja 0x41783d
out dx, eax
ror byte ss:[esi - 0x4a], 0xf9
xchg byte [esi + 0x37f7b94e], bh
mov ecx, 0x2fb737f6
push ebp
aaa
mov dl, 0x21
out dx, eax
cmp al, 0x36
hlt
test bl, 0xf3
pushal
xor esi, dword [0x2e93bf35]
sub ecx, esp
pushfd
loope 0x417841
fldcw word [ebp + 0x7bfd3677]
leave
lodsd eax, dword [esi]
ja 0x41788d
invalid
mov bl, 0x2a
Function at 0x10005a4a
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x10024050]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.advapi32.dll_RegEnumKeyA]
mov esi, 0x104
push esi
lea ecx, [ebp - 0x6c]
push ecx
xor ebx, ebx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xa8]
push ebx
push eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ebx
call edi
test eax, eax
jne 0x10005aed
mov eax, dword [ebp - 0x80]
push dword [eax + 8]
inc dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.100129b8
pop ecx
pop ecx
test eax, eax
je 0x10005ad6
test ebx, ebx
je 0x10005aca
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.100129b8
pop ecx
pop ecx
test eax, eax
jle 0x10005ad6
push ebx
call fcn.10006dc1
pop ecx
lea eax, [ebp - 0x6c]
push eax
call fcn.10006da0
pop ecx
mov ebx, eax
push esi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call edi
test eax, eax
je 0x10005a97
xor edi, edi
cmp ebx, edi
jne 0x10005af1
xor eax, eax
jmp 0x10005b5d
lea eax, [ebp - 0x70]
push eax
push 0x20019
push edi
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push ebx
test eax, eax
je 0x10005b20
call fcn.10006dc1
pop ecx
cmp dword [ebp - 0x70], edi
je 0x10005aed
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x10005aed
call fcn.10006dc1
pop ecx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
push edi
push edi
push str.JavaHome
push dword [ebp - 0x70]
mov dword [ebp - 0x7c], esi
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x10005b10
cmp dword [ebp - 0x70], edi
je 0x10005b53
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea eax, [ebp - 0x6c]
push eax
call fcn.10006da0
pop ecx
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008c61
add ebp, 0x9c
leave
ret
Function at 0x4042e2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40433b
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40432c
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x404328
cmp esi, ecx
jae 0x40432c
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec edx
jne 0x404318
cmp esi, ecx
jb 0x404330
xor eax, eax
jmp 0x40433a
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x405653
Capabilities:
Accept command line arguments

Disassembly:
push 4
mov eax, 0x434820
call fcn.0041c590
mov esi, ecx
xor ebx, ebx
inc ebx
cmp byte [0x44ae51], 0
jne 0x4056c2
mov byte [0x44ae51], bl
test esi, esi
jne 0x4056c2
call fcn.0040452b
push eax
lea ecx, [ebp - 0x10]
call fcn.004024a9
and dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x10]
push 0x43f920
push eax
call fcn.00405700
mov esi, dword [ebp - 0x10]
add esp, 0xc
cmp dword [esi - 4], ebx
jle 0x4056b6
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.004024d2
mov esi, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.004045c1
mov eax, dword [0x44b228]
mov edi, 0x44b230
test al, 1
jne 0x4056f8
or eax, ebx
mov dword [0x44b228], eax
push ecx
push esi
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.00404be9
push 0x4370a4
mov dword [0x44b230], 0x43f92c
call fcn.0041a166
pop ecx
mov eax, edi
call fcn.0041c55e
ret
Function at 0x405a43
Capabilities:
Create thread
Terminate thread

Disassembly:
push 0x38
mov eax, 0x4348ae
call fcn.0041c5c3
mov dword [ebp - 4], 2
xor ebx, ebx
mov dword [ebp - 0x30], ebx
call fcn.0040452b
push eax
lea ecx, [ebp - 0x2c]
call fcn.004024a9
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], ebx
jge 0x405a7f
push 0x80070057
call fcn.00404618
cmp word [eax], 0x2f
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x2c]
je 0x405a93
push str.http:___s__s
jmp 0x405a98
push str.http:___s_s
push eax
call fcn.00403208
mov esi, dword [ebp - 0x2c]
add esp, 0x10
cmp dword [esi - 4], 1
jle 0x405ab8
push dword [esi - 0xc]
lea ecx, [ebp - 0x2c]
call fcn.004024d2
mov esi, dword [ebp - 0x2c]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x44], esi
cmp dword [eax - 4], 1
jle 0x405ad2
push dword [eax - 0xc]
lea ecx, [ebp + 0x10]
call fcn.004024d2
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push ebx
push eax
lea ecx, [ebp - 0x28]
call fcn.00405758
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
pop ecx
cmovae eax, dword [ebp - 0x28]
pop ecx
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov dword [ebp - 0x34], ebx
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x44]
push eax
push 0x40593d
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], ebx
push 0x2bf20
push 0
lea eax, [ebp - 0x3c]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
je 0x405b59
cmp eax, 1
je 0x405b47
mov edi, dword [ebp - 0x30]
test edi, edi
je 0x405b1f
jmp 0x405b69
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edi, dword [ebp - 0x30]
jmp 0x405b69
mov edi, 0x507
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [ebp - 0x30], edi
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040276a
lea ecx, [esi - 0x10]
call fcn.004045c1
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.004045c1
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004045c1
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004045c1
mov eax, edi
call fcn.0041c572
ret 0xc
Function at 0x405e9d
Capabilities:
Initialize winhttp library
Prepare http request
Read http header
Receive http response

Disassembly:
push 0x10
mov eax, 0x43494b
call fcn.0041c590
push 2
pop ebx
xor edi, edi
mov dword [ebp - 4], ebx
push edi
push edi
push edi
push edi
push str.Downloader
mov dword [ebp - 0x10], edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
test eax, eax
je 0x406048
push edi
push 0x50
push dword [ebp + 8]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
test eax, eax
je 0x406048
push edi
push edi
push edi
push edi
push dword [ebp + 0xc]
push str.HEAD
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
test esi, esi
je 0x406048
push edi
push edi
push edi
push edi
push edi
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp eax, 1
jne 0x406048
push edi
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x406048
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push 0x16
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40604b
mov eax, dword [ebp - 0x10]
xor ecx, ecx
shr eax, 1
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004185ed
mov ecx, dword [ebp - 0x10]
mov ebx, eax
shr ecx, 1
push ecx
push edi
push ebx
call fcn.0041bd90
add esp, 0x10
lea eax, [ebp - 0x10]
push edi
push eax
push ebx
push edi
push 0x16
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x40603f
push ebx
lea ecx, [ebp - 0x14]
call fcn.00402168
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004028c8
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
push ecx
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.00402224
cmp eax, 0xffffffff
jle 0x40602c
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx - 0xc]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx - 0xc]
sub ecx, edx
sub ecx, eax
lea eax, [ebp - 0x18]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.0040612a
mov ecx, dword [ebp + 0x14]
push eax
mov byte [ebp - 4], 5
call fcn.004021b6
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.004045c1
push ecx
mov ecx, dword [ebp + 0x14]
push 0x43f9c0
call fcn.00402224
cmp eax, 0xffffffff
jne 0x406007
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
mov ecx, dword [ebp + 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00404a9a
mov ecx, dword [ebp + 0x14]
push eax
mov byte [ebp - 4], 6
call fcn.004021b6
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.004045c1
lea ecx, [esi - 0x10]
call fcn.004045c1
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.004045c1
push ebx
call fcn.00419a2f
pop ecx
jmp 0x40604b
push 0xd
pop edi
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.004045c1
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.004045c1
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.004045c1
mov eax, edi
call fcn.0041c55e
ret 0x10
Function at 0x408998
Capabilities:
Get geographical location

Disassembly:
push 0x44
mov eax, 0x434f7f
call fcn.0041c5c3
mov esi, ecx
xor ebx, ebx
mov edi, 0x44ae9c
cmp dword [0x44aeac], 1
mov dword [ebp - 0x50], ebx
jae 0x408a4c
call fcn.00408c26
push str.SOFTWARE_
lea ecx, [ebp - 0x28]
call fcn.0040232d
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], ebx
call fcn.00408e4a
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00402f5f
push ebx
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], bl
call fcn.0040276a
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x48], esp
push edi
call fcn.00402305
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x44], esp
push str.CountryCode
call fcn.0040232d
sub esp, 0x18
mov byte [ebp - 4], 3
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.00402305
xor dl, dl
mov byte [ebp - 4], bl
xor ecx, ecx
call fcn.004032a4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
add esp, 0x48
push ebx
push 1
call fcn.0040276a
push edi
mov ecx, esi
call fcn.00402305
mov eax, esi
call fcn.0041c572
ret

Function at 0x408e94
Capabilities:
Get file version info

Disassembly:
push 0x230
mov eax, 0x43506a
call fcn.0041c5c3
xor eax, eax
xor ebx, ebx
push 0x208
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push ebx
push eax
call fcn.0041bd90
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x408ee1
xor al, al
jmp 0x408fc3
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x408eda
push edi
lea ecx, [ebp - 0x23c]
call fcn.004090d7
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x21c]
mov esi, dword [ebp - 0x23c]
push esi
push edi
push ebx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x408fb6
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], ebx
push eax
push str.StringFileInfo040904b0ProductName
push esi
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x228], ebx
call edi
test eax, eax
je 0x408fb6
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x220]
push eax
push str.StringFileInfo040904b0ProductVersion
push esi
call edi
test eax, eax
je 0x408fb6
push dword [ebp - 0x224]
call fcn.00401140
pop ecx
push eax
push dword [ebp - 0x224]
mov ecx, 0x44aecc
call fcn.004026f1
push dword [ebp - 0x220]
call fcn.00401140
pop ecx
push eax
push dword [ebp - 0x220]
mov ecx, 0x44aeb4
call fcn.004026f1
mov bl, 1
test esi, esi
je 0x408fc1
push esi
call fcn.00419231
pop ecx
mov al, bl
call fcn.0041c572
ret
Function at 0x40a900
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
mov esi, ecx
mov bl, 1
push edi
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x40aaa0
mov edx, 0x10000000
cmp eax, 0x7c
je 0x40aaa0
cmp eax, 0x29
jne 0x40a93b
cmp dword [esi + 0x10], 0
jne 0x40aaa0
test dword [esi + 0x50], edx
je 0x40aaa6
cmp eax, 0x2e
jne 0x40a956
push 5
lea ecx, [esi + 0x24]
call fcn.0040aba1
mov ecx, esi
call fcn.0040a8d5
jmp 0x40aa88
cmp eax, 0x5c
jne 0x40a9b3
mov ecx, esi
call fcn.0040a8d5
mov eax, dword [esi + 0x50]
and eax, 0x80
je 0x40a989
cmp word [esi + 0x48], 0x62
jne 0x40a989
push 4
lea ecx, [esi + 0x24]
call fcn.0040aba1
mov ecx, esi
call fcn.0040a8d5
jmp 0x40aa8f
test eax, eax
je 0x40a9a7
cmp word [esi + 0x48], 0x42
jne 0x40a9a7
push 4
lea ecx, [esi + 0x24]
call fcn.0040aba1
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x40a97d
mov ecx, esi
call fcn.0040b350
jmp 0x40aa88
cmp eax, 0x5b
jne 0x40aa13
mov ecx, esi
call fcn.0040a8d5
lea ecx, [esi + 0x24]
call fcn.0040c266
cmp dword [esi + 0x4c], 0x5e
jne 0x40a9db
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.0040a8d5
test dword [esi + 0x50], 0x20000000
je 0x40a9fb
cmp dword [esi + 0x4c], 0x5d
jne 0x40a9fb
push 0x5d
lea ecx, [esi + 0x24]
call fcn.0040c2b0
mov ecx, esi
call fcn.0040a8d5
mov ecx, esi
call fcn.0040c044
cmp dword [esi + 0x4c], 0x5d
je 0x40a94a
push 4
jmp 0x40aaa8
cmp eax, 0x28
jne 0x40aa30
mov ecx, esi
call fcn.0040a8d5
mov ecx, esi
call fcn.0040b42c
cmp dword [esi + 0x4c], 0x29
mov bl, al
je 0x40aa7d
jmp 0x40aaa6
cmp eax, 0x5e
jne 0x40aa3c
push 2
jmp 0x40a975
cmp eax, 0x24
jne 0x40aa48
push 3
jmp 0x40a975
cmp eax, 0x2a
je 0x40aa9c
cmp eax, 0x2b
je 0x40aa9c
cmp eax, 0x3f
je 0x40aa9c
cmp eax, 0x7b
je 0x40aa9c
cmp eax, 0x7d
jne 0x40aa66
test dword [esi + 0x50], edx
je 0x40aa98
cmp eax, 0x5d
jne 0x40aa70
test dword [esi + 0x50], edx
je 0x40aa0c
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.0040b5a0
mov ecx, esi
call fcn.0040a8d5
test bl, bl
je 0x40aa8f
mov ecx, esi
call fcn.0040b4dc
mov cl, 1
mov bl, cl
jmp 0x40a909
push 6
jmp 0x40aaa8
push 0xa
jmp 0x40aaa8
pop edi
pop esi
mov al, cl
pop ebx
ret
push 5
call fcn.00418887
int3
Function at 0x40e33e
Capabilities:
Accept command line arguments

Disassembly:
push 0xc
mov eax, 0x4357ef
call fcn.0041c590
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00401320
xor edi, edi
lea ecx, [esi + 0x24]
mov dword [ebp - 4], edi
call fcn.00401320
mov byte [ebp - 4], 1
lea ebx, [esi + 0x5c]
call fcn.0040452b
push eax
mov ecx, ebx
call fcn.004024a9
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x68], edi
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, eax
call fcn.00405653
xor ecx, ecx
call fcn.00405653
sub esp, 0x14
mov edi, eax
mov esi, esp
mov dword [ebp - 0x14], esp
mov dword [ebp - 0x18], esi
mov dword [esi], vtable.CCmdLineParser.0
mov ecx, dword [edi + 4]
sub ecx, 0x10
call fcn.004028c8
add eax, 0x10
mov dword [esi + 4], eax
lea ecx, [esi + 8]
mov byte [ebp - 4], 4
push ecx
lea eax, [edi + 8]
push eax
call fcn.0041058c
mov al, byte [edi + 0x10]
mov byte [esi + 0x10], al
mov byte [ebp - 4], 5
call fcn.0040d4a3
mov byte [ebp - 4], 3
call fcn.0040df03
call fcn.0041a9d6
mov esi, dword [ebp - 0x10]
push str.ClaraDwl
push ecx
mov ecx, esp
push str.TEMP
mov dword [esi + 0x58], eax
call fcn.00402168
lea ecx, [ebp - 0x14]
call fcn.00417c56
pop ecx
mov byte [ebp - 4], 6
push dword [eax]
push str._s_s_
push ebx
call fcn.00403208
mov byte [ebp - 4], 3
add esp, 0x10
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.004045c1
mov ecx, esi
call fcn.0040f0ed
push 0x10
call fcn.004199de
pop ecx
test eax, eax
je 0x40e452
mov ecx, dword [esi + 0x54]
and dword [eax + 4], 0
and dword [eax + 8], 0
and dword [eax + 0xc], 0
mov dword [eax], ecx
jmp 0x40e454
xor eax, eax
mov dword [esi + 0x6c], eax
mov eax, esi
call fcn.0041c55e
ret