joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408029
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x410468
cmp edx, dword [eax]
je 0x40804b
add eax, 8
inc ecx
cmp eax, 0x4104f8
jl 0x40803c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x410468]
jne 0x408179
mov eax, dword [0x43e780]
cmp eax, 1
je 0x408153
test eax, eax
jne 0x40807c
cmp dword [0x410294], 1
je 0x408153
cmp edx, 0xfc
je 0x408179
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4080b3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00406e40
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004084f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4080f6
lea eax, [ebp - 0x1a4]
push eax
call fcn.004084f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d5c0
push edi
call fcn.0040aa70
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00406e40
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00406e50
lea eax, [ebp - 0xa0]
push 0x40d5a0
push eax
call fcn.00406e50
push dword [esi + 0x41046c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00406e50
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040a9e4
add esp, 0x2c
pop edi
jmp 0x408179
lea eax, [ebp + 8]
lea esi, [esi + 0x41046c]
push 0
push eax
push dword [esi]
call fcn.004084f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x406e4f
Capabilities:
Encode data using xor

Disassembly:
inc ecx
pop esi
xor byte [esi + ecx + 7], cl
loop 0x406e52
mov eax, 0x5040109
out dx, al
clc
div esi
cmc
retf 0x3d52

Function at 0x40a3c9
Capabilities:
Terminate process

Disassembly:
cmp bh, ch
call [ebp - 0x3e]
add al, 0
in eax, dx
nop
nop
nop
nop
nop
nop
adc dword [ebx], esi
rol dl, 4
add byte [eax + 0x6990c687], dl
imul edx, dword [eax - 0x6f6f0370], 0x948bc990
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x40a410
mov ecx, dword [ebp + 0xc]
push ecx
imul edx, dword [eax - 0x6f6f0370], 0x948bc990
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x40a410
mov ecx, dword [ebp + 0xc]
push ecx
clc
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x40a3b1
and cl, byte [ebx + 0x30c09835]
add byte [ebx - 0x213fd52a], bh
add eax, 0x8c25d5e
add bh, bh
salc
add eax, 0xa3f80
pop esi
pop ebp
ret 8
mov eax, 0x2b3b
pop ebp
ret 0xab08
Function at 0x40a580
Capabilities:
Encode data using xor

Disassembly:
cwde
sal byte [ecx], 0x3d
mov cl, 0xc7
wait
sal byte [ebp + 5], 0x5e
add eax, 0xff0010c2
sbb al, 5
cmp ah, 0xa
sbb bl, byte [esi + 0x5d]
jns 0x40a55b
add byte [eax + 0x55909090], dl
push edx
in al, dx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
test ecx, ecx
push esi
jle 0x40a57a
pop ds
je 0x40a569
jmp dword [ecx - 0x74ee8c3a]
mov dl, byte [ebx - 0x7c]
leave
mov byte [eax], cl
je 0x40a57a
inc eax
inc edx
cmp edx, esi
mov edi, 0x96aef2
pop esi
pop ebp
insb byte es:[edi], dx
or al, 0
xchg esi, eax
push ebp
mov ebp, esp
push ebx
mov ebx, dword [0xba405c00]
push esi
push edi
jp 0x40a60b
or byte [edx + 0x5e], ch
cmpsb byte [esi], byte es:[edi]
inc ebx
rcr dword [ebp - 0x522ea8a4], cl
call dword [edx]
add esp, 0x10
faddp st(6)
jbe 0x40a531
adc dh, bl
invalid
mov esi, eax
test eax, eax
out dx, al
test eax, 0xff573a6a
ror dword [ebx + 0x8c4d9f0], cl
adc al, 0x76
je 0x40a5f6
lea eax, [esi + 0x5a]
pop esi
pop ebx
pop ebp
dec edi
add al, 0
mov eax, edi
pop edi
pop esi
cld
ret 4
jno 0x40a5dc
or eax, 0xec8b5590
nop
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0x4d]
test dword [ebx + 0x3d], ecx
mov dword [ebp - 4], 0xb7000000
jge 0x40a59d
cmp eax, 0xfc45c7
add byte [eax], al
mov bh, 0x7d
mov bh, 0x8b
inc ebp
or al, 0x33
fild dword [ebx - 0x228bf5c8]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [eax], 0xa
je 0x40a5cd
mov ecx, dword [esi + edx*4 + 4]
jecxz 0x40a57b
leave
jne 0x40a5f0
lea eax, [ebx*4 - 0x7dfffffc]
inc ebp
xchg ecx, eax
call dword [0x2c18d]
loope 0x40a5ce
add al, 0x71
jle 0x40a593
jno 0x40a68b
test esi, ebx
mov dword [ebp - 0xc], edi
jle 0x40a64a
fimul word [ecx + 0x367ef47d]
mov eax, dword [ebp + 0xc]
mov esi, edi
sub eax, dword [ebp - 0xd071677]
inc ebp
sub ch, bl
add ecx, dword [ebx - 0x30c8efbb]
xor byte [ecx + 0x3f], dl
adc eax, 0xa700c10c
add esp, 4
inc eax
mov dword [esi], eax
mov edx, dword [ebp - 4]
add edx, eax
inc ebp
push ebx
add esi, 0xffffff86
dec eax
test eax, 0x4589fc55
clc
jne 0x40a623
mov eax, dword [ebp + 0x10]
aaa
iretd
mov eax, dword [ebp - 4]
lea edi, [eax + eax*2 + 1]
push eax
mov dword [ebp - 4], eax
and dword [sym.imp.MSVCRT.dll_malloc], edx
mov ah, 0xc5
add al, 0x33
leave
test dword [ecx - 0x74071322], esp
mov ah, 0x7e
push esp
mov eax, dword [ebp + 0xc]
into
popfd
hlt
push ebp
invalid
Function at 0x40f440
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40b015
lea edi, [esi - 0xa015]
push edi
or ebp, 0xffffffff
jmp 0x40f462
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f469
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f458
mov eax, 1
add ebx, ebx
jne 0x40f47b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f470
jne 0x40f48c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f470
xor ecx, ecx
sub eax, 3
jb 0x40f4a0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f512
mov ebp, eax
add ebx, ebx
jne 0x40f4ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f4b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f4dc
inc ecx
add ebx, ebx
jne 0x40f4c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f4bd
jne 0x40f4d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f4bd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f4fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f4ed
jmp 0x40f45e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f4fc
add edi, ecx
jmp 0x40f45e
pop esi
mov edi, esi
mov ecx, 0x210
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40f51a
cmp byte [edi], 5
jne 0x40f51a
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 0x40f51f
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f58e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10838]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x108ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f54c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x108f0]
or eax, eax
je 0x40f588
mov dword [ebx], eax
add ebx, 4
jmp 0x40f569
call dword [esi + 0x10900]
mov ebp, dword [esi + 0x108f4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x40f5c2
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4021e0
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
push 0xfffffffffffffff0
push dword [esp + 0x10]
mov esi, ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov cl, byte [esi + 8]
mov edi, eax
test edi, 0x10000000
je 0x402222
push dword [esp + 0xc]
or cl, 4
mov byte [esi + 8], cl
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40221d
test edi, 0x21000000
jne 0x40221d
or byte [esi + 8], 2
mov cl, byte [esi + 8]
jmp 0x402228
and cl, 0xfd
mov byte [esi + 8], cl
test cl, 2
je 0x402239
mov ecx, esi
call fcn.00402960
pop edi
pop esi
ret 4
push 0
push dword [esi + 0x40]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
ret 4

Function at 0x41a640
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x592174]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, dword [esp + 0x148]
push 0x118
push 0
lea eax, [esi + 4]
push eax
call fcn.0050d5d0
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41a787
cmp dword [esi + 4], 6
push edi
ja 0x41a69b
jne 0x41a723
cmp dword [esi + 8], 2
jb 0x41a723
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x41a723
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41a723
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41a723
movups xmm0, xmmword [0x567c18]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x567c28]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x41a723
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x41a723
cmp word [edi + 2], ax
jbe 0x41a723
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push 0x5678bc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x41a76e
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.0050d5d0
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x41a76e
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.0050b0b7
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.0050b0b7
add esp, 0x140
ret
Function at 0x41ce90
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x536e18
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x592174]
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 edi, dword [esi + 8]
test edi, edi
jne 0x41cecb
xor al, al
jmp 0x41cf6e
add edi, 0x20
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], edi
je 0x41cee7
mov eax, dword [edi]
test eax, eax
je 0x41cee7
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x41cf4b
push 1
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x41c9b0
push 0
push 0
call fcn.00530293
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x41cf8a
mov eax, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0xffffffffffffffff
push ebx
call eax
sub eax, 1
jne 0x41cf43
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.0041cb70
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x41cf6c
mov eax, dword [edi]
test eax, eax
je 0x41cf65
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x14], 0
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.0050b0b7
mov esp, ebp
pop ebp
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x41cfa2
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x41cf2d
mov bl, 1
jmp 0x41cf4d

Function at 0x41d840
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x41d856
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov eax, dword [esp + 8]
mov word [esi + 4], 0
cmp dword [eax + 0x10], 0
je 0x41d870
cmp dword [eax + 0x14], 8
jb 0x41d872
mov eax, dword [eax]
jmp 0x41d872
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x41d894
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41d894
mov byte [esi + 5], 1
cmp dword [esi], 0
pop esi
setne al
ret 4
Function at 0x41d8a0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x536f58
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x592174]
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 eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x41d8e3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.0043a7a0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x41d90c
lea eax, [esi + 8]
jmp 0x41d90e
xor eax, eax
cmp dword [ebx + 0x10], 0
je 0x41d91e
cmp dword [ebx + 0x14], 8
jb 0x41d920
mov ebx, dword [ebx]
jmp 0x41d920
xor ebx, ebx
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x41d941
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41d941
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x41d96a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x41d97f
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.0050b392
add esp, 8
mov dword [ebp - 0x14], 0
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.0050b0b7
mov esp, ebp
pop ebp
ret 4
Function at 0x41d9c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x536f88
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x592174]
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 eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x41da03
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.0043a8d0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x41da2d
lea ecx, [esi + 8]
jmp 0x41da2f
xor ecx, ecx
cmp dword [ebx + 0x10], 0
mov dword [ebp - 0x18], ecx
je 0x41da44
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x41da46
mov eax, dword [ebx]
jmp 0x41da46
xor eax, eax
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
test eax, eax
jne 0x41da91
call ecx
cmp eax, 5
jne 0x41da8b
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebx + 0x10], 0
je 0x41da7b
cmp dword [ebx + 0x14], 8
jb 0x41da7d
mov ebx, dword [ebx]
jmp 0x41da7d
xor ebx, ebx
push ebx
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
test eax, eax
je 0x41daaf
call ecx
cmp eax, 0xb7
jne 0x41daa4
mov byte [edi + 5], 1
mov ecx, dword [edi]
call fcn.00433a00
mov eax, dword [edi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x41dad5
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x41daea
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.0050b392
add esp, 8
mov dword [ebp - 0x14], 0
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.0050b0b7
mov esp, ebp
pop ebp
ret 4
Function at 0x41f1e0
Capabilities:
Delete file

Disassembly:
mov ecx, dword [esp + 4]
jmp fcn.0043be20
Function at 0x4206f0
Capabilities:
Copy file

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
jmp fcn.0043bc50

Function at 0x420700
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537168
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x592174]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x420736
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x42074a
mov al, 1
jmp 0x420833
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x2c]
mov ecx, esi
call fcn.0043c750
test al, al
je 0x4207e0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4207e0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x4207d6
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4207cc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42084d
push edx
push ecx
call fcn.0050b392
add esp, 8
xor eax, eax
mov word [ebp - 0x2c], ax
mov al, 1
jmp 0x420825
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x42081d
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x420813
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x420852
push edx
push ecx
call fcn.0050b392
add esp, 8
xor eax, eax
mov word [ebp - 0x2c], ax
xor al, al
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0050b0b7
mov esp, ebp
pop ebp
ret
call fcn.0050f799
call fcn.0050f799
int3

