joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420750
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x491d6b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x42078b
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4207a4
lea eax, [ebp - 0x10]
mov edx, dword [0x4af73c]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x4207b7
lea eax, [ebp - 0x10]
mov edx, dword [0x4af73c]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4207c3
adc edx, 0
mov edx, dword [edx*4 + 0x4ae538]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x42093d
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420930
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420930
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x4208ce
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x4208ce
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4208ce
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4208ce
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420930
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420930
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420955
inc ebx
cmp ebx, 0x19
jne 0x42077d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491d72
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x422be0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x422d3e
nop
jl 0x422c37
int1
ror dword [edi], 1
push cs
cmpsb byte [esi], byte es:[edi]
jb 0x422c2b
push cs
sbb ah, cl
popal
loope 0x422c54
popal
popal
popal
popal
popal
jnp 0x422bf1
mov bh, 0x79
div byte [esi - 0x97bd510]
jp 0x422bf3
jb 0x422c25
or eax, 0x1c832ae0
dec ecx
invalid
jb 0x422c46
or eax, 0x15822ae0
sar byte [eax], 0x72
adc eax, 0x197238c0
cmp esp, 0x30
sbb edx, esi
cmp esp, 0x30
adc ecx, edi
stc
jnp 0x422c2f
div dword [edi - 0x7af1fe8e]
test dword [eax + 0x34], edi
lock sub al, byte [esi + esi*8 + 0x1f72ef7a]
mov bh, 0x72
add dword [esi], ecx
test dword [ebp + 0x2af03478], eax
test dh, dh
jp 0x422c35
jb 0x422c67
or eax, 0x38e02ae0
lock sub al, byte [esi + esi*8 + 0x1f72ef7a]
pop ds
or eax, 0x38e02ae0
test cl, dl
mov al, 0xf0
sub al, byte [esi + esi*8 + 0x1f72ef7a]
or eax, 0x38e02ae0
lock sub al, byte [edx + 0x7af8841e]
sub ah, al
cmp al, dh
sub al, byte [edx + 0x7af8841e]
out dx, eax
jb 0x422c93
or eax, 0x15822ae0
jb 0x422cab
xor bl, dh
jo 0x422c8a
jo 0x422c8a
int1
add cl, byte [esi]
push cs
jb 0x422ca4
invalid
or eax, 0xf37bfe87
mov bl, 0x79
div byte [esi + 0x180684b8]
xchg edx, eax
mov eax, 0x92180684
push cs
push cs
push cs
popal
jp 0x422c91
jb 0x422cd3
cmc
js 0x422c99
jb 0x422cdb
cmc
cmc
jb 0x422cc0
cmc
xchg byte [eax], al
lock sbb byte ds:[ebp - 0x50f1f1f2], bh
scasd eax, dword es:[edi]
js 0x422cbb
dec eax
int1
int1
int1
jnp 0x422cb2
div byte [esi - 0xf32e623]
xchg byte [esi], al
mov dh, 0xdd
sbb ebp, ecx
lock xchg byte [esi], al
jno 0x422c93
test byte [ebx], al
jp 0x422cc0
jnp 0x422c7a
cmc
xchg edi, eax
xor byte [ecx], bl
stc
xor byte [ecx], dh
loope 0x422d4c
xor eax, 0x1a7109d8
sbb eax, esi
add dword [eax - 0xa], edi
lock add dword [eax - 0xa], edi
jb 0x422d17
hlt
mov dh, 0xa1
mov dh, 0x48
cmpsb byte [esi], byte es:[edi]
mov ecx, 0xea45f03
sbb dword [bp - 0xe0e], esp
clc
xor dword [ebp + 0x72f278f6], eax
xor dh, ch
sbb ch, byte [ecx]
push cs
sbb eax, 0x90f1f2a6
sbb byte [ebx], dl
in eax, dx
std
inc dword [eax]
mov eax, section._4321280
xor byte [eax], 0x56
inc eax
cmp eax, 0x422bcc
jle 0x422d43
mov eax, 0x422be6
xor byte [eax], 0xf1
inc eax
cmp eax, 0x422d38
jle 0x422d53
pushal
mov esi, section._4321280
jmp 0x422be5

Function at 0x52d5c1
Capabilities:
Encode data using xor

Disassembly:
push 1
pop ecx
cmp dword [esp + 8], ecx
jl 0x52d5e1
mov eax, dword [esp + 4]
mov edx, ecx
and edx, 3
mov dl, byte [esp + edx + 0xc]
xor byte [eax], dl
inc ecx
inc eax
cmp ecx, dword [esp + 8]
jle 0x52d5ce
ret

