joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a8a0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x45a8d3
push esi
call fcn.00468c60
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45a8cc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x45a959
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x45a942
mov eax, dword [esi + 8]
test eax, eax
je 0x45a8f7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45a93e
cmp eax, 2
je 0x45a942
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45a8ea
cmp eax, 3
je 0x45a91d
cmp eax, 1
jne 0x45a8ea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45a8ea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45a8ea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0045a980
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x45a968
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0045a980
add esp, 4
pop esi
ret

Function at 0x45b200
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x45b221
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x45b221
mov eax, dword [eax + 0x44]
test eax, eax
je 0x45b221
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x475f50
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x475ff3
test eax, eax
jbe 0x475ff3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x475ff3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x475f9e
xor esi, esi
jmp 0x475fa4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x475fcf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00477f90
add esi, eax
push esi
mov ebx, esi
call fcn.00477f90
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x475fb0
pop ebp
test edi, edi
pop edi
jne 0x475ff3
test ebx, ebx
je 0x475ff3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0047a8c0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x476155
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x47626d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x47626d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0048b78c
mov esi, eax
test esi, esi
je 0x47626d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x47626d
mov ecx, esi
call fcn.004760e0
cmp edi, eax
jge 0x47626d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4761f3
mov dword [esp + 0x34], 1
jmp 0x47624e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x47626d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004756a0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x48c130
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48c168
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0048a1e4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048a1bc
jmp 0x48c174
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48d823
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48d865
call fcn.0049331a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48d865
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48d85c
xor eax, eax
jmp 0x48d86d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048d873
pop edi
pop esi
pop ebx
ret 4
Function at 0x49384a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x493878
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x493896
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004937b0
jmp 0x493896
mov eax, dword [esi + 0x14]
test eax, eax
je 0x493896
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004937b0
test edi, edi
mov eax, edi
jne 0x493880
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x7b4b00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x357000]
push edi
jmp 0x7b4b1a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x7b4b21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b4b10
mov eax, 1
add ebx, ebx
jne 0x7b4b33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x7b4b44
jne 0x7b4b63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b4b63
dec eax
add ebx, ebx
jne 0x7b4b50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x7b4b28
add ebx, ebx
jne 0x7b4b5f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x7b4bb5
xor ecx, ecx
sub eax, 3
jb 0x7b4b7b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7b4bea
sar eax, 1
mov ebp, eax
jmp 0x7b4b86
add ebx, ebx
jne 0x7b4b86
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b4b54
inc ecx
add ebx, ebx
jne 0x7b4b94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x7b4b54
add ebx, ebx
jne 0x7b4ba1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x7b4b96
jne 0x7b4bb2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x7b4b96
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7b4bd4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7b4bc6
jmp 0x7b4b16
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7b4bd4
add edi, ecx
jmp 0x7b4b16
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7b4bf2
cmp byte [edi], 0x11
jne 0x7b4bf2
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 0x7b4bf7
lea edi, [esi + 0x3ad000]
mov eax, dword [edi]
or eax, eax
je 0x7b4c6f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x682ec0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x68303c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x7b4c24
mov ecx, edi
jns 0x7b4c53
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 + 0x683040]
or eax, eax
je 0x7b4c69
mov dword [ebx], eax
add ebx, 4
jmp 0x7b4c41
call dword [esi + 0x683050]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x7b4ca0
cmp al, 0xef
ja 0x7b4c93
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x7b4c75
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x7b4c82
mov ebp, dword [esi + 0x683044]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x7b4cd4
sub esp, 0xffffff80
jmp 0x420577
Function at 0x4013c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
movzx edx, word [eax + 0x14]
lea eax, [ecx + edx + 0x18]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x4013f6
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
add edx, 0x28
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
movzx edx, word [ecx + 6]
cmp dword [ebp - 8], edx
jge 0x40146e
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x3c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push eax
call fcn.00401160
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp - 4]
add edx, dword [eax + 0x10]
cmp dword [ebp + 0xc], edx
jb 0x401436
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
cmp edx, dword [ebp - 0xc]
jbe 0x40143d
mov eax, 0xc1
jmp 0x401470
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0xc]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004480a0
add esp, 0xc
jmp 0x4013e4
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401fb0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
jmp 0x401fc8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jae 0x40201a
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x401fe9
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jae 0x40200b
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp - 8]
and ecx, 1
xor edx, edx
sub edx, ecx
and edx, 0xedb88320
xor eax, edx
mov dword [ebp - 8], eax
jmp 0x401fe0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax*4 + 0x4668c0], ecx
jmp 0x401fbf
mov dword [ebp - 4], 0x100
jmp 0x40202c
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x800
jae 0x402064
mov eax, dword [ebp - 4]
mov ecx, dword [eax*4 + 0x4664c0]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
and edx, 0xff
mov eax, dword [ebp - 0x10]
shr eax, 8
xor eax, dword [edx*4 + 0x4668c0]
mov ecx, dword [ebp - 4]
mov dword [ecx*4 + 0x4668c0], eax
jmp 0x402023
mov dword [0x4668b0], 0x4020b0
mov dword [0x4668ac], 0x4020b0
mov esp, ebp
pop ebp
ret
Function at 0x404830
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e8
mov eax, dword [0x463064]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx eax, ax
cmp eax, 6
je 0x40488b
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x2e8], eax
cmp dword [ebp - 0x2e8], 0
je 0x40488b
push 0xc00
call dword [ebp - 0x2e8]
test eax, eax
je 0x40488b
jmp 0x4049f3
push 0x106
lea ecx, [ebp - 0x2d4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0x2e0], eax
cmp dword [ebp - 0x2e0], 0
je 0x4048b8
cmp dword [ebp - 0x2e0], 0x104
jbe 0x4048bd
jmp 0x4049f3
mov edx, dword [ebp - 0x2e0]
movzx eax, word [ebp + edx*2 - 0x2d6]
cmp eax, 0x5c
je 0x4048f2
mov ecx, 0x5c
mov edx, dword [ebp - 0x2e0]
mov word [ebp + edx*2 - 0x2d4], cx
mov eax, dword [ebp - 0x2e0]
add eax, 1
mov dword [ebp - 0x2e0], eax
mov ecx, dword [str.userenv]
mov dword [ebp - 0x2e4], ecx
mov edx, dword [ebp - 0x2e4]
movsx eax, byte [edx]
test eax, eax
je 0x4049f3
mov ecx, dword [ebp - 0x2e0]
lea edx, [ebp + ecx*2 - 0x2d4]
mov dword [ebp - 0x2dc], edx
mov eax, dword [ebp - 0x2e4]
mov cl, byte [eax]
mov byte [ebp - 0x2d5], cl
mov edx, dword [ebp - 0x2e4]
add edx, 1
mov dword [ebp - 0x2e4], edx
movsx eax, byte [ebp - 0x2d5]
test eax, eax
jne 0x40494c
jmp 0x40496e
movzx cx, byte [ebp - 0x2d5]
mov edx, dword [ebp - 0x2dc]
mov word [edx], cx
mov eax, dword [ebp - 0x2dc]
add eax, 2
mov dword [ebp - 0x2dc], eax
jmp 0x404922
mov ecx, 2
imul edx, ecx, 0
mov eax, 0x2e
mov ecx, dword [ebp - 0x2dc]
mov word [ecx + edx], ax
mov edx, 2
shl edx, 0
mov eax, 0x64
mov ecx, dword [ebp - 0x2dc]
mov word [ecx + edx], ax
mov edx, 2
shl edx, 1
mov eax, 0x6c
mov ecx, dword [ebp - 0x2dc]
mov word [ecx + edx], ax
mov edx, 2
imul eax, edx, 3
mov ecx, 0x6c
mov edx, dword [ebp - 0x2dc]
mov word [edx + eax], cx
mov eax, 2
shl eax, 2
xor ecx, ecx
mov edx, dword [ebp - 0x2dc]
mov word [edx + eax], cx
push 8
push 0
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x4048fe
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00446b1d
mov esp, ebp
pop ebp
ret
Function at 0x40cab0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp + 8]
mov dword [eax + edx + 0x20], 0x6a09e667
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 8]
mov dword [edx + ecx + 0x20], 0xbb67ae85
mov eax, 4
shl eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + eax + 0x20], 0x3c6ef372
mov edx, 4
imul eax, edx, 3
mov ecx, dword [ebp + 8]
mov dword [ecx + eax + 0x20], 0xa54ff53a
mov edx, 4
shl edx, 2
mov eax, dword [ebp + 8]
mov dword [eax + edx + 0x20], 0x510e527f
mov ecx, 4
imul edx, ecx, 5
mov eax, dword [ebp + 8]
mov dword [eax + edx + 0x20], 0x9b05688c
mov ecx, 4
imul edx, ecx, 6
mov eax, dword [ebp + 8]
mov dword [eax + edx + 0x20], 0x1f83d9ab
mov ecx, 4
imul edx, ecx, 7
mov eax, dword [ebp + 8]
mov dword [eax + edx + 0x20], 0x5be0cd19
pop ebp
ret 4

