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

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov cl, byte [eax + 0x102a55a3]
mov dl, byte [eax + 0x102a5574]
sub dl, cl
mov byte [ebp + eax - 0x24], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x30], eax
je 0x102a2f5e
jmp 0x102a2e7b
mov eax, dword [ebp - 0x34]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov ecx, dword [0x102f731c]
add ecx, 0xffffdbc9
mov dword [0x102f731c], ecx
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x38], eax
call fcn.102a249c
mov eax, dword [0x102f731c]
add eax, 0xffffe005
mov dword [0x102f7320], eax
mov eax, dword [ebp - 0x38]
mov word [eax], 0x5a4d
mov dword [eax + 0x3c], 0xd0
mov dword [eax + 0xd0], 0x4550
add eax, 0xffc00000
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 4], eax
xor eax, eax
mov dword [0x102f731c], 0x19c4
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x38]
mov dword [ecx + 0xc], edx
add edx, 0x18c4
mov esi, dword [ebp - 0x38]
cmp esi, 0
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], eax
je 0x102a2f55
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add esp, 0x50
pop esi
pop ebp
ret
lea eax, [ebp - 0x24]
mov dword [0x102f731c], 0x1372
mov dword [ebp - 0x44], eax
call fcn.102a3598
mov dword [esp], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
call fcn.102a22e1
cmp eax, 0
mov dword [ebp - 0x34], eax
jne 0x102a2ea7
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x102a30b2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x102f7324], 0
mov dword [0x102f7328], 0
mov dword [0x102f7334], 0
mov edi, dword [0x102f7320]
add edi, 0xfffff338
mov dword [0x102f731c], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
mov edx, eax
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
jne 0x102a3125
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x102f731c], 0x20d1
mov dword [0x102f7320], 0x7e7
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x102f7324], edx
mov ecx, dword [ebp - 0x1c]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x30]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x102f7328], edx
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x102f732c], cl
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x102f732c]
mov edx, dword [0x102f7328]
mov byte [edi + edx], cl
mov dword [0x102f7320], 0x2664
mov edx, dword [0x102f7324]
movzx edx, byte [edi + edx]
mov ebx, dword [0x102f7328]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x102f7334], ebx
mov dword [0x102f731c], 0x1fb1
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x2c]
mov ch, byte [edx + ebx]
mov byte [0x102f7339], ch
mov byte [0x102f733a], cl
xor ch, cl
mov byte [0x102f7338], ch
mov dword [0x102f731c], 0x251f
mov edx, dword [ebp - 0x18]
mov byte [edx + ebx], ch
mov dword [0x102f7320], 0x13d3
add ebx, 1
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x38], ebx
je 0x102a311d
mov eax, dword [0x102f7324]
mov ecx, dword [0x102f7328]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], edx
jmp 0x102a3125
Function at 0x102a3370
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
call fcn.10001066
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
je 0x102a33bd
jmp 0x102a34cc
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x1c], ecx
je 0x102a345f
jmp 0x102a344b
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], eax
jmp 0x102a34cc
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov dword [0x102f731c], 0x1f19
mov dword [esp], eax
mov dword [esp + 0x14], ecx
call fcn.102a2738
lea ecx, [0x102a2ced]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x4c], edx
mov dword [esp + 0x78], 0x125600
mov edx, dword [0x102f7308]
mov dword [esp + 0x84], edx
mov edx, dword [0x102f730c]
mov dword [esp + 0x40], edx
mov edx, dword [0x102f7310]
mov dword [esp + 0x5c], edx
mov edx, dword [0x102f7314]
mov dword [esp + 0x74], edx
mov edx, dword [0x102f7318]
mov dword [esp + 0x54], edx
mov dword [0x102f7320], 0x4bf
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0xc]
cmp word [eax], 0x5a4d
mov dword [esp + 0x20], eax
je 0x102a3393
mov eax, dword [esp + 0x20]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0xc], eax
jmp 0x102a3438
mov eax, dword [esp + 0x20]
mov dword [esp + 0x50], eax
mov dword [0x102f7320], 0xe73
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x7c], edx
call fcn.102a2d34
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x18], ecx
jne 0x102a33b0
lea eax, [esp + 0x38]
mov dword [0x102f7320], 0x341
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.102a2e63
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0x18], eax
jmp 0x102a33b0
mov eax, dword [esp + 0x24]
mov esp, ebp
pop ebp
ret
Function at 0x526510
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x90000]
push edi
or ebp, 0xffffffff
jmp 0x526532
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x526539
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x526528
mov eax, 1
add ebx, ebx
jne 0x52654b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x526540
jne 0x52655c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x526540
xor ecx, ecx
sub eax, 3
jb 0x526570
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5265e2
mov ebp, eax
add ebx, ebx
jne 0x52657b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x526588
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x5265ac
inc ecx
add ebx, ebx
jne 0x526598
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x52658d
jne 0x5265a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x52658d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5265cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5265bd
jmp 0x52652e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5265cc
add edi, ecx
jmp 0x52652e
pop esi
mov edi, esi
mov ecx, 0x37ef
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5265ea
cmp byte [edi], 0x13
jne 0x5265ea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5265ef
lea edi, [esi + 0x123000]
mov eax, dword [edi]
or eax, eax
je 0x526667
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12acf4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12adb8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x52661c
mov ecx, edi
jns 0x52664b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12adc0]
or eax, eax
je 0x526661
mov dword [ebx], eax
add ebx, 4
jmp 0x526639
call dword [esi + 0x12adbc]
mov ebp, dword [esi + 0x12adc4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x52669b
sub esp, 0xffffff80
jmp 0x46ef3e
Function at 0x4078a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46a340
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x493014]
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 esi, dword [edi + 4]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
test esi, esi
je 0x407a0a
cmp byte [esi + 0x54], 0
je 0x407a0a
add esi, 0x1c
xorps xmm0, xmm0
xor bl, bl
movlpd qword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x14], bl
test esi, esi
je 0x407926
mov eax, dword [esi]
test eax, eax
je 0x407923
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40791d
cmp eax, 0x80
je 0x40791d
xor bl, bl
jmp 0x407923
mov byte [esi + 4], 1
mov bl, 1
mov byte [ebp - 0x14], bl
mov dword [ebp - 4], 0
mov ecx, dword [edi + 4]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
call fcn.00403970
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4079e3
mov edx, dword [ebp - 0x38]
lea ecx, [ebp - 0x30]
push 0
call fcn.0041a1c0
add esp, 4
mov byte [ebp - 4], 1
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0x1c], 0x10
lea ecx, [ebp - 0x34]
push 0
push ecx
push dword [ebp - 0x20]
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x4079d1
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4079c7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407a28
push edx
push ecx
call fcn.00434f80
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x407a03
test bl, bl
je 0x407a03
mov eax, dword [esi]
test eax, eax
je 0x4079ff
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 4], 0
mov dword [ebp - 0x18], 0
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.00434f3f
mov esp, ebp
pop ebp
ret 4
call fcn.0044e859
int3
Function at 0x414000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46cc88
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x493014]
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 esi, dword [ebp + 8]
mov ecx, esi
call fcn.00403bb0
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x414043
xor al, al
jmp 0x4141cf
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00403860
call fcn.004038f0
mov dword [ebp - 4], 0
mov edx, esi
lea ecx, [ebp - 0x4c]
call fcn.00416060
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.00403aa0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x34]
mov ecx, esi
call fcn.004167b0
mov edx, 0x480144
lea ecx, [ebp - 0x34]
call fcn.00414a60
mov edx, 0x480144
lea ecx, [ebp - 0x34]
call fcn.00414ae0
lea eax, [ebp - 0x1c]
push eax
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x34]
call fcn.004174a0
add esp, 4
lea ecx, [ebp - 0x1c]
call fcn.00403880
mov byte [ebp - 0x4d], al
call fcn.00403bb0
mov dword [ebp - 0x54], eax
mov esi, dword [eax]
call fcn.00403ba0
mov dword [ebp - 0x58], eax
xor edi, edi
mov ecx, dword [eax]
mov ebx, ecx
sub ebx, esi
xor eax, eax
add ebx, 3
shr ebx, 2
cmp esi, ecx
cmova ebx, eax
test ebx, ebx
je 0x414100
nop
mov ecx, dword [esi]
call fcn.00432340
mov ecx, dword [esi]
call fcn.00432340
inc edi
lea esi, [esi + 4]
cmp edi, ebx
jne 0x4140e0
mov esi, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x58]
mov esi, dword [esi]
mov ecx, dword [ecx]
mov ebx, ecx
xor eax, eax
sub ebx, esi
mov dword [ebp - 0x54], eax
add ebx, 3
xor edx, edx
shr ebx, 2
cmp esi, ecx
cmova ebx, edx
test ebx, ebx
je 0x4141a5
nop
mov edi, dword [esi]
test edi, edi
je 0x414183
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, edi
je 0x414180
push edi
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x414180
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp eax, edi
jne 0x414154
mov byte [ebp - 0x4e], 0
jmp 0x414173
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne byte [ebp - 0x4e]
test eax, eax
je 0x414173
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x4e], 0
jne 0x41418f
mov eax, dword [ebp - 0x54]
cmp byte [ebp - 0x4d], 0
jne 0x41418f
mov byte [ebp - 0x4d], 0
jmp 0x414196
mov eax, dword [ebp - 0x54]
mov byte [ebp - 0x4d], 1
inc eax
add esi, 4
mov dword [ebp - 0x54], eax
cmp eax, ebx
jne 0x414120
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.004039b0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.004039b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00403890
mov al, byte [ebp - 0x4d]
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.00434f3f
mov esp, ebp
pop ebp
ret 4
Function at 0x414490
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46cd18
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x493014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.00402a80
call fcn.004088e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00404020
lea ecx, [ebp - 0x48]
push ecx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x88]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00403970
push eax
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x414510
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x4145b5
mov eax, dword [0x49395c]
test eax, eax
je 0x4145b3
mov al, byte [eax + 0x64]
push ecx
mov ecx, 0x493958
mov byte [ebp - 0x49], al
call fcn.00406750
mov eax, dword [0x49395c]
xor ebx, ebx
cmp byte [eax + 0x54], bl
je 0x414547
cmp dword [eax + 0x58], 4
jb 0x414547
cmp byte [eax + 0x5c], bl
setne bl
inc ebx
cmp byte [ebp - 0x49], 0
je 0x4145b3
test ebx, ebx
je 0x4145b3
lea ecx, [ebp - 0x30]
call fcn.00403aa0
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x30]
push 0x481470
push eax
call fcn.00414cf0
add esp, 0xc
lea eax, [ebp - 0x30]
mov ecx, 0x493958
push 0xf6
push str.RC::RCBusinessProcessMgr::IsMainUIProcessRunning
push str.d:jenkinsworkspacepc_qncleaner_buildqncleanerprojectslibbusiness_src_businessprocessmgr_rcbusinessprocessmgr.cpp
push eax
push 4
call fcn.00407590
cmp ebx, 1
jbe 0x4145a7
lea eax, [ebp - 0x30]
mov ecx, 0x493958
push eax
call fcn.004078a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x30]
call fcn.004039b0
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.004039b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00403910
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00434f3f
mov esp, ebp
pop ebp
ret
Function at 0x4153b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ce28
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x493014]
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 esi, ecx
call fcn.00403bb0
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x4153f0
xor al, al
jmp 0x415514
push esi
lea ecx, [ebp - 0x28]
call fcn.00403ac0
mov dword [ebp - 4], 0
mov edx, 4
lea ecx, [ebp - 0x28]
call fcn.004187c0
lea ecx, [ebp - 0x28]
call fcn.00403970
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x415501
lea ecx, [ebp - 0x40]
call fcn.00403aa0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0041f010
test al, al
je 0x415451
lea ecx, [ebp - 0x40]
call fcn.00403970
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004039b0
cmp esi, 0xffffffff
jne 0x415501
lea ecx, [ebp - 0x28]
call fcn.00403bb0
mov esi, dword [eax + 0x10]
cmp esi, 2
jbe 0x4154fd
lea ecx, [ebp - 0x28]
call fcn.00403bb0
mov ecx, eax
mov edx, dword [eax + 0x14]
cmp edx, 8
jb 0x41548e
mov ecx, dword [eax]
cmp word [ecx + esi*2 - 2], 0x5c
je 0x4154a5
cmp edx, 8
jb 0x41549d
mov eax, dword [eax]
cmp word [eax + esi*2 - 2], 0x2f
jne 0x4154fd
mov edx, 0x20
lea ecx, [ebp - 0x28]
call fcn.004187c0
lea ecx, [ebp - 0x28]
call fcn.00403970
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x415501
lea ecx, [ebp - 0x40]
call fcn.00403aa0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0041f010
test al, al
je 0x4154ec
lea ecx, [ebp - 0x40]
call fcn.00403970
push eax
call edi
mov esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004039b0
cmp esi, 0xffffffff
jne 0x415501
xor bl, bl
jmp 0x415503
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004039b0
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.00434f3f
mov esp, ebp
pop ebp
ret
Function at 0x415530
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ce28
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x493014]
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 esi, ecx
call fcn.00403bb0
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x415570
xor al, al
jmp 0x41569a
push esi
lea ecx, [ebp - 0x28]
call fcn.00403ac0
mov dword [ebp - 4], 0
mov edx, 4
lea ecx, [ebp - 0x28]
call fcn.004187c0
lea ecx, [ebp - 0x28]
call fcn.00403970
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4155de
lea ecx, [ebp - 0x40]
call fcn.00403aa0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0041f010
test al, al
je 0x4155cd
lea ecx, [ebp - 0x40]
call fcn.00403970
push eax
call edi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004039b0
cmp ebx, 0xffffffff
je 0x4155e7
test bl, 0x10
je 0x415687
lea ecx, [ebp - 0x28]
call fcn.00403bb0
mov esi, dword [eax + 0x10]
cmp esi, 2
jbe 0x415683
lea ecx, [ebp - 0x28]
call fcn.00403bb0
mov ecx, eax
mov edx, dword [eax + 0x14]
cmp edx, 8
jb 0x41560f
mov ecx, dword [eax]
cmp word [ecx + esi*2 - 2], 0x5c
je 0x415626
cmp edx, 8
jb 0x41561e
mov eax, dword [eax]
cmp word [eax + esi*2 - 2], 0x2f
jne 0x415683
mov edx, 0x20
lea ecx, [ebp - 0x28]
call fcn.004187c0
lea ecx, [ebp - 0x28]
call fcn.00403970
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41567e
lea ecx, [ebp - 0x40]
call fcn.00403aa0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0041f010
test al, al
je 0x41566d
lea ecx, [ebp - 0x40]
call fcn.00403970
push eax
call edi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004039b0
cmp ebx, 0xffffffff
je 0x415683
test bl, 0x10
je 0x415687
xor bl, bl
jmp 0x415689
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004039b0
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.00434f3f
mov esp, ebp
pop ebp
ret
Function at 0x4156c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ce60
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x493014]
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, ecx
call fcn.00403bb0
mov eax, dword [eax + 0x10]
test eax, eax
jne 0x4156ff
xor al, al
jmp 0x415789
push esi
lea ecx, [ebp - 0x28]
call fcn.00403ac0
mov dword [ebp - 4], 0
mov edx, 4
lea ecx, [ebp - 0x28]
call fcn.004187c0
lea ecx, [ebp - 0x28]
call fcn.00403970
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call esi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41576d
lea ecx, [ebp - 0x40]
call fcn.00403aa0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0041f010
test al, al
je 0x41575c
lea ecx, [ebp - 0x40]
call fcn.00403970
push eax
call esi
mov ebx, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.004039b0
cmp ebx, 0xffffffff
je 0x415776
test bl, 0x10
je 0x415776
mov bl, 1
jmp 0x415778
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004039b0
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.00434f3f
mov esp, ebp
pop ebp
ret
Function at 0x415db0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46cfb0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x493014]
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 ebx, ecx
call fcn.00403bb0
mov edi, eax
cmp dword [edi + 0x10], 0
jne 0x415df1
xor al, al
jmp 0x415f96
mov ecx, ebx
call fcn.004156c0
test al, al
je 0x415e03
mov al, 1
jmp 0x415f96
push 0
mov ecx, ebx
call fcn.00403970
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call esi
test eax, eax
jne 0x415e52
lea ecx, [ebp - 0x28]
call fcn.00403aa0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.0041f010
test al, al
je 0x415e43
push 0
lea ecx, [ebp - 0x28]
call fcn.00403970
push eax
call esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004039b0
mov ecx, ebx
call fcn.004156c0
test al, al
jne 0x415dfc
mov eax, dword [edi + 0x10]
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x415f35
nop dword [eax]
mov ecx, dword [edi + 0x14]
mov eax, edi
cmp ecx, 8
jb 0x415e7c
mov eax, dword [edi]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x415e9f
mov eax, edi
cmp ecx, 8
jb 0x415e95
mov eax, dword [edi]
cmp dx, word [eax + esi*2]
jne 0x415f2b
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, ebx
push eax
call fcn.00414f40
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00403bb0
mov eax, dword [eax + 0x10]
test eax, eax
je 0x415f1c
lea ecx, [ebp - 0x28]
call fcn.004153b0
test al, al
jne 0x415f1c
push 0
lea ecx, [ebp - 0x28]
call fcn.00403970
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x415f1c
lea ecx, [ebp - 0x40]
call fcn.00403aa0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.0041f010
test al, al
je 0x415f10
push 0
lea ecx, [ebp - 0x40]
call fcn.00403970
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.004039b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004039b0
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x415e70
mov ecx, ebx
call fcn.004153b0
test al, al
jne 0x415f8f
push 0
mov ecx, ebx
call fcn.00403970
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call esi
test eax, eax
jne 0x415f8f
lea ecx, [ebp - 0x40]
call fcn.00403aa0
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, ebx
call fcn.0041f010
test al, al
je 0x415f80
push 0
lea ecx, [ebp - 0x40]
call fcn.00403970
push eax
call esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004039b0
mov ecx, ebx
call fcn.004156c0
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.00434f3f
mov esp, ebp
pop ebp
ret