joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ee4
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, ecx
mov ebx, dword [esp + 0x28]
mov eax, ebx
xor edx, edx
div dword [ecx + 0xc]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x34]
mov ebp, ebx
sub ebp, edx
mov dword [eax], ebp
xor edi, edi
push ebp
call fcn.005db443
add esp, 4
push ebx
push dword [esp + 0x28]
mov dword [esp + 8], eax
push eax
call fcn.005e2280
add esp, 0xc
push ebp
call fcn.005db443
add esp, 4
mov dword [esp + 4], eax
mov dword [esp + 8], esi
mov ebx, dword [esi + 0xc]
push ebx
call fcn.005db443
add esp, 4
mov ebp, eax
push ebx
push dword [esp + 0x34]
push eax
call fcn.005e2280
add esp, 0xc
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0xc]
je 0x403010
cmp byte [esp + 0x38], 0
je 0x402fc1
test ebx, ebx
je 0x402f86
mov eax, dword [esp]
add eax, edi
xor ecx, ecx
neg byte [eax + ecx]
inc ecx
cmp ebx, ecx
jne 0x402f70
xor ecx, ecx
mov dl, byte [eax + ecx]
xor byte [ebp + ecx], dl
inc ecx
cmp ebx, ecx
jne 0x402f7a
mov eax, dword [esp + 4]
lea esi, [eax + edi]
mov ebx, dword [esp + 8]
mov ecx, ebx
push dword [esp + 0x2c]
push esi
push ebp
call fcn.00402d04
mov ebx, dword [ebx + 0xc]
push ebx
push esi
push ebp
call fcn.005e2280
add esp, 0xc
test ebx, ebx
je 0x403000
mov eax, dword [esp]
add eax, edi
xor ecx, ecx
neg byte [eax + ecx]
inc ecx
cmp ebx, ecx
jne 0x402fb7
jmp 0x403002
test ebx, ebx
je 0x402fd8
mov eax, dword [esp]
add eax, edi
xor ecx, ecx
mov dl, byte [eax + ecx]
xor byte [ebp + ecx], dl
inc ecx
cmp ebx, ecx
jne 0x402fcc
mov eax, dword [esp + 4]
lea esi, [eax + edi]
mov ebx, dword [esp + 8]
mov ecx, ebx
push dword [esp + 0x2c]
push esi
push ebp
call fcn.00402d04
mov ebx, dword [ebx + 0xc]
push ebx
push esi
push ebp
call fcn.005e2280
add esp, 0xc
jmp 0x403002
xor ebx, ebx
add edi, ebx
mov eax, dword [esp + 0x34]
cmp edi, dword [eax]
jb 0x402f5e
push ebp
call fcn.005db44c
add esp, 4
push dword [esp]
call fcn.005db44c
add esp, 4
mov eax, dword [esp + 4]
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
Function at 0x403032
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, ecx
mov esi, 4
push esi
call fcn.005db443
add esp, 4
mov edi, eax
push esi
mov esi, ebx
call fcn.005db443
add esp, 4
mov dword [esp + 4], eax
mov ebp, dword [ebx + 4]
test ebp, ebp
jle 0x403082
xor ecx, ecx
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov dl, byte [edx + ecx]
mov byte [eax + ecx], dl
inc ecx
mov ebp, dword [esi + 4]
lea ebx, [ebp*4]
cmp ecx, ebx
jl 0x403067
jmp 0x403089
lea ebx, [ebp*4]
mov eax, dword [esi + 8]
inc eax
imul eax, dword [esi]
shl eax, 2
cmp ebx, eax
jge 0x403214
mov eax, dword [esp + 0x24]
mov dword [esp + 8], esi
mov ch, byte [ebx + eax - 4]
mov byte [edi], ch
mov cl, byte [ebx + eax - 3]
mov byte [esp + 3], cl
mov byte [edi + 1], cl
mov cl, byte [ebx + eax - 2]
mov byte [esp + 2], cl
mov byte [edi + 2], cl
mov cl, byte [ebx + eax - 1]
mov byte [edi + 3], cl
lea eax, [ebx + 3]
test ebx, ebx
cmovns eax, ebx
sar eax, 2
cdq
idiv ebp
test edx, edx
je 0x403110
cmp ebp, 7
jl 0x403194
cmp edx, 4
jne 0x403194
movzx eax, ch
mov al, byte [eax + 0x611e24]
mov byte [edi], al
xor eax, eax
inc eax
movzx ecx, byte [edi + eax]
mov cl, byte [ecx + 0x611e24]
mov byte [edi + eax], cl
inc eax
cmp eax, 4
jne 0x4030f8
jmp 0x403194
movzx eax, byte [esp + 3]
mov dl, byte [esp + 2]
mov byte [edi + 1], dl
mov byte [edi + 2], cl
mov byte [edi + 3], ch
mov al, byte [eax + 0x611e24]
mov byte [edi], al
xor eax, eax
inc eax
movzx ecx, byte [edi + eax]
mov cl, byte [ecx + 0x611e24]
mov byte [edi + eax], cl
inc eax
cmp eax, 4
jne 0x40312d
lea ecx, [ebp*4]
mov eax, ebx
cdq
idiv ecx
mov dl, 1
cmp eax, 2
jl 0x40316b
dec eax
mov dl, 1
mov ecx, edx
add cl, dl
movzx esi, cl
xor cl, 0x1b
test dl, dl
movzx edx, cl
cmovns edx, esi
dec eax
jne 0x403156
mov eax, dword [esp + 4]
mov byte [eax], dl
mov byte [eax + 3], 0
mov word [eax + 1], 0
xor byte [edi], dl
xor eax, eax
inc eax
mov esi, dword [esp + 8]
mov ecx, dword [esp + 4]
mov cl, byte [ecx + eax]
xor byte [edi + eax], cl
inc eax
cmp eax, 4
jne 0x403184
shl ebp, 2
mov eax, ebx
sub eax, ebp
mov cl, byte [edi]
mov ebp, dword [esp + 0x24]
xor cl, byte [ebp + eax]
mov byte [ebp + ebx], cl
mov eax, ebx
or eax, 1
mov ecx, dword [esi + 4]
shl ecx, 2
mov edx, eax
sub edx, ecx
mov cl, byte [edi + 1]
xor cl, byte [ebp + edx]
mov byte [ebp + eax], cl
mov eax, ebx
or eax, 2
mov ecx, dword [esi + 4]
shl ecx, 2
mov edx, eax
sub edx, ecx
mov cl, byte [edi + 2]
xor cl, byte [ebp + edx]
mov byte [ebp + eax], cl
mov eax, ebx
or eax, 3
mov ecx, dword [esi + 4]
shl ecx, 2
mov edx, eax
sub edx, ecx
mov cl, byte [edi + 3]
xor cl, byte [ebp + edx]
mov byte [ebp + eax], cl
add ebx, 4
mov eax, dword [esi + 8]
inc eax
imul eax, dword [esi]
shl eax, 2
cmp ebx, eax
jge 0x403214
mov ebp, dword [esi + 4]
mov eax, dword [esp + 0x24]
jmp 0x4030a3
push dword [esp + 4]
call fcn.005db44c
add esp, 4
push edi
call fcn.005db44c
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x42812e
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], 0x428d90
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
xor ebx, ebx
mov ecx, edi
push ebx
call fcn.005db8ec
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 0x4281bd
mov dword [ebp - 0x10], 0
push esi
push edi
call fcn.005dbb77
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.005dbf26
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 0x4281ee
push eax
call fcn.005fd8d5
add esp, 4
mov eax, esi
mov dword [esi + 0x2c], 0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x428207
push eax
call fcn.005fd8d5
add esp, 4
mov eax, esi
mov dword [esi + 0x24], 0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x428220
push eax
call fcn.005fd8d5
add esp, 4
mov eax, esi
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x428239
push eax
call fcn.005fd8d5
add esp, 4
mov eax, esi
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x428252
push eax
call fcn.005fd8d5
add esp, 4
mov eax, esi
mov dword [esi + 0xc], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x42826b
push eax
call fcn.005fd8d5
add esp, 4
mov ecx, esi
mov dword [esi + 4], 0
call fcn.005db91d
add esp, 8
pop ebp
ret

