joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10012450
Capabilities:
Query or enumerate registry key

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100777a0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x230
mov eax, dword [0x10094080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edx + 0x14], 7
mov esi, dword [ebx + 8]
mov byte [ebp - 0x221], 0
jbe 0x100124a3
mov edx, dword [edx]
lea eax, [ebp - 0x220]
neg ecx
push eax
push 0x20019
push 0
sbb ecx, ecx
push edx
add ecx, reloc.OLEAUT32.dll_SysReAllocString
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100125e7
xor edi, edi
mov dword [ebp - 0x21c], 0x100
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push edi
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x100125db
nop
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x23c]
call fcn.10025970
mov dword [ebp - 4], 0
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
je 0x1001254c
movups xmm0, xmmword [ebp - 0x23c]
mov ecx, 7
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x22c]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [esi + 4], 0x18
mov word [ebp - 0x23c], ax
jmp 0x10012561
lea ecx, [ebp - 0x23c]
push ecx
push eax
mov ecx, esi
call fcn.1002dd90
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 7
jbe 0x1001259e
mov edx, dword [ebp - 0x23c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10012594
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001260b
push ecx
push edx
call fcn.10052cc4
add esp, 8
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x100
push eax
lea eax, [ebp - 0x218]
mov byte [ebp - 0x221], 1
push eax
inc edi
push edi
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x10012500
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x221]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10052655
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.1005bfa5
int3

