joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a640
Capabilities:
Check os version
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582318
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x6039b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
mov dword [ebp - 4], 0
mov esi, esp
mov dword [ebp - 0x134], esi
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00407a70
add eax, 0x10
mov ecx, reloc.WS2_32.dll_accept
mov dword [esi], eax
call fcn.00428020
mov dword [ebp - 0x134], esi
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00407a70
add eax, 0x10
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [esi], eax
call fcn.00428020
add esp, 4
lea eax, [ebp - 0x130]
push 0x11c
push 0
push eax
call fcn.00553bc0
add esp, 0xc
mov dword [ebp - 0x130], 0x11c
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
or edi, 0xffffffff
cmp dword [ebp - 0x12c], 0xa
je 0x42a749
call fcn.0042c660
test eax, eax
jne 0x42a749
call fcn.0042c5e0
test eax, eax
je 0x42a79e
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerFileExts.pdfUserChoice
lea ecx, [ebp - 0x134]
call fcn.00407740
push dword [ebp - 0x134]
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edx, dword [ebp - 0x134]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42a79e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x42a79e
push ecx
mov esi, esp
mov dword [ebp - 0x134], esi
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00407a70
add eax, 0x10
mov ecx, reloc.WS2_32.dll_accept
mov dword [esi], eax
call fcn.004285f0
mov dword [ebp - 0x134], esi
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00407a70
add eax, 0x10
mov ecx, reloc.OLEAUT32.dll_SysReAllocString
mov dword [esi], eax
call fcn.004285f0
add esp, 4
mov edx, str.MasterOFD
mov ecx, str..pdf
call fcn.0042a0c0
push 0
push 0
push 0x3000
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x42a7d1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055042c
mov esp, ebp
pop ebp
ret
Function at 0x42c5e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x6039b0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00553bc0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
jne 0x42c645
cmp dword [ebp - 0x118], 1
jne 0x42c645
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055042c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0055042c
mov esp, ebp
pop ebp
ret

Function at 0x42c660
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x6039b0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00553bc0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
jne 0x42c6cc
mov eax, dword [ebp - 0x118]
cmp eax, 2
je 0x42c6b9
cmp eax, 3
jne 0x42c6cc
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055042c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0055042c
mov esp, ebp
pop ebp
ret

Function at 0x42d3c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582900
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x6039b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.00553bc0
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [ebp + 8]
push 0x104
push eax
push 0x5dfa24
push dword [ebp + 0xc]
push str.masterpdf
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, 0x2a
cmp ax, word [ebp - 0x218]
je 0x42d46a
lea edx, [ebp - 0x218]
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x42d445
sub edx, esi
lea eax, [ebp - 0x218]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.00407ba0
mov edi, 1
jmp 0x42d46c
xor edi, edi
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp + 8]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42d48d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x42d4ac
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055042c
mov esp, ebp
pop ebp
ret
Function at 0x42f190
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x42f1c1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x42f1b0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8