Function at 0x42853e
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], 0x428db0
mov eax, dword fs:[0]
mov dword [esi], eax
mov dword fs:[0], esi
mov dword [ebp - 0x24], ecx
mov dword [ecx], 0x613060
push 8
call fcn.005db3dd
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [esi + 8], 0
push 1
call fcn.005dbd58
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 0x4482d8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x88
mov esi, ecx
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x4493d0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
xor edi, edi
cmp dword [ebp + 8], 0
je 0x4483d7
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4483d7
mov ecx, esi
call fcn.00447f24
test al, al
je 0x4483d7
push ebx
push dword [ebp + 8]
push dword [esi]
call fcn.005f66eb
add esp, 0xc
mov edi, eax
sar eax, 0x1f
mov ecx, esi
push eax
push edi
call fcn.00447b64
test al, al
je 0x4483d7
mov eax, dword [esi]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x80]
call fcn.0043fd32
lea ecx, [ebp - 0x60]
call fcn.0043fd32
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x40]
push str.cant_read_from_file_descriptor__d
call fcn.00401278
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00445492
add esp, 0xc
lea ecx, [ebp - 0x94]
push eax
call fcn.00447d20
push dword [ebp - 0x20]
lea esi, [ebp - 0x94]
push esi
call fcn.00401cb0
add esp, 8
mov ecx, esi
call fcn.00440f8a
lea ecx, [ebp - 0x40]
call fcn.0043fda0
lea ecx, [ebp - 0x60]
call fcn.0043fda0
lea ecx, [ebp - 0x80]
call fcn.0043fda0
xor edi, edi
dec edi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x88
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x4499db
Capabilities:
Check if file exists

