joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10093e90
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
sub esp, 0x34
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
push esi
push edi
push dword [esp + 0x50]
mov edi, edx
mov esi, ecx
mov dword [esp + 0x18], edi
call fcn.10115ea2
mov ecx, dword [0x1017516c]
add esp, 4
mov dword [esp + 0x10], eax
test ecx, ecx
jne 0x10093ed6
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
mov dword [0x1017516c], ecx
xor ebp, ebp
test esi, esi
je 0x10094036
test edi, edi
je 0x10094036
test bl, 3
jne 0x10093ef7
push str._prot__0x2____prot__0x1_
jmp 0x1009403b
mov dword [esi], ebp
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
cmp eax, 0xffffffff
jne 0x10093f29
call fcn.10113449
push str.failed_to_mmap._Invalid_handle_value
push 2
mov dword [eax], 9
call fcn.10028220
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov edi, ebx
and ebx, 1
and edi, 2
je 0x10093f3a
mov ebp, 4
jmp 0x10093f44
test ebx, ebx
mov eax, 2
cmovne ebp, eax
push 0
push ecx
push dword [esp + 0x60]
neg edi
push dword [esp + 0x60]
sbb edi, edi
and edi, 2
call fcn.10107fe0
mov ecx, dword [esp + 0x54]
sub ecx, eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x58]
sbb ecx, edx
or eax, edx
mov dword [esp + 0x1c], ecx
je 0x10093f98
call fcn.10113449
push str.failed_to_mmap._Offset_must_be_multiple_of_allocation_granularity
push 2
mov dword [eax], 0x16
call fcn.10028220
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push 0
push 0
push 0
push ebp
push 0
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, eax
mov dword [esi + 8], ecx
test ecx, ecx
je 0x10094015
cmp ecx, 0xffffffff
je 0x10094015
mov ebp, dword [esp + 0x14]
mov eax, edi
push ebp
push dword [esp + 0x1c]
or eax, 4
test ebx, ebx
push dword [esp + 0x24]
cmove eax, edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi], eax
test eax, eax
jne 0x10094008
push str.failed_to_mmap._No_data_written
push 2
call fcn.10028220
add esp, 8
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov dword [esi + 4], ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push str.failed_to_mmap._Invalid_handle_value
push 2
call fcn.10028220
add esp, 8
mov dword [esi + 8], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push str.out_____void__0___len___0
push str.unrecoverable_internal_error
push 0x101534d8
push 0x23
call fcn.10028220
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
Function at 0x100a4ac0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 8], 0x4016
push eax
push 0x20019
push 0
push dword [esp + 0x24]
mov esi, ecx
mov edi, 0xfffffffd
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100a4b63
lea eax, [esp + 8]
push eax
push esi
lea eax, [esp + 0x18]
push eax
push 0
push str.InstallLocation
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100a4b59
cmp dword [esp + 0x10], 1
jne 0x100a4b59
mov ecx, dword [esp + 8]
lea eax, [ecx - 1]
cmp eax, 0x200a
ja 0x100a4b59
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
lea eax, [ecx - 1]
je 0x100a4b39
xor edx, edx
mov eax, ecx
mov word [esi + ecx*2], dx
cmp word [esi + eax*2 - 2], 0x5c
jne 0x100a4b48
xor ecx, ecx
mov word [esi + eax*2 - 2], cx
push 0
push esi
call fcn.101159d8
add esp, 8
neg eax
sbb eax, eax
and edi, eax
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret
Function at 0x100c2650
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], edx
mov ecx, dword [esp + 0x20]
mov esi, 0x1505
and ecx, 0x1e
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ecx
mov ebx, dword [edi]
cmp ebx, edx
jae 0x100c26ac
push ebp
mov al, byte [ebx]
cmp al, 0xa
je 0x100c26a7
cmp ecx, 0x10
jne 0x100c26bf
cmp al, 0xd
jne 0x100c2692
lea eax, [ebx + 1]
cmp eax, edx
jae 0x100c2692
cmp byte [eax], 0xa
je 0x100c269e
mov eax, esi
shl esi, 5
add esi, eax
movsx eax, byte [ebx]
xor esi, eax
mov ecx, dword [esp + 0x18]
inc ebx
cmp ebx, edx
jb 0x100c2677
mov edi, dword [esp + 0x1c]
pop ebp
cmp ebx, edx
lea eax, [ebx + 1]
cmovae eax, ebx
mov dword [edi], eax
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x10
ret
movzx eax, al
push eax
call fcn.10114e30
mov edx, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x100c2692
lea edi, [ebx + 1]
mov ebp, ebx
mov dword [esp + 0x14], ebp
cmp edi, edx
jae 0x100c2705
mov ebp, edx
movzx eax, byte [edi]
push eax
call fcn.10114e30
add esp, 4
test eax, eax
je 0x100c26fd
cmp byte [edi], 0xa
je 0x100c26fd
inc edi
inc ebx
cmp edi, ebp
jb 0x100c26e2
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea ecx, [ebx + 1]
cmp edx, ecx
jbe 0x100c2715
cmp byte [ecx], 0xa
je 0x100c2715
xor eax, eax
jmp 0x100c271a
mov eax, 1
test byte [esp + 0x24], 2
jne 0x100c269e
test byte [esp + 0x24], 4
je 0x100c273f
test eax, eax
jne 0x100c273f
mov eax, esi
shl esi, 5
add esi, eax
xor esi, 0x20
jmp 0x100c269e
test byte [esp + 0x24], 8
je 0x100c269e
test eax, eax
jne 0x100c269e
cmp ebp, ecx
je 0x100c269e
nop word [eax + eax]
mov eax, esi
shl esi, 5
add esi, eax
movsx eax, byte [ebp]
inc ebp
xor esi, eax
cmp ebp, ecx
jne 0x100c2760
jmp 0x100c269e
Function at 0x100cc9e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012c2e5
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x1016f480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 1
jne 0x100cca68
push 4
call fcn.1010761c
add esp, 4
test eax, eax
je 0x100cca21
mov dword [eax], method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_4
jmp 0x100cca23
xor eax, eax
mov dword [ebp + 0xc], eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x100cc950
push 0
push 0
call fcn.1010cc5b
add esp, 0x18
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100cca85
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x100cca7e
push ecx
push eax
call fcn.10105f4c
add esp, 8
test eax, eax
jne 0x100cca7e
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc
push 1
call fcn.10106078
push 6
mov dword [ebp - 0x10], 0
call fcn.10106078
int3
Function at 0x100de3a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
movzx ebp, ax
xor eax, eax
mov esi, ebp
push edi
shr esi, 8
xor edi, edi
mov dword [esp + 0x10], esi
cmp dword [esp + 0x20], eax
jbe 0x100de401
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
movzx ecx, word [ecx + edi*2]
mov edx, ecx
movzx ecx, cl
shr edx, 8
add edx, eax
cmp esi, ecx
jb 0x100de401
jne 0x100de3f8
cmp eax, edx
jge 0x100de3f8
mov ecx, dword [esp + 0x18]
movzx esi, cl
movzx ecx, byte [eax + ebx]
cmp cx, si
je 0x100de429
inc eax
cmp eax, edx
jl 0x100de3e6
mov esi, dword [esp + 0x10]
inc edi
mov eax, edx
cmp edi, dword [esp + 0x20]
jb 0x100de3c3
mov edi, dword [esp + 0x2c]
xor eax, eax
mov bl, 1
test edi, edi
je 0x100de43f
mov esi, dword [esp + 0x28]
movzx ecx, byte [eax + esi]
test cl, cl
jns 0x100de431
movzx edx, byte [eax + esi + 1]
inc eax
and ecx, 0x7f
shl ecx, 8
or edx, ecx
jmp 0x100de433
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
mov edx, ecx
sub ebp, edx
js 0x100de43f
inc eax
xor bl, 1
cmp eax, edi
jb 0x100de411
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret
Function at 0x100e2310
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0xc
push ebx
mov ebx, ecx
push esi
mov esi, dword [esp + 0x1c]
test eax, eax
jg 0x100e2335
jl 0x100e2329
test esi, esi
jne 0x100e2335
pop esi
xor eax, eax
xor edx, edx
pop ebx
add esp, 0xc
ret 0xc
cmp dword [ebx + 0x38], 0
push ebp
push edi
mov edi, esi
je 0x100e2404
mov ebp, eax
lea ecx, [ebx + 0x2c]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x18], ecx
mov eax, dword [eax]
mov dword [esp + 0x14], eax
test eax, eax
je 0x100e2367
mov eax, dword [ecx]
mov eax, dword [eax]
jmp 0x100e2369
xor eax, eax
cdq
mov esi, eax
mov eax, edx
mov dword [esp + 0x10], eax
test eax, eax
jl 0x100e23b6
jg 0x100e237c
test esi, esi
je 0x100e23b6
cmp ebp, eax
jg 0x100e238c
jl 0x100e2386
cmp edi, esi
jae 0x100e238c
mov esi, edi
mov dword [esp + 0x10], ebp
push esi
push dword [esp + 0x18]
push dword [esp + 0x28]
call fcn.10109350
mov ecx, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x20]
sub edi, esi
sbb ebp, dword [esp + 0x10]
mov eax, dword [ecx]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x100e23d6
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
cmp eax, 0xffffffff
je 0x100e23ee
mov edx, dword [esp + 0x20]
lea ecx, [ebx + 0x2c]
add edi, 0xffffffff
mov esi, 1
adc ebp, 0xffffffff
mov byte [edx], al
add edx, esi
mov dword [esp + 0x20], edx
test ebp, ebp
jg 0x100e2350
jl 0x100e23ee
test edi, edi
jne 0x100e2350
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
sub eax, edi
pop edi
sbb edx, ebp
pop ebp
pop esi
pop ebx
add esp, 0xc
ret 0xc
mov eax, dword [ebx + 0x1c]
mov ebp, dword [esp + 0x20]
mov edx, dword [eax]
test edx, edx
je 0x100e2449
mov eax, dword [ebx + 0x2c]
lea ecx, [ebx + 0x2c]
mov dword [esp + 0x10], ecx
mov eax, dword [eax]
test eax, eax
je 0x100e2450
mov edi, dword [esp + 0x24]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ebp
call fcn.10109350
mov eax, dword [ebx + 0x2c]
add ebp, esi
sub edi, esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x24]
jmp 0x100e2450
lea eax, [ebx + 0x2c]
mov dword [esp + 0x10], eax
cmp dword [ebx + 0x4c], 0
je 0x100e24b9
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x100e247a
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [eax], edx
cmp edi, 0xfff
jbe 0x100e24a4
push dword [ebx + 0x4c]
push 0xfff
push 1
push ebp
call fcn.10112875
add esp, 0x10
add ebp, eax
sub edi, eax
cmp eax, 0xfff
jne 0x100e24b9
cmp edi, eax
ja 0x100e2482
test edi, edi
je 0x100e24b9
push dword [ebx + 0x4c]
push edi
push 1
push ebp
call fcn.10112875
add esp, 0x10
sub edi, eax
mov edx, dword [esp + 0x28]
sub esi, edi
pop edi
pop ebp
mov eax, esi
sbb edx, 0
pop esi
pop ebx
add esp, 0xc
ret 0xc
Function at 0x100e4230
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012d7ed
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x1016f480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, eax
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x100e4404
xor eax, eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x10], eax
jle 0x100e43fd
nop dword [eax]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ecx + eax*4]
lea eax, [ecx + eax*4]
push 0
push 0xfde9
mov dword [ebp - 0x24], eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
mov dword [ebp - 0x14], edi
test edi, edi
jle 0x100e4404
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
cmp edi, 0x7fffffff
ja 0x100e4415
cmp edi, 0x1000
jb 0x100e430d
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x100e441a
push eax
call fcn.1010761c
add esp, 4
test eax, eax
je 0x100e441f
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x100e4318
push edi
call fcn.1010761c
add esp, 4
mov esi, eax
push dword [ebp - 0x14]
add edi, esi
mov dword [ebp - 0x30], esi
push 0
push esi
mov dword [ebp - 0x28], edi
call fcn.101098d0
add esp, 0xc
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x24]
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push dword [eax]
mov dword [ebp - 4], 0
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], esi
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
je 0x100e439a
mov edx, esi
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
lea eax, [edx + 1]
mov dword [ebp - 0x24], eax
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x100e4380
sub edx, dword [ebp - 0x24]
push edx
push esi
call fcn.100cd5f0
mov ecx, dword [ebp - 0x18]
add dword [ecx + 4], 0x18
jmp 0x100e43a6
lea edx, [ebp - 0x24]
push edx
push ecx
mov ecx, eax
call fcn.100e2cf0
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x100e43ea
cmp edi, 0x1000
jb 0x100e43cb
mov eax, dword [esi - 4]
add edi, 0x23
sub esi, eax
add esi, 0xfffffffc
cmp esi, 0x1f
ja 0x100e441f
mov esi, eax
push edi
push esi
call fcn.1010764c
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x1c], eax
cmp eax, dword [ebp - 0x10]
jl 0x100e4290
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.100e2b10
call fcn.100db830
call fcn.1010d008
int3
Function at 0x100e5080
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012d920
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x1016f480]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x114]
push 0x104
push eax
push str.SteamPath
mov dword [ebp - 0x130], esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x11c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x118], 0
push eax
lea ecx, [ebp - 0x12c]
movups xmmword [ebp - 0x12c], xmm0
call fcn.100cd5f0
mov ecx, dword [ebp - 0x11c]
mov byte [ebp - 0x130], 0
mov dword [ebp - 4], 0
push dword [ebp - 0x130]
test ecx, ecx
jne 0x100e517d
push 0x1c
push str.C:_Program_Files__x86__Steam
push esi
call fcn.100cd680
mov ecx, dword [ebp - 0x118]
add esp, 0x10
cmp ecx, 0xf
jbe 0x100e5161
mov edx, dword [ebp - 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100e5157
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100e51c8
push ecx
push edx
call fcn.1010764c
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010765a
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x118], 0xf
lea eax, [ebp - 0x12c]
push ecx
cmova eax, dword [ebp - 0x12c]
push eax
push esi
call fcn.100cd680
mov ecx, dword [ebp - 0x118]
add esp, 0x10
cmp ecx, 0xf
jbe 0x100e5161
mov edx, dword [ebp - 0x12c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100e5157
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x100e5157
call fcn.1010d008
int3
Function at 0x100e6d20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x100e6ea5
cmp dword [esi + 0x20], 0
je 0x100e6ea5
cmp dword [esi + 0x24], 0
je 0x100e6ea5
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x100e6ea5
cmp dword [eax], esi
jne 0x100e6ea5
mov eax, dword [eax + 4]
cmp eax, 0x2a
je 0x100e6d85
cmp eax, 0x39
je 0x100e6d85
cmp eax, 0x45
je 0x100e6d85
cmp eax, 0x49
je 0x100e6d85
cmp eax, 0x5b
je 0x100e6d85
cmp eax, 0x67
je 0x100e6d85
cmp eax, 0x71
je 0x100e6d85
cmp eax, 0x29a
jne 0x100e6ea5
push edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], eax
test ecx, ecx
jns 0x100e6dbe
neg ecx
mov dword [edi + 0x18], ecx
cmp ecx, 2
mov eax, 0x2a
push 0
mov edx, 0x39
cmove eax, edx
push 0
mov dword [edi + 4], eax
push 0
jne 0x100e6de0
call fcn.100e7920
jmp 0x100e6de5
call fcn.100e9a30
add esp, 0xc
mov dword [esi + 0x30], eax
mov dword [edi + 0x28], 0xfffffffe
push edi
call fcn.100ea200
mov esi, dword [esi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.101098d0
mov eax, dword [esi + 0x84]
add esp, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x10132a7a]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x10132a78]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x10132a7c]
mov dword [esi + 0x90], eax
movzx eax, word [ecx*4 + 0x10132a7e]
mov dword [esi + 0x7c], eax
xor eax, eax
pop edi
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret
Function at 0x100ec1a0
Capabilities:
Parse credit card information

Disassembly:
mov edx, dword [esp + 4]
mov cl, byte [esp + 8]
lea eax, [edx - 2]
cmp eax, 0xa
ja case.default.0x100ec1b4
jmp dword [eax*4 + 0x100ec344]
cmp cl, 0x40
jne 0x100ec1c6
mov eax, 4
ret
mov al, cl
or al, 0x20
cmp al, 0x61
jb 0x100ec1d2
cmp al, 0x7a
jbe 0x100ec23c
cmp cl, 0x30
jl 0x100ec1dc
cmp cl, 0x39
jle 0x100ec23c
cmp cl, 0x2d
je 0x100ec23c
cmp cl, 0x5f
je 0x100ec23c
cmp cl, 0x2e
je 0x100ec23c
cmp cl, 0x21
je 0x100ec23c
cmp cl, 0x7e
je 0x100ec23c
cmp cl, 0x2a
je 0x100ec23c
cmp cl, 0x27
je 0x100ec23c
cmp cl, 0x28
je 0x100ec23c
cmp cl, 0x29
je 0x100ec23c
cmp cl, 0x25
je 0x100ec23c
cmp cl, 0x3b
je 0x100ec23c
cmp cl, 0x3a
je 0x100ec23c
cmp cl, 0x26
je 0x100ec23c
cmp cl, 0x3d
je 0x100ec23c
cmp cl, 0x2b
je 0x100ec23c
cmp cl, 0x24
je 0x100ec23c
xor eax, eax
cmp cl, 0x2c
sete al
lea eax, [eax*2 + 1]
ret
mov eax, 3
ret
cmp cl, 0x5b
jne 0x100ec24d
mov eax, 5
ret
mov al, cl
or al, 0x20
cmp al, 0x61
jb 0x100ec259
cmp al, 0x7a
jbe 0x100ec29d
cmp cl, 0x30
jl 0x100ec263
cmp cl, 0x39
jle 0x100ec29d
cmp cl, 0x2e
je 0x100ec29d
cmp cl, 0x2d
je 0x100ec29d
cmp cl, 0x5f
je 0x100ec29d
mov eax, 1
ret
mov al, cl
or al, 0x20
cmp al, 0x61
jb 0x100ec284
cmp al, 0x7a
jbe 0x100ec29d
cmp cl, 0x30
jl 0x100ec28e
cmp cl, 0x39
jle 0x100ec29d
cmp cl, 0x2e
je 0x100ec29d
cmp cl, 0x2d
je 0x100ec29d
cmp cl, 0x5f
jne case.0x100ec1b4.8
mov eax, 6
ret
cmp cl, 0x3a
jne case.default.0x100ec1b4
mov eax, 0xb
ret
cmp cl, 0x5d
je 0x100ec2ec
cmp cl, 0x30
jl 0x100ec2bd
cmp cl, 0x39
jle 0x100ec2e1
mov al, cl
or al, 0x20
cmp al, 0x61
jb 0x100ec2c9
cmp al, 0x66
jbe 0x100ec2e1
cmp cl, 0x3a
je 0x100ec2e1
cmp cl, 0x2e
je 0x100ec2e1
cmp edx, 7
jne case.default.0x100ec1b4
cmp cl, 0x25
jne case.default.0x100ec1b4
lea eax, [edx + 2]
ret
mov eax, 7
ret
cmp cl, 0x5d
jne case.0x100ec1b4.9
mov eax, 8
ret
mov al, cl
or al, 0x20
cmp al, 0x61
jb 0x100ec2fe
cmp al, 0x7a
jbe 0x100ec32d
cmp cl, 0x30
jl 0x100ec308
cmp cl, 0x39
jle 0x100ec32d
cmp cl, 0x25
je 0x100ec32d
cmp cl, 0x2e
je 0x100ec32d
cmp cl, 0x2d
je 0x100ec32d
cmp cl, 0x5f
je 0x100ec32d
cmp cl, 0x7e
mov eax, 1
mov edx, 0xa
cmove eax, edx
ret
mov eax, 0xa
ret
mov al, 9
sub cl, 0x30
cmp al, cl
sbb eax, eax
and eax, 0xfffffff5
add eax, 0xc
ret
Function at 0x100ec630
Capabilities:
Parse credit card information