Function at 0x4319a0
Capabilities:
Parse credit card information

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x431b66
cmp eax, 0x7c
je 0x431b66
cmp eax, 0x29
jne 0x4319d8
cmp dword [esi + 0x10], 0
jne 0x431b66
test dword [esi + 0x50], 0x10000000
je 0x431b6c
cmp eax, 0x2e
jne 0x431a2f
push 5
lea ecx, [esi + 0x24]
call fcn.00431d20
mov eax, dword [esi]
mov ecx, dword [esi + 8]
cmp eax, ecx
je 0x431a23
cmp byte [eax], 0x5c
jne 0x431a21
inc eax
cmp eax, ecx
je 0x431a21
mov ecx, dword [esi + 0x50]
test cl, 8
jne 0x431a0e
mov dl, byte [eax]
cmp dl, 0x28
je 0x431a1f
cmp dl, 0x29
je 0x431a1f
test cl, 0x10
jne 0x431a21
mov cl, byte [eax]
cmp cl, 0x7b
je 0x431a1f
cmp cl, 0x7d
jne 0x431a21
mov dword [esi], eax
inc dword [esi]
mov ecx, esi
call fcn.004309b0
jmp 0x431b51
cmp eax, 0x5c
jne 0x431a94
mov ecx, esi
call fcn.00431950
mov eax, dword [esi + 0x50]
and eax, 0x80
je 0x431a61
cmp byte [esi + 0x48], 0x62
jne 0x431a61
push 4
lea ecx, [esi + 0x24]
call fcn.00431d20
mov ecx, esi
call fcn.00431950
jmp 0x431b58
test eax, eax
je 0x431a88
cmp byte [esi + 0x48], 0x42
jne 0x431a88
push 4
lea ecx, [esi + 0x24]
call fcn.00431d20
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.00431950
jmp 0x431b58
mov ecx, esi
call fcn.00432bb0
jmp 0x431b51
cmp eax, 0x5b
jne 0x431ab7
mov ecx, esi
call fcn.00431950
mov ecx, esi
call fcn.00432b20
push 4
push 0x5d
mov ecx, esi
call fcn.00432ac0
jmp 0x431b51
cmp eax, 0x28
jne 0x431add
mov ecx, esi
call fcn.00431950
mov ecx, esi
call fcn.00432c70
push 5
push 0x29
mov ecx, esi
mov bl, al
call fcn.00432ac0
test bl, bl
je 0x431b58
jmp 0x431b51
cmp eax, 0x5e
jne 0x431af5
push 2
lea ecx, [esi + 0x24]
call fcn.00431d20
mov ecx, esi
call fcn.00431950
jmp 0x431b58
cmp eax, 0x24
jne 0x431b0d
push 3
lea ecx, [esi + 0x24]
call fcn.00431d20
mov ecx, esi
call fcn.00431950
jmp 0x431b58
cmp eax, 0x2a
je 0x431b81
cmp eax, 0x2b
je 0x431b81
cmp eax, 0x3f
je 0x431b81
cmp eax, 0x7b
je 0x431b81
cmp eax, 0x7d
jne 0x431b2f
test dword [esi + 0x50], 0x10000000
je 0x431b73
cmp eax, 0x5d
jne 0x431b3d
test dword [esi + 0x50], 0x10000000
je 0x431b7a
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.00432e60
mov ecx, esi
call fcn.00431950
mov ecx, esi
call fcn.00432d30
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x4319b3
pop esi
mov al, cl
pop ebx
pop ecx
ret
push 5
call fcn.0054e28f
push 6
call fcn.0054e28f
push 4
call fcn.0054e28f
push 0xa
call fcn.0054e28f
int3
Function at 0x436830
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5817d8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x6039b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x18], edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], 0
push eax
push 0
push 1
push dword [ebp + 8]
push ebx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
test eax, eax
je 0x436963
cmp dword [ebp - 0x14], 0
je 0x436963
call fcn.00402a00
mov ecx, eax
test ecx, ecx
jne 0x43689f
push 0x80004005
call fcn.00402a80
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x14]
test edx, edx
jns 0x4368c2
push 0x80070057
call fcn.00402a80
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x4368df
push edx
lea ecx, [ebp - 0x10]
call fcn.00407d60
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push eax
push esi
push 1
push dword [ebp + 8]
push ebx
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
push ecx
lea ecx, [ebp - 0x10]
test eax, eax
jne 0x43694f
call fcn.0040b640
call fcn.00402a00
mov ecx, eax
test ecx, ecx
jne 0x436912
push 0x80004005
call fcn.00402a80
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x436982
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0040b640
add esi, 0xfffffff0
mov ecx, esi
call fcn.00407a70
add eax, 0x10
jmp 0x43691d
call fcn.00402a00
mov ecx, eax
test ecx, ecx
jne 0x436978
push 0x80004005
call fcn.00402a80
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4369a0
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583130
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x6039b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
push 0
push 0
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push ecx
push 0
push edi
push dword [eax - 0xc]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x436a51
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x436a51
push eax
lea ecx, [ebp - 0x24]
call fcn.00413180
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push 0
push 0
push ecx
push dword [ebp - 0x24]
push edi
push dword [eax - 0xc]
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
mov ecx, esi
test eax, eax
jne 0x436a46
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00436c80
jmp 0x436a7a
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x24]
call fcn.00405b50
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x436aa4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4377b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x6039b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.00553bc0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.MasterPDFData_OFD
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00407740
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0055042c
mov esp, ebp
pop ebp
ret