Function at 0x420b50
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x592174]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, dword [esp + 0x420]
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x420b7d
mov eax, dword [esi]
xor ecx, ecx
push 0x412
mov word [eax], cx
lea eax, [esp + 8]
push ecx
push eax
call fcn.0050d5d0
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x420bc1
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.0050b0b7
add esp, 0x418
ret
cmp eax, 0x208
jae 0x420ba9
xor eax, eax
lea edx, [esp + 4]
mov word [esp + 0x414], ax
lea ecx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x420be0
sub edx, ecx
lea eax, [esp + 4]
sar edx, 1
mov ecx, esi
push edx
push eax
call fcn.00418830
mov ecx, dword [esp + 0x418]
mov al, 1
pop esi
xor ecx, esp
call fcn.0050b0b7
add esp, 0x418
ret
Function at 0x426c10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537ce8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x592174]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
call fcn.00426040
test al, al
jne 0x426c7f
xor bl, bl
jmp 0x426e06
lea ecx, [ebp - 0x5c]
call fcn.00424210
mov byte [ebp - 4], 1
add esi, 0x24
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x426cbc
push esi
lea ecx, [ebp - 0x5c]
call fcn.004288c0
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x50]
call fcn.004288c0
lea eax, [esi + 0x18]
push eax
lea ecx, [ebp - 0x44]
call fcn.004288c0
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00425760
test al, al
jne 0x426cd4
xor bl, bl
jmp 0x426dfa
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x5c]
call fcn.00424df0
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
je 0x426dc9
mov ecx, edi
call fcn.004352e0
test al, al
je 0x426dc9
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x24]
sub ecx, eax
push edx
push ecx
push eax
mov ecx, edi
mov dword [ebp - 0x18], 0
call fcn.00435120
test al, al
je 0x426dc9
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
cmp dword [ebp - 0x18], eax
jne 0x426dc9
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
sub esi, ebx
mov eax, dword [edi]
mov dword [ebp - 0x34], esi
test eax, eax
je 0x426dc9
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x426dc9
push 0
lea ecx, [ebp - 0x18]
push ecx
push 4
lea ecx, [ebp - 0x34]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x426dc9
cmp dword [ebp - 0x18], 4
jne 0x426dc9
cmp ebx, dword [ebp - 0x2c]
je 0x426da1
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
push esi
push ebx
call fcn.00435120
test al, al
je 0x426dc9
cmp dword [ebp - 0x18], esi
jne 0x426dc9
lea eax, [ebp - 0x64]
xorps xmm0, xmm0
push eax
mov ecx, edi
movlpd qword [ebp - 0x64], xmm0
call fcn.004351a0
test al, al
je 0x426dc5
push dword [ebp - 0x60]
mov ecx, edi
push dword [ebp - 0x64]
call fcn.00435330
mov bl, 1
jmp 0x426dcb
xor bl, bl
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x426dfa
mov eax, dword [ebp - 0x1c]
sub eax, ecx
push eax
push ecx
call fcn.00403300
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.00427060
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00419b90
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 - 0x14]
xor ecx, ebp
call fcn.0050b0b7
mov esp, ebp
pop ebp
ret 4