joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4accc0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x5140c4]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4accd3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4acd14
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x51416c]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4acd46
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4acd4a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4acd3b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4acd68
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4acd6c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4acd5d
xor ecx, ecx
mov eax, 0x5140d4
xor ebx, ebx
mov bl, byte [ecx + 0x51417c]
cmp byte [esp + ebx + 0x14], 0
je 0x4acd97
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x514194]
cmp byte [esp + ebx + 0x14], 0
je 0x4acdae
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4acd7e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4acd07
lea edx, [esp + 0x84]
push edx
call fcn.004acdf0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4c44f6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4c4518
cmp dword [edi + 0x3c], 0
jne 0x4c4518
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004cdc34
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004c4545
pop edi
pop esi
pop ebx
ret 8

Function at 0x4c5ba9
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c5be1
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004c3b30
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c3b08
jmp 0x4c5bed
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c741e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4c7460
call fcn.004cdc34
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c7460
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c7457
xor eax, eax
jmp 0x4c7468
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c746e
pop edi
pop esi
pop ebx
ret 4

Function at 0x4ce164
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4ce192
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4ce1b0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004ce0ca
jmp 0x4ce1b0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4ce1b0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004ce0ca
test edi, edi
mov eax, edi
jne 0x4ce19a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4d0a47
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x4d0a6f
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x4d0a80
push 2
call edi
test ax, ax
jge 0x4d0a80
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004c51df
cmp dword [esi + 0x30], ebx
jne 0x4d0b5a
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004c51df
cmp eax, dword [esp + 0x34]
jne 0x4d0b5a
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x4d0af6
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x4d0b3b
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x4d0b5a
cmp eax, 0x205
je 0x4d0b5a
cmp eax, 0x201
je 0x4d0b5a
cmp eax, 0x204
je 0x4d0b5a
cmp eax, ebx
jne 0x4d0b21
cmp dword [esp + 0x1c], 0x1b
je 0x4d0b5a
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x55c78c]
jbe 0x4d0b50
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x4d0ab3
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x405a90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x405abb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406290
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x405add
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x405adf
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x405b63
jg 0x405af4
test esi, esi
je 0x405b63
test ecx, ecx
jl 0x405b3d
jg 0x405afe
test eax, eax
je 0x405b3d
cmp edi, ecx
jg 0x405b12
jl 0x405b08
cmp esi, eax
jae 0x405b12
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.00457800
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x405b40
mov edx, dword [ebp + 8]
test edi, edi
jl 0x405b63
jg 0x405b4a
test esi, esi
je 0x405b63
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x405b63
push eax
push esi
push 1
push edx
call fcn.0045b40c
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405b80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x405bab
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406370
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x405bcd
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x405bcf
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x405c6e
jg 0x405bec
test esi, esi
je 0x405c6e
test ecx, ecx
jl 0x405c39
jg 0x405bf6
test eax, eax
je 0x405c39
cmp ebx, ecx
jg 0x405c0a
jl 0x405c00
cmp esi, eax
jae 0x405c0a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.00457800
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x405c40
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x405c6e
jg 0x405c4a
test esi, esi
je 0x405c6e
cmp dword [edi + 0x4c], 0
je 0x405c6e
mov ecx, edi
call fcn.00406f40
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.0045b9e6
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405f80
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x4a9098]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x405fb0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00455828
add esp, 0x30
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x405fed
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x405fed
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00455828
add esp, 0x30
ret 4
cmp dword [esi + 0x4c], 0
je 0x4060e2
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x406015
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x406049
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0045aae7
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00455828
add esp, 0x30
ret 4
lea eax, [esp + 0x10]
mov byte [esp + 0xf], bl
mov edx, dword [ecx]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x23]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x4060e2
cmp eax, 1
jle 0x4060b1
cmp eax, 3
jne 0x4060e2
push dword [esi + 0x4c]
movsx eax, byte [esp + 0x13]
push eax
call fcn.0045aae7
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00455828
add esp, 0x30
ret 4
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x18]
sub edi, eax
je 0x4060d0
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0045b40c
add esp, 0x10
cmp edi, eax
jne 0x4060e2
lea eax, [esp + 0xf]
mov byte [esi + 0x3d], 1
cmp dword [esp + 0x14], eax
jne 0x405fd7
mov ecx, dword [esp + 0x38]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00455828
add esp, 0x30
ret 4
Function at 0x407540
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c2d0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4a9098]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0045583e
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00453a3c
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40cfb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d158
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4a9098]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00405340
test al, al
je 0x40cff0
xor al, al
jmp 0x40d126
push esi
lea ecx, [ebp - 0x2c]
call fcn.004054d0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push 4
push eax
call fcn.0040f6a0
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.00405350
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d113
lea ecx, [ebp - 0x44]
call fcn.004054b0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.00419380
test al, al
je 0x40d052
lea ecx, [ebp - 0x44]
call fcn.00405350
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00405390
cmp esi, 0xffffffff
jne 0x40d113
lea ecx, [ebp - 0x2c]
call fcn.00406a90
cmp eax, 2
jbe 0x40d10f
lea ecx, [ebp - 0x2c]
call fcn.00406a90
lea ecx, [ebp - 0x2c]
lea ebx, [eax - 1]
call fcn.004067e0
mov esi, eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x40d097
mov ecx, dword [esi]
cmp word [ecx + ebx*2], 0x5c
je 0x40d0b6
lea ecx, [ebp - 0x2c]
call fcn.00406a90
cmp dword [esi + 0x14], 8
jb 0x40d0ae
mov esi, dword [esi]
cmp word [esi + eax*2 - 2], 0x2f
jne 0x40d10f
lea eax, [ebp - 0x2c]
push 0x20
push eax
call fcn.0040f6a0
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.00405350
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d113
lea ecx, [ebp - 0x44]
call fcn.004054b0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.00419380
test al, al
je 0x40d0fe
lea ecx, [ebp - 0x44]
call fcn.00405350
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00405390
cmp esi, 0xffffffff
jne 0x40d113
xor bl, bl
jmp 0x40d115
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00405390
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00455828
mov esp, ebp
pop ebp
ret
Function at 0x40d150
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d158
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4a9098]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00405340
test al, al
je 0x40d190
xor al, al
jmp 0x40d2cc
push esi
lea ecx, [ebp - 0x2c]
call fcn.004054d0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push 4
push eax
call fcn.0040f6a0
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.00405350
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40d1ff
lea ecx, [ebp - 0x44]
call fcn.004054b0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.00419380
test al, al
je 0x40d1ee
lea ecx, [ebp - 0x44]
call fcn.00405350
push eax
call edi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00405390
cmp ebx, 0xffffffff
je 0x40d208
test bl, 0x10
je 0x40d2b9
lea ecx, [ebp - 0x2c]
call fcn.00406a90
cmp eax, 2
jbe 0x40d2b5
lea ecx, [ebp - 0x2c]
call fcn.00406a90
lea ecx, [ebp - 0x2c]
lea ebx, [eax - 1]
call fcn.004067e0
mov esi, eax
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x40d238
mov ecx, dword [esi]
cmp word [ecx + ebx*2], 0x5c
je 0x40d257
lea ecx, [ebp - 0x2c]
call fcn.00406a90
cmp dword [esi + 0x14], 8
jb 0x40d24f
mov esi, dword [esi]
cmp word [esi + eax*2 - 2], 0x2f
jne 0x40d2b5
lea eax, [ebp - 0x2c]
push 0x20
push eax
call fcn.0040f6a0
add esp, 8
lea ecx, [ebp - 0x2c]
call fcn.00405350
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40d2b0
lea ecx, [ebp - 0x44]
call fcn.004054b0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.00419380
test al, al
je 0x40d29f
lea ecx, [ebp - 0x44]
call fcn.00405350
push eax
call edi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00405390
cmp ebx, 0xffffffff
je 0x40d2b5
test bl, 0x10
je 0x40d2b9
xor bl, bl
jmp 0x40d2bb
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00405390
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00455828
mov esp, ebp
pop ebp
ret
Function at 0x40d2f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d190
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4a9098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.00405340
test al, al
je 0x40d32f
xor al, al
jmp 0x40d3ba
push esi
lea ecx, [ebp - 0x28]
call fcn.004054d0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push 4
push eax
call fcn.0040f6a0
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.00405350
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40d39e
lea ecx, [ebp - 0x40]
call fcn.004054b0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00419380
test al, al
je 0x40d38d
lea ecx, [ebp - 0x40]
call fcn.00405350
push eax
call esi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00405390
cmp ebx, 0xffffffff
je 0x40d3a7
test bl, 0x10
je 0x40d3a7
mov bl, 1
jmp 0x40d3a9
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405390
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455828
mov esp, ebp
pop ebp
ret
Function at 0x40dcc0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d300
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4a9098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00405340
test al, al
je 0x40dd00
xor al, al
jmp 0x40debb
push edi
call fcn.0040d2f0
add esp, 4
test al, al
je 0x40dd14
mov al, 1
jmp 0x40debb
push 0
mov ecx, edi
call fcn.00405350
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x40dd63
lea ecx, [ebp - 0x28]
call fcn.004054b0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.00419380
test al, al
je 0x40dd54
push 0
lea ecx, [ebp - 0x28]
call fcn.00405350
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405390
push edi
call fcn.0040d2f0
add esp, 4
test al, al
jne 0x40dd0d
mov ecx, edi
call fcn.00406a90
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x40de5c
mov ecx, edi
call fcn.004067e0
mov ebx, eax
nop dword [eax]
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x40dd9c
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x40ddbf
mov eax, ebx
cmp ecx, 8
jb 0x40ddb5
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x40de4c
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.004052f0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00405340
test al, al
jne 0x40de3d
lea eax, [ebp - 0x28]
push eax
call fcn.0040cfb0
add esp, 4
test al, al
jne 0x40de3d
push 0
lea ecx, [ebp - 0x28]
call fcn.00405350
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40de3d
lea ecx, [ebp - 0x40]
call fcn.004054b0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.00419380
test al, al
je 0x40de31
push 0
lea ecx, [ebp - 0x40]
call fcn.00405350
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00405390
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405390
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x40dd90
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call fcn.0040cfb0
add esp, 4
test al, al
jne 0x40deb2
push 0
mov ecx, edi
call fcn.00405350
push eax
call ebx
test eax, eax
jne 0x40deb2
lea ecx, [ebp - 0x40]
call fcn.004054b0
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.00419380
test al, al
je 0x40dea3
push 0
lea ecx, [ebp - 0x40]
call fcn.00405350
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00405390
push edi
call fcn.0040d2f0
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455828
mov esp, ebp
pop ebp
ret
Function at 0x417eb0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e818
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4a9098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
test eax, eax
je 0x417ef6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.0041ce10
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x417f1f
lea ebx, [esi + 8]
jmp 0x417f21
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.00405340
test al, al
jne 0x417f37
mov ecx, dword [ebp - 0x18]
call fcn.00405350
jmp 0x417f39
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x417f5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x417f5a
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x417f83
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x417f98
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.0045586e
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455828
mov esp, ebp
pop ebp
ret 4

Function at 0x418a20
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d538
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4a9098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov ebx, ecx
and esi, 0xffffb1af
push esi
call fcn.00405350
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x418a69
mov al, 1
jmp 0x418ab1
lea ecx, [ebp - 0x28]
call fcn.004054b0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.00419380
test al, al
je 0x418a9e
push esi
lea ecx, [ebp - 0x28]
call fcn.00405350
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x418a9e
mov bl, 1
jmp 0x418aa0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405390
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00455828
mov esp, ebp
pop ebp
ret