joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005fb5a
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
mov esi, ecx
xor cl, cl
push edi
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x1005fcf0
cmp eax, 0x7c
je 0x1005fcf0
mov edx, 0x10000000
cmp eax, 0x29
jne 0x1005fbc6
cmp dword [esi + 0x10], 0
jne 0x1005fcf0
test dword [esi + 0x50], edx
je 0x1005fcf6
cmp eax, 0x5d
jne 0x1005fba1
test dword [esi + 0x50], edx
je 0x1005fc86
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.10060740
mov bl, 1
mov ecx, esi
call fcn.1005fb32
test bl, bl
je 0x1005fbc2
mov ecx, esi
call fcn.1006065b
mov cl, 1
jmp 0x1005fb61
cmp eax, 0x2e
jne 0x1005fbde
push 5
lea ecx, [esi + 0x24]
call fcn.1005fdbd
mov ecx, esi
call fcn.1005fb32
jmp 0x1005fbbb
cmp eax, 0x5c
jne 0x1005fc2a
mov ecx, esi
call fcn.1005fb32
test byte [esi + 0x50], 0x80
je 0x1005fc21
mov al, byte [esi + 0x48]
cmp al, 0x62
jne 0x1005fc0a
push 4
lea ecx, [esi + 0x24]
call fcn.1005fdbd
mov ecx, esi
call fcn.1005fb32
jmp 0x1005fbc2
cmp al, 0x42
jne 0x1005fc21
push 4
lea ecx, [esi + 0x24]
call fcn.1005fdbd
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x1005fc01
mov ecx, esi
call fcn.100604f4
jmp 0x1005fbbb
cmp eax, 0x5b
jne 0x1005fc8a
mov ecx, esi
call fcn.1005fb32
lea ecx, [esi + 0x24]
call fcn.10061433
mov eax, dword [esi + 0x4c]
cmp eax, 0x5e
jne 0x1005fc57
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.1005fb32
mov eax, dword [esi + 0x4c]
test dword [esi + 0x50], 0x20000000
je 0x1005fc75
cmp eax, 0x5d
jne 0x1005fc75
push eax
lea ecx, [esi + 0x24]
call fcn.1006147b
mov ecx, esi
call fcn.1005fb32
mov ecx, esi
call fcn.100610f0
cmp dword [esi + 0x4c], 0x5d
je 0x1005fbd5
push 4
jmp 0x1005fcf8
cmp eax, 0x28
jne 0x1005fcaa
mov ecx, esi
call fcn.1005fb32
mov ecx, esi
call fcn.100605cc
cmp dword [esi + 0x4c], 0x29
mov bl, al
jne 0x1005fcf6
jmp 0x1005fbb0
cmp eax, 0x5e
jne 0x1005fcb6
push 2
jmp 0x1005fbf9
cmp eax, 0x24
jne 0x1005fcc2
push 3
jmp 0x1005fbf9
cmp eax, 0x2a
je 0x1005fcec
cmp eax, 0x2b
je 0x1005fcec
cmp eax, 0x3f
je 0x1005fcec
cmp eax, 0x7b
je 0x1005fcec
cmp eax, 0x7d
jne 0x1005fb93
test dword [esi + 0x50], edx
jne 0x1005fba1
push 6
jmp 0x1005fcf8
push 0xa
jmp 0x1005fcf8
pop edi
pop esi
mov al, cl
pop ebx
ret
push 5
call fcn.1005f001
int3
Function at 0x1006aaf6
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
test edi, edi
je 0x1006ab1d
sub edx, esi
mov cl, byte [edx + esi]
lea eax, [ecx - 0x41]
cmp al, 0x19
seta al
dec al
and al, 0x20
xor al, cl
mov byte [esi], al
inc esi
sub edi, 1
jne 0x1006ab04
pop edi
pop esi
ret
Function at 0x1006dd63
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov ebp, edx
push ebp
xor ebx, ebx
mov esi, ecx
push ebx
push edi
call sub.msvcrt.dll_memset
mov ecx, dword [esp + 0x20]
mov edx, ebp
movzx eax, cl
add esp, 0xc
imul eax, eax, 0xd
imul edx, ecx
mov cl, al
mov dword [esp + 0x14], eax
add edx, esi
xor cl, 0x6e
test ebp, ebp
jle 0x1006ddb3
sub edi, edx
mov al, byte [edx]
xor al, cl
mov byte [edx + edi], al
mov al, byte [edx]
add al, byte [esp + 0x14]
add al, bl
add cl, al
inc ebx
inc edx
cmp ebx, ebp
jl 0x1006dd9c
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x10070a3b
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edx, ecx
mov ebx, 0x101916b8
push 8
xor eax, eax
mov edi, ebx
pop ecx
rep stosd dword es:[edi], eax
mov edi, ebx
lea esi, [edx + 0x10173230]
sub edi, edx
mov cl, byte [esi]
xor cl, dl
xor cl, 0x6e
mov byte [edi + edx], cl
inc edx
inc esi
test cl, cl
jne 0x10070a58
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x100725cf
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 4
jb 0x1007263a
push edi
mov edi, esi
shr edi, 2
movzx eax, byte [edx]
sub esi, 4
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100ac020]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100ac020]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100ac020]
movzx eax, byte [edx + 3]
add edx, 4
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100ac020]
sub edi, 1
jne 0x100725e3
pop edi
test esi, esi
je 0x10072656
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x100ac020]
inc edx
sub esi, 1
jne 0x1007263e
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x10078981
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x45c
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
jne 0x100789a0
or eax, 0xffffffff
jmp 0x10078a8e
cmp dword [esi + 0x14], 1
je 0x100789ae
push 0xfffffffffffffffc
pop eax
jmp 0x10078a8e
cmp edi, dword [esi + 0x10]
jb 0x100789b7
push 0xfffffffffffffff6
jmp 0x100789a8
mov ecx, dword [esi + 0x48]
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
add eax, dword [ecx]
jne 0x100789c8
push 0xfffffffffffffff5
jmp 0x100789a8
movzx ebx, word [eax + 0x1c]
add eax, 0x2e
cmp dword [esi + 0x5c], 0
mov dword [esp + 0xc], eax
je 0x100789eb
push dword [esi + 0x5c]
call dword [sym.imp.msvcrt.dll_free]
and dword [esi + 0x5c], 0
mov eax, dword [esp + 0x10]
pop ecx
push ecx
push ecx
mov edx, ebx
mov ecx, eax
call fcn.100784cf
mov dword [esi + 0x5c], eax
pop ecx
pop ecx
test eax, eax
jne 0x10078a03
push 0xfffffffffffffffe
jmp 0x100789a8
lea eax, [esp + 0x10]
mov edx, edi
push eax
mov ecx, esi
call fcn.1007849f
pop ecx
test eax, eax
jne 0x10078a1a
push 0xfffffffffffffffd
jmp 0x100789a8
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x68], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0x60], eax
mov eax, dword [esp + 0x30]
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 0x78], eax
mov eax, dword [esp + 0x50]
mov dword [esi + 0x6c], ecx
mov ecx, dword [esp + 0x44]
mov dword [esi + 0xa0], eax
mov ax, word [esp + 0x26]
mov dword [esi + 0x64], ecx
mov ecx, dword [esp + 0x1c]
mov word [esi + 0xa8], ax
mov eax, dword [esp + 0x4c]
mov dword [esi + 0x7c], ecx
mov ecx, dword [esp + 0x54]
mov dword [esi + 0x4e008], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0xa4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0x4e010], eax
xor eax, eax
mov dword [esi + 0x58], edi
mov dword [esi + 0x4e014], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1007bab0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x100d6080]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x1007bad7
mov ecx, 5
int 0x29
push 2
call fcn.1007b426
push 0x50
lea eax, [ebp - 0x320]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x2cc
lea eax, [ebp - 0x2d0]
push 0
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x320]
add esp, 0x1c
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x22c], ebx
mov dword [ebp - 0x230], esi
mov dword [ebp - 0x234], edi
mov word [ebp - 0x208], ss
mov word [ebp - 0x214], cs
mov word [ebp - 0x238], ds
mov word [ebp - 0x23c], es
mov word [ebp - 0x240], fs
mov word [ebp - 0x244], gs
pushfd
pop dword [ebp - 0x210]
mov eax, dword [ebp + 4]
mov dword [ebp - 0x218], eax
lea eax, [ebp + 4]
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x2d0], 0x10001
mov eax, dword [eax - 4]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 4]
mov dword [ebp - 0x320], 0xc0000417
mov dword [ebp - 0x31c], 1
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x328]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x1007bbe2
test esi, esi
jne 0x1007bbe2
push 2
call fcn.1007b426
add esp, 4
push 0xc0000417
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1007ad96
mov esp, ebp
pop ebp
ret
Function at 0x10084560
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x100d6080]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push 0x1008f388
push edi
mov dword [ebp - 0x210], edi
call sub.msvcrt.dll_wcspbrk
add esp, 8
test eax, eax
jne 0x100845a0
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007ad96
mov esp, ebp
pop ebp
ret
push ebx
push esi
xor esi, esi
call sub.msvcrt.dll__errno
mov ebx, dword [eax]
call sub.msvcrt.dll__errno
push 0x104
push edi
mov dword [eax], esi
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll__wfullpath
add esp, 0xc
mov edi, eax
call sub.msvcrt.dll__errno
test edi, edi
je 0x100845dc
mov dword [eax], ebx
mov ebx, dword [ebp - 0x210]
jmp 0x1008460b
cmp dword [eax], 0x22
jne 0x1008471a
call sub.msvcrt.dll__errno
push 0
mov dword [eax], ebx
mov ebx, dword [ebp - 0x210]
push ebx
push 0
call sub.msvcrt.dll__wfullpath
mov esi, eax
add esp, 0xc
mov edi, esi
test edi, edi
je 0x1008471a
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10084610
sub ecx, edx
sar ecx, 1
cmp ecx, 3
je 0x100846f2
mov ecx, edi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10084630
sub ecx, edx
sar ecx, 1
cmp ecx, 5
jb 0x1008471a
movzx eax, word [edi]
cmp eax, 0x5c
je 0x10084659
cmp eax, 0x2f
jne 0x1008471a
movzx eax, word [edi + 2]
cmp eax, 0x5c
je 0x1008466b
cmp eax, 0x2f
jne 0x1008471a
movzx eax, word [edi + 4]
cmp eax, 0x5c
je 0x1008471a
cmp eax, 0x2f
je 0x1008471a
movzx eax, word [edi + 6]
lea edx, [edi + 6]
mov edi, eax
test ax, ax
je 0x100846b2
mov ecx, eax
cmp cx, 0x5c
je 0x100846af
cmp cx, 0x2f
je 0x100846af
movzx eax, word [edx + 2]
add edx, 2
mov ecx, eax
mov edi, eax
test ax, ax
jne 0x10084691
jmp 0x100846b2
movzx edi, cx
test di, di
je 0x1008471a
movzx eax, word [edx + 2]
add edx, 2
mov ecx, eax
test ax, ax
je 0x1008471a
cmp cx, 0x5c
je 0x100846e3
cmp cx, 0x2f
je 0x100846e3
movzx eax, word [edx + 2]
add edx, 2
mov ecx, eax
mov edi, eax
test ax, ax
jne 0x100846c5
jmp 0x100846e6
movzx edi, cx
test di, di
je 0x100846f2
cmp word [edx + 2], 0
jne 0x1008471a
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push esi
cmp eax, 1
jbe 0x1008471b
call sub.msvcrt.dll_free
add esp, 4
mov al, 1
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007ad96
mov esp, ebp
pop ebp
ret
push esi
call sub.msvcrt.dll_free
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor al, al
pop esi
pop ebx
pop edi
call fcn.1007ad96
mov esp, ebp
pop ebp
ret
Function at 0x100848e0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10084a88
push esi
xor esi, esi
push dword [edi + esi*4]
call sub.msvcrt.dll_free
inc esi
add esp, 4
cmp esi, 7
jne 0x100848f2
push ebx
lea esi, [edi + 0x1c]
mov ebx, 7
lea esp, [esp]
push dword [esi]
call sub.msvcrt.dll_free
add esp, 4
lea esi, [esi + 4]
sub ebx, 1
jne 0x10084910
lea esi, [edi + 0x38]
mov ebx, 0xc
lea ebx, [ebx]
push dword [esi]
call sub.msvcrt.dll_free
add esp, 4
lea esi, [esi + 4]
sub ebx, 1
jne 0x10084930
lea esi, [edi + 0x68]
mov ebx, 0xc
lea ebx, [ebx]
push dword [esi]
call sub.msvcrt.dll_free
add esp, 4
lea esi, [esi + 4]
sub ebx, 1
jne 0x10084950
lea esi, [edi + 0x98]
mov ebx, 2
lea ecx, [ecx]
push dword [esi]
call sub.msvcrt.dll_free
add esp, 4
lea esi, [esi + 4]
sub ebx, 1
jne 0x10084970
push dword [edi + 0xa0]
call sub.msvcrt.dll_free
push dword [edi + 0xa4]
call sub.msvcrt.dll_free
push dword [edi + 0xa8]
call sub.msvcrt.dll_free
mov eax, dword fs:[0x18]
add esp, 0xc
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60001
jb 0x10084a86
lea esi, [edi + 0xb8]
mov ebx, 7
push dword [esi]
call sub.msvcrt.dll_free
add esp, 4
lea esi, [esi + 4]
sub ebx, 1
jne 0x100849d5
lea esi, [edi + 0xd4]
mov ebx, 7
push dword [esi]
call sub.msvcrt.dll_free
add esp, 4
lea esi, [esi + 4]
sub ebx, 1
jne 0x100849f2
lea esi, [edi + 0xf0]
mov ebx, 0xc
nop
push dword [esi]
call sub.msvcrt.dll_free
add esp, 4
lea esi, [esi + 4]
sub ebx, 1
jne 0x10084a10
lea esi, [edi + 0x120]
mov ebx, 0xc
lea ecx, [ecx]
push dword [esi]
call sub.msvcrt.dll_free
add esp, 4
lea esi, [esi + 4]
sub ebx, 1
jne 0x10084a30
lea esi, [edi + 0x150]
mov ebx, 2
lea ecx, [ecx]
push dword [esi]
call sub.msvcrt.dll_free
add esp, 4
lea esi, [esi + 4]
sub ebx, 1
jne 0x10084a50
push dword [edi + 0x158]
call sub.msvcrt.dll_free
push dword [edi + 0x15c]
call sub.msvcrt.dll_free
push dword [edi + 0x160]
call sub.msvcrt.dll_free
add esp, 0xc
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10084a90
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10084c22
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x10084aba
call fcn.10084880
test al, al
jne 0x10084aba
push dword [esi + 0xc]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x10084ad5
call fcn.10084880
test al, al
jne 0x10084ad5
push dword [esi + 0x10]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x10084af0
call fcn.10084880
test al, al
jne 0x10084af0
push dword [esi + 0x14]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x10084b0b
call fcn.10084880
test al, al
jne 0x10084b0b
push dword [esi + 0x18]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x10084b26
call fcn.10084880
test al, al
jne 0x10084b26
push dword [esi + 0x1c]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x10084b41
call fcn.10084880
test al, al
jne 0x10084b41
push dword [esi + 0x20]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x10084b5c
call fcn.10084880
test al, al
jne 0x10084b5c
push dword [esi + 0x24]
call sub.msvcrt.dll_free
add esp, 4
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60001
jb 0x10084c22
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x10084b9b
call fcn.10084880
test al, al
jne 0x10084b9b
push dword [esi + 0x38]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x10084bb6
call fcn.10084880
test al, al
jne 0x10084bb6
push dword [esi + 0x3c]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x10084bd1
call fcn.10084880
test al, al
jne 0x10084bd1
push dword [esi + 0x40]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x10084bec
call fcn.10084880
test al, al
jne 0x10084bec
push dword [esi + 0x44]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x10084c07
call fcn.10084880
test al, al
jne 0x10084c07
push dword [esi + 0x48]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x10084c22
call fcn.10084880
test al, al
jne 0x10084c22
push dword [esi + 0x4c]
call sub.msvcrt.dll_free
add esp, 4
pop esi
pop ebp
ret
Function at 0x10084c30
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0xbc]
test ecx, ecx
je 0x10084dad
mov eax, dword [edi + 0xb0]
test eax, eax
je 0x10084dad
cmp dword [eax], 0
jne 0x10084dad
call fcn.10084880
test al, al
jne 0x10084dad
mov ecx, dword [edi + 0xb0]
call fcn.10084880
test al, al
jne 0x10084dad
mov ecx, dword [edi + 0xb8]
test ecx, ecx
je 0x10084caf
cmp dword [ecx], 0
jne 0x10084caf
call fcn.10084880
test al, al
jne 0x10084caf
push dword [edi + 0xb8]
call sub.msvcrt.dll_free
push dword [edi + 0xbc]
call fcn.10084a90
add esp, 8
mov ecx, dword [edi + 0xb4]
test ecx, ecx
je 0x10084d94
cmp dword [ecx], 0
jne 0x10084d94
call fcn.10084880
test al, al
jne 0x10084d94
push dword [edi + 0xb4]
call sub.msvcrt.dll_free
mov esi, dword [edi + 0xbc]
add esp, 4
test esi, esi
je 0x10084d94
mov ecx, dword [esi]
test ecx, ecx
je 0x10084d08
call fcn.10084880
test al, al
jne 0x10084d08
push dword [esi]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10084d23
call fcn.10084880
test al, al
jne 0x10084d23
push dword [esi + 4]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10084d3e
call fcn.10084880
test al, al
jne 0x10084d3e
push dword [esi + 8]
call sub.msvcrt.dll_free
add esp, 4
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60001
jb 0x10084d94
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x10084d79
call fcn.10084880
test al, al
jne 0x10084d79
push dword [esi + 0x30]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x10084d94
call fcn.10084880
test al, al
jne 0x10084d94
push dword [esi + 0x34]
call sub.msvcrt.dll_free
add esp, 4
push dword [edi + 0xb0]
call sub.msvcrt.dll_free
push dword [edi + 0xbc]
call sub.msvcrt.dll_free
add esp, 8
mov ecx, dword [edi + 0xc0]
test ecx, ecx
je 0x10084e13
cmp dword [ecx], 0
jne 0x10084e13
call fcn.10084880
test al, al
jne 0x10084e13
mov eax, dword [edi + 0xc4]
sub eax, 0xfe
push eax
call sub.msvcrt.dll_free
mov eax, dword [edi + 0xcc]
add esp, 4
sub eax, 0x80
je 0x10084def
push eax
call sub.msvcrt.dll_free
add esp, 4
mov eax, dword [edi + 0xd0]
sub eax, 0x80
je 0x10084e05
push eax
call sub.msvcrt.dll_free
add esp, 4
push dword [edi + 0xc0]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [edi + 0xd4]
test ecx, ecx
je 0x10084e48
cmp dword [ecx + 0xb4], 0
jne 0x10084e48
call fcn.10084880
test al, al
jne 0x10084e48
push dword [edi + 0xd4]
call fcn.100848e0
push dword [edi + 0xd4]
call sub.msvcrt.dll_free
add esp, 8
lea esi, [edi + 0x48]
lea ebx, [edi + 0xa8]
cmp esi, ebx
je 0x10084e8c
mov ecx, dword [esi]
test ecx, ecx
je 0x10084e60
call fcn.10084880
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10084e85
call fcn.10084880
test al, al
jne 0x10084e85
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10084e85
cmp dword [eax], 0
jne 0x10084e85
push eax
call sub.msvcrt.dll_free
add esp, 4
add esi, 0x10
cmp esi, ebx
jne 0x10084e55
push edi
call sub.msvcrt.dll_free
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10084f50
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
mov eax, dword [0x100d6080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1018d31c]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x508], ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
test eax, eax
jne 0x10084f9e
push str._create_locale
call fcn.10086d90
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x508]
test eax, eax
jne 0x10084f99
or eax, 0xffffffff
mov dword [0x1018d31c], eax
lea edi, [eax + 1]
neg edi
sbb edi, edi
and edi, eax
je 0x100850be
test esi, esi
je 0x10084fdf
push 0x2d
push esi
call sub.msvcrt.dll_strchr
add esp, 8
test eax, eax
je 0x10084fdf
xor ecx, ecx
mov al, byte [esi + ecx]
lea edx, [ecx + ecx]
test al, al
je 0x10084ffc
cbw
inc ecx
mov word [ebp + edx - 0x204], ax
cmp ecx, 0x100
jne 0x10084fc2
push esi
push dword [ebp - 0x508]
call edi
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007ad96
mov esp, ebp
pop ebp
ret
cmp edx, 0x200
jae 0x10085187
xor eax, eax
mov word [ebp + edx - 0x204], ax
lea eax, [ebp - 0x204]
push 0x2d
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 8
test eax, eax
je 0x10084fdf
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
lea eax, [ebp - 0x504]
push 0xff
push eax
push 0x1001
lea eax, [ebp - 0x204]
push eax
call ebx
test eax, eax
je 0x10084fdf
lea edx, [ebp - 0x504]
mov ecx, 0x5f
lea edx, [edx + eax*2]
mov word [edx - 2], cx
mov ecx, 0x100
sub ecx, eax
lea eax, [ebp - 0x204]
push ecx
push edx
push 0x1002
push eax
call ebx
test eax, eax
je 0x10084fdf
lea ebx, [ebp - 0x504]
xor eax, eax
jmp 0x10085090
movzx ecx, word [ebx + eax*2]
lea edx, [ebp - 0x304]
test cx, cx
je 0x100850af
mov byte [edx + eax], cl
inc eax
cmp eax, 0x100
jne 0x10085090
jmp 0x10084fdf
mov byte [edx + eax], 0
lea esi, [ebp - 0x304]
jmp 0x10084fdf
cmp ecx, 5
ja 0x10085167
test esi, esi
je 0x10085167
call fcn.100852f0
mov edi, eax
test edi, edi
je 0x10085172
call fcn.1007b8a0
mov ebx, eax
push esi
push dword [ebp - 0x508]
mov eax, dword [ebx + 0x70]
mov dword [ebp - 0x50c], eax
or eax, 2
mov dword [ebx + 0x70], eax
call fcn.10085400
add esp, 8
test eax, eax
je 0x10085122
mov eax, dword [ebx + 0x6c]
push dword [eax + 4]
call sub.msvcrt.dll__setmbcp
add esp, 4
test eax, eax
jne 0x10085122
call fcn.100852f0
mov esi, eax
jmp 0x10085124
xor esi, esi
mov eax, dword [ebp - 0x50c]
mov ecx, dword [ebx + 0x6c]
mov dword [ebx + 0x70], eax
mov eax, dword [edi]
cmp eax, ecx
je 0x1008513b
mov dword [edi], ecx
mov dword [ebx + 0x6c], eax
mov eax, dword [edi + 4]
mov ecx, dword [ebx + 0x68]
cmp eax, ecx
je 0x1008514b
mov dword [edi + 4], ecx
mov dword [ebx + 0x68], eax
push edi
call fcn.10085190
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007ad96
mov esp, ebp
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
mov ecx, dword [ebp - 4]
xor esi, esi
pop edi
mov eax, esi
xor ecx, ebp
pop esi
pop ebx
call fcn.1007ad96
mov esp, ebp
pop ebp
ret
call fcn.1007b67c
int3
Function at 0x10085400
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
mov eax, dword [0x100d6080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x100854fb
push 0x2d
push esi
call sub.msvcrt.dll_strchr
add esp, 8
test eax, eax
je 0x100854fb
xor ecx, ecx
mov al, byte [ecx + esi]
lea edx, [ecx + ecx]
test al, al
je 0x1008545a
cbw
inc ecx
mov word [ebp + edx - 0x204], ax
cmp ecx, 0x100
jne 0x10085438
jmp 0x100854fb
cmp edx, 0x200
jae 0x10085561
xor eax, eax
mov word [ebp + edx - 0x204], ax
lea eax, [ebp - 0x204]
push 0x2d
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 8
test eax, eax
je 0x100854fb
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
lea eax, [ebp - 0x504]
push 0xff
push eax
push 0x1001
lea eax, [ebp - 0x204]
push eax
call edi
test eax, eax
je 0x100854fa
lea edx, [ebp - 0x504]
mov ecx, 0x5f
lea edx, [edx + eax*2]
mov word [edx - 2], cx
mov ecx, 0x100
sub ecx, eax
lea eax, [ebp - 0x204]
push ecx
push edx
push 0x1002
push eax
call edi
test eax, eax
je 0x100854fa
lea edi, [ebp - 0x504]
xor eax, eax
nop
movzx ecx, word [edi + eax*2]
lea edx, [ebp - 0x304]
test cx, cx
je 0x10085543
mov byte [edx + eax], cl
inc eax
cmp eax, 0x100
jne 0x100854e0
pop edi
mov eax, dword [0x1018d324]
test eax, eax
jne 0x10085521
push str.setlocale
call fcn.10086d90
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1008551c
or eax, 0xffffffff
mov dword [0x1018d324], eax
lea ecx, [eax + 1]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x1008554f
push esi
push ebx
call ecx
add esp, 8
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007ad96
mov esp, ebp
pop ebp
ret
mov byte [edx + eax], 0
lea esi, [ebp - 0x304]
jmp 0x100854fa
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1007ad96
mov esp, ebp
pop ebp
ret
call fcn.1007b67c
int3
Function at 0x10085be0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call sym.steam_api.dll_SteamAPI_ISteamController_GetControllerState
mov esi, dword [ebp + 8]
test al, al
je 0x10085bfe
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.10085c10
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]