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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ebx
cmp dword [edi + 0x14], ebx
mov dword [ebp - 8], ebx
setne al
inc eax
cmp dword [edi + 8], ebx
mov byte [ebp + 0xb], al
jbe 0x514ae3
mov dword [ebp - 0x10], ebx
mov esi, dword [edi + 4]
add esi, dword [ebp - 0x10]
mov eax, dword [esi]
cmp eax, ebx
je 0x514a9a
cmp eax, dword [edi + 0x2a4]
movzx ecx, word [esi + 4]
sete bl
add dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp + 0xc]
ja 0x514aea
push ecx
push eax
push dword [ebp - 4]
call fcn.005244d0
movzx eax, word [esi + 4]
add dword [ebp - 4], eax
add esp, 0xc
test bl, bl
je 0x514a98
cmp dword [edi + 0x14], 0
mov eax, 0x5c06fc
je 0x514a7e
mov eax, 0x5cb280
movzx esi, byte [ebp + 0xb]
lea ecx, [esi + esi]
push ecx
push eax
mov eax, dword [ebp - 4]
sub eax, esi
push eax
call fcn.005244d0
add esp, 0xc
add dword [ebp - 4], esi
xor ebx, ebx
cmp dword [edi + 0x20], ebx
je 0x514ad0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], ebx
inc eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 8]
fild qword [ebp - 0x18]
mov dword [ebp - 0x20], eax
push ebx
fmul dword [0x58de4c]
fild qword [ebp - 0x20]
fdivp st(1)
call fcn.00528c4c
push eax
push 4
mov ecx, edi
call fcn.00514cf7
inc dword [ebp - 8]
add dword [ebp - 0x10], 0xc
mov eax, dword [ebp - 8]
cmp eax, dword [edi + 8]
jb 0x514a2e
pop edi
pop esi
pop ebx
leave
ret 8
mov ecx, edi
call fcn.00512f20
lea eax, [ebp + 8]
push 0x5af2c0
push eax
mov dword [ebp + 8], 0x901
call fcn.00529cc7
Function at 0x514b06
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov esi, ecx
cmp ebx, edi
jne 0x514bd0
mov eax, dword [esi + 0x294]
cmp eax, 0xffffffff
jne 0x514b2f
xor eax, eax
jmp 0x514cf0
lea ecx, [ebp + 8]
push edi
push ecx
mov dword [ebp + 8], edi
push dword [esi + 0x2bc]
push dword [esi + 0x18c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x514b6a
mov ecx, esi
call fcn.00512f20
lea eax, [ebp - 8]
push 0x5af2c0
push eax
mov dword [ebp - 8], 0x401
call fcn.00529cc7
push dword [esi + 0x294]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
push dword [esi + 0x294]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x514bb4
cmp ebx, edi
je 0x514bb4
push dword [esi + 0x294]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 0x294], 0xffffffff
mov dword [esi + 0x2bc], edi
mov dword [esi + 0x2b8], edi
mov eax, ebx
jmp 0x514cf0
mov ecx, esi
call fcn.00512f20
lea eax, [ebp - 8]
push 0x5af2c0
push eax
mov dword [ebp - 8], 0x401
call fcn.00529cc7
cmp dword [esi + 0x294], 0xffffffff
jne 0x514c1c
push edi
push 0x80
push 2
push edi
push edi
lea eax, [esi + 0x190]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x294], eax
jne 0x514c1c
mov ecx, esi
call fcn.00512f20
lea eax, [ebp + 8]
push 0x5af2c0
push eax
mov dword [ebp + 8], 0x4001
call fcn.00529cc7
mov eax, dword [ebx + 4]
mov dword [ebp - 4], edi
mov ebx, 0xa0000
lea edi, [eax + eax*2]
mov eax, dword [esi + 0x2bc]
shl edi, 3
lea ecx, [eax + edi]
cmp ecx, ebx
jb 0x514c83
lea ecx, [ebp - 4]
push 0
push ecx
push eax
push dword [esi + 0x18c]
push dword [esi + 0x294]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x514c73
mov ecx, esi
call fcn.00512f20
lea eax, [ebp + 8]
push 0x5af2c0
push eax
mov dword [ebp + 8], 0x401
call fcn.00529cc7
mov eax, dword [ebp - 4]
add dword [esi + 0x2b8], eax
and dword [esi + 0x2bc], 0
mov ecx, dword [esi + 0x2bc]
mov eax, dword [esi + 0x2b8]
add eax, ecx
cmp edi, ebx
mov dword [ebp - 8], eax
jbe 0x514cd0
lea eax, [ebp - 4]
push 0
push eax
mov eax, dword [ebp + 8]
push edi
push dword [eax]
push dword [esi + 0x294]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x514ced
mov ecx, esi
call fcn.00512f20
lea eax, [ebp + 8]
push 0x5af2c0
push eax
mov dword [ebp + 8], 0x401
call fcn.00529cc7
mov eax, dword [ebp + 8]
push edi
push dword [eax]
mov eax, dword [esi + 0x18c]
add eax, ecx
push eax
call fcn.005244d0
add esp, 0xc
add dword [esi + 0x2bc], edi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x519480
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x5194d6
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x58dea4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5194c9
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x5194d8
xor eax, eax
pop esi
leave
ret 4