Function at 0x627d19
Capabilities:
Encode data using xor

Disassembly:
push 1
pop ecx
cmp dword [esp + 8], ecx
jl 0x627d39
mov eax, dword [esp + 4]
mov edx, ecx
and edx, 3
mov dl, byte [esp + edx + 0xc]
xor byte [eax], dl
inc ecx
inc eax
cmp ecx, dword [esp + 8]
jle 0x627d26
ret

Function at 0x7335c1
Capabilities:
Encode data using xor

Disassembly:
push 1
pop ecx
cmp dword [esp + 8], ecx
jl 0x7335e1
mov eax, dword [esp + 4]
mov edx, ecx
and edx, 3
mov dl, byte [esp + edx + 0xc]
xor byte [eax], dl
inc ecx
inc eax
cmp ecx, dword [esp + 8]
jle 0x7335ce
ret
Function at 0x40bf90
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
shr edi, 2
xor edx, edx
mov eax, edi
mov dword [ebp - 4], 1
shr eax, 1
add eax, 3
mov dword [ecx], eax
add ecx, 0x10
test edi, edi
je 0x40bfc5
mov eax, dword [esi]
lea esi, [esi + 4]
mov dword [ecx + edx*4], eax
inc edx
cmp edx, edi
jb 0x40bfb8
mov ebx, dword [ecx + edi*4 - 4]
lea eax, [edi + 0xe]
lea eax, [edi + eax*2]
lea esi, [ecx + eax*4]
mov dword [ebp + 8], esi
xor esi, esi
mov eax, dword [ebp + 8]
nop word [eax + eax]
test esi, esi
jne 0x40c041
movzx eax, bl
mov esi, dword [ebp - 4]
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
mov eax, ebx
shr eax, 0x10
movzx eax, al
shr ebx, 8
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + str.cw]
mov eax, 0x1b
xor ebx, esi
add esi, esi
or ebx, edx
test esi, 0x100
cmovne esi, eax
mov dword [ebp - 4], esi
mov esi, edi
jmp 0x40c08e
cmp esi, 4
jne 0x40c091
cmp edi, 6
jbe 0x40c091
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + str.cw]
or ebx, edx
mov eax, dword [ebp + 8]
xor ebx, dword [ecx]
dec esi
mov dword [ecx + edi*4], ebx
add ecx, 4
cmp ecx, eax
jne 0x40bfe0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40cda0
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x471d24]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x40cde9
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40cde9
push 0xc00
call eax
test eax, eax
jne 0x40ce87
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40ce87
cmp eax, 0x104
ja 0x40ce87
cmp word [ebp + eax*2 - 0x2d6], 0x5c
je 0x40ce27
mov ecx, 0x5c
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x40ce86
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + eax*2]
mov al, byte [esi]
mov ecx, edi
inc esi
test al, al
je 0x40ce60
movzx eax, al
mov word [ecx], ax
add ecx, 2
mov al, byte [esi]
inc esi
test al, al
jne 0x40ce50
xor eax, eax
mov dword [ecx], 0x64002e
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ecx + 4], 0x6c006c
call ebx
cmp byte [esi], 0
jne 0x40ce47
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00446c6e
mov esp, ebp
pop ebp
ret
Function at 0x410b90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, 0x20
push edi
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [esi + 0x78], 0
cmova eax, ecx
mov dword [esi + 0x7c], 0
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x30], 1
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 1
mov dword [esi + 0x70], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x90], 0xffffffff
mov dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x58], 0
cmp eax, dword [esi + 0x20]
je 0x410cb0
mov eax, ecx
lea ebx, [esi + 0xd0]
mov dword [ebp + 8], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x410c88
mov dword [ebx], 0
mov eax, dword [ebx - 8]
mov edi, dword [ecx]
push ecx
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [eax + 4]
call eax
mov ecx, edi
test edi, edi
jne 0x410c70
mov eax, dword [ebp + 8]
add ebx, 0x28
sub eax, 1
mov dword [ebp + 8], eax
jne 0x410c64
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x410cab
mov eax, dword [esi + 0x14]
push ecx
push eax
mov eax, dword [eax + 4]
call eax
mov dword [esi + 0x5c], 0
mov eax, dword [esi]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea eax, [ecx + 5]
lea eax, [eax + eax*4]
lea ebx, [esi + eax*8]
lea eax, [ecx + 1]
mov dword [esi + 0x58], eax
lea eax, [ebx + 0x20]
push eax
call fcn.00412380
mov edi, eax
test edi, edi
jne 0x410d62
lea eax, [ebx + 0x1c]
push eax
call fcn.00412380
mov edi, eax
test edi, edi
jne 0x410d62
lea eax, [ebx + 0x20]
push eax
call fcn.004124a0
mov edi, eax
test edi, edi
jne 0x410d62
lea eax, [ebx + 0x1c]
push eax
call fcn.004124a0
mov edi, eax
test edi, edi
jne 0x410d62
push ebx
call fcn.00411cb0
mov edi, eax
test edi, edi
je 0x410d74
push esi
mov dword [esi + 0x44], 0
call fcn.00410b40
test edi, edi
jle 0x410d6d
movzx edi, di
or edi, 0x80070000
test edi, edi
je 0x410d74
mov dword [esi + 0x40], edi
cmp dword [esi + 0x38], 0
jne 0x410d8d
cmp dword [esi + 0x40], 0
jne 0x410d8d
cmp dword [esi + 0x3c], 0
jne 0x410d8d
mov dword [esi + 0x44], 0
xor eax, eax
cmp dword [esi + 0x44], eax
cmovne edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x412140
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edx, dword [esi + 8]
and edx, 0x3f
mov byte [edx + esi + 0x40], 0x80
inc edx
cmp edx, 0x38
jbe 0x412189
cmp edx, 0x40
je 0x41217b
mov ecx, 0x40
lea edi, [esi + 0x40]
sub ecx, edx
add edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi]
lea edx, [esi + 0x40]
push 1
lea ecx, [esi + 0x20]
call eax
xor edx, edx
mov eax, 0x38
sub eax, edx
push eax
lea eax, [esi + 0x40]
add eax, edx
push 0
push eax
call fcn.00448660
mov ecx, dword [esi + 8]
lea edx, [esi + 0x40]
mov eax, dword [esi + 0xc]
add esp, 0xc
shld eax, ecx, 3
shl ecx, 3
bswap eax
bswap ecx
mov dword [esi + 0x78], eax
mov eax, dword [esi]
mov dword [esi + 0x7c], ecx
lea ecx, [esi + 0x20]
push 1
call eax
mov edi, dword [ebp + 0xc]
lea edx, [esi + 0x20]
mov ebx, 4
nop
mov ecx, dword [edx + 4]
lea edi, [edi + 8]
mov eax, dword [edx]
lea edx, [edx + 8]
bswap eax
mov dword [edi - 8], eax
bswap ecx
mov dword [edi - 4], ecx
sub ebx, 1
jne 0x4121d0
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
pop edi
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebx
pop ebp
ret 8

