joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219

Function at 0x41ad50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x411015
lea edi, [esi - 0x10015]
push edi
or ebp, 0xffffffff
jmp 0x41ad72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41ad79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41ad68
mov eax, 1
add ebx, ebx
jne 0x41ad8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41ad80
jne 0x41ad9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41ad80
xor ecx, ecx
sub eax, 3
jb 0x41adb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41ae22
mov ebp, eax
add ebx, ebx
jne 0x41adbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41adc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41adec
inc ecx
add ebx, ebx
jne 0x41add8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41adcd
jne 0x41ade9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41adcd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41ae0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41adfd
jmp 0x41ad6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41ae0c
add edi, ecx
jmp 0x41ad6e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41ae2a
cmp byte [edi], 5
jne 0x41ae2a
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 0x41ae2f
lea edi, [esi + 0x18000]
mov eax, dword [edi]
or eax, eax
je 0x41aea7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a094]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41ae5c
mov ecx, edi
jns 0x41ae8b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1a09c]
or eax, eax
je 0x41aea1
mov dword [ebx], eax
add ebx, 4
jmp 0x41ae79
call dword [esi + 0x1a098]
mov ebp, dword [esi + 0x1a0a0]
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 0x41aedb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00404502
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00404502
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00404502
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00404502
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00404502
mov dword [0x41203c], eax
call fcn.00404502
test eax, eax
jge 0x402550
push 8
call fcn.00404502
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00404502
pop ecx
push 1
call fcn.00404502
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00404502
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00404502
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00404502
jmp 0x402495