Function at 0x533ae4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x533b04
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0052b8e5
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x533b27
test byte [esp + 8], 2
je 0x533b27
call fcn.0052b958
mov dword [eax], 0xd
call fcn.0052b961
mov dword [eax], 5
jmp 0x533b00
xor eax, eax
ret

Function at 0x54156b
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5415a3
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.0053eff6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0053efce
jmp 0x5415af
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5415b3
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x64ccb8
mov ecx, edi
call fcn.0053ecd8
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x541606
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x541619
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.0053eff6
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0053efce
jmp 0x541619
mov ecx, esi
call fcn.00543b26
test eax, eax
je 0x541619
push edi
mov ecx, eax
call fcn.0054156b
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x543283
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 0x5432c5
call fcn.0055c7c5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5432c5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5432bc
xor eax, eax
jmp 0x5432cd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005432d3
pop edi
pop esi
pop ebx
ret 4
Function at 0x544fe2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x545004
cmp dword [edi + 0x3c], 0
jne 0x545004
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.0055c7c5
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00545031
pop edi
pop esi
pop ebx
ret 8

Function at 0x54507f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0055c7c5
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5450b0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.005450c3
pop edi
pop esi
pop ebx
ret 8

Function at 0x54ad74
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x7c], edi
je 0x54ade3
cmp dword [0x6259c8], edi
je 0x54ada5
cmp dword [0x6258f4], edi
jne 0x54ada5
call fcn.0055c7c5
mov eax, dword [eax + 4]
cmp dword [eax + 0x600], edi
je 0x54ade3
push dword [ebp + 8]
mov ecx, esi
call fcn.0055c03c
mov esi, eax
cmp esi, edi
jne 0x54adbc
xor eax, eax
jmp 0x54ae50
push ebx
lea eax, [ebp + 0x10]
push 4
push eax
push 4
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp ebx, edi
sete al
pop ebx
jmp 0x54ae50
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push 0x5bd950
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp dword [0x6259c8], edi
mov esi, 0x6257dc
je 0x54ae3f
call fcn.0055c7c5
mov eax, dword [eax + 4]
push esi
mov eax, dword [eax + 0x630]
push eax
call fcn.00528430
pop ecx
test eax, eax
pop ecx
jne 0x54ae3f
call fcn.0055c7c5
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0xc]
lea ecx, [eax + 0x5f0]
push dword [ebp + 8]
call fcn.004ec7e2
jmp 0x54ae50
lea eax, [ebp - 0x10]
push esi
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
pop edi
pop esi
leave
ret 0xc
Function at 0x54af64
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], edi
cmp dword [edi + 0x7c], esi
je 0x54afd0
cmp dword [0x6259c8], esi
je 0x54af97
cmp dword [0x6258f4], esi
jne 0x54af97
call fcn.0055c7c5
mov eax, dword [eax + 4]
cmp dword [eax + 0x600], esi
je 0x54afd0
push dword [ebp + 8]
mov ecx, edi
call fcn.0055c03c
mov edi, eax
cmp edi, esi
jne 0x54afab
xor eax, eax
jmp 0x54b026
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 3
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp ebx, esi
sete al
jmp 0x54b026
mov ebx, dword [ebp + 0x14]
lea eax, [ebx + ebx + 1]
push eax
call fcn.005444b9
pop ecx
mov edi, eax
xor ecx, ecx
cmp ebx, esi
jbe 0x54b008
mov esi, edi
mov eax, dword [ebp + 0x10]
add eax, ecx
mov dl, byte [eax]
and dl, 0xf
add dl, 0x41
mov byte [esi], dl
mov al, byte [eax]
shr al, 4
add al, 0x41
inc ecx
mov byte [esi + 1], al
inc esi
inc esi
cmp ecx, ebx
jb 0x54afe8
and byte [edi + ecx*2], 0
mov ecx, dword [ebp - 4]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0054ae56
push edi
mov esi, eax
call fcn.005444e2
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x55c2d1
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x5683d0
call fcn.00524444
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
xor ebx, ebx
mov dword [esi], ebx
mov dword [ebp - 0x10], ecx
mov dword [edi], ebx
cmp dword [ecx + 0x7c], ebx
je 0x55c393
cmp dword [0x6259c8], ebx
je 0x55c318
cmp dword [0x6258f4], ebx
jne 0x55c318
call fcn.0055c7c5
mov eax, dword [eax + 4]
cmp dword [eax + 0x600], ebx
je 0x55c393
push dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
call fcn.0055c03c
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x55c331
xor eax, eax
jmp 0x55c412
lea ecx, [ebp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
lea ecx, [ebp - 0x14]
push ebx
push ecx
push ebx
push dword [ebp + 0xc]
push eax
call edi
mov ecx, dword [ebp + 0x14]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x10]
cmp dword [ebp + 8], ebx
mov dword [ecx], eax
jne 0x55c375
push eax
call fcn.005444b9
pop ecx
mov dword [esi], eax
lea ecx, [ebp + 0x10]
push ecx
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call edi
mov dword [ebp + 8], eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 8], ebx
je 0x55c40f
push dword [esi]
call fcn.005444e2
pop ecx
mov dword [esi], ebx
jmp 0x55c32a
push ebx
mov ecx, dword [ebp - 0x10]
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.0055c158
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov eax, dword [eax - 8]
cmp eax, ebx
mov dword [ebp + 0x14], eax
jne 0x55c3c7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0053eb4f
jmp 0x55c32a
cdq
sub eax, edx
sar eax, 1
push eax
mov dword [edi], eax
call fcn.005444b9
xor edi, edi
cmp dword [ebp + 0x14], ebx
pop ecx
mov dword [esi], eax
jle 0x55c403
mov eax, dword [ebp + 0xc]
add eax, edi
mov cl, byte [eax + 1]
mov al, byte [eax]
shl cl, 4
add cl, al
mov eax, edi
cdq
sub eax, edx
mov edx, dword [esi]
sub cl, 0x51
sar eax, 1
inc edi
inc edi
mov byte [eax + edx], cl
cmp edi, dword [ebp + 0x14]
jl 0x55c3de
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0053eb4f
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x55d32f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.0055c7c5
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x55d36c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x55d36c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x55d370
xor eax, eax
jmp 0x55d3ee
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.005444b9
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x55d3a8
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x55d392
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.0055d4df
push ebx
mov edi, eax
call fcn.005444e2
test edi, edi
pop ecx
je 0x55d3ea
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.0055d2a8
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0055d3f3
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x4052a3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x4224a0], 0x44
push eax
xor eax, eax
push 0x4224a0
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4052de
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405368
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405617
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x40539c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423f28], eax
jmp 0x405530
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x4053ba
test eax, eax
je 0x4054db
test byte [ebp + 0xc], 2
je 0x4054db
mov esi, 0x4214a0
push edi
push esi
call fcn.00405a43
test ebx, ebx
je 0x4053d7
push 0x409340
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4053dd
push edi
call fcn.0040557d
cmp byte [edi], 0
jne 0x4053eb
cmp byte [0x4214a0], 0x5c
jne 0x4053f6
push 0x40900c
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4054d1
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405561
cmp byte [eax], 0
je 0x40543c
cmp byte [ebp - 0x18], 0
je 0x40543c
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x405452
mov al, byte [esi + 1]
test al, al
je 0x4054b0
cmp al, 0x2e
jne 0x405452
cmp byte [esi + 2], 0
je 0x4054b0
push esi
push ebx
call fcn.00405a43
test byte [ebp - 0x148], 0x10
je 0x405477
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4054b0
push dword [ebp + 0xc]
push edi
call fcn.00405368
jmp 0x4054b0
push edi
call fcn.004056fb
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4054a8
test byte [ebp + 0xc], 4
je 0x4054a0
push edi
push 0xfffffffffffffff1
call fcn.00404de1
push 0
push edi
call fcn.00405791
jmp 0x4054b0
inc dword [0x423f28]
jmp 0x4054b0
push edi
push 0xfffffffffffffff2
call fcn.00404de1
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40541a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x4054db
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x405530
cmp dword [ebp - 8], esi
jne 0x4054f0
inc dword [0x423f28]
jmp 0x405530
push edi
call fcn.00405d3a
test eax, eax
je 0x405530
push edi
call fcn.00405536
push edi
call fcn.004056fb
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x405528
test byte [ebp + 0xc], 4
je 0x4054e8
push edi
push 0xfffffffffffffff1
call fcn.00404de1
push esi
push edi
call fcn.00405791
jmp 0x405530
push edi
push 0xffffffffffffffe5
call fcn.00404de1
pop edi
pop esi
leave
ret 8
Function at 0x43ebb0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x43ebce
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x43ebc3
pop esi
ret

