joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10076b62
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov dword [ebp - 4], edx
xor ebx, ebx
push edi
xor edx, edx
call fcn.10075c3c
mov edi, eax
test edi, edi
je 0x10076bcc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov dword [ebp - 8], ecx
cmp esi, 0xffffffff
je 0x10076ba4
test esi, 0x400
je 0x10076ba4
xor eax, eax
inc eax
jmp 0x10076ba6
xor eax, eax
mov edx, dword [ebp - 4]
xor ebx, ebx
test ecx, ecx
push edi
push 0
mov dword [edx], eax
sete bl
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret

Function at 0x10076f3e
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100a6b34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push eax
mov esi, ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10076fb0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x10076f9d
mov ebx, dword [ebp - 0x14]
jmp 0x10076fa5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
jmp 0x10076fb8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.1002bcc0
leave
ret

Function at 0x10077970
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100a6b34]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
mov esi, ecx
call fcn.1002e3fd
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push 0x10026f3c
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x100779cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x100779f8
movzx edi, di
or edi, 0x80070000
jmp 0x100779f8
push edi
push 0x4000000
push 2
push edi
push 7
push 0xc0000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x100779b8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.1002bcc0
leave
ret
Function at 0x10077cd1
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
push 4
push dword [ebp + 0xc]
push 0x1004f080
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, eax
call fcn.10077d4a
test al, al
jne 0x10077d11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x10077d1d
movzx ebx, bx
or ebx, 0x80070000
jmp 0x10077d1d
mov dword [esi], ecx
test ecx, ecx
jne 0x10077d1a
or dword [esi], 0xffffffff
mov byte [esi + 4], bl
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8

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

Disassembly:
push 4
mov eax, 0x1002e5df
call fcn.1002c427
mov esi, ecx
push 0x100a7388
lea ecx, [ebp - 0x10]
call fcn.10037ec3
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.10077d59
test al, al
je 0x100780a5
lea edx, [ebp - 0x10]
mov ecx, esi
call fcn.100776b0
test eax, eax
js 0x100780a5
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov esi, dword [ebp - 0x10]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp edi, 0xffffffff
setne bl
jmp 0x100780a8
mov esi, dword [ebp - 0x10]
lea ecx, [esi - 0x10]
call fcn.10039da9
mov al, bl
call fcn.1002c3f5
ret

Function at 0x1007810c
Capabilities:
Resume thread

Disassembly:
mov edi, edi
push esi
push edi
mov edi, ecx
xor esi, esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x10078136
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10078136
movzx esi, si
or esi, 0x80070000
mov byte [edi + 4], 1
mov eax, esi
pop edi
pop esi
ret
Function at 0x10079430
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0x23c
mov eax, 0x100352df
call fcn.1002c45a
mov esi, edx
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x248], eax
xor eax, eax
mov dword [ebp - 0x240], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], eax
mov ebx, 0x100a7388
mov byte [ebp - 4], 1
push ebx
lea ecx, [ebp - 0x234]
call fcn.10037ec3
push ebx
lea ecx, [ebp - 0x238]
mov byte [ebp - 4], 2
call fcn.10037ec3
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x240]
mov eax, dword [edi]
mov ebx, dword [esi*4 + 0x10004774]
and dword [ebp - 0x230], 0
push ecx
mov esi, dword [eax + 0x48]
mov ecx, esi
push edi
call dword [0x100a83d4]
call esi
mov edi, eax
test edi, edi
js 0x1007961f
mov eax, dword [ebp - 0x240]
lea ecx, [ebp - 0x23c]
push ecx
push 2
push eax
mov esi, dword [eax]
mov ecx, dword [esi + 0x1c]
call dword [0x100a83d4]
call dword [esi + 0x1c]
mov edi, eax
test edi, edi
js 0x1007961f
mov ecx, dword [ebp - 0x23c]
lea eax, [ebp - 0x234]
push eax
mov edx, 0x10027070
call fcn.100770c6
mov edi, eax
test edi, edi
js 0x1007961f
mov esi, dword [ebp - 0x234]
lea eax, [ebp - 0x238]
push eax
mov edx, ebx
mov ecx, esi
call fcn.100770c6
mov edi, eax
test edi, edi
js 0x10079625
xor ebx, ebx
lea eax, [ebp - 0x230]
push ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push dword [ebp - 0x238]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
jle 0x10079553
movzx edi, di
or edi, 0x80070000
test edi, edi
js 0x10079625
and dword [ebp - 0x244], 0
xor eax, eax
mov word [ebp - 0x24], ax
cmp ebx, 0xffffffff
je 0x10079618
push ebx
push 0x10027094
lea eax, [ebp - 0x24]
push 0xa
push eax
call fcn.10074975
mov edi, eax
add esp, 0x10
test edi, edi
js 0x10079625
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], 0x208
push eax
lea eax, [ebp - 0x22c]
push eax
xor eax, eax
push eax
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jle 0x100795c5
movzx eax, ax
or eax, 0x80070000
cmp eax, 0x80070002
je 0x100795cf
inc ebx
jmp 0x10079559
mov edi, dword [ebp - 0x248]
xor ebx, ebx
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x100795dc
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push ebx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test edi, edi
jle 0x10079625
movzx edi, di
or edi, 0x80070000
jmp 0x10079625
mov edi, 0x80070216
jmp 0x10079625
mov esi, dword [ebp - 0x234]
cmp dword [ebp - 0x230], 0
je 0x1007963a
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x238]
lea ecx, [ecx - 0x10]
call fcn.10039da9
lea ecx, [esi - 0x10]
call fcn.10039da9
push dword [ebp - 0x23c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x1007967a
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x100a83d4]
call esi
mov eax, edi
call fcn.1002c409
ret 4
Function at 0x10079b8a
Capabilities:
Query environment variable

Disassembly:
push 0x10
mov eax, 0x10035372
call fcn.1002c490
mov eax, ecx
mov dword [ebp - 0x18], eax
xor esi, esi
mov dword [ebp - 4], esi
mov edi, esi
mov eax, dword [eax]
mov dword [ebp - 0x14], esi
cmp dword [eax - 0xc], esi
je 0x10079c69
push esi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebx, eax
test ebx, ebx
jne 0x10079bdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10079c74
movzx esi, si
or esi, 0x80070000
jmp 0x10079c74
push 0x10005480
xor ecx, ecx
lea eax, [ebx + 1]
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1002bf1a
mov edi, eax
mov dword [ebp - 0x14], edi
pop ecx
pop ecx
test edi, edi
jne 0x10079c0b
mov esi, 0x8007000e
jmp 0x10079c74
lea eax, [ebx*2 + 2]
push eax
push esi
push edi
call fcn.1002e3fd
add esp, 0xc
push ebx
mov ebx, dword [ebp - 0x18]
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x10079c45
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10079c69
movzx esi, si
or esi, 0x80070000
jmp 0x10079c69
mov ecx, edi
call fcn.1003a500
push eax
push edi
mov ecx, ebx
call fcn.1003a440
jmp 0x10079c69
test edi, edi
je 0x10079c74
push edi
call sub.msvcrt.dll_free
pop ecx
mov eax, esi
call fcn.1002c3f5
ret
Function at 0x1007b4cc
Capabilities:
Print debug messages

Disassembly:
push 0x1c
mov eax, 0x100355e2
call fcn.1002c490
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi], ebx
jne 0x1007b53c
push 0x100a7388
lea ecx, [ebp - 0x20]
call fcn.10037ec3
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
lea eax, [ebp + 0x18]
push eax
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
call fcn.1006f1e6
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
lea ecx, [esi + 0x1c]
call fcn.1007ac84
jmp 0x1007b52a
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.10039da9
mov eax, ebx
jmp 0x1007b5d6
mov eax, dword [ebp + 0x10]
cmp eax, dword [esi + 0x4c]
ja 0x1007b5d4
sub eax, ebx
je 0x1007b5d4
sub eax, 1
je 0x1007b570
sub eax, 1
je 0x1007b569
sub eax, 1
je 0x1007b562
sub eax, 1
mov eax, 0x4000000
jmp 0x1007b575
mov eax, 0x3000000
jmp 0x1007b575
mov eax, 0x2000000
mov edi, dword [esi + 0x10]
test edi, edi
je 0x1007b5dc
cmp dword [esi + 0xc], ebx
je 0x1007b5dc
cmp dword [esi + 0x14], ebx
je 0x1007b5dc
lea ecx, [ebp + 0x18]
push ecx
push dword [ebp + 0x14]
mov ecx, edi
push eax
call dword [0x100a83d4]
call edi
mov esi, dword [esi + 0x14]
mov edi, eax
push ebx
push ebx
push ebx
mov ecx, esi
call dword [0x100a83d4]
call esi
mov esi, dword [ebp + 8]
push eax
push 0x100271dc
push 0x100271fc
mov esi, dword [esi + 0xc]
mov ecx, esi
push 0x106
push ebx
push 0x1002723c
push dword [ebp + 0xc]
push edi
call dword [0x100a83d4]
call esi
xor eax, eax
call fcn.1002c3f5
ret
push 0x100a7388
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 3
call fcn.10037ec3
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 4
push eax
push dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
call fcn.1006f1e6
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [esi - 0x10]
call fcn.10039da9
jmp 0x1007b5d4
Function at 0x1007bdff
Capabilities:
Get file size
Read file via mapping

