joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4431f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a8168
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004a09d9
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00442b50
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004a0907
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0049d1d0
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0049d1d0
push 1
push 0
push 0
mov ecx, esi
call fcn.0049d178
push 1
push 0
push 1
mov ecx, esi
call fcn.0049d178
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004a0a4b
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x443370
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a8188
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004a09d9
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00442b50
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004a0907
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x443434
cmp dword [esp + 0x40], 1
jne 0x443432
cmp ecx, eax
jge 0x443434
mov eax, ecx
cmp eax, 0xc8
jge 0x443440
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004431f0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004a0a4b
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x443c30
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4a8233
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0049b5e9
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004a0c81
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004a219d
test eax, eax
je 0x443d4c
mov ecx, dword [esp + 0x3c]
call fcn.004a0cae
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x443d10
push edi
mov ecx, esi
call fcn.0049e317
mov ecx, esi
call fcn.00443ef0
cmp dword [esp + 0x38], 1
jne 0x443d45
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0049e452
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x445f30
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x445f63
push esi
call fcn.004542f0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x445f5c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x445fe9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x445fd2
mov eax, dword [esi + 8]
test eax, eax
je 0x445f87
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x445fce
cmp eax, 2
je 0x445fd2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x445f7a
cmp eax, 3
je 0x445fad
cmp eax, 1
jne 0x445f7a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x445f7a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x445f7a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00446010
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x445ff8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00446010
add esp, 4
pop esi
ret

Function at 0x446880
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4468a1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4468a1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4468a1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x461610
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4616b3
test eax, eax
jbe 0x4616b3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4616b3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x46165e
xor esi, esi
jmp 0x461664
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x46168f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00465880
add esi, eax
push esi
mov ebx, esi
call fcn.00465880
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x461670
pop ebp
test edi, edi
pop edi
jne 0x4616b3
test ebx, ebx
je 0x4616b3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00489fe0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4617d5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4618ed
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4618ed
mov eax, dword [esi + 0x3c]
push eax
call fcn.0049ba3b
mov esi, eax
test esi, esi
je 0x4618ed
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4618ed
mov ecx, esi
call fcn.00461760
cmp edi, eax
jge 0x4618ed
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x461873
mov dword [esp + 0x34], 1
jmp 0x4618ce
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4618ed
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00460d30
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x46c590
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x46c5dc
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x46c5dc
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x46c5c6
push eax
call ebp
test ax, ax
jl 0x46c5d4
inc esi
add edi, 4
cmp esi, 6
jb 0x46c5b8
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.0046c290
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x473f50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x58ce8c]
xor edx, edx
cmp eax, edx
jne 0x473f76
xor eax, eax
mov byte [eax + 0x58cd8c], al
inc eax
cmp eax, 0x100
jl 0x473f5e
mov dword [0x58ce8c], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x58cd8c
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x474007
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x473fda
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x473fa8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x474010
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x474063
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x47404a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47aa10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a922e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0047b330
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x52a48c
call fcn.00499d7b
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x47aaa3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00499d7b
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x47aa9c
push 0
mov ecx, eax
call fcn.00471b80
mov dword [esi + 0xc], eax
jmp 0x47aaa5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x47aaa5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x49c3de
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49c416
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049a495
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049a46d
jmp 0x49c422
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49dad4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49db16
call fcn.004a3718
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49db16
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49db0d
xor eax, eax
jmp 0x49db1e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049db24
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a3c48
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a3c76
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a3c94
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a3bae
jmp 0x4a3c94
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a3c94
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a3bae
test edi, edi
mov eax, edi
jne 0x4a3c7e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4014dc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410020]
jne 0x4014e6
repz ret
jmp fcn.00401de9