Function at 0x10012650
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
cmp dword [eax + 0x14], 0xf
jbe 0x10012661
mov eax, dword [eax]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 4], eax
pop esi
test eax, eax
jne 0x1001267a
xor al, al
pop ebp
ret 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete al
pop ebp
ret 4
Function at 0x10013a40
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov esi, ecx
add ecx, ebx
mov dword [ebp - 4], ecx
lea eax, [edi + edx]
mov edx, 0xff
mov dword [ebp + 0xc], eax
cmp edi, eax
jae 0x10013b3d
nop dword [eax]
movsx eax, byte [edi]
inc edi
lea ecx, [eax - 0x41]
cmp ecx, 0x19
ja 0x10013a80
mov eax, ecx
jmp 0x10013ac9
lea ecx, [eax - 0x61]
cmp ecx, 0x19
ja 0x10013a8d
sub eax, 0x47
jmp 0x10013ac9
lea ecx, [eax - 0x30]
cmp ecx, 9
ja 0x10013a9a
add eax, 4
jmp 0x10013ac9
cmp eax, 0x20
ja 0x10013ab3
lea ecx, [eax - 9]
cmp ecx, 1
jbe 0x10013af6
cmp eax, 0xd
je 0x10013af6
cmp eax, 0x20
jne 0x10013b07
jmp 0x10013af6
cmp eax, 0x2b
je 0x10013ac4
cmp eax, 0x2f
jne 0x10013b10
mov eax, 0x3f
jmp 0x10013ac9
mov eax, 0x3e
shl edx, 6
or edx, eax
jge 0x10013af6
cmp ebx, 3
jl 0x10013b93
mov eax, edx
shr eax, 0x10
mov byte [esi], al
mov eax, edx
shr eax, 8
mov byte [esi + 2], dl
mov edx, 0xff
mov byte [esi + 1], al
add esi, 3
sub ebx, 3
cmp edi, dword [ebp + 0xc]
jb 0x10013a70
cmp edx, 0xff
je 0x10013b3d
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x3d
jne 0x10013b07
mov eax, dword [ebp + 0xc]
cmp edi, eax
jne 0x10013b49
shl edx, 6
test edx, edx
jns 0x10013b07
mov eax, dword [ebp - 4]
sub eax, esi
cmp eax, 2
jl 0x10013b93
mov eax, edx
shr edx, 8
shr eax, 0x10
mov byte [esi], al
mov byte [esi + 1], dl
add esi, 2
sub esi, dword [ebp + 8]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [eax - 1]
cmp edi, ecx
jae 0x10013b69
mov al, byte [edi]
cmp al, 0x20
je 0x10013b62
cmp al, 0xa
je 0x10013b62
cmp al, 0xd
je 0x10013b62
cmp al, 9
jne 0x10013b67
inc edi
cmp edi, ecx
jb 0x10013b50
cmp edi, ecx
jne 0x10013b07
cmp byte [edi], 0x3d
jne 0x10013b07
shl edx, 0xc
test edx, edx
jns 0x10013b07
mov eax, dword [ebp - 4]
sub eax, esi
cmp eax, 1
jl 0x10013b93
shr edx, 0x10
mov byte [esi], dl
inc esi
sub esi, dword [ebp + 8]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100143d0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10077bc6
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10094080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x48], edi
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
push 0
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x24], 0
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x1001457a
mov edx, dword [ebp - 0x24]
xor esi, esi
xor eax, eax
mov dword [ebp - 0x28], 0
xorps xmm0, xmm0
mov dword [ebp - 0x34], edx
xor ecx, ecx
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], ecx
test edx, edx
je 0x100144c4
cmp edx, 0x7fffffff
ja 0x10014597
push edx
lea ecx, [ebp - 0x30]
call fcn.1002cb30
push dword [ebp - 0x34]
push esi
mov esi, dword [ebp - 0x30]
push esi
mov dword [ebp - 0x40], esi
call fcn.10054510
mov eax, dword [ebp - 0x34]
add esp, 0xc
add eax, esi
mov ecx, esi
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 1
push eax
push ecx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x1001454d
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x1001454d
xor ecx, ecx
mov dword [ebp - 0x34], ecx
cmp dword [eax + 0x190], ecx
jbe 0x1001454d
mov edx, 0x10085a42
mov esi, eax
test ecx, ecx
mov eax, 0x10085ad4
mov ecx, edi
cmove eax, edx
push eax
call fcn.10025dd0
mov eax, dword [ebp - 0x34]
xorps xmm0, xmm0
movups xmmword [ebp - 0x20], xmm0
movzx eax, byte [esi + eax + 0x194]
push eax
lea eax, [ebp - 0x20]
push str._2.2X
push eax
call fcn.1002a520
add esp, 0xc
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.10025dd0
mov ecx, dword [ebp - 0x34]
mov edx, 0x10085a42
inc ecx
mov dword [ebp - 0x34], ecx
cmp ecx, dword [esi + 0x190]
jb 0x100144f5
mov esi, dword [ebp - 0x40]
test esi, esi
je 0x1001457a
mov ecx, dword [ebp - 0x3c]
mov eax, esi
sub ecx, esi
cmp ecx, 0x1000
jb 0x10014570
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001459c
push ecx
push esi
call fcn.10052cc4
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10052655
mov esp, ebp
pop ebp
ret
call fcn.1002cb20
call fcn.1005bfa5
int3
Function at 0x10015210
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10077d8b
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10094080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
xorps xmm0, xmm0
push 0xa
movups xmmword [edi], xmm0
push 0x10085adc
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.1002b210
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
mov ecx, dword [0x10096ce4]
push eax
mov dword [ebp - 0x14], 0xc
call fcn.10023260
push eax
lea ecx, [edi + 0x18]
call fcn.100261b0
mov dword [edi + 0x30], 0
xorps xmm0, xmm0
movups xmmword [edi + 0x34], xmm0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0xf
mov byte [edi + 0x34], 0
movups xmmword [edi + 0x4c], xmm0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0xf
mov byte [edi + 0x4c], 0
mov byte [ebp - 4], 4
push 0x90
mov byte [edi + 0x64], 1
call fcn.10052865
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.100176e0
mov byte [ebp - 4], 4
mov ecx, dword [edi + 0x30]
mov dword [edi + 0x30], eax
test ecx, ecx
je 0x100152f5
push ecx
call fcn.100274c0
lea ecx, [ebp - 0x30]
call fcn.10013ca0
push eax
lea ecx, [edi + 0x4c]
call fcn.10025f70
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x10015336
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1001532c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10015353
push ecx
push edx
call fcn.10052cc4
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10052655
mov esp, ebp
pop ebp
ret
call fcn.1005bfa5
int3
Function at 0x10018a00
Capabilities:
Get session user name

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10078470
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x230
mov eax, dword [0x10094080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x240], edi
xorps xmm0, xmm0
mov dword [edi], vtable.BB::Chromium.0
xor eax, eax
movups xmmword [edi + 4], xmm0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 7
mov word [edi + 4], ax
mov dword [ebp - 4], eax
movups xmmword [edi + 0x1c], xmm0
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], 0xf
mov byte [edi + 0x1c], al
mov eax, dword [ebx + 8]
lea ecx, [edi + 0x38]
mov dword [edi + 0x34], eax
call fcn.1001e0c0
xorps xmm0, xmm0
movq qword [edi + 0xe4], xmm0
mov dword [edi + 0xe0], vtable.EX::Exception.0
mov dword [edi + 0xec], 0
movups xmmword [edi + 0xf0], xmm0
mov dword [edi + 0x100], 0
mov dword [edi + 0x104], 0xf
mov byte [edi + 0xf0], 0
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x224], 0x104
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
lea edx, [ebp - 0x220]
mov ecx, 0x10085ab0
cmove edx, ecx
lea ecx, [ebp - 0x23c]
push edx
call fcn.10025970
lea eax, [ebp - 0x23c]
push eax
lea ecx, [edi + 4]
call fcn.100258e0
mov ecx, dword [ebp - 0x228]
cmp ecx, 7
jbe 0x10018b5c
mov edx, dword [ebp - 0x23c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10018b52
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10018bcc
push ecx
push edx
call fcn.10052cc4
add esp, 8
push ecx
lea eax, [ebp - 0x23c]
mov ecx, edi
push eax
call fcn.1001ca40
push eax
lea ecx, [edi + 0x1c]
call fcn.10025f70
mov ecx, dword [ebp - 0x228]
cmp ecx, 0xf
jbe 0x10018baa
mov edx, dword [ebp - 0x23c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10018ba0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10018bd1
push ecx
push edx
call fcn.10052cc4
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10052655
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.1005bfa5
call fcn.1005bfa5
int3
Function at 0x100221d0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100793de
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x10094080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x14], esi
mov dword [esi + 0xc], 0
mov dword [ebp - 4], 0
mov dword [esi + 0xc], 0
mov byte [esi + 8], 0
and dword [esi + 8], 0xfffffeff
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [ebp - 4], 4
mov eax, dword [0x10096ce4]
test eax, eax
jne 0x1002228a
push 0x1c
call fcn.10052865
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 5
xorps xmm0, xmm0
movups xmmword [eax], xmm0
mov ecx, eax
movq qword [eax + 0x10], xmm0
mov dword [eax + 0x18], 0
call fcn.100036c0
mov ecx, dword [0x10096ce4]
mov dword [0x10096ce4], eax
test ecx, ecx
je 0x1002228a
push ecx
call fcn.10027590
mov eax, dword [0x10096ce4]
xorps xmm0, xmm0
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], vtable.WIN::Mutex.0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
push ecx
mov ecx, eax
mov dword [ebp - 0x14], 0x5d
call fcn.10023260
cmp dword [eax + 0x14], 0xf
jbe 0x100222be
mov eax, dword [eax]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
mov dword [ebp - 0x18], edi
test edi, edi
je 0x1002235d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1002234f
mov eax, dword [0x10096ce0]
test eax, eax
jne 0x1002233d
push 0x68
call fcn.10052865
mov esi, eax
mov dword [ebp - 0x14], esi
push 0x68
push 0
push esi
mov byte [ebp - 4], 7
call fcn.10054510
add esp, 0x10
mov ecx, esi
call fcn.10015210
mov byte [ebp - 4], 6
mov esi, dword [0x10096ce0]
mov dword [0x10096ce0], eax
test esi, esi
je 0x1002233a
mov ecx, esi
call fcn.100286d0
push 0x68
push esi
call fcn.10052cc4
mov eax, dword [0x10096ce0]
add esp, 8
mov esi, dword [ebp - 0x20]
mov ecx, eax
call fcn.10015360
test al, al
je 0x1002234f
mov ecx, esi
call fcn.10022380
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10052655
mov esp, ebp
pop ebp
ret
Function at 0x10024ad0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x10024b02
jl 0x10024af5
test ecx, ecx
jne 0x10024b02
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10024bc2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.100281a0
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x10024b6e
jg 0x10024b2d
test esi, esi
je 0x10024b6e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x10024b45
mov eax, dword [esp + 0x10]
jl 0x10024b3f
cmp eax, esi
jae 0x10024b45
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.10053f90
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x10024b8f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x10024bab
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x10024b14
jl 0x10024bab
test ecx, ecx
jne 0x10024b14
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x10024c06
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x10024c06
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.10053f90
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x10024c77
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x10024c2c
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 [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x10024c62
nop dword [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.1005b8d8
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x10024c77
cmp edi, eax
ja 0x10024c40
test edi, edi
je 0x10024c77
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.1005b8d8
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10029410
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10079a40
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10094080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.10052865
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.1003db46
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.100293b0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10051b3b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.1005fdb4
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x10051b7a
sub eax, 1
je 0x10051b75
sub eax, 1
je 0x10051b71
xor eax, eax
leave
ret
push 3
jmp 0x10051b7c
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x10062b9f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10062bde
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10062bde
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10062bde
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10062bde
cmp dword [ecx + 0x74], 0xe
jbe 0x10062bde
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10068597
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10081e30
push 0x10081e28
push str.FlsAlloc
push 0x1f
call fcn.10068402
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100685cb
push dword [ebp + 8]
mov ecx, esi
call dword [0x1007d250]
call esi
jmp 0x100685d1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10068615
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10081e40
push 0x10081e38
push str.FlsGetValue
push 0x21
call fcn.10068402
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1006864c
push dword [ebp + 8]
mov ecx, esi
call dword [0x1007d250]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10068654
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10081e48
push 0x10081e40
push str.FlsSetValue
push 0x22
call fcn.10068402
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1006868e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1007d250]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10068f63
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100538e0
mov eax, dword [0x10094080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.100639cd
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10068fa5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10069101
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.100758f0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x10096878]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.1006a751
mov ecx, dword [esi*4 + 0x10096878]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x100690fa
cmp eax, dword [ecx + edi + 0x24]
jne 0x100690fa
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100690fa
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1006a751
add esp, 0x14
test edx, edx
jl 0x100690fa
jg 0x10069070
test eax, eax
jb 0x100690fa
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100690fa
jl 0x1006908a
cmp dword [ebp - 0x1008], eax
ja 0x100690fa
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x100690a8
test ebx, ebx
je 0x100690e1
cmp ecx, edi
jae 0x100690e1
mov al, byte [ecx]
cmp al, 0xd
jne 0x100690c2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100690ce
cmp byte [ecx + 1], 0xa
jne 0x100690ce
inc ecx
jmp 0x100690ce
movzx eax, al
movsx eax, byte [eax + 0x10094330]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x100690a8
cmp edx, ebx
jne 0x100690a8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100690ff
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10052655
leave
ret