joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4065c3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4065e7
xor eax, eax
test eax, eax
je 0x4065f9
cmp byte [ebp + eax - 0x121], 0x5c
je 0x4065f9
xor ecx, ecx
jmp 0x4065fc
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x4066e8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4232e4], 0
push esi
jne 0x40671f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4066f9
mov dword [ecx*4 + 0x4232e0], eax
inc ecx
cmp ecx, 0x100
jl 0x4066f4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406750
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4232e0]
xor eax, esi
inc ecx
dec edx
jne 0x406732
pop edi
not eax
pop esi
ret 0xc

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x5f75757
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x7d5b7ada
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x1a363008
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x1c861b43
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x407748
Capabilities:
Get disk size

Disassembly:
xor eax, eax
push eax
push eax
push eax
call fcn.0041cc40
mov edx, dword [esp + 0x10]
lea ecx, [esp]
call fcn.0040d000
mov edx, dword [esp]
push edx
call fcn.0041caa0
pop edx
push eax
push edx
call fcn.0041cb70
mov edx, 0x42893e
push edx
call fcn.0041cb70
lea eax, [esp + 4]
push eax
call fcn.0041cae0
lea eax, [esp + 4]
push eax
push 0
push 0
push dword [esp + 0xc]
call sub.KERNEL32.dll_GetDiskFreeSpaceExW
and eax, eax
je 0x4077a2
jmp 0x4077a2
lea eax, [esp + 4]
mov edx, dword [eax + 4]
mov eax, dword [eax]
jmp 0x4077b1
push edx
push dword [esp + 4]
call fcn.0041ccd0
pop edx
add esp, 0xc
ret 4
Function at 0x40d77b
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x40d7d0
push dword [esp + 0x10]
push 0x40d6fa
call dword [sym.imp.USER32.dll_EnumWindows]
mov esi, dword [0x42bd24]
test esi, esi
je 0x40d829
xor edi, edi
mov ebx, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x40d7c8
cmp byte [esi + 0x10], 0
je 0x40d7c8
push 3
push edi
push edi
push edi
push edi
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, ebx
test ebx, ebx
jne 0x40d7a4
jmp 0x40d829
mov esi, dword [0x42bd24]
test esi, esi
je 0x40d829
xor edi, edi
push ebp
mov ebx, dword [esi]
lea ebp, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp], eax
jne 0x40d822
cmp byte [esi + 0x11], 0
je 0x40d7fe
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [esi + 0x10], 0
je 0x40d815
push 3
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebp
push 0x42bd24
call fcn.0041ca01
pop ecx
pop ecx
mov esi, ebx
test ebx, ebx
jne 0x40d7dd
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x40df74
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x24], 0x18
mov ebx, eax
je 0x40e033
cmp dword [esp + 0x24], 2
je 0x40e033
push 0x2000
push ebp
push dword [0x42bc14]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x40e002
cmp dword [esp + 0x18], 2
jne 0x40e01e
cmp dword [esp + 0x28], 0xffffffff
je 0x40dfc6
cmp ebp, dword [esp + 0x28]
jae 0x40e01e
add ebp, 2
test ebx, ebx
jne 0x40dfeb
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0x42bc14]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x40e01e
cmp ax, 0xd
je 0x40e002
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40dfb2
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.0041d920
jmp 0x40e0c5
push eax
push 0
push dword [0x42bc14]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x40e051
cmp ebp, dword [esp + 0x28]
jae 0x40e0a9
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40e0a9
cmp dword [esp + 0x18], 1
jne 0x40e0a9
inc ebp
test ebx, ebx
jne 0x40e096
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0x42bc14]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x40e0a9
cmp al, 0xd
je 0x40e044
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x40e044
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x40e0c0
call fcn.0041d970
jmp 0x40e0c5
call fcn.0041da80
push esi
push 0
push dword [0x42bc14]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10

Function at 0x40e85e
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x42c1dc]
call fcn.0041c29d
mov ebx, eax
test ebx, ebx
je 0x40e8c2
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x40e887
push dword [esp + 0xc]
push ebx
call eax
jmp 0x40e8c2
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.0041ce00
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.0041cee0
pop edi
pop esi
pop ebx
ret 8
Function at 0x40fd31
Capabilities:
Check os version

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
xor ebx, ebx
mov esi, 0xc8
and dword [esp + 0x10], ebx
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40fea7
mov eax, dword [esp + 0x24]
dec eax
je 0x40fe8a
dec eax
jne 0x40fea7
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.0040fcea
pop ecx
test eax, eax
je 0x40fde8
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x40fdab
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x40fe86
dec ebx
je 0x40fe82
dec ebx
je 0x40fe61
dec ebx
je 0x40fe1b
sub ebx, 4
jne 0x40fea7
test edi, edi
jne 0x40fea7
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x40fea7
lea eax, [esp + 0x244]
mov dword [esp + 0x244], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x40fdab
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x40fda6
sub edi, 0
je 0x40fe53
dec edi
je 0x40fe45
dec edi
je 0x40fe37
dec edi
jne 0x40fea7
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x40fea7
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x40fea7
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x40fea7
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x40fea7
sub edi, 0
je 0x40fe7e
dec edi
je 0x40fe7a
dec edi
jne 0x40fea7
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x40fea7
push 0x3c
jmp 0x40fea6
push 0x32
jmp 0x40fea6
push 0x14
jmp 0x40fea6
push 5
jmp 0x40fea6
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40fea4
cmp eax, 0xa
je 0x40fea0
cmp eax, 0x5a
jne 0x40fea7
push 0x28
jmp 0x40fea6
push 0x1e
jmp 0x40fea6
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x40ffea
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x42c1d8]
call fcn.0041c29d
mov esi, eax
test esi, esi
je 0x4100c4
cmp dword [ebp + 0xc], 0
je 0x410036
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x410027
cmp dword [esi + 0x1c], 0
jne 0x410027
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4100c4
test byte [ebp + 0x10], 3
je 0x410051
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.004108d2
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x410076
xor ebx, ebx
cmp dword [esi + 0x3c], 0x1000000
sete bl
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x41008a
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
test dword [ebp + 0x10], 0x2000000
je 0x4100a7
test ebx, ebx
je 0x41009b
push 8
jmp 0x4100ad
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x4100ba
test ebx, ebx
je 0x4100b0
push 3
pop ecx
jmp 0x4100ba
xor eax, eax
test ecx, ecx
setne al
lea ecx, [eax + 1]
push ecx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x410a65
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x410afd
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x410afa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x410afa
lea eax, [esi - 1]
push eax
push dword [0x42c1d8]
call fcn.0041c29d
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x410afc
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x410af1
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x410be4
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x410ad7
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x410ba3
push eax
call esi
test al, al
jns 0x410ba3
push 0x11
call esi
test al, al
js 0x410ba3
push 0x10
call esi
test al, al
js 0x410ba3
push 0x12
call esi
test al, al
js 0x410ba3
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x410ba3
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x410b77
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x410b8e
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x410bee
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x410bee
test ebp, ebp
je 0x410bc7
push 0x11
call esi
test al, al
js 0x410bbf
push 0x10
call esi
test al, al
js 0x410bbf
push 0x12
call esi
test al, al
jns 0x410bc7
push 1
push ebp
call fcn.00410bfa
test ebx, ebx
je 0x410bdb
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x410bee
test edi, edi
je 0x410bee
mov eax, dword [edi + 8]
jmp 0x410bf0
and dword [esp + 0x14], 0
jmp 0x410afc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x4116a9
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x4117f1
xor ecx, ecx
cmp word [eax], cx
je 0x4117f1
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x411702
cmp eax, 3
jne 0x41173c
cmp word [esp + 0xa], 0x3a
jne 0x41173c
cmp eax, 2
jne 0x411720
lea eax, [esp + 8]
push 0x427438
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4117f1
push 0xfffffffffffffffe
pop edi
jmp 0x4117f1
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x411751
cmp ax, bx
jne 0x41175b
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x411744
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x41179a
test byte [esp + 0x21c], 0x10
je 0x411781
push 0xfffffffffffffffe
pop edi
jmp 0x411791
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4117ef
cmp word [esp + 0x10], bp
jne 0x4117a8
cmp word [esp + 0x12], bp
je 0x4117c7
cmp word [esp + 0x10], bx
jne 0x4117b6
cmp word [esp + 0x12], bx
je 0x4117c7
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x4117ef
cmp word [esp + 0x12], ax
jne 0x4117ef
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x4117dc
test al, 0x10
je 0x4117ef
jmp 0x4117ec
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4117ef
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4
Function at 0x411872
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x42bed4]
push esi
test eax, eax
jne 0x411897
push fcn.0041199f
push 0x10
push 0x258
call fcn.0041c370
mov dword [0x42bed4], eax
push dword [esp + 0xc]
push eax
call fcn.0041c2dc
mov esi, eax
test esi, esi
je 0x411998
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x4118b9
mov edi, 0x427014
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x4118c9
xor eax, eax
cmp word [ebx], ax
jne 0x4118ce
mov ebx, 0x42743c
push edi
call sub.MSVCRT.dll_wcslen
push ebx
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_wcslen
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x42bc14]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x41197f
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x41192f
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x411933
push 0x427438
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x411933
mov edi, dword [esp + 0x18]
push ebx
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x411957
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x41196d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x41196b
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x42bc14]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x411996
cmp dword [esp + 0x14], 0xffffffff
je 0x41198a
mov esi, dword [esp + 0x14]
push esi
push dword [0x42bed4]
call fcn.0041c24e
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x411e8d
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x411eb6
test byte [esp + 8], 2
je 0x411eaa
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x411eb8
xor eax, eax
ret 8

Function at 0x411f30
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x411f6c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x412450
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x42c244]
call fcn.0041c29d
mov esi, eax
test esi, esi
je 0x4124cf
cmp dword [esi + 4], 0
je 0x4124a0
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.00412b70
test eax, eax
je 0x412494
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4124da
cmp dword [esp + 8], 0
je 0x4124da
push 1
push 0
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4
Function at 0x412580
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x412688
cmp word [edx], 0
je 0x412688
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x4125ae
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x41260d
cmp dword [esi + 4], 0
mov ecx, edx
lea edi, [ecx + 2]
je 0x4125e0
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4125c0
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.00412c90
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4125e0
sub ecx, edi
lea eax, [esp + 8]
push 0
sar ecx, 1
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
cmp ecx, 2
lea ecx, [esp + 0x14]
setne al
push ecx
dec eax
and eax, 0xfde9
push edx
push eax
call fcn.00412da0
mov edi, eax
test edi, edi
je 0x412603
cmp dword [esi + 4], 0
je 0x41265b
push dword [esp + 0x14]
push edi
push esi
call fcn.00412c90
push edi
push 0
push dword [0x42bc14]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push dword [0x42bc14]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc

Function at 0x412690
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 4]
push dword [0x42c244]
call fcn.0041c29d
test eax, eax
je 0x4126ac
mov dword [esp + 4], eax
jmp fcn.00412580
xor eax, eax
ret 0xc
Function at 0x4126c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x42bc14]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x412844
mov cl, byte [esp + 3]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov esi, edx
mov edi, edi
cmp ebp, 0xffffffff
je 0x41270e
test ebp, ebp
je 0x4127b0
dec ebp
cmp dword [ebx + 4], 0
je 0x412727
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00412b70
mov dword [esp + 0x14], eax
jmp 0x412741
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x13]
cmp eax, 1
jne 0x4127b0
test cl, cl
je 0x412755
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x13]
mov eax, dword [esp + 0x18]
mov edi, esi
mov edx, dword [esp + 0x20]
dec eax
sub edi, edx
cmp edi, eax
jle 0x412790
mov eax, dword [esp + 0x18]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x42bc14]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x20], edx
lea esi, [edi + edx]
test cl, cl
je 0x4127b0
cmp dword [esp + 0x2c], 0
jne 0x412700
cmp cl, 0xd
je 0x4127b7
cmp cl, 0xa
jne 0x412700
dec esi
jmp 0x412827
cmp dword [esp + 0x2c], 0
jne 0x412827
cmp cl, 0xa
jne 0x4127bf
dec esi
jmp 0x412827
cmp cl, 0xd
jne 0x412827
dec esi
cmp dword [ebx + 4], 0
je 0x4127de
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00412b70
mov dword [esp + 0x14], eax
jmp 0x4127f4
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x412827
cmp dword [ebx + 4], 0
je 0x412806
inc dword [ebx + 0xc]
jmp 0x412827
push 1
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x20]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10