Function at 0x412230
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [0x46e020]
mov dword [ecx], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
pop ebp
ret 4

Function at 0x412670
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.0044be67
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x41269d
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x415310
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e030
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x471d24]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push esi
call fcn.00416c60
cmp eax, 0xffffffff
je 0x415360
test al, 0x10
je 0x415360
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.00417990
test al, al
je 0x415380
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.00417730
push esi
lea ecx, [ebp - 0x18]
mov ebx, eax
call fcn.00412c70
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 0
call fcn.004138a0
test eax, eax
js 0x4153c6
mov edx, dword [ebp - 0x14]
lea ecx, [edx - 1]
cmp eax, ecx
jne 0x4153c6
cmp edx, 1
jne 0x4153ba
mov bl, dl
jmp 0x4154d7
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [ebp - 0x14], ecx
mov word [eax + ecx*2], dx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x24]
call fcn.00412ba0
push dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00415500
test al, al
jne 0x415458
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [eax + eax]
call edi
cmp eax, 0xb7
je 0x4154f8
lea ecx, [ebp - 0x18]
call fcn.004138a0
mov esi, eax
test esi, esi
js 0x4154f8
je 0x4154f8
mov ecx, dword [ebp - 0x18]
cmp esi, 1
jne 0x415432
movzx eax, word [ecx]
cmp eax, 0x5c
je 0x4154f8
cmp eax, 0x2f
je 0x4154f8
lea eax, [esi + 1]
cmp ebx, eax
jae 0x4154f8
cmp esi, dword [ebp - 0x14]
jae 0x41544e
xor eax, eax
mov dword [ebp - 0x14], esi
mov word [ecx + esi*2], ax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00415500
test al, al
je 0x4153f0
cmp esi, dword [ebp - 0x20]
jge 0x4154ca
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x24]
lea eax, [eax + esi*2]
add eax, 2
push eax
call fcn.00417450
test eax, eax
jns 0x41547b
mov esi, dword [ebp - 0x20]
jmp 0x41547e
inc esi
add esi, eax
push esi
push dword [ebp - 0x24]
lea ecx, [ebp - 0x18]
call fcn.004138d0
cmp byte [0x474b10], 0
jne 0x4154ba
push dword [ebp - 0x18]
lea eax, [ebp - 0x30]
push eax
call fcn.00413d60
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x30]
mov edi, eax
call fcn.00446e76
add esp, 4
test edi, edi
jmp 0x4154c3
push 0
push dword [ebp - 0x18]
call ebx
test eax, eax
je 0x4154f8
cmp esi, dword [ebp - 0x20]
jl 0x415463
mov bl, 1
push dword [ebp - 0x24]
call fcn.00446e76
add esp, 4
push dword [ebp - 0x18]
call fcn.00446e76
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor bl, bl
jmp 0x4154cc
Function at 0x415500
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e058
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x471d24]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x474b10], 0
mov edi, dword [ebp + 8]
jne 0x41556f
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.00413d60
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.00446e76
add esp, 4
test esi, esi
je 0x415592
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x415592
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4155b5
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x50]
call fcn.00416170
lea ecx, [ebp - 0x28]
call fcn.00412cd0
push 0
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0
call fcn.00416550
test al, al
jne 0x4155df
xor bl, bl
jmp 0x4155e8
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.00446e76
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x415610
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x474b10], 0
jne 0x415650
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00413d60
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00446e76
add esp, 4
test esi, esi
pop esi
je 0x415667
mov al, 1
mov esp, ebp
pop ebp
ret 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x415667
mov al, 1
mov esp, ebp
pop ebp
ret 4
xor al, al
mov esp, ebp
pop ebp
ret 4
Function at 0x415900
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00416c60
cmp eax, 0xffffffff
je 0x41592d
mov ecx, eax
and cl, 0x11
cmp cl, 1
jne 0x41592d
and eax, 0xfffffffe
push eax
push esi
call fcn.00416030
test al, al
je 0x415975
cmp byte [0x474b10], 0
push esi
jne 0x415962
lea eax, [ebp - 0xc]
push eax
call fcn.00413d60
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00446e76
add esp, 4
test esi, esi
je 0x415975
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x415975
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x415980
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e0c6
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0x471d24]
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]
xor ecx, ecx
mov eax, dword [edi]
mov dword [edi + 4], 0
mov word [eax], cx
cmp byte [0x474b10], cl
jne 0x415a2d
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], cl
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x415af8
cmp eax, 0x114
jae 0x415af8
lea eax, [ebp - 0x128]
mov byte [ebp - 0x14], 0
push eax
lea eax, [ebp - 0x36c]
push eax
call fcn.00413d30
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00412d60
push dword [ebp - 0x36c]
call fcn.00446e76
add esp, 4
mov al, 1
jmp 0x415afa
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call ebx
mov esi, eax
test esi, esi
je 0x415af8
cmp esi, 0x114
jae 0x415a7a
xor eax, eax
mov ecx, edi
mov word [ebp - 0x12c], ax
lea eax, [ebp - 0x354]
push eax
call fcn.00412e60
mov al, 1
jmp 0x415afa
lea ecx, [ebp - 0x360]
call fcn.00412cd0
mov dword [ebp - 4], 1
cmp esi, dword [ebp - 0x358]
jbe 0x415aa0
push esi
lea ecx, [ebp - 0x360]
call fcn.00413670
push dword [ebp - 0x360]
push esi
call ebx
mov ebx, eax
test ebx, ebx
je 0x415aea
push esi
lea ecx, [ebp - 0x360]
call fcn.00415c70
cmp dword [ebp - 0x35c], ebx
jne 0x415aea
lea eax, [esi - 1]
cmp eax, ebx
jne 0x415aea
lea eax, [ebp - 0x360]
mov ecx, edi
push eax
call fcn.00412d60
push dword [ebp - 0x360]
call fcn.00446e76
add esp, 4
mov al, 1
jmp 0x415afa
push dword [ebp - 0x360]
call fcn.00446e76
add esp, 4
xor al, al
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.00446c6e
mov esp, ebp
pop ebp
ret 4