joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10089940
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x101ea764
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
lea ebx, [esi + 0x34]
mov dword [esi], 0x101ff1b8
mov dword [ebx], 0x101ff19c
mov dword [esp + 0x2c], 6
call dword [0x101ff1cc]
lea ebp, [esi + 0x58]
push 1
push ebp
lea ecx, [esp + 0x20]
call fcn.1003f07c
mov eax, dword [esi + 0x48]
mov byte [esp + 0x2c], 7
test eax, eax
jle 0x100899be
lea ecx, [esi + 0x3c]
call fcn.101d387d
mov edi, eax
test edi, edi
je 0x100899b7
mov ecx, edi
call fcn.1008a720
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov eax, dword [esi + 0x48]
test eax, eax
jg 0x1008999a
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 6
call fcn.1003f0b8
mov eax, esi
mov ecx, dword [esi + 0xd0]
neg eax
sbb eax, eax
and eax, ebx
push eax
call fcn.10088ea0
lea ecx, [esi + 0xac]
mov byte [esp + 0x2c], 5
call fcn.101d39f4
lea edi, [esi + 0x8c]
mov byte [esp + 0x2c], 4
lea ecx, [edi + 8]
mov dword [edi], 0x101fbad8
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, edi
call fcn.1003eec0
lea ecx, [esi + 0x78]
mov byte [esp + 0x2c], 3
call fcn.101d39f4
lea edx, [ebp + 8]
mov byte [esp + 0x2c], 2
push edx
mov dword [ebp], 0x101fbad8
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov ecx, ebp
call fcn.1003eec0
lea ecx, [esi + 0x3c]
mov byte [esp + 0x2c], 1
call fcn.101d3747
mov ecx, esi
mov byte [esp + 0x2c], 0
neg ecx
sbb ecx, ecx
and ecx, ebx
call fcn.1008a1f0
mov ecx, esi
mov dword [esp + 0x2c], 0xffffffff
call fcn.1008cc10
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x1008a4a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101ea8de
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0x101ff204
mov eax, dword [esi + 0x38]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x14], 2
je 0x1008a4e4
push eax
call fcn.101d505d
add esp, 4
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
lea ecx, [esi + 0x30]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov byte [esp + 0x14], 1
call fcn.100923a0
lea ecx, [esi + 0x2c]
mov byte [esp + 0x14], bl
call fcn.100923a0
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.1008cda0
mov ecx, dword [esp + 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x1008b1f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x101eaa28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push esi
push edi
mov edi, ecx
push 1
lea ecx, [esp + 0x18]
lea eax, [edi + 0x80]
push eax
call fcn.1003f07c
mov eax, dword [esp + 0x30]
xor ebp, ebp
cmp eax, ebp
mov eax, dword [edi + 0x70]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], ebp
je 0x1008b2e9
neg eax
sbb eax, eax
cmp eax, ebp
mov dword [esp + 0x30], eax
je 0x1008b270
lea esi, [edi + 0x64]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.101d4660
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
call dword [edx + 0x14]
cmp dword [esp + 0x30], ebp
jne 0x1008b24b
mov eax, dword [edi + 0x70]
neg eax
sbb eax, eax
cmp eax, ebp
mov dword [esp + 0x30], eax
je 0x1008b2df
push ebx
lea ebx, [edi + 0x64]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
mov ecx, ebx
call fcn.101d4660
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0x28]
cmp ecx, ebp
je 0x1008b2a9
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, esi
mov dword [esi + 0x24], ebp
call fcn.1006d790
mov ecx, dword [esp + 0x10]
call fcn.1006d840
mov ecx, dword [esp + 0x10]
cmp ecx, ebp
je 0x1008b2ca
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [esp + 0x14]
cmp ecx, ebp
je 0x1008b2d8
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [esp + 0x34], ebp
jne 0x1008b283
pop ebx
lea ecx, [edi + 0x64]
call fcn.101d448d
jmp 0x1008b361
neg eax
sbb eax, eax
cmp eax, ebp
mov dword [esp + 0x30], eax
je 0x1008b361
lea esi, [edi + 0x64]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.101d4660
mov ecx, dword [esp + 0xc]
call fcn.1006d8c0
test eax, eax
jne 0x1008b35b
mov ecx, dword [esp + 0xc]
cmp dword [ecx + 0x20], ebp
jne 0x1008b35b
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
call dword [edx + 0x14]
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x1008b341
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
cmp ecx, ebp
je 0x1008b353
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x10]
push eax
mov ecx, esi
call fcn.101d461e
cmp dword [esp + 0x30], ebp
jne 0x1008b2f8
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.1003f0b8
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x1008b5c0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x101eaaa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x20]
mov dword [esp + 0x10], edi
cmp eax, edi
jne 0x1008b5f2
xor eax, eax
jmp 0x1008b6b6
lea eax, [esi + 0x80]
push 1
push eax
lea ecx, [esp + 0x2c]
call fcn.1003f07c
mov eax, dword [esi + 0x70]
mov ebx, dword [esp + 0x40]
neg eax
sbb eax, eax
mov dword [esp + 0x38], edi
cmp eax, edi
mov dword [esp + 0x18], eax
je 0x1008b669
lea ebp, [esi + 0x64]
lea ecx, [esp + 0x40]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
mov ecx, ebp
mov dword [esp + 0x4c], edi
call fcn.101d4660
mov ecx, dword [esp + 0x40]
cmp dword [ecx + 0x24], edi
je 0x1008b663
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], edi
mov edx, dword [ecx]
lea eax, [esp + 0x24]
push eax
call dword [edx + 0x1c]
cmp bx, word [esp + 0x14]
je 0x1008b6cb
cmp dword [esp + 0x18], edi
jne 0x1008b61e
push ebx
mov ecx, esi
call fcn.1008b4f0
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x1008b6a1
lea edx, [esp + 0x1c]
lea ecx, [esi + 0x64]
push edx
push eax
mov dword [esp + 0x24], edi
call fcn.101d45ac
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x1008b69d
add eax, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [esp + 0x10]
mov esi, eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xffffffff
call fcn.1003f0b8
mov eax, esi
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
mov ecx, dword [esp + 0x40]
add ecx, 0x20
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, dword [esp + 0x10]
jmp 0x1008b6a3
Function at 0x1008bb90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101eab18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x102562e4]
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esi + 0x30]
push str.ListenWnd
lea edx, [esp + 0x10]
mov dword [esp + 0x4c], 0
mov eax, dword [ecx + 0x18]
push eax
push 0x10248a48
push edx
call fcn.101d2145
mov eax, dword [0x102562e4]
add esp, 0x10
mov dword [esp + 8], eax
mov ecx, dword [esi + 0x30]
mov edx, dword [esp + 0x54]
push edx
push str.ListenWnd
mov eax, dword [ecx + 0x18]
mov byte [esp + 0x50], 1
push eax
lea eax, [esp + 0x14]
push str._s__s__08x
push eax
call fcn.101d2145
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
add esp, 0x14
push ecx
push edx
call dword [sym.imp.USER32.dll_FindWindowW]
lea ecx, [esp + 8]
mov edi, eax
mov byte [esp + 0x48], 0
call fcn.101d496b
lea ecx, [esp + 0xc]
mov dword [esp + 0x48], 0xffffffff
call fcn.101d496b
test edi, edi
jne 0x1008bc56
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret 8
push ebp
xor ebp, ebp
push ebp
lea ecx, [esp + 0x28]
call fcn.1008c280
mov ecx, dword [esp + 0x54]
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x50], 2
mov eax, dword [ecx]
call dword [eax + 0xc]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
mov dword [esp + 0x18], ebp
call fcn.1008c320
test eax, eax
je 0x1008bccb
mov edx, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], 0x12345678
mov dword [esp + 0x20], ecx
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], edx
call fcn.1008c320
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
push ecx
push 0x4a
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebp, eax
xor edx, edx
lea ecx, [esp + 0x24]
test ebp, ebp
setne dl
mov esi, edx
mov dword [esp + 0x4c], 0xffffffff
call fcn.1008c2d0
mov ecx, dword [esp + 0x44]
pop ebp
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x44
ret 8

