joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ac10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a3c18
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push 0x4b84f0
lea eax, [esp + 0x1c]
push eax
xor esi, esi
call fcn.00419c10
push str.TempDir
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], esi
push ecx
mov esi, 7
call fcn.00419c10
push str.Common
lea edx, [esp + 0x14]
push edx
mov esi, 6
mov byte [esp + 0x30], 1
call fcn.00419c10
mov edi, dword [esp + 0x34]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
lea ebx, [esp + 0x20]
lea esi, [esp + 0x24]
mov byte [esp + 0x30], 2
call fcn.0042e3c0
mov esi, eax
mov dword [esp + 0x34], esi
mov byte [esp + 0x28], 3
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edx, dword [esp + 0x30]
mov edi, dword [edx + 0xc]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push edi
call ebp
test eax, eax
jg 0x40acc7
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov esi, dword [esp + 0x34]
mov eax, dword [esi]
mov ecx, dword [esp + 0x30]
mov dword [ecx + 0xc], eax
mov byte [esp + 0x28], 2
mov eax, dword [esp + 0x1c]
push eax
mov edi, eax
call ebp
test eax, eax
jg 0x40acef
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov byte [esp + 0x28], 1
mov edi, dword [esp + 0x10]
push edi
call ebp
test eax, eax
jg 0x40ad0c
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov byte [esp + 0x28], 0
mov edi, dword [esp + 0x14]
push edi
call ebp
test eax, eax
jg 0x40ad29
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov dword [esp + 0x28], 0xffffffff
mov edi, dword [esp + 0x18]
push edi
call ebp
test eax, eax
jg 0x40ad49
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov edi, dword [esp + 0x30]
mov edx, dword [edi + 0xc]
cmp dword [edx + 4], 0
jne 0x40adc0
lea eax, [esp + 0x14]
push eax
call fcn.00427c90
mov esi, eax
add esp, 4
mov dword [esp + 0x34], esi
mov dword [esp + 0x28], 4
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edi, dword [edi + 0xc]
push edi
call ebp
test eax, eax
jg 0x40ad95
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov esi, dword [esp + 0x34]
mov ecx, dword [esi]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x14]
push eax
mov dword [edx + 0xc], ecx
mov edi, eax
call ebp
test eax, eax
jg 0x40adc0
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x40d3c0
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push 0xffffffffffffffff
push 0x49f2e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 8]
mov eax, dword [eax + 4]
push edi
test eax, eax
jne 0x40d402
push eax
push 0x209
push str..AInfoSettings.cpp
push 0x4b84f0
push 0x4b84f0
push eax
call fcn.0041d410
add esp, 0x18
mov ecx, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add ecx, 0xc
push ecx
push str.AppPath
call edi
push 0
push 0
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x40d481
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x40d481
push 0x21
lea esi, [esp + 0xc]
call fcn.004276f0
add esp, 4
mov dword [esp + 0x14], 0
mov edx, dword [eax]
add edx, 0xc
push edx
push str.ProgramFiles
call edi
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esp + 8]
push eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x40d481
push ebx
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
pop ebx
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40e090
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4da0cc]
push ebp
mov ebp, dword [ebx + 4]
push esi
mov esi, dword [esp + 0xc]
push edi
push eax
lea esi, [esi*8 + 8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test eax, eax
jne 0x40e0b8
mov edi, 0x4d79e4
mov edx, dword [edi]
mov eax, dword [edx + 4]
push esi
mov ecx, edi
call eax
mov esi, eax
test esi, esi
jne 0x40e0cd
call fcn.0041cdf0
add esi, 8
mov dword [esi - 8], edi
jne 0x40e0da
call fcn.0041cdf0
mov eax, dword [ebx]
mov dword [ebx + 4], esi
test eax, eax
jle 0x40e0f0
push eax
mov ecx, ebp
mov edx, esi
call fcn.0040e290
add esp, 4
test ebp, ebp
je 0x40e10f
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
lea eax, [ebp - 8]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword [ebx + 8], ecx
pop ebp
ret 4
mov edx, dword [esp + 0x10]
pop edi
pop esi
mov dword [ebx + 8], edx
pop ebp
ret 4

Function at 0x40e120
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4da0cc]
push ebp
mov ebp, dword [ebx + 4]
push esi
mov esi, dword [esp + 0xc]
imul esi, esi, 0x2c
push edi
push eax
add esi, 8
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test eax, eax
jne 0x40e147
mov edi, 0x4d79e4
mov edx, dword [edi]
mov eax, dword [edx + 4]
push esi
mov ecx, edi
call eax
mov esi, eax
test esi, esi
jne 0x40e15c
call fcn.0041cdf0
add esi, 8
mov dword [esi - 8], edi
jne 0x40e169
call fcn.0041cdf0
mov edx, dword [ebx]
mov dword [ebx + 4], esi
test edx, edx
jle 0x40e17b
mov ecx, ebp
mov eax, esi
call fcn.0040e230
test ebp, ebp
je 0x40e19a
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
lea eax, [ebp - 8]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword [ebx + 8], ecx
pop ebp
ret 4
mov edx, dword [esp + 0x10]
pop edi
pop esi
mov dword [ebx + 8], edx
pop ebp
ret 4
Function at 0x40e1b0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4da0cc]
push ebx
push esi
mov esi, dword [edi + 0xc]
push eax
add esi, 0x10
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
jne 0x40e1cf
mov ebx, 0x4d79e4
mov edx, dword [ebx]
mov eax, dword [edx + 4]
push esi
mov ecx, ebx
call eax
mov esi, eax
test esi, esi
jne 0x40e1e4
call fcn.0041cdf0
add esi, 8
mov dword [esi - 8], ebx
jne 0x40e1f1
call fcn.0041cdf0
mov ecx, dword [edi]
mov dword [esi], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 4], edx
mov dword [edi], esi
mov dword [edi + 8], 0
mov esi, dword [esi + 4]
add esi, esi
cmp esi, 0x100000
jge 0x40e217
mov dword [edi + 0xc], esi
pop esi
pop ebx
ret
mov eax, 0x100000
pop esi
mov dword [edi + 0xc], eax
pop ebx
ret
Function at 0x410190
Capabilities:
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x4a2e4a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push ebx
push ebp
mov ebp, dword [esp + 0xa8]
xor ebx, ebx
mov dword [esp + 0x20], ebx
push esi
push edi
mov byte [esp + 0x3c], bl
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x40], 0x67452301
mov dword [esp + 0x44], 0xefcdab89
mov dword [esp + 0x48], 0x98badcfe
mov dword [esp + 0x4c], 0x10325476
mov eax, dword [esp + 0xb4]
mov dword [esp + 0xa8], 2
push 0x20
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], vtable.FObj::CFile.0
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call fcn.00420b70
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
push 0x40000
lea ecx, [esp + 0x20]
mov byte [esp + 0xac], 4
call fcn.00402040
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
nop
mov eax, esi
neg eax
sbb eax, eax
and eax, edi
push 0x40000
push eax
lea ecx, [esp + 0x18]
call fcn.00420dd0
mov ecx, esi
neg ecx
sbb ecx, ecx
push eax
and ecx, edi
push ecx
lea eax, [esp + 0x44]
call fcn.00444b30
push ebx
push ebx
push ebx
call fcn.00464f50
add esp, 0xc
test al, al
je 0x410385
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
jne 0x4102a7
push ebx
push 0xf0
push str.d:_build10_fineobjects_src_file.cpp
push 0x4b84f0
push 0x4b84f0
push ebx
call fcn.0041d410
mov ecx, dword [esp + 0x2c]
add esp, 0x18
mov eax, dword [ecx]
mov edx, dword [eax + 0x2c]
call edx
test al, al
je 0x410240
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4102cf
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov edx, dword [ecx]
push ebx
push eax
mov eax, dword [edx + 8]
call eax
lea ebx, [esp + 0x2c]
lea edx, [esp + 0x3c]
call fcn.00410640
push ebp
mov ecx, ebx
push ecx
call fcn.00410430
mov edx, dword [ebp]
mov esi, dword [edx + 4]
push esi
mov ecx, ebp
mov dword [esp + 0x2c], 1
call fcn.00419ec0
lea ecx, [esi + 1]
push ecx
push eax
call fcn.00446922
mov eax, dword [ebp]
mov dword [eax + 4], esi
mov edx, dword [ebp]
xor ebx, ebx
xor eax, eax
add esp, 8
mov byte [esp + 0xa8], 3
mov word [edx + esi*2 + 0xc], ax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
cmp edi, ebx
je 0x41033c
mov ecx, dword [edi - 8]
mov edx, dword [ecx]
lea eax, [edi - 8]
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x28], ebx
mov byte [esp + 0xac], 1
call fcn.00420aa0
mov ecx, 0x5c
lea eax, [esp + 0x3c]
jmp 0x410360
mov byte [eax], bl
inc eax
sub ecx, 1
jne 0x410360
mov ecx, dword [esp + 0xa0]
pop edi
pop esi
mov eax, ebp
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x9c
ret 8
call fcn.0041ced0
int3
Function at 0x415920
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3e82
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 0x1f
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], 0x80
mov dword [esi], vtable.FObj::CFileMapping.0
mov dword [ebp - 0x10], esp
mov dword [esi + 0x38], vtable.FObj::CFile.0
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [ebp - 4], edi
or eax, 0xffffffff
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
lea eax, [ebp - 0x50]
push eax
mov dword [esi + 0x50], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov byte [ebp - 4], 1
call fcn.00416530
push ebx
mov byte [ebp - 4], 2
call fcn.00441840
mov edx, dword [eax]
mov edx, dword [edx + 0x48]
add esp, 4
lea ecx, [ebp - 0x50]
push ecx
push ebx
mov ecx, eax
call edx
cmp dword [ebp - 0x34], edi
jl 0x415a37
jg 0x4159d4
cmp dword [ebp - 0x38], edi
jbe 0x415a37
mov ecx, 0x20
mov eax, ebx
mov edx, esi
call fcn.00430550
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push edi
push 2
push eax
push ecx
call fcn.0044e9e0
sub eax, 1
sbb edx, edi
mov dword [esi + 0x48], eax
mov ecx, eax
mov eax, edx
cmp eax, edi
mov dword [esi + 0x4c], edx
jl 0x415a37
jg 0x415a0b
cmp ecx, edi
jb 0x415a37
push edi
push 0x20000
push eax
push ecx
call fcn.0044e9e0
push edi
push 0x20000
push edx
push eax
call fcn.00455f70
mov dword [esi + 0x5c], edx
mov edx, dword [esi + 0x48]
sub edx, eax
inc edx
push edx
mov dword [esi + 0x58], eax
call fcn.00415cd0
lea eax, [ebp - 0x50]
push eax
mov byte [ebp - 4], 1
call fcn.0040f010
jmp 0x415aab
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x416820
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a1eaa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
mov ebx, dword [esp + 0x40]
push ebp
push esi
push edi
mov ebp, ecx
push ebx
push ebp
call fcn.004169f0
xor esi, esi
push 0x4d9f40
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 2
mov dword [esp + 0x34], esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esp + 0x34], 0x4d9f40
mov dword [esp + 0x44], esi
mov eax, dword [ebx]
push esi
add eax, 0xc
push esi
push eax
mov eax, ebp
call fcn.00417880
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.0041f780
lea edx, [esp + 0x28]
push edx
push ebp
call fcn.00416b30
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov byte [esp + 0x4c], 1
call fcn.00420050
cmp dword [esp + 0x1c], esi
mov dword [esp + 0x14], esi
jle 0x41691c
mov edx, dword [esp + 0x20]
lea eax, [edx + esi*4]
push eax
lea eax, [esp + 0x1c]
push ebx
push eax
call fcn.00417a50
add esp, 0xc
push eax
mov ecx, ebp
mov byte [esp + 0x48], 2
call fcn.00416820
mov byte [esp + 0x44], 1
mov eax, dword [esp + 0x18]
push eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41690f
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x4c]
inc esi
cmp esi, dword [esp + 0x1c]
mov dword [esp + 0x14], esi
jl 0x4168c1
xor esi, esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 0
call fcn.00402190
mov eax, dword [esp + 0x20]
mov dword [esp + 0x20], esi
cmp eax, esi
je 0x416944
mov ecx, dword [eax - 8]
mov edx, dword [ecx]
add eax, 0xfffffff8
push eax
mov eax, dword [edx + 8]
call eax
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x28], esi
mov dword [esp + 0x48], 0xffffffff
call fcn.0041f6f0
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret 4
Function at 0x416d80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4a1568
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov esi, edx
mov eax, dword [esi]
add eax, 0xc
push 0x4b84f0
push eax
lea eax, [esp + 0x18]
push eax
call fcn.0041fbc0
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x2c], 0
call fcn.00417c10
push eax
lea eax, [esp + 0x20]
mov bl, 1
push eax
mov byte [esp + 0x34], bl
call fcn.00417c90
add esp, 0x10
mov ecx, dword [esp + 0x2c]
push eax
push esi
push ecx
mov byte [esp + 0x30], 2
call fcn.00417640
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
push eax
mov edi, eax
call ebp
test eax, eax
jg 0x416e13
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov byte [esp + 0x24], 0
mov edi, dword [esp + 0x18]
push edi
call ebp
test eax, eax
jg 0x416e30
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov dword [esp + 0x24], 0xffffffff
mov edi, dword [esp + 0x10]
push edi
call ebp
test eax, eax
jg 0x416e50
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 4
Function at 0x417580
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
mov ecx, 0x400
push edi
mov dword [esp + 0xc], ecx
mov eax, dword [ebx]
cmp eax, ecx
mov edi, ecx
jge 0x4175c9
mov esi, dword [ebx + 8]
cmp ecx, esi
jle 0x4175c5
mov eax, esi
cdq
sub eax, edx
sar eax, 1
cmp eax, 8
jg 0x4175b3
mov eax, 8
sub ecx, esi
cmp ecx, eax
jle 0x4175bb
mov eax, ecx
add esi, eax
push esi
mov ecx, ebx
call fcn.00402100
mov dword [ebx], edi
jmp 0x4175f0
jle 0x4175f0
mov esi, eax
sub esi, ecx
je 0x4175f0
sub eax, esi
sub eax, ecx
test eax, eax
jle 0x4175ee
mov edx, dword [ebx + 4]
push eax
lea eax, [edx + esi]
add eax, ecx
push eax
add edx, ecx
push edx
call fcn.00445c00
add esp, 0xc
sub dword [ebx], esi
mov ecx, dword [esp + 0x18]
mov esi, dword [ecx]
mov edx, dword [esp + 0x14]
mov edi, dword [edx]
lea eax, [esp + 0xc]
push eax
mov ecx, ebx
add esi, 0xc
call fcn.00402030
push eax
push 0
push 0
push esi
push edi
call ebp
mov ecx, dword [esp + 0xc]
mov esi, eax
cmp esi, 0xea
je 0x417593
push ecx
mov ecx, ebx
call fcn.00402040
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret

Function at 0x418d60
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get disk information
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4a0fd1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x2c]
push esi
xor ebx, ebx
mov dword [esp + 0x28], ebx
push edi
mov dword [esp + 0x14], ebx
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x4d9f40
call esi
mov dword [ebp], 0x4d9f40
mov dword [esp + 0x2c], ebx
mov edi, 1
push 0x4d9f40
mov dword [esp + 0x18], edi
call esi
mov dword [esp + 0x10], 0x4d9f40
mov eax, dword [esp + 0x38]
mov dword [esp + 0x2c], edi
mov esi, dword [eax]
push 0x104
push 0x104
lea ecx, [esp + 0x18]
add esi, 0xc
call fcn.00419ec0
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x30]
push eax
push 0x104
push 0x104
mov ecx, ebp
call fcn.00419ec0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ecx, dword [ebp]
lea eax, [ecx + 0xc]
lea esi, [eax + 2]
lea esp, [esp]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x418e10
mov edi, dword [esp + 0x10]
sub eax, esi
sar eax, 1
mov dword [ecx + 4], eax
mov ecx, dword [ebp]
xor edx, edx
mov word [ecx + eax*2 + 0xc], dx
lea eax, [edi + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x418e36
sub eax, edx
sar eax, 1
xor ecx, ecx
mov dword [edi + 4], eax
push edi
mov word [edi + eax*2 + 0xc], cx
mov byte [esp + 0x30], bl
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x418e6b
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
mov ecx, dword [esp + 0x24]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x418e80
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get disk information
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x49ef99
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edi, 0x4d9f40
push edi
call esi
mov dword [esp + 0x10], edi
mov dword [esp + 0x30], 1
push edi
mov dword [esp + 0x1c], ebx
call esi
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x3c]
push 0x104
push ecx
mov byte [esp + 0x38], 2
mov esi, dword [eax]
push 0x104
lea ecx, [esp + 0x20]
add esi, 0xc
call fcn.00419ec0
add esp, 4
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x28]
push eax
push 0x104
push 0x104
lea ecx, [esp + 0x2c]
call fcn.00419ec0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov ebp, dword [esp + 0x10]
lea eax, [ebp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x418f21
mov edi, dword [esp + 0x14]
sub eax, edx
sar eax, 1
mov dword [ebp + 4], eax
xor ecx, ecx
mov word [ebp + eax*2 + 0xc], cx
lea eax, [edi + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x418f44
mov ecx, dword [esp + 0x38]
sub eax, edx
sar eax, 1
mov dword [edi + 4], eax
xor edx, edx
mov word [edi + eax*2 + 0xc], dx
mov eax, dword [esp + 0x18]
push 0xa
push eax
push ecx
call fcn.0041a3b0
add esp, 0xc
push edi
mov dword [esp + 0x20], 1
mov byte [esp + 0x34], 1
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x418f98
mov ebx, dword [edi + 8]
mov esi, 0x4da170
call fcn.00432310
xor ebx, ebx
push ebp
mov byte [esp + 0x34], bl
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x418fb6
mov ebx, dword [ebp + 8]
mov edi, ebp
mov esi, 0x4da170
call fcn.00432310
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x38]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x24
ret

Function at 0x419b70
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x4da0cc]
push esi
mov esi, dword [esp + 8]
push edi
push eax
add esi, 8
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test eax, eax
jne 0x419b90
mov edi, 0x4d79e4
mov edx, dword [edi]
mov eax, dword [edx + 4]
push esi
mov ecx, edi
call eax
mov esi, eax
test esi, esi
jne 0x419ba5
call fcn.0041cdf0
add esi, 8
mov dword [esi - 8], edi
jne 0x419bb2
call fcn.0041cdf0
pop edi
mov eax, esi
pop esi
ret
Function at 0x41a250
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x49ef19
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
push 0x4d9f40
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [esi], 0x4d9f40
push 0xa
push 0x29
mov dword [esp + 0x1c], 0
push 0x28
mov ecx, esi
mov dword [esp + 0x14], 1
call fcn.00419ec0
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x30]
push eax
push ecx
call fcn.00446dcc
mov edx, dword [esi]
lea eax, [edx + 0xc]
add esp, 0x14
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41a2c5
sub eax, ebx
sar eax, 1
mov dword [edx + 4], eax
mov edx, dword [esi]
xor ecx, ecx
mov word [edx + eax*2 + 0xc], cx
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret

Function at 0x41bcb0
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [esp + 4]
cmp eax, 1
jle 0x41bd42
push ebx
push ebp
mov ebp, dword [esi + 4]
push edi
lea edi, [eax*4 + 8]
mov eax, dword [0x4da0cc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test eax, eax
jne 0x41bce1
mov ebx, 0x4d79e4
mov edx, dword [ebx]
mov eax, dword [edx + 4]
push edi
mov ecx, ebx
call eax
mov edi, eax
test edi, edi
jne 0x41bcf6
call fcn.0041cdf0
add edi, 8
mov dword [edi - 8], ebx
jne 0x41bd03
call fcn.0041cdf0
mov eax, dword [esi + 8]
mov dword [esi + 4], edi
test eax, eax
jle 0x41bd1f
lea ecx, [eax*4]
push ecx
push ebp
push edi
call fcn.0044c0d0
add esp, 0xc
cmp ebp, esi
je 0x41bd35
test ebp, ebp
je 0x41bd35
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
lea eax, [ebp - 8]
push eax
mov eax, dword [edx + 8]
call eax
mov ecx, dword [esp + 0x10]
pop edi
pop ebp
mov dword [esi + 0xc], ecx
pop ebx
ret 4
mov ecx, dword [esi + 4]
cmp ecx, esi
je 0x41bd81
mov eax, dword [esi + 8]
test eax, eax
jle 0x41bd62
lea edx, [eax*4]
push edx
push ecx
push esi
call fcn.0044c0d0
add esp, 0xc
mov eax, dword [esi + 4]
test eax, eax
je 0x41bd77
mov ecx, dword [eax - 8]
mov edx, dword [ecx]
add eax, 0xfffffff8
push eax
mov eax, dword [edx + 8]
call eax
mov dword [esi + 4], esi
mov dword [esi + 0xc], 1
ret 4