Disassembly:
push 0x30
push 0x100a3cd0
call fcn.1002c24c
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], ecx
xor ebx, ebx
mov dword [ebp - 0x20], ebx
or dword [ebp - 0x24], 0xffffffff
or dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
xor eax, eax
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], ebx
push ebx
push 0x100
push 2
push ebx
push ebx
push 0xc0000000
push edx
mov esi, dword [0x100a7648]
mov ecx, esi
call dword [0x100a83d4]
call esi
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, 0xffffffff
je 0x1007bedd
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x1007be73
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], ebx
push ebx
push ebx
neg esi
sbb esi, esi
lea eax, [ebp - 0x40]
and esi, eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov esi, dword [0x100a7654]
mov ecx, esi
call dword [0x100a83d4]
call esi
test eax, eax
je 0x1007bedd
lea eax, [ebp - 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x34], eax
cmp eax, 0xffffffff
je 0x1007bedd
push ebx
push eax
push dword [ebp - 0x30]
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1007bedd
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.1007bf2e
test ebx, ebx
je 0x1007bf14
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x1007beff
mov eax, dword [ebp - 0x34]
mov dword [ecx], eax
mov eax, dword [ebp - 0x30]
mov dword [ecx + 4], eax
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1007bf0b
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
test eax, eax
je 0x1007bf14
mov dword [eax], edi
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1007bf90
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100a6b34]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, edx
push 0
push eax
mov esi, ecx
call fcn.1002e3fd
and dword [ebp - 0x210], 0
lea eax, [ebp - 0x20c]
add esp, 0xc
push eax
push 0
push 0x100275ec
push 0x100a7430
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1007c04c
lea eax, [ebp - 0x210]
mov edx, 0x104
push eax
lea ecx, [ebp - 0x20c]
call fcn.1003ef70
test eax, eax
js 0x1007c04c
mov eax, dword [ebp - 0x210]
mov edx, esi
add eax, 0xfffffffd
mov ecx, edi
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.10075ec1
test eax, eax
js 0x1007c04c
push 0x10027600
mov edx, esi
mov ecx, edi
call fcn.1005533b
test eax, eax
js 0x1007c04c
mov esi, dword [0x100a7658]
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call dword [0x100a83d4]
call esi
xor eax, eax
inc eax
jmp 0x1007c04e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1002bcc0
leave
ret
Function at 0x1007c500
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
push 0x100a3c70
call fcn.1002c24c
xor edi, edi
mov ebx, edi
mov dword [ebp - 0x20], ebx
push dword [0x100a6eac]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
jne 0x1007c656
push 0x100a73a4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], edi
cmp dword [0x100a7420], esi
jne 0x1007c573
push 4
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x100a7420], eax
test eax, eax
je 0x1007c5fb
mov ecx, edi
mov dword [0x100a7640], ecx
mov dword [0x100a763c], 1
jmp 0x1007c5b3
mov ecx, dword [0x100a7640]
mov eax, dword [0x100a763c]
cmp ecx, eax
jne 0x1007c5b3
lea eax, [eax*4 + 4]
push eax
push dword [0x100a7420]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x1007c5fb
mov dword [0x100a7420], eax
inc dword [0x100a763c]
mov ecx, dword [0x100a7640]
mov eax, dword [0x100a7420]
mov dword [eax + ecx*4], edi
push 0x8010
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x1007c5fb
lea eax, [esi + 0x10]
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0x8000
push esi
push dword [0x100a6eac]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1007c5fb
xor ebx, ebx
inc ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.1007c62a
test ebx, ebx
je 0x1007c62b
mov ecx, dword [0x100a7640]
mov eax, dword [0x100a7420]
mov dword [eax + ecx*4], esi
inc ecx
mov dword [0x100a7640], ecx
jmp 0x1007c649
push edi
push dword [0x100a6eac]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, edi
push 0x100a73a4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1007ca3b
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x100a6eb0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1007ca74
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1007ca74
mov eax, dword [eax]
mov eax, dword [eax + ecx*4 - 4]
test eax, eax
je 0x1007ca74
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x1007ca74
mov eax, dword [eax + 8]
mov eax, dword [eax + ecx*4 - 4]
test eax, eax
je 0x1007ca74
mov eax, dword [eax]
test eax, eax
jne 0x1007ca79
mov eax, 0x100073b8
ret
Function at 0x1007ca7a
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x100a6eb0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x1007cab4
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1007cab4
mov eax, dword [eax]
mov eax, dword [eax + ecx*4 - 4]
test eax, eax
je 0x1007cab4
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x1007cab4
mov eax, dword [eax + 8]
mov eax, dword [eax + ecx*4 - 4]
test eax, eax
je 0x1007cab4
mov eax, dword [eax + 4]
test eax, eax
jne 0x1007cab9
mov eax, 0x100073c0
ret
Function at 0x1007e73d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x100a6b34]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x100a7678], 0
jne 0x1007e8e8
mov dword [0x100a7678], 1
mov dword [0x100a765c], ecx
call fcn.1007e63c
test eax, eax
je 0x1007e7db
push 0x10029af8
mov dword [0x100a764c], 0x1007e1d0
mov dword [0x100a767c], 0x1007e440
mov dword [0x100a7660], 0x1007e300
mov dword [0x100a73f4], 0x1007e590
mov dword [0x100a73f0], 0x1007e630
mov dword [0x100a7648], 0x1007e0f0
mov dword [0x100a7658], 0x1007e550
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1007e821
push 0x10029b0c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
jmp 0x1007e821
mov dword [0x100a764c], 0x1007e100
mov dword [0x100a767c], 0x1007e360
mov dword [0x100a7660], 0x1007e230
mov dword [0x100a73f4], 0x1007e590
mov dword [0x100a73f0], 0x1007e5a0
mov dword [0x100a7648], 0x1007e050
mov dword [0x100a7658], 0x1007e4c0
push esi
push 0x208
xor esi, esi
mov dword [0x100a7644], 0x1007e690
lea eax, [ebp - 0x20c]
mov dword [0x100a766c], 0x1007e710
push esi
push eax
mov dword [0x100a7650], 0x1007e030
mov dword [0x100a7670], 0x1007e670
mov dword [0x100a7680], 0x1007e700
mov dword [0x100a7668], 0x1007e6b0
mov dword [0x100a7674], 0x1007e580
mov dword [0x100a7664], 0x1007e720
call fcn.1002e3fd
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0x10029b28
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x1007e8dd
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
jne 0x1007e8ca
push esi
mov dword [0x100a7654], 0x1002b570
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1007e8e7
push 0x10029b64
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x100a7654], eax
jmp 0x1007e8e7
mov dword [0x100a7654], 0x1002b570
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.1002bcc0
leave
ret
Function at 0x10084e52
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100a6b34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0xc], edx
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test ecx, ecx
je 0x10084f54
xor eax, eax
cmp ax, word [ecx]
je 0x10084f54
test edx, edx
je 0x10084f54
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10084f43
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x10084f1e
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x10084f1e
push 0
lea eax, [ebp - 8]
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10084efd
cmp dword [ebp - 8], esi
jne 0x10084efd
mov eax, dword [ebp - 0xc]
mov dword [eax], esi
mov dword [eax + 4], esi
xor esi, esi
mov dword [eax + 8], ebx
jmp 0x10084f2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x10084f0c
push 0x1f
pop esi
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10084f2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x10084f2d
push 0x1f
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jle 0x10084f57
movzx esi, si
or esi, 0x80070000
jmp 0x10084f57
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x10084f36
push 0x1f
pop esi
jmp 0x10084f38
push 0x57
pop esi
cmp dword [ebp - 0x10], 0
je 0x10084f65
lea ecx, [ebp - 0x18]
call fcn.10085649
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002bcc0
leave
ret

