joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426f20
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push esi
push edi
mov ecx, ebx
call fcn.00426d60
mov edi, eax
mov dword [ebp - 4], 0
test edi, edi
je 0x426f86
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x426f6f
lea esp, [esp]
mov eax, dword [ebp - 4]
mov ecx, eax
inc eax
mov dword [ebp - 4], eax
cmp ecx, 3
jge 0x426f6f
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call ebx
mov esi, eax
test esi, esi
je 0x426f50
push edi
call fcn.0047c501
add esp, 4
neg esi
pop edi
sbb eax, eax
pop esi
and eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call edi
mov esi, eax
test esi, esi
jne 0x426fb4
mov eax, dword [ebp - 4]
mov edx, eax
inc eax
mov dword [ebp - 4], eax
cmp edx, 3
jge 0x426fb4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call edi
mov esi, eax
test esi, esi
je 0x426f95
neg esi
pop edi
sbb eax, eax
pop esi
and eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push esi
push edi
mov edi, eax
mov ecx, edi
call fcn.00426d60
mov esi, eax
test esi, esi
je 0x427000
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
push esi
mov edi, ecx
call fcn.0047c501
add esp, 4
mov eax, edi
pop edi
pop esi
ret
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor edx, edx
cmp eax, 0xffffffff
setne dl
pop edi
pop esi
mov eax, edx
ret
Function at 0x427280
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
mov eax, dword [0x4bf6bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4c3c40]
push ebx
push esi
test eax, eax
je 0x4272bc
push 0x118
push eax
lea eax, [ebp - 0x13c]
push eax
call fcn.0047e770
add esp, 0xc
mov byte [ebp - 0x24], 0
jmp 0x427349
mov eax, dword [0x4c3c3c]
test eax, eax
jne 0x4272ee
lea ecx, [ebp - 0x4bc]
push ecx
mov dword [ebp - 0x4bc], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
cmp dword [ebp - 0x4ac], 2
sete al
inc eax
mov dword [0x4c3c3c], eax
cmp eax, 2
jne 0x427337
lea edx, [ebp - 0x3a8]
push edx
push 0x118
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ebx, [ebp - 0x3a8]
call fcn.00426e80
mov esi, eax
test esi, esi
je 0x427349
push 0x118
lea eax, [ebp - 0x13c]
push esi
push eax
call fcn.0047e770
push esi
mov byte [ebp - 0x24], 0
call fcn.0047c501
add esp, 0x10
jmp 0x427349
lea ecx, [ebp - 0x13c]
push ecx
push 0x118
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x13c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x427352
sub eax, edx
test eax, eax
jle 0x427371
lea ecx, [ebp - 0x13c]
cmp byte [ecx + eax - 1], 0x5c
jne 0x427371
dec eax
test eax, eax
jg 0x427365
mov byte [ebp + eax - 0x13c], 0
lea esp, [esp]
lea edx, [ebp - 0x13c]
push edx
push str._s_sqlite_
push edi
call fcn.0047ca58
mov esi, edi
add esp, 0xc
lea ecx, [esi + 1]
lea ebx, [ebx]
mov al, byte [esi]
inc esi
test al, al
jne 0x4273a0
sub esi, ecx
lea eax, [edi + esi]
push eax
mov ecx, 0xf
call fcn.0043da60
add esp, 4
mov ecx, 3
nop
movzx eax, byte [edi + esi]
xor edx, edx
mov ebx, 0x3e
div ebx
movzx eax, byte [edi + esi + 1]
add esi, 5
movzx edx, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 5], dl
xor edx, edx
div ebx
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 4], al
movzx eax, byte [edi + esi - 3]
xor edx, edx
div ebx
movzx eax, byte [edi + esi - 2]
movzx edx, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 3], dl
xor edx, edx
div ebx
movzx eax, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 2], al
movzx eax, byte [edi + esi - 1]
xor edx, edx
div ebx
dec ecx
movzx edx, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 1], dl
jne 0x4273c0
mov byte [edi + esi], cl
mov ecx, edi
call fcn.00426d60
mov esi, eax
test esi, esi
je 0x427458
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
push esi
setne bl
call fcn.0047c501
add esp, 4
jmp 0x427467
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
test ebx, ebx
jne 0x427380
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0047bd9c
mov esp, ebp
pop ebp
ret
Function at 0x4277f0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4bf6bc]
xor eax, ebp
mov dword [ebp - 4], eax
test edi, edi
jne 0x427817
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047bd9c
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4c3c3c]
test eax, eax
jne 0x427849
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
cmp dword [ebp - 0x108], 2
sete al
inc eax
mov dword [0x4c3c3c], eax
cmp eax, 2
je 0x427863
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x427853
sub eax, edx
cmp eax, 0x104
ja 0x427807
push ebx
push esi
mov ecx, edi
call fcn.00426d60
mov esi, eax
test esi, esi
je 0x427886
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
mov ebx, eax
call fcn.0047c501
add esp, 4
jmp 0x42788f
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
xor eax, eax
cmp ebx, 0xffffffff
je 0x42789f
and bl, 0x10
cmp bl, 0x10
sete al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047bd9c
mov esp, ebp
pop ebp
ret