Disassembly:
jmp 0x44c75a
mov ecx, dword [esp + 4]
xor edx, edx
inc edx
jmp fcn.0044c604
Function at 0x449ced
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x98
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov al, byte [ebp + 0x10]
lea esi, [ebp - 0x18]
mov dword [esi - 4], esp
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0x44b280
mov edx, dword fs:[0]
mov dword [esi], edx
mov dword fs:[0], esi
xor al, 1
movzx esi, al
call fcn.00443c3a
mov ebx, eax
mov ecx, edi
call fcn.00443c3a
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x449e0a
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], esp
push eax
sub esp, 0x18
mov esi, esp
lea eax, [esi + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
push eax
call fcn.004415d4
mov dword [ebp - 0x28], esi
lea eax, [esi + 4]
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x20], eax
push eax
call fcn.004415d4
lea ecx, [ebp - 0x90]
call fcn.0043fd32
lea ecx, [ebp - 0x70]
call fcn.0043fd32
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x50]
push str.Failed_to_copy_the_file__s_to__s
call fcn.00401278
mov dword [ebp - 0x10], 2
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00445492
add esp, 0xc
lea ecx, [ebp - 0xa4]
push eax
call fcn.00447d20
mov eax, dword [ebp - 0x28]
lea esi, [ebp - 0xa4]
mov dword [eax], esi
call fcn.00449e70
add esp, 0x1c
mov esp, dword [ebp - 0x2c]
mov ecx, esi
call fcn.00440f8a
lea ecx, [ebp - 0x50]
call fcn.0043fda0
lea ecx, [ebp - 0x70]
call fcn.0043fda0
lea ecx, [ebp - 0x90]
call fcn.0043fda0
mov eax, dword [ebp - 0x30]
test eax, eax
setne al
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x44a10a
Capabilities:
Move file

Disassembly:
push edi
push esi
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
call fcn.00449052
mov edi, eax
mov ecx, esi
call fcn.00449052
push edi
push eax
call fcn.005fbde0
add esp, 8
pop esi
pop edi
ret

