joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404120
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x2068
call fcn.00407540
mov eax, dword [0x42d008]
xor eax, esp
mov dword [esp + 0x2064], eax
mov eax, dword [esp + 0x206c]
push 0x1000
push eax
lea eax, [esp + 0x6c]
mov dword [esp + 8], 0
push eax
call fcn.00404980
push 1
push 0x16
call fcn.0040f510
push 1
push 2
call fcn.0040f510
push 1
push 0xf
call fcn.0040f510
push 1
push 0x15
call fcn.0040f510
add esp, 0x2c
mov dword [esp + 4], 0xc
lea eax, [esp + 0x20]
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, 1
mov dword [esp + 0x24], 0
push 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x50], 0x101
mov word [esp + 0x54], ax
call fcn.0040a65d
push eax
call fcn.0040e61c
push eax
call fcn.0040f059
push 1
mov dword [esp + 0x68], eax
call fcn.0040a65d
push eax
call fcn.0040e61c
push eax
call fcn.0040f059
push 2
mov dword [esp + 0x78], eax
call fcn.0040a65d
push eax
call fcn.0040e61c
push eax
call fcn.0040f059
add esp, 0x24
mov dword [esp + 0x60], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
push 1
push 0
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x404277
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp]
mov ecx, dword [esp + 0x2064]
xor ecx, esp
call fcn.00407520
add esp, 0x2068
ret
push str.Error_creating_child_process__n
push 0x4225f4
call fcn.00401890
mov ecx, dword [esp + 0x206c]
add esp, 8
xor ecx, esp
or eax, 0xffffffff
call fcn.00407520
add esp, 0x2068
ret
Function at 0x412bdb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00412a5a

Function at 0x416f3f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004168ad

Function at 0x416f4a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00416ae8
Function at 0x411608
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push 0x10
pop ecx
xor eax, eax
push 0x100
push eax
mov byte [ebp - 0x44], 0
lea edi, [ebp - 0x43]
push ebx
rep stosd dword es:[edi], eax
call fcn.00421c60
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 8]
call fcn.0041a715
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.00417376
push 0x40
lea eax, [ebp - 0x44]
push eax
lea eax, [ebx + 0x20]
push eax
call fcn.00421920
add esp, 0x28
push 0x40
lea edi, [ebx + 0x60]
lea esi, [ebx + 0x5a]
pop ecx
rep movsb byte es:[edi], byte [esi]
xor eax, eax
mov cl, byte [eax + ebx + 0x9f]
xor cl, byte [eax + ebx]
inc eax
cmp eax, 0x20
mov byte [eax + ebx + 0x9f], cl
jl 0x411663
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
xor ecx, ecx
test esi, esi
jle 0x4116a1
mov al, byte [ecx + ebx + 0xbd]
xor al, byte [ecx + ebx]
inc ecx
cmp ecx, esi
mov byte [ecx + ebx + 0xbf], al
jl 0x41168b
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x4136ff
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
push 0x458d98
inc esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
movzx eax, al
xor ecx, ecx
test eax, eax
jbe 0x41372e
push edi
movzx edx, byte [ecx + 0x458d98]
mov edi, edx
imul edi, esi
xor edi, edx
inc ecx
cmp ecx, eax
mov esi, edi
jb 0x413718
pop edi
mov eax, esi
pop esi
ret

Function at 0x41a0bd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
and dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, 0x10000
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + edx*4]
mov edx, ecx
and ecx, 0xffff
shr edx, 0x10
mov esi, ecx
mov dword [ebp - 8], ecx
mov ecx, edx
imul ecx, edx
mov dword [eax + 4], ecx
mov ecx, esi
imul ecx, esi
mov dword [eax], ecx
mov ebx, edx
sub ebx, esi
sub esi, edx
mov ecx, esi
imul ecx, ebx
xor esi, ebx
mov ebx, dword [eax + 4]
and esi, edi
neg esi
mov dword [ebp - 4], edx
mov edx, ecx
neg edx
sbb edx, edx
and edx, esi
add ecx, ebx
cmp ecx, ebx
sbb esi, esi
and esi, edi
add edx, esi
mov esi, dword [eax]
add ecx, esi
cmp ecx, esi
sbb esi, esi
and esi, edi
add edx, esi
mov esi, ecx
shl esi, 0x10
add dword [eax], esi
cmp dword [eax], esi
sbb esi, esi
neg esi
shr ecx, 0x10
add esi, ebx
add ecx, esi
add ecx, edx
mov dword [eax + 4], ecx
add eax, 8
inc dword [ebp + 8]
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp + 0x10]
jl 0x41a0d1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a15e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x14], eax
shr dword [ebp + 0x14], 0x10
and eax, 0xffff
push esi
mov dword [ebp + 0xc], eax
push edi
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + edx*4]
mov ecx, dword [ebp + 0x14]
mov esi, edi
and edi, 0xffff
shr esi, 0x10
mov edx, edi
imul edx, dword [ebp + 0xc]
mov dword [ebp - 8], esi
imul esi, ecx
sub edi, dword [ebp - 8]
sub ecx, dword [ebp + 0xc]
mov eax, edi
imul eax, ecx
mov dword [ebp - 0xc], ecx
xor edi, dword [ebp - 0xc]
mov ecx, eax
and edi, 0x10000
neg edi
neg ecx
sbb ecx, ecx
and ecx, edi
add eax, esi
cmp eax, esi
sbb edi, edi
add eax, edx
and edi, 0x10000
add ecx, edi
cmp eax, edx
sbb edi, edi
and edi, 0x10000
add ecx, edi
mov edi, eax
shl edi, 0x10
add edx, edi
cmp edx, edi
sbb edi, edi
shr eax, 0x10
neg edi
add edi, ecx
add eax, edi
add esi, eax
mov eax, dword [ebx]
lea ecx, [edx + edx]
add eax, ecx
cmp eax, ecx
sbb edi, edi
neg edi
cmp ecx, edx
sbb ecx, ecx
neg ecx
add ecx, dword [ebp - 4]
mov dword [ebx], eax
add ebx, 4
mov eax, dword [ebx]
lea edx, [ecx + edi]
lea edi, [esi + esi]
add eax, edi
cmp eax, edi
sbb ecx, ecx
neg ecx
cmp edi, esi
sbb esi, esi
add edx, eax
neg esi
add ecx, esi
cmp edx, eax
sbb eax, eax
neg eax
add eax, ecx
inc dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x18]
mov dword [ebx], edx
jl 0x41a186
add ebx, 4
cmp dword [ebp - 4], 0
pop edi
pop esi
je 0x41a27e
mov edx, dword [ebp + 0x18]
add edx, edx
cmp dword [ebp + 8], edx
jge 0x41a27e
mov eax, dword [ebx]
mov ecx, dword [ebp - 4]
add ecx, eax
cmp ecx, eax
sbb eax, eax
neg eax
mov dword [ebx], ecx
add ebx, 4
inc dword [ebp + 8]
test eax, eax
mov dword [ebp - 4], eax
jne 0x41a25d
pop ebx
leave
ret
Function at 0x41b477
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, dword [ebp + 0x14]
xor edx, edx
cmp edi, edx
je 0x41b591
mov eax, dword [ebp + 0xc]
mov ecx, eax
and ecx, 7
push ebx
push esi
mov dword [ebp - 4], edx
je 0x41b4b5
mov ebx, dword [ebp + 8]
mov edx, ecx
mov esi, eax
shr esi, 3
mov bl, byte [esi + ebx]
mov cl, 8
sub cl, dl
shr bl, cl
movzx cx, bl
mov word [ebp - 4], cx
add edi, 7
shr eax, 3
shr edi, 3
xor esi, esi
test edi, edi
mov dword [ebp - 0xc], eax
jle 0x41b58f
lea eax, [edi - 1]
cmp esi, eax
je 0x41b4e6
mov eax, dword [ebp + 0x10]
movzx ax, byte [esi + eax]
xor ecx, ecx
mov ch, byte [ebp - 4]
xor eax, ecx
add edx, 8
jmp 0x41b516
mov eax, dword [ebp + 0x14]
and eax, 7
mov dword [ebp - 8], 8
je 0x41b4f8
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
movzx eax, byte [esi + eax]
mov ebx, dword [ebp - 4]
mov cl, 8
sub cl, byte [ebp - 8]
shr al, cl
mov ecx, dword [ebp - 8]
shl ebx, cl
movzx ax, al
or eax, ebx
add edx, ecx
mov dword [ebp - 4], eax
xor ecx, ecx
lea eax, [edi - 1]
cmp esi, eax
setne cl
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
xor eax, eax
cmp edx, 8
setge al
test ecx, eax
jne 0x41b54a
xor ecx, ecx
lea eax, [edi - 1]
cmp esi, eax
sete cl
xor ebx, ebx
test edx, edx
setg bl
test ebx, ecx
je 0x41b586
push 8
pop eax
cmp edx, eax
mov dword [ebp - 8], eax
jg 0x41b557
mov dword [ebp - 8], edx
mov ebx, dword [ebp - 4]
mov cl, dl
sub cl, byte [ebp - 8]
shr bx, cl
mov ecx, eax
sub ecx, dword [ebp - 8]
mov eax, 0xff00
shl bl, cl
mov ecx, dword [ebp - 8]
sar eax, cl
mov ecx, dword [ebp - 0xc]
and bl, al
mov eax, dword [ebp + 8]
inc dword [ebp - 0xc]
sub edx, dword [ebp - 8]
mov byte [ecx + eax], bl
jmp 0x41b526
inc esi
cmp esi, edi
jl 0x41b4ce
pop esi
pop ebx
pop edi
leave
ret
Function at 0x422b93
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42b7f8
call fcn.0042238c
mov edi, 0x94
mov eax, edi
call fcn.00421df0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x463b28], ecx
mov eax, dword [esi + 4]
mov dword [0x463b34], eax
mov edx, dword [esi + 8]
mov dword [0x463b38], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x463b2c], esi
cmp ecx, 2
je 0x422bf3
or esi, 0x8000
mov dword [0x463b2c], esi
shl eax, 8
add eax, edx
mov dword [0x463b30], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x422c2e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x422c2e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x422c46
cmp eax, 0x20b
je 0x422c33
mov dword [ebp - 0x1c], esi
jmp 0x422c5a
cmp dword [ecx + 0x84], 0xe
jbe 0x422c2e
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x422c54
cmp dword [ecx + 0x74], 0xe
jbe 0x422c2e
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00425b9f
pop ecx
test eax, eax
jne 0x422c86
cmp dword [0x463b08], 1
jne 0x422c73
call fcn.00425354
push 0x1c
call fcn.004251dd
push 0xff
call fcn.00423d5c
pop ecx
pop ecx
call fcn.00425afd
mov dword [ebp - 4], esi
call fcn.00425952
test eax, eax
jge 0x422c9f
push 0x1b
call fcn.00422b6e
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4650f0], eax
call fcn.00425830
mov dword [0x463b00], eax
call fcn.0042578e
test eax, eax
jge 0x422cc5
push 8
call fcn.00422b6e
pop ecx
call fcn.0042555b
test eax, eax
jge 0x422cd6
push 9
call fcn.00422b6e
pop ecx
push 1
call fcn.00423d8c
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x422cec
push eax
call fcn.00422b6e
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004254fe
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x422d0d
movzx eax, word [ebp - 0x40]
jmp 0x422d10
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0040da5b
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x422d2e
push edi
call fcn.00423eb7
call fcn.00423ed9
jmp 0x422d60
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004223c7
ret
Function at 0x424246
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x424274
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x42427b
cmp ebx, dword [eax + 4]
jae 0x42427b
xor eax, eax
jmp 0x42446b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x42428c
xor eax, eax
inc eax
jmp 0x42446a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4242a2
cmp ecx, edx
jae 0x4243e7
cmp dword [eax + 4], 0
je 0x4242ab
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x424293
cmp dword [ebp + 8], 0
je 0x4242cd
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4243e7
cmp eax, esi
jae 0x4243e7
mov eax, dword [0x463b70]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4242f2
cmp dword [esi*4 + 0x463b78], edi
je 0x4243eb
inc esi
cmp esi, eax
jl 0x4242e0
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x424467
cmp dword [ebp - 8], 0x1000000
jne 0x424467
test byte [ebp - 0xc], 0xcc
je 0x424370
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x424467
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x424467
cmp word [eax + 0x18], 0x10b
jne 0x424467
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x424467
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x424370
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x424370
test byte [ecx + 0x27], 0x80
jne 0x4243e7
push 1
push 0x463bb8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x424284
mov ecx, dword [0x463b70]
test ecx, ecx
mov edx, ecx
jle 0x4243a4
lea eax, [ecx*4 + 0x463b74]
cmp dword [eax], edi
je 0x4243a4
dec edx
sub eax, 4
test edx, edx
jg 0x424398
test edx, edx
jne 0x4243d5
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4243b1
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4243c9
lea eax, [edx*4 + 0x463b78]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4243b7
cmp ecx, 0x10
jge 0x4243d5
inc ecx
mov dword [0x463b70], ecx
push 0
push 0x463bb8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x424284
xor eax, eax
jmp 0x42446a
test esi, esi
jle 0x424284
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x463bb8
call ebx
test eax, eax
jne 0x424284
cmp dword [esi*4 + 0x463b78], edi
je 0x424441
mov eax, dword [0x463b70]
lea esi, [eax - 1]
test esi, esi
jl 0x42442f
cmp dword [esi*4 + 0x463b78], edi
je 0x42442b
dec esi
jns 0x42441f
test esi, esi
jge 0x42443f
cmp eax, 0x10
jge 0x42443a
inc eax
mov dword [0x463b70], eax
lea esi, [eax - 1]
jmp 0x424441
je 0x424459
xor ecx, ecx
test esi, esi
jl 0x424459
lea eax, [ecx*4 + 0x463b78]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x424447
push 0
push 0x463bb8
call ebx
jmp 0x424284
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402a7c
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x423f30]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402af7
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x402afe
cmp dword [ebp + 0x10], ebx
jne 0x402aeb
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a7c
test eax, eax
jne 0x402afe
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x402abe
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405f8e
cmp eax, ebx
je 0x402b23
push ebx
push dword [0x423f30]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402af7
cmp dword [0x423f30], ebx
jne 0x402af4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402af4
jmp 0x402af7
Function at 0x402f6a
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f97
mov ecx, dword [0x423ed8]
push edi
add eax, ecx
push edi
push eax
mov dword [0x41703c], eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00403095
cmp eax, edi
jl 0x40308e
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x409018]
call ebx
test eax, eax
je 0x40308b
cmp dword [ebp - 4], esi
jne 0x40308b
push dword [ebp + 8]
add dword [0x41703c], esi
call fcn.00403095
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x40308e
cmp dword [ebp + 0x10], edi
jne 0x40305a
cmp dword [ebp + 8], edi
jle 0x403086
mov esi, 0x413038
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x40300a
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x409018]
call ebx
test eax, eax
je 0x40308b
cmp edi, dword [ebp - 4]
jne 0x40308b
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403056
cmp dword [ebp + 0x14], edi
jne 0x403056
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41703c], eax
cmp dword [ebp + 8], 0
jg 0x402ffd
jmp 0x403086
push 0xfffffffffffffffe
jmp 0x40308d
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403065
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409018]
call ebx
test eax, eax
je 0x40308b
mov eax, dword [ebp - 4]
add dword [0x41703c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40308e
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403095
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x41703c]
sub esi, dword [0x40afa8]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x423e8c], eax
jle 0x4031fd
push dword [0x41f04c]
call fcn.00403246
push ebx
push ebx
push dword [0x40afa8]
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41f048], esi
mov dword [0x417038], ebx
mov ebp, 0x40b038
mov eax, dword [0x417040]
mov edi, 0x4000
sub eax, dword [0x41f04c]
cmp eax, edi
jg 0x40310a
mov edi, eax
mov esi, 0x413038
push edi
push esi
call fcn.00403214
test eax, eax
je 0x4031e5
add dword [0x41f04c], edi
mov dword [0x40afc8], esi
mov dword [0x40afcc], edi
cmp dword [0x423e90], ebx
je 0x403161
cmp dword [0x423f20], ebx
jne 0x403161
mov eax, dword [0x41f048]
push ebx
sub eax, dword [0x41703c]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40afa8]
mov dword [0x417038], eax
call fcn.00402c25
pop ecx
mov ecx, 0x40afb0
mov dword [0x40afd0], ebp
mov dword [0x40afd4], 0x8000
call fcn.0040609c
test eax, eax
jl 0x40320f
mov esi, dword [0x40afd0]
sub esi, ebp
je 0x4031bf
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4031ea
cmp esi, dword [esp + 0x10]
jne 0x4031ea
add dword [0x40afa8], esi
cmp dword [0x40afcc], ebx
jne 0x403130
jmp 0x4031cb
cmp dword [0x40afcc], ebx
jne 0x40320f
cmp edi, ebx
je 0x40320f
mov eax, dword [0x41703c]
mov ecx, eax
sub ecx, dword [0x40afa8]
add ecx, dword [esp + 0x18]
test ecx, ecx
jle 0x4031ee
jmp 0x4030f4
or eax, 0xffffffff
jmp 0x403207
push 0xfffffffffffffffe
jmp 0x403211
push ebx
push ebx
push eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00402c25
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
push 0xfffffffffffffffd
pop eax
jmp 0x403207
Function at 0x405477
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x422490], 0x44
push eax
xor eax, eax
push 0x422490
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 0x4054b2
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405558
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.0040580e
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x40558c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423f08], eax
jmp 0x405725
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x4055aa
test eax, eax
je 0x4056d0
test byte [ebp + 0xc], 2
je 0x4056d0
mov esi, 0x421490
push edi
push esi
call fcn.00405c42
test ebx, ebx
je 0x4055c7
push str..
push esi
call fcn.00405c65
jmp 0x4055cd
push edi
call fcn.00405772
cmp byte [edi], 0
jne 0x4055db
cmp byte [0x421490], 0x5c
jne 0x4055e6
push 0x409010
push edi
call fcn.00405c65
push edi
call fcn.00405c58
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 0x4056c6
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00405756
cmp byte [eax], 0
je 0x40562c
cmp byte [ebp - 0x18], 0
je 0x40562c
lea esi, [ebp - 0x18]
mov al, byte [esi]
cmp al, 0x2e
jne 0x405647
cmp byte [esi + 1], 0
je 0x4056a5
cmp al, al
jne 0x405647
cmp byte [esi + 1], al
jne 0x405647
cmp byte [esi + 2], 0
je 0x4056a5
push esi
push ebx
call fcn.00405c42
test byte [ebp - 0x148], 0x10
je 0x40566c
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4056a5
push dword [ebp + 0xc]
push edi
call fcn.00405558
jmp 0x4056a5
push edi
call fcn.004058f8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40569d
test byte [ebp + 0xc], 4
je 0x405695
push edi
push 0xfffffffffffffff1
call fcn.00404fab
push 0
push edi
call fcn.0040598f
jmp 0x4056a5
inc dword [0x423f08]
jmp 0x4056a5
push edi
push 0xfffffffffffffff2
call fcn.00404fab
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40560a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x4056d0
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x405725
cmp dword [ebp - 8], esi
jne 0x4056e5
inc dword [0x423f08]
jmp 0x405725
push edi
call fcn.00405f67
test eax, eax
je 0x405725
push edi
call fcn.0040572b
push edi
call fcn.004058f8
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40571d
test byte [ebp + 0xc], 4
je 0x4056dd
push edi
push 0xfffffffffffffff1
call fcn.00404fab
push esi
push edi
call fcn.0040598f
jmp 0x405725
push edi
push 0xffffffffffffffe5
call fcn.00404fab
pop edi
pop esi
leave
ret 8