Function at 0x43ed10
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x43eda2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x43ed94
mov ebp, dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x43ed8c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x43ed55
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x401b10
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor edx, edx
cmp edi, 4
jle 0x401b74
lea esi, [edi - 1]
mov ecx, dword [esp + 0x10]
shr esi, 2
mov eax, esi
push ebx
neg eax
lea edi, [edi + eax*4]
mov eax, dword [esp + 0x18]
mov ebx, dword [ecx]
mov ebp, dword [eax]
xor ebx, ebp
mov ebp, dword [eax + 4]
add eax, 4
add ecx, 4
or edx, ebx
add eax, 4
mov ebx, dword [ecx]
add ecx, 4
xor ebx, ebp
mov ebp, dword [eax]
or edx, ebx
mov ebx, dword [ecx]
xor ebx, ebp
mov ebp, dword [eax + 4]
add eax, 4
add ecx, 4
or edx, ebx
add eax, 4
mov ebx, dword [ecx]
add ecx, 4
xor ebx, ebp
or edx, ebx
dec esi
jne 0x401b34
pop ebx
jmp 0x401b7c
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
test edi, edi
jle 0x401b93
mov esi, edi
mov edi, dword [ecx]
mov ebp, dword [eax]
xor edi, ebp
add eax, 4
or edx, edi
add ecx, 4
dec esi
jne 0x401b82
xor eax, eax
pop edi
test edx, edx
pop esi
pop ebp
setne al
ret
Function at 0x1c0a96f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add dword [ebp - 8], 2
jmp 0x1c0a0e0
inc edx
jmp 0x1c0a396
jae 0x1c0abce
jmp 0x1c0ac5e
je 0x1c0ab46
jmp 0x1c0a8bc
push esi
jmp 0x1c0a650
jb 0x1c0a2a7
jmp 0x1c0abf6
lea eax, [ecx + eax*4]
jmp 0x1c0a560
cmp bl, byte [edx]
jmp 0x1c0ad2b
and dword [ebp - 4], edi
jmp 0x1c0a4e9
xor eax, eax
jmp 0x1c0a36a
cmp edx, dword [ecx + 0x18]
jmp 0x1c0a555
mov ecx, dword [edx + 0x78]
jmp 0x1c0a53d
mov edx, dword [ebp - 4]
jmp 0x1c0a3f4
inc edx
jmp 0x1c0ab3e
xor edi, edi
jmp 0x1c0ac7e
cmp dword [edx + 0x7c], edi
jmp 0x1c0ac2f
mov ebx, dword [ebp - 8]
jmp 0x1c0a922
mov edx, dword [eax + edx*4]
jmp 0x1c0a5e0
jae 0x1c0a2a7
jmp 0x1c0ab92
cmp bl, byte [edx + 1]
jmp 0x1c0ab9a
cmp ecx, esi
jmp 0x1c0a51f
sbb edx, 0xffffffff
jmp 0x1c0a9e9
mov ebp, esp
jmp 0x1c0a637
add eax, esi
jmp 0x1c0a6c1
jne 0x1c0a747
jmp 0x1c0a834
jbe 0x1c0a2a7
jmp 0x1c0ac0c
add ecx, esi
jmp 0x1c0a3c1
jb 0x1c0ac89
jmp 0x1c0a7e1
mov bl, byte [ebx]
jmp 0x1c0a22f
sbb edx, edx
jmp 0x1c0a4d6
add edx, esi
jmp 0x1c0a95e
lea eax, [eax + edx*2]
jmp 0x1c0aadb
push ecx
jmp 0x1c0a6d7
mov esi, dword [ebp + 8]
jmp 0x1c0a9bc
jmp 0x1c0a35e
push ebp
jmp 0x1c0a4e1
cmp dword [ecx + 0x18], edi
jmp 0x1c0a8c5
push ecx
jmp 0x1c0aca7
mov ebx, dword [ebp - 8]
jmp 0x1c0a575
je 0x1c0a2a7
jmp 0x1c0ad20
jmp 0x1c0a190
xor edx, edx
jmp 0x1c0acc4
add edx, esi
jmp 0x1c0a32d
mov edx, dword [ebp - 4]
jmp 0x1c0a2d5
test bl, bl
jmp 0x1c0ab7c
inc dword [ebp - 4]
jmp 0x1c0a8a0
jbe 0x1c0a190
jmp 0x1c0a69d
mov bl, byte [ebx + 1]
jmp 0x1c0ab2c
mov edx, dword [ebp - 4]
jl 0x1c0a953
jge 0x1c0a953
scasd eax, dword es:[edi]
jb 0x1c0a8df
mov ecx, dword [ecx + 0x1c]
jmp 0x1c0a62c
dec ecx
sbb al, 0xe9
sar esp, 1
invalid
mov dword [ebp - 8], ebx
jmp 0x1c0a747
xchg dword [esp], edi
lea edi, [edi + 0x34d]
xchg dword [esp], edi
jmp 0x1c0a6ab
cmp ebx, edx
jmp 0x1c0a458
add edx, eax
jmp 0x1c0a982
push edi
jmp 0x1c0a3a8
test edx, edx
jmp 0x1c0a17a
movzx eax, word [eax + esi]
jmp 0x1c0a1d1
mov byte [ebp + 0xb], bl
jmp 0x1c0a46f
test bl, bl
jmp 0x1c0a514
mov eax, dword [ecx + 0x24]
jmp 0x1c0a94a
je 0x1c0a834
jmp 0x1c0a3d4
cmp ebx, eax
jmp 0x1c0a1bd
jne 0x1c0a5ac
jmp 0x1c0a056
mov eax, dword [ecx + 0x20]
jmp 0x1c0a244
sub ebx, eax
jmp 0x1c0a223
mov ebx, dword [ebp + 0xc]
jmp 0x1c0acc9
je 0x1c0a2a7
jmp 0x1c0a4cc
mov eax, dword [ecx + 0x10]
jmp 0x1c0acef
cmp esi, edi
jmp 0x1c0a7cd
mov ebx, dword [ebp + 0xc]
jmp 0x1c0a35e
push ebx
jmp 0x1c0a19b
jmp 0x1c0a9e9
cmp ebx, 0x10000
jmp 0x1c0a12c
mov edx, dword [ecx + 0x14]
jmp 0x1c0a98d
mov edx, dword [esi + 0x3c]
jmp 0x1c0a83f
jne 0x1c0a5ac
jmp 0x1c0a8b4