Function at 0x437d60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x437dab
lea edx, [ebx + 8]
mov esi, 0x104
sub edi, edx
lea eax, [esi + 0x7ffffefa]
test eax, eax
je 0x437d9e
movzx eax, word [edi + edx]
test ax, ax
je 0x437d9e
mov word [edx], ax
add edx, 2
sub esi, 1
jne 0x437d80
test esi, esi
lea eax, [edx - 2]
cmovne eax, edx
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebx + 0x210]
mov esi, str.updump
mov edx, 0x104
sub esi, ecx
nop dword [eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x437dde
movzx eax, word [esi + ecx]
test ax, ax
je 0x437dde
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x437dc0
test edx, edx
lea eax, [ecx - 2]
pop edi
cmovne eax, ecx
xor ecx, ecx
pop esi
pop ebx
mov word [eax], cx
pop ebp
ret 8

Function at 0x437eb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov esi, edx
test edi, edi
je 0x437eed
test esi, esi
je 0x437eed
push 5
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x437eed
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x437ef5
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov dword [edi], eax
mov al, byte [esi + 4]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 0
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x437ee7
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x438100
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push ecx
mov edx, str.full.data
lea ecx, [ebp - 4]
call fcn.0041f4c0
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 4]
mov esi, eax
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x43813e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x438250
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583260
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6039b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
test edi, edi
je 0x43839f
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push edi
call ebx
test eax, eax
je 0x43839f
call fcn.00402a00
mov ecx, eax
test ecx, ecx
jne 0x4382a8
push 0x80004005
call fcn.00402a80
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
call fcn.0040b690
add eax, 8
push eax
call ebx
test eax, eax
je 0x4382dd
call fcn.0040b690
add eax, 8
lea ecx, [ebp - 0x14]
push eax
call fcn.00407c50
mov esi, dword [ebp - 0x14]
or ebx, 0xffffffff
cmp dword [esi - 0xc], 0
jle 0x43836d
push edi
lea ecx, [ebp - 0x10]
call fcn.00407740
mov byte [ebp - 4], 1
call fcn.0040b690
lea ecx, [eax + 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x438305
sub ecx, edx
sar ecx, 1
je 0x438333
push edi
call fcn.0040b690
add eax, 0x210
push eax
lea eax, [ebp - 0x10]
push str.__s__s_
push eax
call fcn.004063c0
add esp, 0x10
push 0
push 0
push dword [ebp - 0x10]
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x438366
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, 1
jmp 0x43836f
xor edi, edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x43838b
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x438a40
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583310
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x6039b0]
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
lea eax, [edi + 0x9c]
push eax
lea edx, [edi + 0x6c]
lea ecx, [ebp - 0x28]
call fcn.0043af20
push 0x60b078
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.0043aed0
add esp, 8
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x438ab1
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407960
push 0
push 0x80
push 3
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x2c], 8
push 0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push 1
push SysReAllocStringLen
push eax
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4c], eax
cmp eax, 0xffffffff
jne 0x438af8
xor bl, bl
jmp 0x438bbc
push 0
push eax
mov byte [ebp - 0x44], 1
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x438b9d
test bl, 0x1f
jne 0x438b9d
mov ecx, ebx
lea esi, [edi + 0xc4]
shr ecx, 5
push ecx
mov ecx, esi
call fcn.0043aa70
push 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x48], 0
push eax
push ebx
push dword [esi]
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x438b54
cmp ebx, dword [ebp - 0x48]
je 0x438b54
mov eax, dword [esi]
mov dword [esi + 4], eax
jmp 0x438b84
mov eax, dword [esi + 4]
xor edx, edx
sub eax, dword [esi]
sar eax, 5
test eax, eax
je 0x438b84
xor ecx, ecx
mov eax, dword [esi]
lea ecx, [ecx + 0x20]
inc edx
mov dword [ecx + eax - 0x20], edi
mov eax, dword [esi]
mov dword [ecx + eax - 0x1c], 0
mov eax, dword [esi + 4]
sub eax, dword [esi]
sar eax, 5
cmp edx, eax
jb 0x438b64
mov eax, dword [esi]
xor edx, edx
mov ecx, dword [ebp - 0x44]
movzx ecx, cl
mov eax, dword [eax + 0xc]
cmp eax, dword [edi + 0x124]
cmovne ecx, edx
mov dword [ebp - 0x44], ecx
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [edi + 0xc8]
sub ebx, dword [edi + 0xc4]
and ebx, 0xffffffe0
neg ebx
sbb bl, bl
and bl, byte [ebp - 0x44]
mov ecx, dword [ebp - 0x2c]
cmp ecx, 8
jb 0x438bd1
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.00407960
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.0055042c
mov esp, ebp
pop ebp
ret
Function at 0x438bf0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583348
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x6039b0]
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
mov eax, dword [esi + 0xc4]
cmp eax, dword [esi + 0xc8]
jne 0x438c32
xor al, al
jmp 0x438d08
lea eax, [esi + 0x9c]
push eax
lea edx, [esi + 0x6c]
lea ecx, [ebp - 0x40]
call fcn.0043af20
push 0x60b078
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0043aed0
mov eax, dword [ebp - 0x2c]
add esp, 8
cmp eax, 8
jb 0x438c72
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00407960
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x80
push 4
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x438cef
mov edi, dword [esi + 0xc8]
lea eax, [ebp - 0x44]
sub edi, dword [esi + 0xc4]
push 0
push eax
and edi, 0xffffffe0
mov dword [ebp - 0x44], 0
push edi
push dword [esi + 0xc4]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x438cd9
cmp edi, dword [ebp - 0x44]
je 0x438cef
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov bl, 1
jmp 0x438cf1
xor bl, bl
mov ecx, dword [ebp - 0x14]
cmp ecx, 8
jb 0x438d06
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00407960
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.0055042c
mov esp, ebp
pop ebp
ret
Function at 0x438e30
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58337e
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6039b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x60b078
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.0043af20
add esp, 4
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x60b090
mov edx, esi
lea ecx, [ebp - 0x40]
call fcn.0043af20
add esp, 4
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x438ed3
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x438eb6
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407960
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00415b00
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x438ee8
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00407960
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x438f0f
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00407960
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055042c
mov esp, ebp
pop ebp
ret
Function at 0x4392c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5833f8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6039b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx + 0xc4]
lea edx, [ecx + 0x6c]
mov dword [ecx + 0xc8], eax
lea eax, [ecx + 0x9c]
push eax
lea ecx, [ebp - 0x40]
call fcn.0043af20
push 0x60b078
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0043aed0
mov eax, dword [ebp - 0x2c]
add esp, 8
cmp eax, 8
jb 0x439335
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00407960
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x14]
cmp eax, 1
sete bl
cmp ecx, 8
jb 0x439362
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00407960
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.0055042c
mov esp, ebp
pop ebp
ret