Function at 0x40a0dc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040613c
and dword [ebp - 4], 0
cmp dword [0x411afc], 0
mov ebx, eax
jne 0x40a18d
push 0x40e1a8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a23e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40e19c
push edi
call esi
test eax, eax
je 0x40a23e
push eax
call fcn.004060ca
mov dword [esp], 0x40e18c
push edi
mov dword [0x411afc], eax
call esi
push eax
call fcn.004060ca
mov dword [esp], 0x40e178
push edi
mov dword [0x411b00], eax
call esi
push eax
call fcn.004060ca
mov dword [esp], 0x40e15c
push edi
mov dword [0x411b04], eax
call esi
push eax
call fcn.004060ca
pop ecx
mov dword [0x411b0c], eax
test eax, eax
je 0x40a18d
push 0x40e144
push edi
call esi
push eax
call fcn.004060ca
pop ecx
mov dword [0x411b08], eax
mov eax, dword [0x411b08]
cmp eax, ebx
je 0x40a1e5
cmp dword [0x411b0c], ebx
je 0x40a1e5
push eax
call fcn.00406145
push dword [0x411b0c]
mov esi, eax
call fcn.00406145
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a1e5
test edi, edi
je 0x40a1e5
call esi
test eax, eax
je 0x40a1dc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a1dc
test byte [ebp - 0xc], 1
jne 0x40a1e5
or dword [ebp + 0x10], 0x200000
jmp 0x40a21e
mov eax, dword [0x411b00]
cmp eax, ebx
je 0x40a21e
push eax
call fcn.00406145
pop ecx
test eax, eax
je 0x40a21e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a21e
mov eax, dword [0x411b04]
cmp eax, ebx
je 0x40a21e
push eax
call fcn.00406145
pop ecx
test eax, eax
je 0x40a21e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x411afc]
call fcn.00406145
pop ecx
test eax, eax
je 0x40a23e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a240
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a3a0
Capabilities:
Parse credit card information

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, eax
mov byte [esp + 0x13], 0
mov byte [esp + 0x12], 0
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
je 0x40a3cb
inc ebx
jmp 0x40a3b3
cmp cl, 0x21
je 0x40a3e2
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
je 0x40a3f8
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x40a3e2
cmp cl, 0x2e
je 0x40a446
mov dword [esp + 0x18], ebx
jmp 0x40a410
movzx eax, cl
movzx eax, word [eax + eax + 0x417630]
test eax, 0x204
jne 0x40a440
cmp cl, 0x2d
je 0x40a440
cmp cl, 0x2b
je 0x40a440
cmp cl, 0x3d
je 0x40a440
cmp cl, 0x2c
je 0x40a440
cmp cl, 0x2e
je 0x40a440
cmp cl, 0x40
jne 0x40a451
inc ebx
movzx ecx, byte [ebx]
jmp 0x40a410
mov byte [esp + 0x13], 1
inc ebx
movzx ecx, byte [ebx]
jmp 0x40a3fd
mov esi, dword [esp + 0x18]
mov eax, ebx
sub eax, esi
mov dword [esp + 0x14], eax
cmp cl, 0x2a
je 0x40a59d
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
je 0x40a48e
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x40a478
cmp byte [esp + 0x13], 0
jne 0x40a4fb
mov edx, dword [0x418460]
xor ebp, ebp
cmp ebp, edx
mov dword [esp + 0xc], edx
jge 0x40a4fb
mov eax, dword [esp + 0x14]
mov esi, ebp
mov edx, dword [esp + 0x18]
mov edi, dword [0x418450]
shl esi, 4
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov eax, dword [esi + edi]
mov dword [esp], eax
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x40a4f1
cmp byte [esp + 0x12], 0
jne 0x40a4e3
mov eax, dword [esi + edi]
mov edx, dword [esp + 0x14]
cmp byte [edx + eax], 0
jne 0x40a4f1
mov byte [esi + edi + 0xc], 1
mov eax, dword [0x418460]
mov dword [esp + 0xc], eax
inc ebp
cmp ebp, dword [esp + 0xc]
jl 0x40a4a5
movzx ecx, byte [ebx]
test cl, cl
je 0x40a566
inc ebx
movzx ecx, byte [ebx]
test cl, cl
je 0x40a566
movzx edx, byte [ebx - 1]
cmp dl, 0x7c
sete al
mov byte [esp + 0x11], dl
cmp dl, 0x26
sete dl
or eax, edx
test al, 1
jne 0x40a3b6
cmp byte [esp + 0x11], 0x3a
jne 0x40a566
cmp cl, 0x3b
je 0x40a550
cmp cl, 0x7d
je 0x40a550
cmp cl, 0x25
je 0x40a570
inc ebx
movzx ecx, byte [ebx]
test cl, cl
setne al
xor edx, edx
cmp cl, 0x3b
setne dl
test eax, edx
jne 0x40a531
test cl, cl
je 0x40a566
inc ebx
movzx ecx, byte [ebx]
test cl, cl
je 0x40a566
cmp byte [ebx - 1], 0x3b
je 0x40a3b6
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x7b
sete al
cmp cl, 0x3c
sete dl
or eax, edx
test al, 1
jne 0x40a5ab
cmp cl, 0x57
jne 0x40a53f
cmp byte [ebx + 1], 0x7b
jne 0x40a53f
lea eax, [ebx + 2]
call fcn.0040a3a0
mov ebx, eax
jmp 0x40a53c
mov byte [esp + 0x12], 1
inc ebx
movzx ecx, byte [ebx]
jmp 0x40a47c
lea eax, [ebx + 1]
jmp 0x40a594
Function at 0x40d5c0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x1c
movzx eax, byte [esi]
cmp al, 0x40
mov byte [ebp - 0xd], al
setne al
xor edx, edx
cmp byte [ebp - 0xd], 0x24
setne dl
test eax, edx
jne 0x40d69f
mov esi, esi
lea edi, [edi]
movzx edx, byte [esi + 1]
xor edi, edi
test dl, dl
je 0x40d620
lea esi, [esi]
cmp dl, 0x2f
setne al
cmp dl, 0x5c
setne dl
movzx edx, dl
test eax, edx
je 0x40d620
inc edi
movzx edx, byte [esi + edi + 1]
test dl, dl
jne 0x40d600
lea esi, [esi]
lea eax, [edi + 0x1f]
and eax, 0xfffffff0
call fcn.0040ffc0
mov dword [esp + 8], edi
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov dword [esp], ebx
lea eax, [esi + 1]
mov dword [esp + 4], eax
call sub.msvcrt.dll_strncpy
mov byte [edi + ebx], 0
cmp byte [ebp - 0xd], 0x40
je 0x40d6b0
mov dword [esp], ebx
call sub.msvcrt.dll_getenv
mov edx, eax
test edx, edx
je 0x40d6fd
mov dword [esp], edx
xor eax, eax
mov ebx, esi
mov dword [esp + 8], eax
lea eax, [esi + edi + 1]
mov dword [esp + 4], eax
call fcn.0040db00
mov dword [esp], ebx
mov esi, eax
call sub.msvcrt.dll_free
movzx eax, byte [esi]
cmp al, 0x40
mov byte [ebp - 0xd], al
setne al
xor edx, edx
cmp byte [ebp - 0xd], 0x24
setne dl
test eax, edx
je 0x40d5f0
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
xor ecx, ecx
mov edx, str._ROOT
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call fcn.0040db00
mov dword [esp], eax
mov ebx, eax
call sub.msvcrt.dll_getenv
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40d707
test ebx, ebx
je 0x40d6e4
mov dword [esp], ebx
call sub.msvcrt.dll_free
mov edx, dword [ebp - 0x14]
test edx, edx
jne 0x40d661
mov edx, dword [str._mingw]
test edx, edx
jne 0x40d661
mov edx, str._mingw
jmp 0x40d661
mov eax, dword [str._mingw]
mov dword [ebp - 0x14], eax
jmp 0x40d6d8
Function at 0x40e6b0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4185c0]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
test eax, eax
mov dword [esp + 0x18], edi
je 0x40e6d8
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
add esp, 0x1c
ret
mov dword [esp], str.TMPDIR
call sub.msvcrt.dll_getenv
test eax, eax
mov ebx, eax
je 0x40e701
mov dword [esp], ebx
mov eax, 6
mov dword [esp + 4], eax
call sub.msvcrt.dll__access
test eax, eax
mov edx, ebx
je 0x40e703
xor edx, edx
mov dword [esp], 0x4178be
mov edi, edx
call sub.msvcrt.dll_getenv
test edi, edi
mov ebx, eax
mov edx, edi
je 0x40e7a1
mov dword [esp], str.TEMP
mov edi, edx
call sub.msvcrt.dll_getenv
test edi, edi
mov ebx, eax
mov edx, edi
je 0x40e7ce
test edx, edx
je 0x40e81d
test edx, edx
je 0x40e86f
test edx, edx
je 0x40e846
test edx, edx
je 0x40e7f4
test edx, edx
mov edi, edx
je 0x40e7c7
mov dword [esp], edi
call sub.msvcrt.dll_strlen
mov ebx, eax
lea eax, [eax + 2]
mov dword [esp], eax
call fcn.0040e5d0
mov dword [esp], eax
mov esi, eax
mov dword [esp + 4], edi
call sub.msvcrt.dll_strcpy
mov byte [ebx + esi], 0x2f
mov eax, esi
mov byte [esi + ebx + 1], 0
mov ebx, dword [esp + 0x10]
mov dword [0x4185c0], esi
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
add esp, 0x1c
ret
test eax, eax
je 0x40e7c0
mov dword [esp], eax
mov edi, 6
mov dword [esp + 4], edi
call sub.msvcrt.dll__access
test eax, eax
mov edx, ebx
je 0x40e71d
xor edx, edx
jmp 0x40e71d
mov edi, 0x4178c7
jmp 0x40e75d
test eax, eax
je 0x40e7ed
mov dword [esp], eax
mov esi, 6
mov dword [esp + 4], esi
call sub.msvcrt.dll__access
test eax, eax
mov edx, ebx
je 0x40e737
xor edx, edx
jmp 0x40e737
mov dword [esp], str._tmp
mov eax, 6
mov dword [esp + 4], eax
call sub.msvcrt.dll__access
test eax, eax
mov edx, str._tmp
je 0x40e757
xor edx, edx
jmp 0x40e757
mov dword [esp], 0x4178c9
mov ebx, 6
mov dword [esp + 4], ebx
call sub.msvcrt.dll__access
test eax, eax
mov edx, 0x4178c9
je 0x40e73f
xor edx, edx
jmp 0x40e73f
mov dword [esp], str._usr_tmp
mov edx, 6
mov dword [esp + 4], edx
call sub.msvcrt.dll__access
test eax, eax
mov edx, str._usr_tmp
je 0x40e74f
xor edx, edx
jmp 0x40e74f
mov dword [esp], str._var_tmp
mov ecx, 6
mov dword [esp + 4], ecx
call sub.msvcrt.dll__access
test eax, eax
mov edx, str._var_tmp
je 0x40e747
xor edx, edx
jmp 0x40e747