Function at 0x10090be9
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push edi
xor edi, edi
mov ecx, edi
cmp dword [esi + 4], edi
jbe 0x10090c0e
mov edx, edi
mov eax, dword [esi + 8]
lea edx, [edx + 0x5c]
inc ecx
mov dword [eax + edx - 0x48], edi
mov dword [eax + edx - 0x54], edi
cmp ecx, dword [esi + 4]
jb 0x10090bfa
push dword [esi + 8]
mov eax, dword fs:[0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword [esi + 0xc]
mov dword [esi + 8], edi
test ecx, ecx
je 0x10090c32
push 1
call fcn.10090825
mov dword [esi + 0xc], edi
pop edi
pop esi
ret
Function at 0x10093ef1
Capabilities:
Parse credit card information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
xor ecx, ecx
push edi
mov edi, edx
mov dword [ebp - 8], ecx
mov eax, dword [ebx + 0x14]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x10]
mov dword [edi + 8], ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x14]
mov dword [edi + 4], eax
mov eax, dword [ebx + 0x1c]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ecx
mov eax, dword [ebx + 0x10]
cmp dword [ebx + 0x14], eax
jb 0x10093f3a
mov dword [edi + 4], eax
xor eax, eax
mov dword [edi], 3
jmp 0x10093ff4
push esi
mov esi, dword [ebx + 0x18]
mov ecx, esi
call dword [0x100a83d4]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
call esi
mov ecx, eax
cmp ecx, 0xffffffff
je 0x10093ff1
cmp ecx, 0x61
jb 0x10093f63
cmp ecx, 0x7a
jbe 0x10093fe0
lea eax, [ecx - 0x41]
cmp eax, 0x19
jbe 0x10093fe0
lea eax, [ecx - 0x30]
cmp eax, 9
jbe 0x10093fe0
cmp ecx, 0x2f
ja 0x10093fa9
cmp ecx, 0x28
jae 0x10093fe6
cmp ecx, 0xa
je 0x10093fe6
cmp ecx, 0xd
je 0x10093fe6
cmp ecx, 0x1f
jbe 0x10093fc7
cmp ecx, 0x21
jbe 0x10093fe6
cmp ecx, 0x22
jbe 0x10093fc7
cmp ecx, 0x25
jbe 0x10093fe6
cmp ecx, 0x27
jne 0x10093fc7
cmp dword [ebx + 0x24], 0xa
sete al
jmp 0x10093fe2
cmp ecx, 0x3a
jb 0x10093fc7
cmp ecx, 0x3b
jbe 0x10093fe6
cmp ecx, 0x3d
je 0x10093fe6
cmp ecx, 0x3e
jbe 0x10093fc7
cmp ecx, 0x40
jbe 0x10093fe6
cmp ecx, 0x5f
je 0x10093fe6
mov eax, dword [ebp - 4]
mov dword [edi], 0xc
sub eax, dword [ebx + 0x14]
mov dword [edi + 8], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x10], eax
xor eax, eax
jmp 0x10093ff3
mov al, 1
test al, al
je 0x10093fc7
inc dword [ebp - 8]
mov dword [ebp - 4], edx
jmp 0x10093f3b
mov eax, edx
pop esi
pop edi
pop ebx
leave
ret