Function at 0x427d00
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x4c3c48], 0
push esi
push edi
mov edi, eax
jne 0x427d3b
mov esi, 1
add dword [0x4c3c44], esi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
sub dword [0x4c3c44], esi
mov dword [0x4c38a4], eax
cmp eax, 0xffffffff
jne 0x427d33
pop edi
xor eax, eax
pop esi
ret
mov dword [0x4c3c48], esi
jmp 0x427d40
mov eax, dword [0x4c38a4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
jle 0x427d8c
test esi, esi
jne 0x427dce
push 0xc
call fcn.0047e6d7
mov esi, eax
add esp, 4
test esi, esi
je 0x427dce
mov eax, dword [0x4ad1d4]
mov dword [esi], eax
mov ecx, dword [0x4ad1d8]
mov eax, dword [0x4c38a4]
mov dword [esi + 4], ecx
mov edx, dword [0x4ad1dc]
push esi
push eax
mov dword [esi + 8], edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
mov eax, esi
pop esi
ret
test esi, esi
je 0x427dce
test edi, edi
jns 0x427dce
mov eax, 0x4ad1d4
mov edx, esi
mov ecx, 0xc
sub edx, eax
mov edi, dword [edx + eax]
cmp edi, dword [eax]
jne 0x427dce
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x427da2
push esi
call fcn.0047c501
mov ecx, dword [0x4c38a4]
add esp, 4
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor esi, esi
pop edi
mov eax, esi
pop esi
ret
Function at 0x427de0
Capabilities:
Allocate thread local storage
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4c3c48], 0
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, 1
jne 0x427e1a
add dword [0x4c3c44], edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
sub dword [0x4c3c44], edi
mov dword [0x4c38a4], eax
cmp eax, 0xffffffff
je 0x427e2a
mov dword [0x4c3c48], edi
jmp 0x427e1f
mov eax, dword [0x4c38a4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x427e2f
mov eax, 0x4ae50c
cmp byte [eax + 4], 0
je 0x427f10
test ebx, ebx
js 0x427f10
mov edx, dword [esi + 0x68]
xor ecx, ecx
test edx, edx
jle 0x427e68
mov eax, dword [esi + 0x6c]
lea ecx, [ecx]
cmp dword [eax], ebx
jne 0x427e5f
mov ebx, dword [ebp + 0xc]
cmp dword [eax + 4], ebx
je 0x427e87
mov ebx, dword [ebp + 8]
add ecx, edi
add eax, 0x10
cmp ecx, edx
jl 0x427e50
mov ecx, dword [esi + 0x6c]
lea eax, [edx + 1]
shl eax, 4
cmp dword [0x4c3c38], 0
je 0x427ea5
cmp dword [0x4c3c44], 0
jle 0x427ea5
xor edi, edi
jmp 0x427ed5
cmp byte [eax + 8], 0
jne 0x427e9c
cmp byte [ebp + 0x10], 0
jne 0x427e9c
xor ecx, ecx
pop edi
mov byte [eax + 8], cl
pop ebx
pop ebp
ret
mov ecx, edi
pop edi
mov byte [eax + 8], cl
pop ebx
pop ebp
ret
test ecx, ecx
jne 0x427eb5
push edi
push eax
call fcn.00418480
add esp, 8
jmp 0x427ecf
push eax
push ecx
call fcn.0047e894
add esp, 8
test eax, eax
jne 0x427ecf
add dword [0x4c3c44], edi
mov dword [0x4c3c38], edi
mov edi, eax
test edi, edi
jne 0x427ee5
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x427ee5
push eax
call fcn.0047c501
add esp, 4
mov edx, edi
mov dword [esi + 0x6c], edi
test edx, edx
je 0x427f10
mov ecx, dword [esi + 0x68]
mov eax, ecx
shl eax, 4
add eax, edx
mov dl, byte [ebp + 0x10]
inc ecx
mov dword [esi + 0x68], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x14]
mov dword [eax], ebx
mov byte [eax + 8], dl
mov dword [eax + 0xc], ecx
pop edi
pop ebx
pop ebp
ret
Function at 0x428380
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
push edi
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [eax], ecx
jle 0x428473
push ebx
push esi
lea esp, [esp]
cmp ecx, 2
jge 0x4283a8
xor ecx, 1
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4283f5
mov bl, byte [edx]
mov eax, dword [eax + 4]
lea esi, [ecx + ecx*2]
mov esi, dword [eax + esi*8]
test bl, bl
je 0x4283dd
mov edi, edi
movzx eax, byte [esi]
movzx ebx, bl
mov bl, byte [ebx + 0x4ae828]
cmp bl, byte [eax + 0x4ae828]
jne 0x4283dd
mov bl, byte [edx + 1]
inc edx
inc esi
test bl, bl
jne 0x4283c0
movzx edx, byte [edx]
movzx eax, byte [esi]
movzx eax, byte [eax + 0x4ae828]
movzx edx, byte [edx + 0x4ae828]
sub edx, eax
jne 0x428454
mov edi, dword [ebp + 0xc]
mov eax, edi
lea esi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x428400
sub eax, esi
lea ebx, [eax + 1]
lea eax, [ecx + ecx*2]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov esi, dword [edx + eax*8 + 0x14]
add esi, 4
je 0x42846f
cmp dword [esi + 0x18], 0
je 0x42846f
cmp byte [esi], 3
mov eax, 0x4234b0
je 0x428433
mov eax, 0x423520
push ebx
push edi
call eax
mov edx, dword [esi + 0x14]
dec edx
push ebx
and edx, eax
push edi
mov ecx, esi
call fcn.00423720
add esp, 0x10
test eax, eax
je 0x42846f
mov edi, dword [eax + 8]
test edi, edi
jne 0x428466
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, dword [eax]
jl 0x4283a0
pop esi
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
xor edi, edi
jmp 0x428454
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x428500
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 8]
xor eax, eax
push edi
xor edi, edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], edi
cmp dword [edx], eax
jle 0x4285f5
push ebx
push esi
mov edi, edi
mov ecx, edi
cmp edi, 2
jge 0x42852a
xor ecx, 1
mov edx, dword [edx + 4]
lea ecx, [ecx + ecx*2]
mov ebx, dword [edx + ecx*8 + 0x14]
lea ecx, [edx + ecx*8]
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x428588
mov esi, dword [ecx]
mov cl, byte [edx]
test cl, cl
je 0x428570
jmp 0x428550
movzx eax, byte [esi]
movzx ecx, cl
mov cl, byte [ecx + 0x4ae828]
cmp cl, byte [eax + 0x4ae828]
jne 0x42856d
mov cl, byte [edx + 1]
inc edx
inc esi
test cl, cl
jne 0x428550
mov eax, dword [ebp - 4]
movzx edx, byte [edx]
movzx ecx, byte [esi]
movzx ecx, byte [ecx + 0x4ae828]
movzx edx, byte [edx + 0x4ae828]
sub edx, ecx
jne 0x4285e4
test ebx, ebx
je 0x4285e0
mov eax, dword [ebp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x428592
sub eax, edx
lea esi, [ebx + 0x20]
lea edi, [eax + 1]
test esi, esi
je 0x428601
cmp dword [esi + 0x18], 0
je 0x428601
cmp byte [esi], 3
mov eax, 0x4234b0
je 0x4285ba
mov eax, 0x423520
mov ebx, dword [ebp + 0xc]
push edi
push ebx
call eax
mov edx, dword [esi + 0x14]
dec edx
push edi
and edx, eax
push ebx
mov ecx, esi
call fcn.00423720
mov edi, dword [ebp - 8]
add esp, 0x10
test eax, eax
je 0x4285fa
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4285f3
mov edx, dword [ebp + 8]
inc edi
mov dword [ebp - 8], edi
cmp edi, dword [edx]
jl 0x428520
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4285e4
mov edi, dword [ebp - 8]
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4285e4
Function at 0x42f830
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp edi, 2
jge 0x42f842
mov eax, 0x17
mov esp, ebp
pop ebp
ret
push ebx
push esi
mov esi, dword [ebp + 8]
movzx ecx, byte [esi]
movzx eax, byte [esi + edi - 1]
movzx eax, byte [eax + 0x4ae828]
movzx edx, byte [ecx + 0x4ae828]
add edx, edx
lea eax, [eax + eax*2]
add edx, edx
xor eax, edx
xor eax, edi
cdq
mov ecx, 0x7f
idiv ecx
movzx ebx, byte [edx + str.Pk_]
dec ebx
mov dword [ebp - 4], ebx
js 0x42f8f1
lea ecx, [ecx]
movzx edx, byte [ebx + 0x4ae338]
cmp edx, edi
jne 0x42f8e4
movzx eax, word [ebx*2 + 0x4ae3b0]
add eax, str.ABORTABLEFTEMPORARYADDATABASELECTHENDEFAULTRANSACTIONATURALTERAISEACHECKEYAFTEREFERENCESCAPELSEXCEPTRIGGEREGEXPLAINITIALLYANALYZEXCLUSIVEXISTSTATEMENTANDEFERRABLEATTACHAVINGLOBEFOREIGNOREINDEXAUTOINCREMENTBEGINNERENAMEBETWEENOTNULLIKEBYCASCADEFERREDELETECASECASTCOLLATECOLUMNCOMMITCONFLICTCONSTRAINTERSECTCREATECROSSCURRENT_DATECURRENT_TIMESTAMPLANDESCDETACHDISTINCTDROPRAGMATCHFAILIMITFROMFULLGROUPDATEIFIMMEDIATEINSERTINSTEADINTOFFSETISNULLJOINORDEREPLACEOUTERESTRICTPRIMARYQUERYRIGHTROLLBACKROWHENUNIONUNIQUEUSINGVACUUMVALUESVIEWHERE
mov ecx, edi
test edi, edi
jle 0x42f8c4
mov edi, edi
mov dl, byte [eax]
dec ecx
test dl, dl
je 0x42f8c5
movzx ebx, byte [esi]
movzx edx, dl
mov dl, byte [edx + 0x4ae828]
cmp dl, byte [ebx + 0x4ae828]
mov ebx, dword [ebp - 4]
jne 0x42f8c5
inc eax
inc esi
test ecx, ecx
jg 0x42f8a0
dec ecx
test ecx, ecx
js 0x42f8fc
movzx ecx, byte [esi]
movzx eax, byte [eax]
movzx edx, byte [ecx + 0x4ae828]
movzx ecx, byte [eax + 0x4ae828]
sub ecx, edx
je 0x42f8fc
mov esi, dword [ebp + 8]
movzx ebx, byte [ebx + 0x4ae2c0]
dec ebx
mov dword [ebp - 4], ebx
jns 0x42f880
pop esi
mov eax, 0x17
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, byte [ebx + 0x4ae498]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x438770
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, eax
cmp byte [esi + 0xb], 0
push edi
jne 0x4388a3
mov eax, dword [esi + 0x74]
xor ebx, ebx
cmp eax, ebx
je 0x4387a2
nop
mov edi, dword [eax + 0x18]
push eax
call fcn.0047c501
add esp, 4
mov eax, edi
cmp edi, ebx
jne 0x438790
mov eax, dword [esi + 0xc0]
mov dword [esi + 0x68], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0xbc], ebx
cmp eax, ebx
je 0x4387c7
push eax
call fcn.0047c501
add esp, 4
mov cl, byte [esi + 0xa]
mov dword [esi + 0x34], ebx
mov dword [esi + 0xc0], ebx
cmp cl, 2
jb 0x438886
cmp byte [esi + 0x11], bl
je 0x4388aa
mov edi, dword [esi + 0x74]
cmp edi, ebx
je 0x438869
lea esp, [esp]
cmp byte [edi + 0x26], 0
je 0x438862
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x2c]
add ecx, eax
lea ebx, [ecx + edi + 0x38]
mov ecx, dword [ebx]
test ecx, ecx
je 0x438816
push eax
push ecx
lea edx, [edi + 0x38]
push edx
call fcn.004806e0
add esp, 0xc
mov eax, dword [ebx]
test eax, eax
je 0x438825
push eax
call fcn.0047c501
add esp, 4
mov eax, dword [ebx + 4]
test eax, eax
je 0x438835
push eax
call fcn.0047c501
add esp, 4
xor ecx, ecx
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov byte [edi + 0x26], cl
mov word [edi + 0x24], cx
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x20], ecx
mov eax, dword [esi + 0xb0]
cmp eax, ecx
je 0x438860
mov ecx, dword [esi + 0x30]
push ecx
lea edx, [edi + 0x38]
push edx
call eax
add esp, 8
xor ebx, ebx
mov edi, dword [edi + 0x18]
cmp edi, ebx
jne 0x4387f0
mov eax, dword [esi + 0x18]
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x78], ebx
mov ebx, esi
mov dword [esi + 0x14], eax
call fcn.00439930
mov byte [esi + 5], 0
mov byte [esi + 0xa], 1
xor ebx, ebx
mov eax, dword [esi + 0x58]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push ebx
push eax
call edx
add esp, 8
mov byte [esi + 0xa], 0
mov dword [esi + 0x14], 0xffffffff
mov dword [esi + 0x3c], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi + 0xf], bl
je 0x438915
cmp byte [esi], bl
je 0x438915
mov al, byte [esi + 0xb]
test al, al
je 0x4388cc
cmp al, 0xd
je 0x4388cc
cmp cl, 4
jb 0x438886
mov eax, esi
call fcn.00439010
jmp 0x438886
cmp cl, 2
jne 0x4388e5
call fcn.00438e90
mov ebx, eax
mov eax, esi
call fcn.00438930
test ebx, ebx
jne 0x4388ee
jmp 0x4388ec
mov eax, esi
call fcn.00439010
mov ebx, eax
mov dword [esi + 0x14], 0xffffffff
cmp ebx, 0xd
je 0x43890d
cmp ebx, 0xa
je 0x43890d
cmp ebx, 0xb
je 0x43890d
cmp ebx, 0xf
jne 0x438884
mov byte [esi + 0xb], bl
jmp 0x438884
mov eax, esi
call fcn.00438930
mov dword [esi + 0x14], 0xffffffff
jmp 0x438886
Function at 0x439d60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, eax
cmp byte [edi + 2], 0
je 0x439dcb
mov ebx, dword [edi + 0x50]
mov ecx, ebx
call fcn.00426d60
mov esi, eax
test esi, esi
je 0x439d95
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
push esi
setne bl
call fcn.0047c501
add esp, 4
jmp 0x439da4
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
test ebx, ebx
je 0x439dcb
mov eax, dword [edi + 0x58]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x34]
push eax
call edx
add esp, 4
test eax, eax
jne 0x439dcb
call fcn.004397a0
test eax, eax
jne 0x439dd1
mov eax, dword [edi + 0x50]
call fcn.00426f20
xor eax, eax
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x444f10
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x444f20
xor eax, eax
pop edi
pop ebp
ret
cmp dword [0x4c3c38], 0
push esi
je 0x444f33
cmp dword [0x4c3c44], 0
jg 0x444f53
push 0x44
call fcn.0047e6d7
mov esi, eax
add esp, 4
test esi, esi
jne 0x444f59
mov eax, 1
add dword [0x4c3c44], eax
mov dword [0x4c3c38], eax
pop esi
xor eax, eax
pop edi
pop ebp
ret
mov al, byte [edi + 5]
mov byte [esi + 5], al
mov ecx, dword [edi]
push ecx
call fcn.00444bc0
mov dword [esi], eax
mov edx, dword [edi + 0xc]
push edx
call fcn.00444ce0
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x10]
push eax
call fcn.00444aa0
mov dword [esi + 0x10], eax
mov ecx, dword [edi + 0x14]
push ecx
call fcn.00444bc0
mov dword [esi + 0x14], eax
mov edx, dword [edi + 0x18]
push edx
call fcn.00444aa0
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
push eax
call fcn.00444bc0
mov dword [esi + 0x1c], eax
movzx ecx, byte [edi + 4]
mov byte [esi + 4], cl
mov edx, dword [edi + 0x20]
push edx
call fcn.00444f10
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x28]
push eax
call fcn.00444aa0
mov dword [esi + 0x28], eax
mov ecx, dword [edi + 0x2c]
push ecx
call fcn.00444aa0
mov dword [esi + 0x2c], eax
add esp, 0x24
or eax, 0xffffffff
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dl, byte [edi + 6]
mov byte [esi + 6], dl
movzx ecx, byte [edi + 7]
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov byte [esi + 7], cl
mov word [esi + 8], 0
mov dword [esi + 0x24], 0
mov eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x45ebe0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a1cd3
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x4bf6bc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [esi + 0x10], ebx
je 0x45edc2
cmp dword [esi + 0x14], 8
jb 0x45ec22
mov eax, dword [esi]
jmp 0x45ec24
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
sete al
cmp al, bl
je 0x45edc2
mov ecx, esi
call fcn.0045d9e0
test al, al
je 0x45ec4b
xor al, al
jmp 0x45edc4
lea eax, [ebp - 0x104]
push eax
call fcn.004059f0
mov dword [ebp - 4], ebx
push esi
push ecx
lea ecx, [ebp - 0x104]
push str.DelFile._name:
push ecx
call fcn.004090a0
add esp, 0xc
push eax
call fcn.00410900
add esp, 8
push 0x15
mov edi, 0xf
push str.CFileUtility::DelFile
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
call fcn.00407f60
mov byte [ebp - 4], 1
push edi
push str.FileUtility.cpp
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
call fcn.00407f60
mov byte [ebp - 4], 2
lea edx, [ebp - 0x68]
push edx
lea eax, [ebp - 0x104]
push eax
call fcn.00405af0
mov byte [ebp - 4], 3
push eax
push 0x392
push 3
call fcn.004061f0
push eax
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x4c]
call fcn.00462280
mov byte [ebp - 4], 2
cmp dword [ebp - 0x54], 8
jb 0x45ecf8
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.0047bd91
add esp, 4
xor edx, edx
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], dx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x38], 0x10
jb 0x45ed1e
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0047bd91
add esp, 4
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
mov byte [ebp - 4], bl
cmp dword [ebp - 0x1c], 0x10
jb 0x45ed3c
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0047bd91
add esp, 4
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x104]
call fcn.004039b0
mov edi, 8
cmp dword [esi + 0x14], edi
jb 0x45ed65
mov eax, dword [esi]
jmp 0x45ed67
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x45edc2
cmp byte [ebp + 8], bl
je 0x45edc2
cmp dword [esi + 0x14], edi
jb 0x45ed80
mov eax, dword [esi]
jmp 0x45ed82
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x45eda3
and eax, 0xfffffffe
cmp dword [esi + 0x14], edi
jb 0x45ed99
mov ecx, dword [esi]
jmp 0x45ed9b
mov ecx, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], edi
jb 0x45edac
mov eax, dword [esi]
jmp 0x45edae
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x45edc2
mov ecx, esi
call fcn.0045f270
jmp 0x45edc4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047bd9c
mov esp, ebp
pop ebp
ret