Function at 0x44a407
Capabilities:
Create directory

Disassembly:
mov ecx, dword [esp + 4]
call fcn.00449052
push eax
call fcn.005fb3b7
add esp, 4
ret

Function at 0x44a998
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, edx
mov edi, ecx
call fcn.00443c3a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x44a991
mov ebp, eax
and ebp, 0x10
shl ebp, 0x15
mov ecx, edi
call fcn.00443c3a
push ebx
push ebp
push 3
push ebx
push 7
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x44a991
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [esp + 4]
mov edx, 0x20000000
jmp 0x44a94a
Function at 0x44c604
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov ebx, edx
mov eax, ecx
lea ecx, [ebp - 0x18]
mov dword [ecx - 4], esp
mov dword [ecx + 8], 0xffffffff
mov dword [ecx + 4], 0x4508a0
mov edx, dword fs:[0]
mov dword [ecx], edx
mov dword fs:[0], ecx
lea ecx, [ebp - 0x40]
push eax
call fcn.004028e6
test bl, 2
je 0x44c658
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x20], ebx
call fcn.0044f417
mov ebx, dword [ebp - 0x20]
mov edi, ebx
and edi, 2
shr edi, 1
and bl, 1
lea esi, [ebp - 0x40]
mov ecx, esi
call fcn.00443c3a
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne cl
test al, 0x10
movzx ebx, bl
cmovne ebx, edi
and bl, cl
mov ecx, esi
call fcn.0043fda0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x44ca2a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov ecx, dword [esp + 4]
mov edx, 2
jmp fcn.0044c604
Function at 0x44d07a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x18]
mov dword [edi - 4], esp
mov dword [edi + 8], 0xffffffff
mov dword [edi + 4], 0x450910
mov eax, dword fs:[0]
mov dword [edi], eax
mov dword fs:[0], edi
push str.TMPDIR
call fcn.0044d313
add esp, 4
lea esi, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.00401278
mov dword [edi + 8], 0
mov ecx, ebx
mov edx, esi
call fcn.0044d2ec
lea ecx, [ebp - 0x40]
call fcn.0043fda0
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.004400ba
test al, al
je 0x44d1a0
push 0x6668bb
call fcn.0044d313
add esp, 4
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x60]
push eax
call fcn.00401278
mov dword [ebp - 0x10], 4
lea ecx, [ebp - 0x40]
lea edx, [ebp - 0x60]
call fcn.0044d2ec
mov dword [ebp - 0x10], 5
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
call fcn.00402866
lea ecx, [ebp - 0x40]
call fcn.0043fda0
lea ecx, [ebp - 0x60]
call fcn.0043fda0
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.004400ba
test al, al
je 0x44d1a0
push str.TEMP
call fcn.0044d313
add esp, 4
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x60]
push eax
call fcn.00401278
mov dword [ebp - 0x10], 2
lea ecx, [ebp - 0x40]
lea edx, [ebp - 0x60]
call fcn.0044d2ec
mov dword [ebp - 0x10], 3
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
call fcn.00402866
lea ecx, [ebp - 0x40]
call fcn.0043fda0
lea ecx, [ebp - 0x60]
call fcn.0043fda0
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.004400ba
test al, al
je 0x44d1eb
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x40]
push 0x105
push esi
call fcn.0044a5d6
lea esi, [ebp - 0x40]
mov ecx, esi
call fcn.0044a5dc
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
mov ecx, esi
call fcn.0044a5e4
test edi, edi
mov esi, dword [ebp + 8]
jne 0x44d1eb
call fcn.00401cb0
mov ecx, esi
call fcn.004400ba
mov dword [ebp - 0x10], 1
test al, al
je 0x44d20b
mov ecx, esi
push 0x66d8b0
call fcn.00440d0e
jmp 0x44d25f
push 0
lea eax, [ebp - 0x40]
push eax
call fcn.0044bc70
add esp, 8
mov edi, dword [0x6154c0]
mov ecx, dword [ebp + 8]
push edi
lea ebx, [ebp - 0x40]
push ebx
call fcn.0044d318
mov esi, eax
mov ecx, ebx
call fcn.0043fda0
cmp esi, edi
jne 0x44d254
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.004494dc
add esp, 8
mov ecx, dword [ebp + 8]
push dword [ebp - 0x20]
call fcn.0044d31e
jmp 0x44d25f
inc esi
mov ecx, dword [ebp + 8]
push edi
push esi
call fcn.00444532
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4592f2
Capabilities:
Check mutex on windows

Disassembly:
push edi
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
call fcn.00443c3a
xor ecx, ecx
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
mov dword [esi + 4], eax
test eax, eax
je 0x459323
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete byte [esi]
jmp 0x459328
call fcn.00401cb0
test edi, edi
setne al
pop esi
pop edi
ret 4
Function at 0x45942e
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x90
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x45a860
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
lea edi, [ebp - 0x28]
push esi
push fcn.004593b2
push edi
call fcn.004595e6
add esp, 0xc
push edi
call fcn.00401cb0
add esp, 4
push esi
push dword [0x7c3854]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x4594aa
mov dword [ebp - 0x10], 1
mov ecx, esi
call fcn.00459600
push eax
call fcn.00441d10
add esp, 4
mov esi, eax
jmp 0x45953d
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x88]
call fcn.0043fd32
mov dword [ebp - 0x10], 2
lea ecx, [ebp - 0x68]
call fcn.0043fd32
mov dword [ebp - 0x10], 3
lea ecx, [ebp - 0x48]
push str.Cannot_start_thread:_error_writing_TLS.
call fcn.00401278
mov dword [ebp - 0x10], 4
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00445492
add esp, 0xc
lea ecx, [ebp - 0x9c]
push eax
call fcn.00447d20
lea esi, [ebp - 0x9c]
push esi
call fcn.00401cb0
add esp, 4
mov ecx, esi
call fcn.00440f8a
lea ecx, [ebp - 0x48]
call fcn.0043fda0
lea ecx, [ebp - 0x68]
call fcn.0043fda0
lea ecx, [ebp - 0x88]
call fcn.0043fda0
xor esi, esi
dec esi
lea ecx, [ebp - 0x28]
call fcn.0045968a
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x90
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4599a4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x88
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x18]
mov dword [edx - 4], esp
mov dword [edx + 8], 0xffffffff
mov dword [edx + 4], 0x45a890
mov edi, dword fs:[0]
mov dword [edx], edi
mov dword fs:[0], edx
lea edx, [esi + 0x10]
push edx
push 4
push ecx
push 0x4596f4
push eax
push 0
call fcn.005f11b2
add esp, 0x18
mov edi, eax
mov dword [esi + 4], eax
test eax, eax
je 0x459a15
mov eax, dword [esi + 0xc]
cmp eax, 0x32
je 0x459a9b
mov ecx, esi
push eax
call fcn.00459852
jmp 0x459a9b
mov dword [ebp - 0x20], edi
lea ecx, [ebp - 0x80]
call fcn.0043fd32
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x60]
call fcn.0043fd32
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x40]
push str.Cant_create_thread
call fcn.00401278
mov dword [ebp - 0x10], 2
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00445492
add esp, 0xc
lea ecx, [ebp - 0x94]
push eax
call fcn.00447d20
lea esi, [ebp - 0x94]
push esi
call fcn.00401cb0
add esp, 4
mov ecx, esi
call fcn.00440f8a
lea ecx, [ebp - 0x40]
call fcn.0043fda0
lea ecx, [ebp - 0x60]
call fcn.0043fda0
lea ecx, [ebp - 0x80]
call fcn.0043fda0
mov edi, dword [ebp - 0x20]
test edi, edi
setne al
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x88
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x459b34
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x8c
mov esi, ecx
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x45a8a0
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x459b89
cmp dword [esi + 8], 4
je 0x459c29
mov dword [esi + 8], 1
jmp 0x459c29
mov dword [ebp - 0x24], eax
push dword [esi + 4]
call fcn.00441d10
add esp, 4
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x84]
call fcn.0043fd32
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x64]
call fcn.0043fd32
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x44]
push str.Cannot_resume_thread__lx
call fcn.00401278
mov dword [ebp - 0x10], 2
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00445492
add esp, 0xc
lea ecx, [ebp - 0x98]
push eax
call fcn.00447d20
push dword [ebp - 0x20]
lea esi, [ebp - 0x98]
push esi
call fcn.00401cb0
add esp, 8
mov ecx, esi
call fcn.00440f8a
lea ecx, [ebp - 0x44]
call fcn.0043fda0
lea ecx, [ebp - 0x64]
call fcn.0043fda0
lea ecx, [ebp - 0x84]
call fcn.0043fda0
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
setne al
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x8c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x45bcdc
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x94
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x45c3b0
mov edx, dword fs:[0]
mov dword [eax], edx
mov dword fs:[0], eax
lea eax, [ebp - 0xa0]
mov dword [eax], 0xc
xor edx, edx
mov dword [eax + 4], edx
mov dword [eax + 8], 1
lea esi, [ecx + 4]
push edx
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x45bdb3
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x80]
call fcn.0043fd32
lea ecx, [ebp - 0x60]
call fcn.0043fd32
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x40]
push str.Failed_to_create_an_anonymous_pipe
call fcn.00401278
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00445492
add esp, 0xc
lea ecx, [ebp - 0x94]
push eax
call fcn.00447d20
lea esi, [ebp - 0x94]
push esi
call fcn.00401cb0
add esp, 4
mov ecx, esi
call fcn.00440f8a
lea ecx, [ebp - 0x40]
call fcn.0043fda0
lea ecx, [ebp - 0x60]
call fcn.0043fda0
lea ecx, [ebp - 0x80]
call fcn.0043fda0
mov eax, dword [ebp - 0x20]
test eax, eax
setne al
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x94
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x45e588
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, ecx
lea esi, [ebp - 0x18]
mov dword [esi - 4], esp
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0x463b30
mov eax, dword fs:[0]
mov dword [esi], eax
mov dword fs:[0], esi
xor ebx, ebx
push dword [0x7c47c0]
push ebx
call fcn.00445e8c
mov dword [ebp - 0x20], edi
lea ecx, [edi + 0x2c]
mov dword [esi + 8], ebx
call fcn.004614c8
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
mov dword [eax], 0x615f10
mov dword [eax + 0xc], ecx
movaps xmm0, xmmword [0x615e80]
movups xmmword [eax + 0x30], xmm0
and byte [eax + 0x2d], 0xe0
xor ecx, ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x50], ecx
mov dword [eax + 0x54], ecx
mov dword [eax + 0x40], ecx
mov dword [eax + 0x45], ecx
mov dword [eax + 0x41], ecx
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x45e6dc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov ebx, ecx
lea edi, [ebp - 0x18]
mov dword [edi - 4], esp
xor eax, eax
dec eax
mov dword [edi + 8], eax
mov dword [edi + 4], 0x463b50
mov eax, dword fs:[0]
mov dword [edi], eax
mov dword fs:[0], edi
mov eax, dword [0x7c47c0]
mov dword [esp + 4], eax
xor esi, esi
mov dword [esp], esi
call fcn.00445e8c
sub esp, 8
lea ecx, [ebx + 0x2c]
xorps xmm0, xmm0
movups xmmword [esp], xmm0
call fcn.004615a8
sub esp, 0x10
mov dword [ebx], 0x615f30
mov word [ebx + 0x3c], 0
mov eax, dword [ebp + 8]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x38], esi
xor eax, eax
dec eax
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x30], eax
mov byte [ebx + 0x49], 0
mov dword [edi + 8], esi
mov dword [ebp - 0x20], ebx
mov ecx, ebx
call fcn.004615d2
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x20]
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 4