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

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x5ecd58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x5ecd60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x5ecd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5ecd94
push eax
push esi
call fcn.005ef20b
add esp, 8
pop esi
ret 0x10

Function at 0x5ecda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5ece22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x5ece15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x605320
push ecx
mov dword [esp + 0x1c], 4
call fcn.005eedff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x5ecdda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x5ece30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x5ecec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x5eceb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x605320
push ecx
mov dword [esp + 0x1c], 4
call fcn.005eedff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x5eceab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x5ece6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x5ed000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x5ed131
push esi
call fcn.005f0145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.005df080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x5ed131
push 0
push ebp
call fcn.005df3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.005df260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x5ed08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.005df2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x5ed121
push 0x605918
push edi
call fcn.005ee3f0
push eax
push ebx
push esi
call fcn.005ecf60
push 0x6058f8
push edi
call fcn.005ee3f0
push eax
push ebx
push esi
call fcn.005ecf60
push 0x6058d8
push edi
call fcn.005ee3f0
push eax
push ebx
push esi
call fcn.005ecf60
push 0x6058c0
push edi
call fcn.005ee3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.005ecf60
push 0x6058a0
push edi
call fcn.005ee3f0
push eax
push ebx
push esi
call fcn.005ecf60
push 0x605888
push edi
call fcn.005ee3f0
push eax
push ebx
push esi
call fcn.005ecf60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x5ee1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.005ee140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.005ee140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.005ee140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.005ee140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x5eebfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5eec50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x60087c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5eec43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x5eec52
xor eax, eax
pop esi
leave
ret 4
Function at 0x10001010
Capabilities:
Create thread
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x300
mov esi, esp
mov dword [esi + 0x2e8], ebp
lea eax, [esi + 0x2f0]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x10004b40
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov ebx, 0x104
xor eax, eax
lea edi, [esi + 0xe0]
push ebx
push eax
push edi
call fcn.10009090
add esp, 0xc
push ebx
push edi
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push edi
call fcn.100091ea
add esp, 8
test eax, eax
je 0x10001173
mov word [eax], 0
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea edi, [esi + 0x28]
mov ecx, edi
push 1
push 0x40
push 0x20
push str.symerr.bin
call fcn.100011b0
cmp dword [edi + 0x5c], 0
je 0x1000116b
xor eax, eax
mov dword [esi + 0x2f8], eax
lea ecx, [esi + 0x28]
push 2
push eax
push eax
call fcn.10001310
lea eax, [esi + 8]
lea ecx, [esi + 0x28]
push eax
call fcn.100014c0
xor eax, eax
lea ecx, [esi + 0x28]
push eax
push eax
push eax
call fcn.10001310
mov eax, dword [esi + 0x10]
add eax, dword [esi + 8]
push 4
push 0x3000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, dword [esi + 0x10]
add edi, dword [esi + 8]
mov edx, dword [esi + 0x14]
adc edx, dword [esi + 0xc]
lea ecx, [esi + 0x28]
push edx
push edi
mov dword [esi + 4], eax
push eax
call fcn.10001600
lea ecx, [esi + 0x28]
call fcn.10001782
mov eax, dword [esi + 0x10]
add eax, dword [esi + 8]
mov ecx, esi
push ecx
push 0x20
push eax
mov edi, dword [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
push eax
push eax
push eax
push edi
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [ebp + 4]
mov ebx, 0x1e7
mov eax, esi
push eax
push 4
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push section..rdata
push edi
call fcn.10008b10
add esp, 0xc
lea eax, [esi + 0x24]
push eax
mov eax, esi
push dword [eax]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [esi + 0x28]
call fcn.100017c0
mov eax, dword [esi + 0x2f0]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10001310
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, esp
mov dword [esi + 0x28], ebp
mov edi, ecx
lea eax, [esi + 0x30]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x10004b60
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov ecx, dword [edi + eax + 0xc]
and ecx, 0xfffffffe
xor edx, edx
cmp dword [edi + eax + 0x38], 0
sete dl
shl edx, 2
or edx, ecx
lea ecx, [edi + eax]
push 0
push edx
call fcn.1000369c
lea ecx, [esi + 8]
push 1
push edi
call fcn.10004490
mov eax, dword [edi]
mov eax, dword [eax + 4]
xor ebx, ebx
mov dword [esi + 4], edi
test byte [edi + eax + 0xc], 6
jne 0x100013ce
mov ecx, dword [esi + 4]
mov ebx, dword [ecx + eax + 0x38]
mov eax, dword [ebx]
mov edi, dword [eax + 0x28]
mov ecx, edi
call dword [section..00cfg]
mov dword [esi + 0x38], 2
lea eax, [esi + 0x10]
mov ecx, ebx
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call edi
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
add eax, dword [esi + 0x10]
adc ecx, dword [esi + 0x14]
and ecx, eax
xor ebx, ebx
cmp ecx, 0xffffffff
sete bl
add ebx, ebx
mov edx, dword [esi + 4]
mov eax, dword [edx]
mov ecx, dword [eax + 4]
or ebx, dword [edx + ecx + 0xc]
xor eax, eax
cmp dword [edx + ecx + 0x38], 0
sete al
shl eax, 2
or eax, ebx
add ecx, edx
mov dword [esi + 0x38], 1
push 0
push eax
call fcn.1000369c
mov eax, dword [esi + 8]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edi, dword [eax + ecx + 0x38]
test edi, edi
je 0x10001429
mov eax, dword [edi]
mov ebx, dword [eax + 8]
mov dword [esi + 0x38], 0xffffffff
mov ecx, ebx
call dword [section..00cfg]
mov dword [esi + 0x38], 0
mov ecx, edi
call ebx
mov eax, dword [esi + 0x30]
mov dword fs:[0], eax
mov eax, dword [esi + 4]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x10002070
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov ebx, ecx
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
cmp esi, 1
mov eax, ecx
sbb eax, 0
jl 0x1000209f
cmp dword [ebx + 0x38], 0
je 0x100020a8
mov ecx, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
jmp method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_32
xor eax, eax
xor edx, edx
jmp 0x10002152
mov dword [esp], ecx
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 4], esi
je 0x100020e3
mov ecx, dword [ebx + 0x2c]
mov edi, dword [ecx]
test edi, edi
je 0x100020e3
cmp edi, esi
cmovae edi, esi
push edi
push eax
push ebp
call fcn.10008b10
add esp, 0xc
add ebp, edi
sub esi, edi
mov eax, dword [ebx + 0x2c]
sub dword [eax], edi
mov eax, dword [ebx + 0x1c]
add dword [eax], edi
cmp dword [ebx + 0x4c], 0
je 0x10002146
mov eax, dword [ebx + 0xc]
lea ecx, [ebx + 0x3c]
cmp dword [eax], ecx
jne 0x10002107
mov ecx, dword [ebx + 0x50]
mov edx, dword [ebx + 0x54]
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
sub edx, ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov edi, 0xfff
cmp esi, 0x1000
jb 0x1000212d
push dword [ebx + 0x4c]
push edi
push 1
push ebp
call fcn.1000bfd5
add esp, 0x10
add ebp, eax
sub esi, eax
cmp eax, edi
je 0x1000210c
jmp 0x10002146
test esi, esi
je 0x10002144
push dword [ebx + 0x4c]
push esi
push 1
push ebp
call fcn.1000bfd5
add esp, 0x10
sub esi, eax
jmp 0x10002146
xor esi, esi
mov eax, dword [esp + 4]
sub eax, esi
mov edx, dword [esp]
sbb edx, 0
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, ecx
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
cmp edi, 1
mov eax, esi
sbb eax, 0
mov ecx, edi
jl 0x100027d8
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 4], ebx
mov dword [esp], ecx
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
test eax, eax
je 0x10002796
mov ecx, dword [ebx + 0x2c]
mov ebp, dword [ecx]
test ebp, ebp
jle 0x10002796
mov edi, dword [esp]
cmp edi, ebp
mov ecx, esi
sbb ecx, 0
mov ebx, 0
cmovb ebx, esi
cmovb ebp, edi
push ebp
push eax
push edx
mov dword [esp + 0x14], esi
mov esi, edx
call fcn.10008b10
mov ecx, edi
mov edx, esi
mov esi, dword [esp + 0x14]
add esp, 0xc
add edx, ebp
sub ecx, ebp
sbb esi, ebx
mov ebx, dword [esp + 4]
mov eax, dword [ebx + 0x2c]
sub dword [eax], ebp
mov eax, dword [ebx + 0x1c]
add dword [eax], ebp
jmp 0x100027c0
mov edi, esi
mov esi, edx
mov eax, dword [ebx]
mov ebp, dword [eax + 0x1c]
mov ecx, ebp
call dword [section..00cfg]
mov ecx, ebx
call ebp
cmp eax, 0xffffffff
je 0x100027d3
mov edx, esi
mov byte [esi], al
inc edx
mov ecx, dword [esp]
add ecx, 0xffffffff
mov esi, edi
adc esi, 0xffffffff
mov eax, ecx
neg eax
mov eax, 0
sbb eax, esi
jl 0x1000273d
jmp 0x100027d8
mov esi, edi
mov ecx, dword [esp]
mov eax, dword [esp + 0x24]
sub eax, ecx
mov edx, dword [esp + 0x28]
sbb edx, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x10002dd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x10004be0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
xor ebx, ebx
mov ecx, edi
push ebx
call fcn.100051d5
mov dword [edi + 4], ebx
mov byte [edi + 8], bl
mov dword [edi + 0xc], ebx
mov byte [edi + 0x10], bl
mov dword [edi + 0x14], ebx
mov word [edi + 0x18], bx
mov dword [edi + 0x1c], ebx
mov word [edi + 0x20], bx
mov dword [edi + 0x24], ebx
mov byte [edi + 0x28], bl
mov dword [edi + 0x2c], ebx
mov byte [edi + 0x30], bl
test esi, esi
mov dword [ebp - 0x20], edi
je 0x10002e5f
mov dword [ebp - 0x10], 0
push esi
push edi
call fcn.1000546c
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x20]
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x10], 0
push str.bad_locale_name
call fcn.100058b1
add esp, 4
nop
push ebp
sub esp, 8
add ebp, 0xc
mov eax, dword [ebp - 0x20]
mov esi, eax
mov eax, dword [eax + 0x2c]
test eax, eax
je 0x10002e90
push eax
call fcn.1000c1cb
add esp, 4
mov eax, esi
mov dword [esi + 0x2c], 0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x10002ea9
push eax
call fcn.1000c1cb
add esp, 4
mov eax, esi
mov dword [esi + 0x24], 0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x10002ec2
push eax
call fcn.1000c1cb
add esp, 4
mov eax, esi
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10002edb
push eax
call fcn.1000c1cb
add esp, 4
mov eax, esi
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10002ef4
push eax
call fcn.1000c1cb
add esp, 4
mov eax, esi
mov dword [esi + 0xc], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10002f0d
push eax
call fcn.1000c1cb
add esp, 4
mov ecx, esi
mov dword [esi + 4], 0
call fcn.10005206
add esp, 8
pop ebp
ret
Function at 0x100043c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
lea esi, [ebp - 0x18]
mov dword [esi - 4], esp
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0x10004ca0
mov eax, dword fs:[0]
mov dword [esi], eax
mov dword fs:[0], esi
mov dword [ecx], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
xorps xmm0, xmm0
movups xmmword [ecx + 4], xmm0
movups xmmword [ecx + 0x14], xmm0
mov dword [ebp - 0x24], ecx
movups xmmword [ecx + 0x24], xmm0
push 8
call fcn.10004d83
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [esi + 8], 0
push 1
call fcn.10005652
add esp, 4
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x34], ecx
lea ecx, [eax + 4]
mov dword [eax + 0xc], ecx
lea ecx, [eax + 8]
mov dword [eax + 0x10], ecx
lea ecx, [eax + 0x14]
mov dword [eax + 0x1c], ecx
lea ecx, [eax + 0x18]
mov dword [eax + 0x20], ecx
lea ecx, [eax + 0x24]
mov dword [eax + 0x2c], ecx
lea ecx, [eax + 0x28]
mov dword [eax + 0x30], ecx
xor ecx, ecx
mov dword [eax + 8], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x24], ecx
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10009f5e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10009f9d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10009f9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10009f9d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10009f9d
cmp dword [ecx + 0x74], 0xe
jbe 0x10009f9d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1000df20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000df4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000df4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x100104b9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100205e8
push 0x100205e0
push str.FlsAlloc
push 0x1f
call fcn.100108d0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100104ed
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x100104f3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10010537
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100205f8
push 0x100205f0
push str.FlsGetValue
push 0x21
call fcn.100108d0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001056e
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10010576
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10020600
push 0x100205f8
push str.FlsSetValue
push 0x22
call fcn.100108d0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100105b0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10012de4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100066a0
mov eax, dword [0x10028440]
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.10012270
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x10012e26
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x10012f82
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.10019d40
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 + 0x10029a60]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10012b8c
mov ecx, dword [esi*4 + 0x10029a60]
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 0x10012f7b
cmp eax, dword [ecx + edi + 0x24]
jne 0x10012f7b
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 0x10012f7b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10012b8c
add esp, 0x14
test edx, edx
jl 0x10012f7b
jg 0x10012ef1
test eax, eax
jb 0x10012f7b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x10012f7b
jl 0x10012f0b
cmp dword [ebp - 0x1008], eax
ja 0x10012f7b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10012f29
test ebx, ebx
je 0x10012f62
cmp ecx, edi
jae 0x10012f62
mov al, byte [ecx]
cmp al, 0xd
jne 0x10012f43
lea eax, [edi - 1]
cmp ecx, eax
jae 0x10012f4f
cmp byte [ecx + 1], 0xa
jne 0x10012f4f
inc ecx
jmp 0x10012f4f
movzx eax, al
movsx eax, byte [eax + 0x10028df0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10012f29
cmp edx, ebx
jne 0x10012f29
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x10012f80
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.10004df8
leave
ret
Function at 0x100139a7
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10013a44
push ebx
push esi
call fcn.10013a47
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000e321
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100139f1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10013a43
push edi
push eax
call fcn.1000e211
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10013a11
call fcn.1000e1d7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10013a42
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000e321
add esp, 0x20
test eax, eax
jne 0x10013a30
push edi
call fcn.1000e1d7
jmp 0x10013a38
push ebx
call fcn.1000e1d7
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret