joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415b10
Capabilities:
Read file on windows

Disassembly:
push ecx
mov al, byte [0x4326e0]
push esi
test al, al
je 0x415bc3
push ebx
push edi
mov ecx, 0x2000
mov dword [esp + 0xc], 0
call fcn.0040c420
mov ecx, dword [0x4318c4]
mov edi, eax
lea eax, [esp + 0xc]
push 0
push eax
push 0x1fff
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 0xc]
lea ecx, [edx + 1]
call fcn.0040c420
mov ebx, eax
mov eax, dword [esp + 0xc]
push eax
push ebx
push edi
call dword [sym.imp.USER32.dll_OemToCharBuffA]
mov esi, dword [esp + 0x14]
mov ecx, esi
call fcn.004064c0
mov ecx, dword [esp + 0xc]
push ecx
push ebx
mov ecx, esi
call fcn.00406500
mov ecx, ebx
call fcn.0040c490
mov ecx, edi
call fcn.0040c490
mov ecx, dword [esi]
pop edi
pop ebx
mov eax, dword [ecx + 4]
test eax, eax
je 0x415bcc
mov cl, byte [eax + ecx + 0xb]
cmp cl, 0xd
je 0x415ba9
cmp cl, 0xa
jne 0x415bcc
dec eax
push 0x7fffffff
push eax
mov ecx, esi
call fcn.00406930
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x415b9b
pop esi
pop ecx
ret
mov ecx, dword [esp + 0xc]
call fcn.00406800
pop esi
pop ecx
ret

Function at 0x416910
Capabilities:
Read file on windows

Disassembly:
push ecx
call fcn.00416630
test al, al
je 0x4169ed
mov ecx, dword [0x4326a0]
mov edx, dword [0x4326a8]
mov eax, ecx
sub eax, edx
mov edx, dword [0x4326ac]
cmp eax, edx
jae 0x41694a
inc ecx
mov dword [0x4326a0], ecx
mov ecx, dword [0x4326a4]
mov al, byte [ecx + eax]
pop ecx
ret
lea eax, [ecx - 0x3c00]
mov dword [0x4326ac], 0
test eax, eax
mov dword [0x4326a8], eax
jge 0x41696a
xor eax, eax
mov dword [0x4326a8], eax
mov edx, dword [0x43269c]
push 0
push 0
push eax
push edx
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x4169ad
mov ecx, dword [0x4326a4]
mov edx, dword [0x43269c]
lea eax, [esp]
push 0
push eax
push 0xf000
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4169b4
mov byte [0x432690], 1
mov edx, dword [0x4326a0]
mov ecx, dword [esp]
push esi
mov esi, dword [0x4326a8]
mov eax, edx
mov dword [0x4326ac], ecx
sub eax, esi
inc edx
cmp eax, ecx
mov dword [0x4326a0], edx
pop esi
jae 0x4169e6
mov ecx, dword [0x4326a4]
mov al, byte [ecx + eax]
pop ecx
ret
mov byte [0x432690], 1
xor al, al
pop ecx
ret
Function at 0x416a00
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call fcn.00416630
test al, al
je 0x416b75
mov ebp, dword [esp + 0x1c]
test ebp, ebp
jg 0x416a2c
mov eax, dword [0x4326a0]
pop edi
add eax, ebp
pop esi
pop ebp
mov dword [0x4326a0], eax
pop ebx
pop ecx
ret
cmp ebp, 0xf000
mov dword [esp + 0x10], 0
jl 0x416a95
mov eax, dword [0x4326a0]
mov ecx, dword [0x43269c]
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x416a88
mov eax, dword [esp + 0x18]
mov ecx, dword [0x43269c]
lea edx, [esp + 0x10]
push 0
push edx
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416a88
mov eax, dword [0x4326a0]
pop edi
add eax, ebp
pop esi
pop ebp
mov dword [0x4326a0], eax
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov byte [0x432690], 1
pop ebx
pop ecx
ret
mov ebx, dword [esp + 0x18]
mov eax, dword [0x4326ac]
mov dword [esp + 0x1c], 4
mov edx, dword [0x4326a0]
mov esi, dword [0x4326a8]
sub edx, esi
cmp edx, eax
jae 0x416af2
sub eax, edx
cmp eax, ebp
jle 0x416ac0
mov eax, ebp
mov esi, dword [0x4326a4]
mov ecx, eax
add esi, edx
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [0x4326a0]
add edx, eax
sub ebp, eax
mov dword [0x4326a0], edx
je 0x416b75
add ebx, eax
mov eax, dword [0x4326a0]
mov dword [0x4326ac], 0
add eax, 0xffffc400
test eax, eax
mov dword [0x4326a8], eax
jge 0x416b16
xor eax, eax
mov dword [0x4326a8], eax
mov ecx, dword [0x43269c]
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x416b50
mov eax, dword [0x4326a4]
mov ecx, dword [0x43269c]
lea edx, [esp + 0x10]
push 0
push edx
push 0xf000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x416b57
mov byte [0x432690], 1
mov eax, dword [esp + 0x10]
test eax, eax
mov dword [0x4326ac], eax
je 0x416b75
mov ecx, dword [esp + 0x1c]
dec ecx
test ecx, ecx
mov dword [esp + 0x1c], ecx
jg 0x416aa6
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x419310
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x100
lea eax, [esp]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov ecx, dword [esp + 0x104]
mov dl, byte [esp + 0x108]
lea eax, [esp + ecx]
mov cl, byte [esp + ecx]
and cl, 0xfe
test dl, dl
mov byte [eax], cl
je 0x419345
or cl, 1
mov byte [eax], cl
lea edx, [esp]
push edx
call dword [sym.imp.USER32.dll_SetKeyboardState]
add esp, 0x100
ret

Function at 0x424cd0
Capabilities:
Delete file

Disassembly:
mov al, byte [0x43271c]
mov dword [0x431974], 0x48
test al, al
mov dword [0x431978], 0xffffffff
je 0x424d11
mov al, byte [0x43271e]
test al, al
je 0x424d0c
push 0
mov byte [0x43271d], 1
call fcn.00424d20
add esp, 4
jmp fcn.00424db0
jmp fcn.00424e40
ret
Function at 0x424e40
Capabilities:
Delete file

Disassembly:
mov eax, dword [0x432718]
mov byte [0x43271c], 0
test eax, eax
mov dword [0x431978], 0xffffffff
je 0x424e9d
push esi
mov esi, dword [sym.imp.WINMM.dll_mciSendCommandA]
push 0
push 2
push 0x808
push eax
call esi
mov eax, dword [0x432718]
push 0
push 2
push 0x804
push eax
call esi
mov dword [0x432718], 0
mov dword [0x431970], 0x5265c00
mov dword [0x432720], 0
pop esi
mov eax, dword [0x432714]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x424ebd
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, 0x432714
jmp fcn.00406800
ret

Function at 0x42b270
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x150
lea ecx, [esp]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x160]
push edi
push esi
call fcn.00401020
lea ecx, [esp + 0x10]
call fcn.004069a0
lea ecx, [esp + 0x10]
call fcn.004069f0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x42b2b6
mov edx, 0x4319d0
lea ecx, [esp + 0x10]
call fcn.004079a0
mov ecx, esi
call fcn.00406800
lea ecx, [esp + 0x14]
call fcn.00406370
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dl, 0x3b
lea ecx, [esp + 0x10]
call fcn.00406710
mov ebx, eax
test ebx, ebx
jge 0x42b2e4
mov ecx, dword [esp + 0x10]
mov ebx, dword [ecx + 4]
push ebx
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x14]
call fcn.00406870
mov edx, eax
lea ecx, [esp + 0x14]
call fcn.00407970
lea ecx, [esp + 0x18]
call fcn.004064c0
lea ecx, [esp + 0x14]
call fcn.004069a0
lea ecx, [esp + 0x14]
call fcn.004069f0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x42b369
lea edx, [esp + 0x20]
add eax, 0xc
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x42b369
lea edx, [esp + 0x4c]
mov ecx, esi
call fcn.00407ae0
mov dl, 0xd
mov ecx, esi
call fcn.00407b50
mov dl, 0xa
mov ecx, esi
call fcn.00407b50
lea eax, [esp + 0x20]
push eax
push edi
call ebp
test eax, eax
jne 0x42b339
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
inc ebx
push 0x7fffffff
push ebx
lea edx, [esp + 0x24]
lea ecx, [esp + 0x18]
call fcn.004068e0
mov edx, eax
lea ecx, [esp + 0x10]
call fcn.00407970
lea ecx, [esp + 0x1c]
call fcn.004064c0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
test eax, eax
jne 0x42b2cc
lea ecx, [esp + 0x14]
call fcn.004064c0
lea ecx, [esp + 0x10]
call fcn.004064c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret

Function at 0x42b400
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x400
push esi
push edi
mov edi, ecx
mov ecx, edx
call fcn.00416d10
mov eax, dword [0x4324c8]
mov edx, dword [0x431fd8]
add eax, 0xc
lea ecx, [esp + 8]
push eax
mov eax, dword [0x4323b4]
push 0x3ff
push ecx
mov ecx, dword [0x432344]
add edx, 0xc
add eax, 0xc
push edx
add ecx, 0xc
push eax
push ecx
mov byte [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, eax
test esi, esi
jle 0x42b471
mov ecx, edi
call fcn.004064c0
lea edx, [esp + 8]
mov ecx, edi
push esi
push edx
call fcn.00406500
mov al, 1
pop edi
pop esi
add esp, 0x400
ret
pop edi
xor al, al
pop esi
add esp, 0x400
ret
Function at 0x40ff40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub eax, 0x6b636150
popal
jb 0x40ffac
das
push 0x69727070
outsb dx, byte [esi]
je 0x40ff7f
js 0x40ffb9
add byte [ecx], al
add byte [ebx], bl
add dword [eax + 0x65], ecx
ja 0x40ffc9
je 0x40ffd4
sub eax, 0x6b636150
popal
jb 0x40ffcc
das
push 0x61637370
outsb dx, byte [esi]
js 0x40ffd8
add byte [eax], al
add byte [eax + 0x47], bh
add dword [eax], eax
add al, 0
add al, 0
add al, 0
and dword [ebx], esp
inc ecx
dec esp
add byte [ecx], ah
and eax, dword [ecx + 0x4c]
inc esi
cmp cl, byte [eax + 0x61]
arpl word [ebx + 0x54], bp
outsd dx, dword [esi]
outsd dx, dword [esi]
insb byte es:[edi], dx
cmp dl, byte [edi + 0x69]
push edi
imul ebp, dword [esi + 0x33], 0x6f442f32
outsb dx, byte [esi]
xor esi, dword [edx]
xor ch, byte [edi]
das
inc esp
outsd dx, dword [esi]
jb 0x40fffd
jae 0x40ffbd
dec ebp
push esp
inc edx
add byte [ecx], al
add byte [ebx + eax + 0x3c], dl
jmp 0x1d183b9
add dword [eax], eax
push esp
add edi, dword [ecx + ebp*8]
je 0x3c45013c
ret
nop
add dword [ecx*4 + 0x4c3c014b], eax
jne 0x40ff8f
cmp byte [edx - 0x70], 1
add dh, byte [ebp - 0x30]
jne 0x40ff90
cmp byte [edx - 0x70], 1
add dh, byte [ebp - 0x36]
cmp byte [edx - 0x70], 1
add dh, byte [ebp - 0x3c]
nop
add dword [edx], eax
jne 0x40ff92
les eax, [eax + 0x201907a]
jne 0x40ff93
cmp byte [edx - 0x70], 1
add dh, byte [ebp - 0x42]
mov esi, 0x1907a80
cmp byte [edx - 0x70], 1
add dword [edx], eax
jne 0x40ff94
add dh, byte [ebp - 0x48]
lea eax, [ebx + 5]
movzx eax, ax
inc ebp
movzx edx, byte [ecx + eax]
lea eax, [ebx + 4]
movzx eax, ax
inc ecx
movzx eax, byte [ecx + eax]
inc ecx
shl edx, 8
nop
add byte [ecx], al
add byte [edx + 3], dh
cmp byte [eax], 0x4c
jne 0x40ff91
cmp byte [ebp + esi*2 - 0x70], cl
add dword [ecx], eax
lea ecx, [edx + 1]
dec eax
arpl cx, cx
inc ecx
cmp byte [ecx + ecx], 0x8b
jne 0x40ffa0
add dword [ecx], eax
lea ecx, [edx + 2]
dec eax
arpl cx, cx
inc ecx
cmp byte [ecx + ecx], 0xd1
jne 0x40ffaf
add dword [ecx], eax
lea ecx, [edx + 3]
dec eax
arpl cx, cx
inc ecx
cmp byte [ecx + ecx], 0xb8
jne 0x40ffbe
add dword [ecx], eax
lea ecx, [edx + 6]
dec eax
arpl cx, cx
inc ecx
cmp byte [ecx + ecx], 0
jne 0x40ffcd
add dword [ecx], eax
lea ecx, [edx + 7]
dec eax
arpl cx, cx
inc ecx
cmp byte [ecx + ecx], 0
jne 0x8d4501e0
dec edx
add eax, 0x4804c283
arpl cx, cx
dec eax
arpl dx, dx
inc ebp
movzx edx, byte [ecx + ecx]
inc ecx
movzx edx, byte [ecx + edx]
inc ecx
shl edx, 8
inc ecx
or edx, edx
nop
add byte [ecx], al
add byte [ecx], bl
add dword [ebp + 0x31], ecx
fisttp dword [ebp + 0x31]
ror byte [ecx - 0x77], cl
retf
Function at 0x419020
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d993
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x625260]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x629f34
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ebp - 4], 0
mov dword [ecx], 0x629f34
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x5a1529
mov byte [ebp - 4], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.0041cbd0
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x62e340], ecx
inc eax
cmp eax, 0x100
jb 0x41f7f2
cmp eax, 0x800
jae 0x41f8c3
nop
mov edx, dword [eax*4 + 0x62df40]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x62e340]
mov dword [eax*4 + 0x62e340], edx
inc eax
cmp eax, 0x800
jb 0x41f8a0
mov dword [0x629f40], 0x420660
call fcn.00420490
mov ecx, dword [0x629f40]
test eax, eax
mov edx, 0x420700
cmove ecx, edx
mov dword [0x629f40], ecx
ret
Function at 0x4209e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
xor ebx, ebx
and eax, 7
cmp ecx, 5
jae 0x420a00
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
lea edx, [ecx - 4]
push esi
mov esi, dword [ebp + 8]
push edi
or edi, 0xffffffff
add edx, esi
mov dword [ebp - 4], edx
add esi, ebx
mov dword [ebp + 0xc], esi
cmp esi, edx
jae 0x420a32
nop dword [eax]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x420a2f
inc esi
cmp esi, edx
jb 0x420a20
mov dword [ebp + 0xc], esi
mov ebx, esi
sub ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edi
cmp esi, edx
jae 0x420b5c
cmp ecx, 3
jbe 0x420a72
xor eax, eax
mov cl, byte [esi + 4]
mov edi, ebx
mov dword [ebp - 0x10], edi
test cl, cl
je 0x420ab0
cmp cl, 0xff
je 0x420ab0
mov edx, dword [ebp - 4]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov ecx, 1
or eax, 1
add ebx, ecx
jmp 0x420a14
dec ecx
shl eax, cl
and eax, 7
je 0x420a4a
movzx ecx, byte [eax + 0x5a35a4]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x5a359c], 0
mov cl, byte [edx + 4]
je 0x420a9a
test cl, cl
je 0x420a9a
cmp cl, 0xff
jne 0x420a4a
mov edx, dword [ebp - 4]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov edi, ebx
or eax, 1
inc ebx
jmp 0x420a14
movzx edi, cl
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 2]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 1]
mov esi, dword [ebp + 0x10]
shl edi, 8
or edi, ecx
cmp dword [ebp + 0x18], 0
je 0x420ade
lea edx, [edi + ebx]
add edx, esi
jmp 0x420ae4
mov edx, edi
sub edx, ebx
sub edx, esi
test eax, eax
je 0x420b22
movzx edi, byte [eax + 0x5a35a4]
mov ecx, 0x18
shl edi, 3
sub ecx, edi
mov dword [ebp - 0xc], edi
mov edi, edx
shr edi, cl
mov ecx, edi
mov dword [ebp - 8], edi
test cl, cl
je 0x420b0e
cmp cl, 0xff
jne 0x420b22
mov ecx, 0x20
mov edi, 1
sub ecx, dword [ebp - 0xc]
shl edi, cl
dec edi
xor edi, edx
jmp 0x420ad1
mov esi, dword [ebp + 0xc]
mov ecx, edx
mov edi, dword [ebp - 0x10]
shr ecx, 0x18
and cl, 1
dec cl
mov byte [esi + 1], dl
not cl
mov byte [esi + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, edx
mov edx, dword [ebp - 4]
shr ecx, 8
mov byte [esi + 2], cl
mov ecx, 5
mov esi, dword [ebp + 8]
add ebx, ecx
jmp 0x420a14
pop edi
pop esi
cmp ecx, 3
jbe 0x420b71
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0x14]
and eax, 7
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42921f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x42929e
push ebx
push edi
xor edi, edi
push str.f2da34836ca34ce8b141b10b95246713
mov dword [ebp + 8], edi
call fcn.00450c30
mov ebx, dword [ebp + 0xc]
mov edx, edi
pop ecx
test ebx, ebx
je 0x42925b
mov cl, byte [edi + str.f2da34836ca34ce8b141b10b95246713]
xor byte [edx + esi], cl
inc edi
xor ecx, ecx
cmp edi, eax
cmovge edi, ecx
inc edx
cmp edx, ebx
jb 0x429245
cmp ebx, 1
jle 0x429292
cmp byte [esi], 0x37
jne 0x429292
mov al, byte [esi + 1]
cmp al, 0x7a
je 0x429270
cmp al, 0x5a
jne 0x429292
lea eax, [ebp + 8]
push eax
push ebx
push esi
call fcn.0041ce00
test eax, eax
je 0x429292
mov edx, dword [ebp + 8]
test edx, edx
je 0x429292
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
jmp 0x42929c
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x42a546
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.00450cbb
mov dword [ebp - 0xc], eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004229da
push dword [ebp + 8]
mov dword [ebp - 4], eax
push eax
call fcn.004510a8
add esp, 0x10
call fcn.00423a67
test al, al
je 0x42a5a0
push eax
push esp
push edx
push edi
pop edx
pop esp
pop edi
push eax
push ebx
push esp
pop esi
pop ecx
pop ebx
push esp
push edi
push ebp
push edx
pop ebp
push esp
push ecx
pop edi
push edi
pop ecx
push ecx
pop ebx
call fcn.00423af1
test al, al
je 0x42a5bf
pop eax
pop edx
push esi
pop ebp
pop ebp
pop ebp
push eax
pop ebp
push edi
pop eax
pop ecx
push edx
push ebp
pop esp
pop eax
pop ecx
pop ebp
pop ecx
pop ebp
pop esi
pop ebp
push eax
call fcn.00423d19
test al, al
je 0x42a5db
push esi
push ecx
push esi
push edi
push esp
pop edx
push esi
push ebp
pop ecx
pop eax
pop ebx
pop edi
push ebx
push esi
push esp
pop esi
pop edx
push esp
pop edx
mov eax, dword [ebp - 0xc]
xor esi, esi
xor ebx, ebx
inc esi
mov dword [ebp - 8], ebx
test eax, eax
js 0x42a683
mov esi, dword [ebp - 4]
cmp word [esi + ebx*2], 0x5c
jne 0x42a674
call fcn.00423c8f
test al, al
je 0x42a61f
push ecx
push esp
push esi
push ebx
push edx
pop esi
pop ebx
pop esp
pop edi
pop eax
pop esi
pop edx
pop esp
pop esi
pop esp
pop ebp
push ebx
pop edi
pop edx
pop ebx
pop esi
push eax
pop ecx
push ebx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
call fcn.00423c8f
test al, al
je 0x42a64c
push edi
pop ecx
push ecx
pop esi
push ebx
pop ebp
push edx
pop esp
pop esi
push edx
pop ebx
push ecx
push esp
pop ebp
pop edi
pop edi
pop ebp
pop edi
pop esp
pop ecx
push edx
pop edx
push ecx
push esp
pop eax
pop ebp
push esp
push eax
push esp
pop edi
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
movzx edi, word [esi + ebx*2]
xor eax, eax
push esi
mov word [esi + ebx*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42a66d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x42a695
mov eax, dword [ebp - 0xc]
mov word [esi + ebx*2], di
inc ebx
mov dword [ebp - 8], ebx
cmp ebx, eax
jle 0x42a5f1
xor esi, esi
inc esi
push dword [ebp - 4]
call fcn.004229e3
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
jmp 0x42a683
Function at 0x42a699
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x625260]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x218], eax
xor eax, eax
push eax
push 0x1a
push ecx
push eax
mov dword [ebp - 0x210], ebx
call fcn.0042b007
lea eax, [ebp - 0x20c]
push eax
call fcn.00450cbb
add esp, 0x14
mov dword [ebp - 0x214], eax
call fcn.00423a67
test al, al
je 0x42a707
push esp
pop eax
pop edi
push ebx
push ecx
pop esi
pop eax
pop edx
pop edx
push esp
pop eax
pop esp
pop ebx
push edx
pop ecx
pop edi
mov ebx, dword [ebp - 0x210]
cmp dword [ebp - 0x214], 0
je 0x42a831
mov esi, 0x5a18e8
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00451703
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00451703
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00451703
add esp, 0x18
call fcn.00423953
test al, al
je 0x42a763
pop edx
push ebx
push edx
push ecx
push esi
push ebp
pop esi
push edx
push esp
push ecx
pop esi
pop eax
pop ebx
push eax
pop ebp
push edx
pop edx
push eax
pop ebp
push ebx
push ecx
pop ebx
push ebx
call fcn.004237fa
test al, al
je 0x42a782
pop ebp
pop esp
push edi
push eax
push ebp
push edx
pop edi
push edx
pop ebp
push esi
push ecx
pop edi
pop esp
pop edi
pop eax
pop esi
pop ebx
pop esi
pop esi
pop esi
push edx
pop esi
call fcn.00423af1
test al, al
je 0x42a7ab
push edi
pop edx
push edi
pop esi
pop ecx
push esi
pop esi
push eax
push ecx
pop esp
pop ecx
pop eax
pop ebp
pop ecx
push ebx
pop ebp
pop ecx
push eax
pop edi
push ebp
push ecx
pop ecx
push ebx
push esi
pop esi
push esi
push ecx
pop esi
pop edi
pop eax
pop esi
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42a7c9
lea eax, [ebp - 0x20c]
push eax
call fcn.0042a546
pop ecx
call fcn.00423b7b
test al, al
je 0x42a7e3
pop ebx
pop esi
pop esi
push esi
pop eax
push esi
push eax
pop edx
push ecx
pop ecx
pop ebx
push edi
push ebx
pop ebx
push esi
pop esp
pop ebp
call fcn.00423efc
test al, al
je 0x42a803
pop edi
pop ecx
pop ebx
pop edx
pop esi
pop ebp
push esi
push edi
pop edi
push edi
pop edx
push ebx
push esi
pop eax
pop ebp
push ebp
push edi
push ebx
pop esi
pop edi
push ecx
push eax
pop ebx
cmp word [ebp - 0x20c], 0
jne 0x42a811
xor eax, eax
jmp 0x42a81e
lea eax, [ebp - 0x20c]
push eax
call fcn.00450cbb
pop ecx
mov ecx, dword [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00403c20
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004229e8
mov esp, ebp
pop ebp
ret