Function at 0x40cfe0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
push 0
call fcn.0044ca97
add esp, 0x18
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.0040cce0
mov esp, ebp
pop ebp
ret 0xc

Function at 0x411860
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455ed0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x463064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [0x465e70]
test eax, eax
jne 0x4118df
push 0
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.0040f1c0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
call fcn.0040d1b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040d140
cmp dword [ebp - 0x1c], 0
je 0x4118dd
mov al, 1
jmp 0x41195d
jmp 0x4118f3
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4118f3
mov al, 1
jmp 0x41195d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x411904
xor al, al
jmp 0x41195d
lea ecx, [ebp - 0x60]
call fcn.00411300
mov dword [ebp - 4], 1
push 0
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x60]
call fcn.00412e20
movzx eax, al
test eax, eax
jne 0x411940
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.004113b0
mov al, byte [ebp - 0xd]
jmp 0x41195d
lea ecx, [ebp - 0x60]
call fcn.00412110
mov byte [ebp - 0xe], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.004113b0
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x411cb0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455f28
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x463064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call fcn.004137f0
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x411d12
mov ecx, dword [ebp - 0x10]
and ecx, 0x10
jne 0x411d12
mov edx, dword [ebp - 0x10]
and edx, 1
je 0x411d12
mov eax, dword [ebp - 0x10]
and eax, 0xfffffffe
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004127e0
movzx edx, al
test edx, edx
jne 0x411d12
xor al, al
jmp 0x411d7b
movzx eax, byte [0x465e70]
test eax, eax
jne 0x411d67
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.0040f1c0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
call fcn.0040d1b0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040d140
cmp dword [ebp - 0x1c], 0
je 0x411d65
mov al, 1
jmp 0x411d7b
jmp 0x411d79
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x411d79
mov al, 1
jmp 0x411d7b
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x412180
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455f9b
mov eax, dword fs:[0]
push eax
sub esp, 0x370
mov eax, dword [0x463064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x370], 0x114
movzx eax, byte [0x465e70]
test eax, eax
jne 0x41225a
mov ecx, 1
imul edx, ecx, 0
mov dword [ebp - 0x35c], edx
cmp dword [ebp - 0x35c], 0x115
jae 0x4121e0
jmp 0x4121e5
call fcn.00446fc6
mov eax, dword [ebp - 0x35c]
mov byte [ebp + eax - 0x128], 0
lea ecx, [ebp - 0x128]
push ecx
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov dword [ebp - 0x358], eax
lea edx, [ebp - 0x128]
push edx
lea eax, [ebp - 0x37c]
push eax
call fcn.0040f190
mov dword [ebp - 0x368], eax
mov ecx, dword [ebp - 0x368]
mov dword [ebp - 0x36c], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x36c]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040dcf0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x37c]
call fcn.0040d140
jmp 0x4122b2
mov eax, 2
imul ecx, eax, 0
mov dword [ebp - 0x360], ecx
cmp dword [ebp - 0x360], 0x22a
jae 0x412276
jmp 0x41227b
call fcn.00446fc6
xor edx, edx
mov eax, dword [ebp - 0x360]
mov word [ebp + eax - 0x354], dx
lea ecx, [ebp - 0x354]
push ecx
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x358], eax
lea edx, [ebp - 0x354]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040de70
mov eax, dword [ebp + 8]
push eax
call fcn.00414f60
cmp dword [ebp - 0x358], 0
je 0x4122dc
cmp dword [ebp - 0x358], 0x114
jae 0x4122dc
mov dword [ebp - 0x364], 1
jmp 0x4122e6
mov dword [ebp - 0x364], 0
mov al, byte [ebp - 0x364]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00446b1d
mov esp, ebp
pop ebp
ret 4

Function at 0x4127e0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455c78
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x463064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [0x465e70]
test eax, eax
jne 0x41285e
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x24]
push eax
call fcn.0040f1c0
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
call fcn.0040d1b0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.0040d140
cmp dword [ebp - 0x18], 0
je 0x41285c
mov al, 1
jmp 0x412876
jmp 0x412874
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x412874
mov al, 1
jmp 0x412876
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x4137f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455f28
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x463064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [0x465e70]
test eax, eax
jne 0x413865
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.0040f1c0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
call fcn.0040d1b0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0040d140
mov eax, dword [ebp - 0x1c]
jmp 0x413880
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x41387d
mov eax, dword [ebp - 0x10]
jmp 0x413880
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x413dc0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x413df7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x413df7
xor al, al
jmp 0x413e14
xor edx, edx
mov eax, dword [ebp - 4]
mov cl, 0x20
call fcn.00446b90
xor ecx, ecx
add eax, dword [ebp - 8]
adc edx, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x4143b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0xc], 0x400000
jbe 0x4143c9
mov dword [ebp + 0xc], 0x400000
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call fcn.00410850
mov byte [ebp - 1], al
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0xc