Disassembly:
push ebx
mov bl, byte [esp + 0xc]
push esi
cmp bl, 0x20
je case.default.0x100ec661
cmp bl, 0xd
je case.default.0x100ec661
cmp bl, 0xa
je case.default.0x100ec661
mov esi, dword [esp + 0xc]
lea eax, [esi - 0x14]
cmp eax, 0xb
ja case.default.0x100ec661
jmp dword [eax*4 + 0x100ec848]
cmp bl, 0x2f
je 0x100ec6d8
cmp bl, 0x2a
je 0x100ec6d8
or bl, 0x20
sub bl, 0x61
cmp bl, 0x19
ja case.default.0x100ec661
pop esi
mov eax, 0x15
pop ebx
ret
mov al, bl
or al, 0x20
sub al, 0x61
cmp al, 0x19
jbe 0x100ec843
cmp bl, 0x3a
jne case.default.0x100ec661
pop esi
mov eax, 0x16
pop ebx
ret
cmp bl, 0x2f
jne case.default.0x100ec661
pop esi
mov eax, 0x17
pop ebx
ret
cmp bl, 0x2f
jne case.default.0x100ec661
pop esi
mov eax, 0x18
pop ebx
ret
cmp bl, 0x40
je case.default.0x100ec661
cmp bl, 0x2f
jne 0x100ec6e0
pop esi
mov eax, 0x1b
pop ebx
ret
cmp bl, 0x3f
je 0x100ec7a3
cmp bl, 0x40
jne 0x100ec6f6
pop esi
mov eax, 0x1a
pop ebx
ret
mov al, bl
or al, 0x20
cmp al, 0x61
jb 0x100ec702
cmp al, 0x7a
jbe 0x100ec76b
cmp bl, 0x30
jl 0x100ec70c
cmp bl, 0x39
jle 0x100ec76b
cmp bl, 0x2d
je 0x100ec76b
cmp bl, 0x5f
je 0x100ec76b
cmp bl, 0x2e
je 0x100ec76b
cmp bl, 0x21
je 0x100ec76b
cmp bl, 0x7e
je 0x100ec76b
cmp bl, 0x2a
je 0x100ec76b
cmp bl, 0x27
je 0x100ec76b
cmp bl, 0x28
je 0x100ec76b
cmp bl, 0x29
je 0x100ec76b
cmp bl, 0x25
je 0x100ec76b
cmp bl, 0x3b
je 0x100ec76b
cmp bl, 0x3a
je 0x100ec76b
cmp bl, 0x26
je 0x100ec76b
cmp bl, 0x3d
je 0x100ec76b
cmp bl, 0x2b
je 0x100ec76b
cmp bl, 0x24
je 0x100ec76b
cmp bl, 0x2c
je 0x100ec76b
cmp bl, 0x5b
je 0x100ec76b
cmp bl, 0x5d
jne case.default.0x100ec661
pop esi
mov eax, 0x19
pop ebx
ret
movzx edx, bl
mov eax, 1
mov ecx, edx
shr edx, 3
and ecx, 7
shl eax, cl
test byte [edx + 0x10136d68], al
jne 0x100ec843
test bl, bl
js 0x100ec843
cmp bl, 0x23
je 0x100ec7db
cmp bl, 0x3f
jne case.default.0x100ec661
pop esi
mov eax, 0x1c
pop ebx
ret
movzx edx, bl
mov eax, 1
mov ecx, edx
shr edx, 3
and ecx, 7
shl eax, cl
test byte [edx + 0x10136d68], al
jne 0x100ec7e3
test bl, bl
js 0x100ec7e3
cmp bl, 0x23
je 0x100ec7db
cmp bl, 0x3f
je 0x100ec7e3
pop esi
mov eax, 1
pop ebx
ret
pop esi
mov eax, 0x1e
pop ebx
ret
pop esi
mov eax, 0x1d
pop ebx
ret
movzx edx, bl
mov eax, 1
mov ecx, edx
shr edx, 3
and ecx, 7
shl eax, cl
test byte [edx + 0x10136d68], al
jne 0x100ec813
test bl, bl
js 0x100ec813
cmp bl, 0x23
je 0x100ec843
cmp bl, 0x3f
jne case.default.0x100ec661
pop esi
mov eax, 0x1f
pop ebx
ret
movzx edx, bl
mov eax, 1
mov ecx, edx
shr edx, 3
and ecx, 7
shl eax, cl
test byte [edx + 0x10136d68], al
jne 0x100ec843
test bl, bl
js 0x100ec843
cmp bl, 0x23
je 0x100ec843
cmp bl, 0x3f
jne case.default.0x100ec661
mov eax, esi
pop esi
pop ebx
ret