Function at 0x10095df0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
mov esi, eax
shr eax, 4
and esi, 0xf
inc eax
push edi
mov edi, dword [esp + 0xc]
and eax, 0xffff
push ecx
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x10095e3e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10095e3e
xor edx, edx
xor ecx, ecx
mov cx, word [eax]
add eax, 2
cmp esi, edx
je 0x10095e43
inc edx
lea eax, [eax + ecx*2]
cmp edx, 0x10
jl 0x10095e29
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x10095e53
test esi, esi
jne 0x10095e71
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x10095e6f
mov byte [eax + esi - 1], 0
jne 0x10095e78
mov byte [esi + edi - 1], 0
mov eax, edi
pop edi
dec eax
pop esi
ret
Function at 0x1009b560
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x1009b5b0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x1009b5b0
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x1009b5b5
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x1009b59b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x1009b5c2
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret
Function at 0x100a70a0
Capabilities:
Get user security identifier

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edi
mov edi, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
xor ebx, ebx
push eax
push ecx
lea edx, [esp + 0x18]
push ebx
push edx
push ebx
push ebp
push ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x100a70eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x100a70eb
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x10]
push esi
push eax
call fcn.101d5034
mov ecx, dword [esp + 0x14]
mov dword [edi], eax
lea edx, [ecx + ecx]
push edx
call fcn.101d5034
mov esi, eax
mov eax, dword [edi]
add esp, 8
test eax, eax
je 0x100a7130
test esi, esi
je 0x100a7141
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
push edx
lea ecx, [esp + 0x1c]
push esi
push ecx
push eax
push ebp
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
test esi, esi
je 0x100a713d
push esi
call fcn.101d505d
add esp, 4
test ebx, ebx
jne 0x100a7150
mov edi, dword [edi]
test edi, edi
je 0x100a7150
push edi
call fcn.101d505d
add esp, 4
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret

Function at 0x100a85e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x100a85eb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp edi, 8
mov esi, edi
not eax
jb 0x100a86ed
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x101ff330]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x101ff330]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x101ff330]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x101ff330]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x101ff330]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x101ff330]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x101ff330]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x101ff330]
xor eax, edx
inc ecx
dec edi
jne 0x100a8606
test esi, esi
je 0x100a870f
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x101ff330]
xor eax, edx
inc ecx
dec esi
jne 0x100a86f1
pop edi
pop esi
not eax
pop ebx
ret
Function at 0x100a8dd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101eb70f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x102562e4]
push esi
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x14], 1
mov cl, byte [eax + 0xf]
mov dl, byte [eax + 0xe]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 0xd]
mov dl, byte [eax + 0xc]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 0xb]
mov dl, byte [eax + 0xa]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + 9]
mov dl, byte [eax + 8]
push ecx
push edx
xor ecx, ecx
xor edx, edx
mov cx, word [eax + 6]
mov dx, word [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
lea ecx, [esp + 0x30]
push str._08lX__04lX__04lX__02lX_02lX__02lX_02lX_02lX_02lX_02lX_02lX
push ecx
call fcn.101d2145
mov esi, dword [esp + 0x50]
add esp, 0x34
lea edx, [esp + 4]
mov ecx, esi
push edx
call fcn.101d46d8
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call fcn.101d496b
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x100a9180
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
push esi
test edx, edx
je 0x100a9235
mov esi, dword [esp + 0x10]
test esi, esi
je 0x100a9235
mov eax, dword [esp + 8]
cmp esi, 4
push ebx
not eax
jb 0x100a920a
push edi
mov edi, esi
shr edi, 2
mov ebx, dword [edx]
add edx, 4
xor eax, ebx
sub esi, 4
mov ecx, eax
mov ebx, eax
and ecx, 0xff
shr ebx, 8
mov eax, dword [ecx*4 + 0x101ff730]
xor eax, ebx
mov ecx, eax
and ecx, 0xff
shr eax, 8
mov ecx, dword [ecx*4 + 0x101ff730]
xor ecx, eax
mov eax, ecx
and eax, 0xff
shr ecx, 8
mov eax, dword [eax*4 + 0x101ff730]
xor eax, ecx
mov ecx, eax
and ecx, 0xff
shr eax, 8
mov ecx, dword [ecx*4 + 0x101ff730]
xor eax, ecx
dec edi
jne 0x100a91ab
pop edi
mov ecx, esi
dec esi
test ecx, ecx
je 0x100a9230
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [edx]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x101ff730]
xor eax, ecx
inc edx
dec esi
jne 0x100a9212
pop ebx
pop esi
not eax
ret
mov eax, dword [esp + 8]
pop esi
ret
Function at 0x100b3910
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov eax, dword [0x1027fb3c]
push ebx
mov ebx, dword [esp + 0x10]
push esi
test eax, eax
push edi
jne 0x100b3932
mov eax, dword [0x102802cc]
test eax, eax
jne 0x100b3932
mov eax, dword [0x102808e4]
test eax, eax
je 0x100b3936
test ebx, ebx
je 0x100b3970
mov eax, dword [0x1025dbc4]
or esi, 0xffffffff
cmp eax, esi
jne 0x100b3970
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, esi
mov dword [0x1025dbc4], eax
je 0x100b3970
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x100b3970
mov eax, dword [0x1025dbc4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x1025dbc4], esi
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push ebx
push esi
push edi
call fcn.100bc1c0
add esp, 0xc
test eax, eax
je 0x100b39b3
mov ecx, dword [esp + 0x1c]
push ecx
push ebx
push esi
push edi
call fcn.100cc250
add esp, 0x10
test eax, eax
je 0x100b39b3
push ebx
push esi
push edi
call fcn.100db580
add esp, 0xc
test eax, eax
je 0x100b39b3
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x100bc7c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3ec
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
push esi
xor ebp, ebp
push edi
mov dword [0x1027fb30], ebp
call ebx
mov dword [0x1027fb38], eax
mov ecx, 0xf7
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
mov esi, dword [esp + 0x41c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp esi, ebp
stosb byte es:[edi], al
je 0x100bc8fc
mov ecx, pe_nt_image_headers32
lea edi, [esp + 0x1c]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.100c3890
mov esi, dword [esp + 0x408]
mov ebx, dword [esp + 0x414]
mov ebp, dword [esp + 0x410]
mov edi, dword [esp + 0x40c]
add esp, 4
mov dword [esp + 0x10], eax
test esi, esi
jne 0x100bc865
test edi, edi
jne 0x100bc865
test ebp, ebp
jne 0x100bc865
test ebx, ebx
jne 0x100bc865
mov ecx, dword [esp + 0x414]
test ecx, ecx
jne 0x100bc865
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x100bc8f1
cmp eax, 3
jne 0x100bc8f1
mov ecx, dword [esp + 0x4c]
lea edx, [esp + 0x1c]
push ecx
push 0x30
push edx
call fcn.100e3e00
add esp, 0xc
test eax, eax
je 0x100bc8ed
mov eax, dword [esp + 0x40]
test esi, esi
je 0x100bc895
mov ecx, eax
and ecx, 1
mov dword [esi], ecx
test edi, edi
je 0x100bc8a0
mov edx, eax
and edx, 2
mov dword [edi], edx
test ebp, ebp
je 0x100bc8ac
mov ecx, eax
and ecx, 4
mov dword [ebp], ecx
test ebx, ebx
je 0x100bc8cb
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [ebx], edx
mov edx, dword [esp + 0x34]
mov dword [ebx + 4], ecx
mov ecx, dword [esp + 0x38]
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
mov ecx, dword [esp + 0x414]
test ecx, ecx
je 0x100bc8dd
mov edx, eax
and edx, 8
mov dword [ecx], edx
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x100bc8ed
and eax, 0x10
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3ec
ret
mov esi, dword [esp + 0x400]
lea eax, [esp + 0x10]
push 1
push eax
mov dword [esp + 0x18], ebp
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call ebp
push 0
push 0
push 0
push esi
mov dword [esp + 0x28], eax
call ebp
cmp esi, 0xffffffff
je 0x100bc98d
lea ecx, [esp + 0x1c]
test ecx, ecx
je 0x100bc98d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x100bc9a8
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push edx
push 0x34
push eax
push esi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100bc986
mov dword [0x1027fb30], 0xd
mov dword [0x1027fb34], 0x29f7
call ebx
mov dword [0x1027fb38], eax
jmp 0x100bc9aa
mov edi, 1
jmp 0x100bc9aa
mov dword [0x1027fb30], 1
mov dword [0x1027fb34], 0x29ea
call ebx
mov dword [0x1027fb38], eax
xor edi, edi
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
push esi
call ebp
test edi, edi
jne 0x100bc80e
mov dword [0x1027fb30], 0xf
mov dword [0x1027fb34], 0x1b63
call ebx
pop edi
pop esi
mov dword [0x1027fb38], eax
pop ebp
xor eax, eax
pop ebx
add esp, 0x3ec
ret
Function at 0x100bfc40
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x3e0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
push edi
mov dword [0x1027fb30], ebx
call esi
mov ebp, dword [esp + 0x3f4]
mov dword [0x1027fb38], eax
lea eax, [esp + 0x14]
push 1
push eax
push ebx
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x1c], eax
mov ecx, 0xf3
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], bl
cmp ebp, 0xffffffff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x18], ebx
stosb byte es:[edi], al
je 0x100bfcf2
lea ecx, [esp + 0x20]
test ecx, ecx
je 0x100bfcf2
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x100bfdfc
lea edx, [esp + 0x10]
push ebx
push edx
lea eax, [esp + 0x28]
push 4
push eax
push ebp
mov dword [esp + 0x34], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100bfd12
mov dword [0x1027fb30], 0xd
mov dword [0x1027fb34], 0x29f7
call esi
mov dword [0x1027fb38], eax
jmp 0x100bfdfc
mov dword [0x1027fb30], 1
mov dword [0x1027fb34], 0x29ea
call esi
mov dword [0x1027fb38], eax
jmp 0x100bfdfc
mov ecx, 4
mov edi, 0x1025df30
lea esi, [esp + 0x20]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x100bfd2b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x100bfd50
mov ecx, 4
mov edi, 0x1025df08
lea esi, [esp + 0x20]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x100bfd48
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x100bfdfc
lea ecx, [esp + 0x24]
test ecx, ecx
je 0x100bfdb2
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
jne 0x100bfdfc
mov ecx, 0xd
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
push ebx
push edx
lea eax, [esp + 0x2c]
push 0x34
push eax
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100bfdd3
mov dword [0x1027fb30], 0xd
mov dword [0x1027fb34], 0x29f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1027fb38], eax
jmp 0x100bfdfc
mov dword [0x1027fb30], 1
mov dword [0x1027fb34], 0x29ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1027fb38], eax
jmp 0x100bfdfc
mov ecx, dword [esp + 0x400]
mov edx, dword [esp + 0x3fc]
mov eax, dword [esp + 0x3f8]
push ecx
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.100c2420
add esp, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push ebx
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3e0
ret