Function at 0x404502
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x404511
pop dword [ebp - 0x30]
mov eax, 0x526f3ae1
add eax, 0xadd10a30
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x39af6
push 0
mov eax, 0xd474b95a
add eax, 0x2bcc277e
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0xe6d0cdc8
add ecx, 0x192f7c28
xor edi, edi
add edi, eax
mov edx, 0x7980b507
add edx, 0x86c086bd
add edx, dword [ebp - 0x30]
mov esi, 0x182de071
sub esi, 0xb3189c32
add dword [ebp - 0x24], edi
mov ebx, dword [edx]
add dword [ebp - 8], 0x3c260a42
xor ebx, esi
mov dword [edi], ebx
xor dword [ebp - 0x28], 0x1f1ec53e
add edi, 4
add edx, 4
loop 0x404572
add eax, 0x11a93
xor ebx, ebx
add ebx, eax
add eax, 0xdd2b35ed
add eax, 0x22d4ca18
mov ecx, 0xad9938c2
sub ecx, 0xad5938c2
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x4011a8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x418060
push 0x6d
push dword [0x41ac8c]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4011d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401287
push dword [ebp - 0x10]
push dword [0x41ac8c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4011f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401287
push dword [ebp - 0x10]
push dword [0x41ac8c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401218
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401287
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x401232
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401287
push 0x41805c
push 0x41bc90
call fcn.0040cc9b
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x401251
push 0xfffffffffffffffb
pop eax
jmp 0x401287
push dword [ebp - 0x14]
push dword [ebp - 0xc]
push 1
push dword [ebp - 8]
call fcn.0040cb71
add esp, 0x10
cmp eax, dword [ebp - 0xc]
jne 0x401274
push dword [ebp - 0x14]
call fcn.0040cb1b
pop ecx
jmp 0x401282
push dword [ebp - 0x14]
call fcn.0040cb1b
pop ecx
push 0xfffffffffffffff5
pop eax
jmp 0x401287
call fcn.004016d1
leave
ret

Function at 0x401289
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x41c090
call fcn.00401b5a
pop ecx
test eax, eax
jne 0x4012a1
push 0xfffffffffffffff6
pop eax
jmp 0x401311
call section..text
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4012b4
mov eax, dword [ebp - 4]
jmp 0x401311
call fcn.004011a8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4012c7
mov eax, dword [ebp - 4]
jmp 0x401311
push dword [ebp + 8]
push 0x41b890
push 0x41c090
call fcn.004020eb
add esp, 0xc
test eax, eax
je 0x4012e6
and dword [ebp - 4], 0
jmp 0x4012ed
mov dword [ebp - 4], 0xfffffff4
push 0x41b890
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
movsx eax, byte [0x41c090]
test eax, eax
je 0x40130e
push 0x41c090
call fcn.00401cd2
pop ecx
mov eax, dword [ebp - 4]
leave
ret
Function at 0x4016d1
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push 0x418068
push 0x41bc90
call fcn.00402301
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4016fa
push 0xfffffffffffffffc
pop eax
jmp 0x401737
push 0x41805c
push 0x41b890
call fcn.0040cc9b
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x401719
push 0xfffffffffffffffb
pop eax
jmp 0x401737
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.00401636
pop ecx
pop ecx
mov dword [ebp - 4], eax
push 0x41bc90
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 4]
leave
ret

Function at 0x401b5a
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
call fcn.00401aa7
test eax, eax
je 0x401b73
xor eax, eax
jmp 0x401cd0
and dword [ebp - 4], 0
and dword [ebp - 8], 0
and byte [ebp - 0x408], 0
lea eax, [ebp - 0x408]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [ebp - 0x418]
cdq
push 0x32
pop ecx
idiv ecx
mov dword [ebp - 0x41c], edx
mov eax, dword [ebp - 0x41c]
imul eax, eax, 0xc
movzx ecx, word [ebp - 0x416]
add eax, ecx
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp - 0x41c]
imul eax, eax, 0x1f
movzx ecx, word [ebp - 0x412]
add eax, ecx
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp - 0x41c]
imul eax, eax, 0x18
movzx ecx, word [ebp - 0x410]
add eax, ecx
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp - 0x41c]
imul eax, eax, 0x3c
movzx ecx, word [ebp - 0x40e]
add eax, ecx
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp - 0x41c]
imul eax, eax, 0x3c
movzx ecx, word [ebp - 0x40c]
add eax, ecx
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 8], 0
jne 0x401c9d
push dword [ebp + 8]
lea eax, [ebp - 0x41c]
push eax
call fcn.00401b27
pop ecx
push eax
push 0x418084
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x424], eax
cmp dword [ebp - 8], 0
jne 0x401c8a
cmp dword [ebp - 0x424], 0x50
je 0x401c8a
cmp dword [ebp - 0x424], 0xb7
jne 0x401c97
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x64
jl 0x401c9b
xor eax, eax
jmp 0x401cd0
jmp 0x401c2c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x420], eax
mov eax, 0x400
sub eax, dword [ebp - 0x420]
push eax
push 0x418080
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 1
pop eax
leave
ret
Function at 0x401cd2
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov dword [ebp - 0x14c], 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x148], eax
mov eax, 0x400
sub eax, dword [ebp - 0x148]
push eax
push 0x418090
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x140]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0xffffffff
jne 0x401d47
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x148]
and byte [eax], 0
xor eax, eax
jmp 0x401ee2
push 0x41808c
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x401d73
push 0x418088
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x401d78
jmp 0x401e69
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x140]
and eax, 0x10
test eax, eax
je 0x401e24
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x148]
lea eax, [ecx + eax + 1]
cmp eax, 0x400
jl 0x401dc8
cmp dword [ebp - 0x14c], 0
je 0x401dc3
and dword [ebp - 0x14c], 0
jmp 0x401e69
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x418080
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp + 8]
call fcn.00401cd2
pop ecx
test eax, eax
je 0x401e0f
cmp dword [ebp - 0x14c], 0
je 0x401e0f
mov dword [ebp - 0x154], 1
jmp 0x401e16
and dword [ebp - 0x154], 0
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x14c], eax
jmp 0x401e69
mov eax, dword [ebp - 0x148]
add eax, dword [ebp - 0x150]
cmp eax, 0x400
jl 0x401e49
cmp dword [ebp - 0x14c], 0
je 0x401e47
and dword [ebp - 0x14c], 0
jmp 0x401e69
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x144]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401d47
push dword [ebp - 0x144]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x148], 0
jle 0x401edc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x148]
and byte [eax], 0
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x148]
and byte [eax - 1], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x401ecf
cmp dword [ebp - 0x14c], 0
je 0x401ecf
and dword [ebp - 0x14c], 0
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x148]
mov byte [eax - 1], 0x5c
mov eax, dword [ebp - 0x14c]
leave
ret
Function at 0x401ee4
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x148], eax
mov eax, 0x104
sub eax, dword [ebp - 0x148]
push eax
push 0x418090
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x140]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 0xffffffff
jne 0x401f4f
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x148]
and byte [eax], 0
xor eax, eax
jmp 0x4020e9
push 0x41808c
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x401f7b
push 0x418088
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x401f80
jmp 0x4020b4
mov eax, dword [ebp - 0x140]
and eax, 0x10
test eax, eax
je 0x40200b
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x148]
lea eax, [ecx + eax + 1]
cmp eax, 0x104
jl 0x401fb0
jmp 0x4020b4
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x418080
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401ee4
pop ecx
pop ecx
test eax, eax
je 0x402006
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x148]
and byte [eax], 0
push dword [ebp - 0x144]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
pop eax
jmp 0x4020e9
jmp 0x4020b4
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x148]
add ecx, eax
cmp ecx, 0x104
jl 0x40202d
jmp 0x4020b4
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0xffffffff
jne 0x40209f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x40209f
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x148]
and byte [eax], 0
push dword [ebp - 0x144]
call dword [sym.imp.KERNEL32.dll_FindClose]
push 1
pop eax
jmp 0x4020e9
cmp dword [ebp - 0x14c], 0xffffffff
je 0x4020b4
push dword [ebp - 0x14c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x140]
push eax
push dword [ebp - 0x144]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401f4f
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x148]
and byte [eax], 0
push dword [ebp - 0x144]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
leave
ret
Function at 0x4020eb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x108]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x108]
cmp eax, ecx
jbe 0x40213c
mov eax, dword [ebp - 4]
movsx eax, byte [eax]
cmp eax, 0x5c
je 0x40213c
mov eax, dword [ebp - 4]
dec eax
mov dword [ebp - 4], eax
jmp 0x40211b
mov eax, dword [ebp - 4]
and byte [eax], 0
push 0x3c
push 0
lea eax, [ebp - 0x144]
push eax
call fcn.0040ce70
add esp, 0xc
mov dword [ebp - 0x144], 0x3c
mov dword [ebp - 0x140], 0x140
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x108]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x128], 1
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
push 0xffffffffffffffff
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call fcn.00401ee4
pop ecx
pop ecx
test eax, eax
je 0x402235
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 3
push 0
push 0
push 0x80000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0xffffffff
jne 0x40221e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x4021dd
cmp dword [ebp - 0x148], 0xffffffff
je 0x402233
push dword [ebp - 0x148]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4021c8
push 1
pop eax
leave
ret
Function at 0x4019d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
mov eax, dword [0x4130f0]
xor eax, ebp
mov dword [ebp - 4], eax
fld qword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
sub esp, 8
fstp qword [esp]
lea eax, [ebp - 0x104]
push 0x410430
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x10
push ebx
push 0xff
lea ecx, [ebp - 0x504]
push ecx
lea edx, [ebp - 0x104]
push edx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x504]
push eax
call dword [sym.imp.MSVCR100.dll_atof]
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e620
mov esp, ebp
pop ebp
ret
Function at 0x401b20
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
mov eax, dword [0x4130f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x214]
push edi
mov dword [ebp - 0x358], esi
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401b48
lea eax, [ebp - 0x214]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401b60
mov cx, word [0x410458]
mov dl, byte [0x41045a]
mov word [eax], cx
mov byte [eax + 2], dl
lea edx, [ebp - 0x10c]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401b85
lea edi, [ebp - 0x10c]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401b96
mov ax, word [0x410454]
lea ecx, [ebp - 0x354]
push ecx
lea edx, [ebp - 0x214]
push edx
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
xor eax, eax
mov dword [ebp - 0x35c], edi
cmp edi, 0xffffffff
je 0x401d13
mov edi, edi
mov cl, byte [ebp + eax - 0x10c]
mov byte [ebp + eax - 0x214], cl
inc eax
test cl, cl
jne 0x401bd0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ebx, [ebx]
lea eax, [ebp - 0x354]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x401ce4
cmp byte [ebp - 0x328], 0x2e
je 0x401bf0
lea eax, [ebp - 0x328]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401c17
lea edi, [ebp - 0x10c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401c27
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, byte [ebp - 0x354]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test al, 0x10
je 0x401c94
lea ecx, [ebp - 0x10c]
push ecx
call fcn.00401b20
add esp, 4
lea edx, [ebp - 0x10c]
push edx
call ebx
xor eax, eax
jmp 0x401c70
mov cl, byte [ebp + eax - 0x214]
mov byte [ebp + eax - 0x10c], cl
inc eax
test cl, cl
jne 0x401c70
mov esi, dword [ebp - 0x358]
mov edi, dword [ebp - 0x35c]
jmp 0x401bf0
test al, 1
je 0x401cad
lea eax, [ebp - 0x10c]
push 0x80
push eax
call dword [sym.imp.MSVCR100.dll__chmod]
add esp, 8
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
lea esp, [esp]
mov cl, byte [ebp + eax - 0x214]
mov byte [ebp + eax - 0x10c], cl
inc eax
test cl, cl
jne 0x401cc0
mov esi, dword [ebp - 0x358]
mov edi, dword [ebp - 0x35c]
jmp 0x401bf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
cmp eax, 0x12
je 0x401d09
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e620
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040e620
mov esp, ebp
pop ebp
ret
Function at 0x401d30
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
lea ecx, [ebp - 4]
push ecx
push ebx
mov dword [ebp - 4], 0
mov byte [eax], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x401dc2
push edi
push esi
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x401dc1
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x401db7
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 8]
push eax
push 0x410454
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x401db7
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
mov eax, dword [ebp + 0xc]
push ecx
push edx
push str._ld_ld_ld_ld
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x18
push edi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret