joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420cb4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00420b25

Function at 0x4210ae
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00410b50
mov eax, dword [0x4410b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041fb88
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4210f0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x42124c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0042e9b0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x442ef8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0042208b
mov ecx, dword [esi*4 + 0x442ef8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x421245
cmp eax, dword [edi + ecx + 0x24]
jne 0x421245
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x421245
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042208b
add esp, 0x14
test edx, edx
jl 0x421245
jg 0x4211bb
test eax, eax
jb 0x421245
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x421245
jl 0x4211d5
cmp dword [ebp - 0x1008], eax
ja 0x421245
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4211f3
test ebx, ebx
je 0x42122c
cmp ecx, edi
jae 0x42122c
mov al, byte [ecx]
cmp al, 0xd
jne 0x42120d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x421219
cmp byte [ecx + 1], 0xa
jne 0x421219
inc ecx
jmp 0x421219
movzx eax, al
movsx eax, byte [eax + 0x441340]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4211f3
cmp edx, ebx
jne 0x4211f3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x42124a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00410052
leave
ret
Function at 0x421543
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x442ef8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x421583
cmp byte [ebx], 0xa
jne 0x421583
or byte [eax + edi + 0x28], 4
jmp 0x421588
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x421686
mov al, byte [edx]
cmp al, 0x1a
je 0x421668
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4215b7
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4215dc
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4215e6
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x421599
jmp 0x421686
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x421663
cmp dword [ebp - 0xc], 0
je 0x421663
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x442ef8]
test byte [eax + edi + 0x28], 0x48
je 0x42163d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x421628
mov byte [esi], dl
jmp 0x421639
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x442ef8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x421686
cmp byte [ebp - 1], 0xa
jne 0x42164c
cmp esi, ebx
jne 0x42164c
mov byte [esi], 0xa
jmp 0x421685
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004220a9
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x421686
mov byte [esi], 0xd
jmp 0x421685
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x442ef8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x421682
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x421686
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42168f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x442ef8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4216d2
cmp word [esi], dx
jne 0x4216d2
or byte [edi + eax + 0x28], 4
jmp 0x4216d7
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x421810
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4217f0
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x421719
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42174f
cmp eax, edx
jae 0x42175b
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4216f1
jmp 0x421810
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4217ec
cmp dword [ebp - 0x14], 0
je 0x4217ec
mov eax, dword [ebx*4 + 0x442ef8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4217c4
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x42180a
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x442ef8]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x442ef8]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x442ef8]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x42180d
pop ebx
cmp word [ebp - 4], bx
jne 0x4217d5
cmp esi, dword [ebp + 0xc]
jne 0x4217d5
mov word [esi], bx
jmp 0x42180d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004220a9
add esp, 0x10
cmp word [ebp - 4], bx
je 0x421810
push 0xd
jmp 0x421809
mov ecx, dword [ebx*4 + 0x442ef8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x421807
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x421810
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42775f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4277fc
push ebx
push esi
call fcn.00427728
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00424069
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4277a9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4277fb
push edi
push eax
call fcn.00422288
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4277c9
call fcn.0041f144
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4277fa
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00424069
add esp, 0x20
test eax, eax
jne 0x4277e8
push edi
call fcn.0041f144
jmp 0x4277f0
push ebx
call fcn.0041f144
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x42e1a5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042e121
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42e31d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42e31d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42e2cc
jg 0x42e1fe
test eax, eax
je 0x42e2c2
push 1
push 0x1000
call fcn.0041f0e7
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x42e224
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x42e2b9
push 0x8000
push ebx
call fcn.0041cfbf
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x42e250
jg 0x42e24b
cmp ecx, 0x1000
jb 0x42e250
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00420925
add esp, 0x10
cmp eax, 0xffffffff
je 0x42e295
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x42e24b
jl 0x42e27c
test ecx, ecx
jne 0x42e23d
push dword [ebp - 0xc]
push ebx
call fcn.0041cfbf
push esi
call fcn.0041f144
add esp, 0xc
xor edi, edi
jmp 0x42e32e
cmp byte [edi + 0x24], 0
je 0x42e2ac
cmp dword [edi + 0x20], 5
jne 0x42e2ac
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x42e2b7
mov edi, dword [edi + 0x18]
jmp 0x42e2b9
xor edi, edi
push esi
call fcn.0041f144
pop ecx
jmp 0x42e32e
test ecx, ecx
jg 0x42e28e
jl 0x42e2cc
test eax, eax
jae 0x42e28e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004220a9
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42e2ef
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42e28e
jmp 0x42e326
push ebx
call fcn.00427e46
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42e28e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x42e32e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42e32b
mov edi, dword [edi + 0x18]
jmp 0x42e32e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004220a9
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42e890
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42e8bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42e8bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x101d1320
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x101d150d
pushal
mov esi, section.UPX1
lea edi, [esi - 0x165000]
push edi
or ebp, 0xffffffff
jmp 0x101d134a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x101d1351
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101d1340
mov eax, 1
add ebx, ebx
jne 0x101d1363
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x101d1374
jne 0x101d1393
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101d1393
dec eax
add ebx, ebx
jne 0x101d1380
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x101d1358
add ebx, ebx
jne 0x101d138f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x101d13e5
xor ecx, ecx
sub eax, 3
jb 0x101d13ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x101d141a
sar eax, 1
mov ebp, eax
jmp 0x101d13b6
add ebx, ebx
jne 0x101d13b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101d1384
inc ecx
add ebx, ebx
jne 0x101d13c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101d1384
add ebx, ebx
jne 0x101d13d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x101d13c6
jne 0x101d13e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x101d13c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x101d1404
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x101d13f6
jmp 0x101d1346
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x101d1404
add edi, ecx
jmp 0x101d1346
pop esi
mov edi, esi
mov ecx, 0x86a1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x101d1422
cmp byte [edi], 0x22
jne 0x101d1422
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 0x101d1427
lea edi, [esi + 0x1c5000]
mov eax, dword [edi]
or eax, eax
je 0x101d149f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1d6960]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1d6aa0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x101d1454
mov ecx, edi
jns 0x101d1483
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 + 0x1d6aa4]
or eax, eax
je 0x101d1499
mov dword [ebx], eax
add ebx, 4
jmp 0x101d1471
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x101d14d0
cmp al, 0xef
ja 0x101d14c3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x101d14a5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x101d14b2
mov ebp, dword [esi + 0x1d6aa8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x247]
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 0x101d1504
sub esp, 0xffffff80
jmp 0x100fc57b
Function at 0x40162d
Capabilities:
Set file attributes

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 4]
jmp sub.MFC42.DLL_CString::CString
Function at 0x402532
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
mov eax, 0x407b14
call sub.MSVCRT.dll__EH_prolog
mov eax, 0x13a4
call fcn.00407200
push ebx
push esi
push edi
mov esi, ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 1
call sub.MFC42.DLL_CString::CString_2
lea eax, [ebp + 8]
push 0x40a11c
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 2
call sub.MFC42.DLL_operator_1
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.004070fe
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
mov ebx, 0x40b0ec
lea eax, [ebp - 0x1c]
push ebx
push str.cmd.exe__c__
push eax
call sub.MFC42.DLL_operator_2
mov edi, 0x40a048
mov byte [ebp - 4], 5
push edi
push eax
lea eax, [ebp - 0x20]
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esi + 0x18d]
mov byte [ebp - 4], 6
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
call sub.MFC42.DLL_operator
push 0x40a108
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 7
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 8
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
call sub.MFC42.DLL_operator
push 0x40a050
mov byte [ebp - 4], 9
push eax
lea eax, [ebp - 0x14]
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 0xa
call fcn.004070fe
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
push dword [ebp - 0x10]
lea eax, [ebp - 0x13b0]
push eax
call sub.MSVCRT.dll_strcpy
cmp byte [esi + 0x1aa], 0
pop ecx
pop ecx
je 0x4026e7
push edi
lea eax, [ebp - 0x20]
push ebx
push eax
call sub.MFC42.DLL_operator_1
lea ecx, [esi + 0x18d]
mov byte [ebp - 4], 0xb
push ecx
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.MFC42.DLL_operator
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
lea ecx, [ebp - 0x1c]
setne bl
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4026e7
xor eax, eax
lea ecx, [ebp - 0x13b0]
push eax
push eax
push eax
push ecx
push eax
mov ecx, esi
call fcn.004053c5
jmp 0x4026f5
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40272a
Capabilities:
Get disk information

Disassembly:
mov eax, 0x407b30
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x14
push ebx
mov dword [ebp - 0x1c], ecx
push esi
push edi
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_2
xor ebx, ebx
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_CString::CString_2
push 0x40b0f0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
xor edi, edi
mov dword [0x40c094], ebx
call fcn.004070f8
push 0x43
mov dword [0x40c098], ebx
mov dword [0x40c09c], ebx
pop esi
cmp esi, 0x5a
jge 0x40280a
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, esi
test al, 1
je 0x402800
cmp dword [0x40c098], ebx
jg 0x40280a
push esi
lea eax, [ebp - 0x10]
push str._c:_
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edi, eax
lea eax, [ebp - 0x18]
push 3
push eax
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::Left
push dword [ebp - 0x10]
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
pop ecx
test eax, eax
lea ecx, [ebp - 0x18]
setne bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4027f8
push ecx
lea eax, [ebp - 0x10]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.0040711c
mov ecx, dword [ebp - 0x1c]
call fcn.0040192d
inc dword [0x40c094]
xor ebx, ebx
inc esi
cmp edi, 1
jne 0x40277a
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x402831
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov eax, 0x407b4c
call sub.MSVCRT.dll__EH_prolog
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
movzx eax, word [ebp + 0xc]
push dword [ebp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
jne 0x40285d
xor esi, esi
jmp 0x4028b2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push ebx
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebx
je 0x402859
push ebx
push ebx
push 2
push ebx
push ebx
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, ebx
je 0x402859
lea eax, [ebp - 0x10]
push ebx
push eax
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, edi
lea ecx, [ebp + 8]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x402de5
Capabilities:
Enumerate gui resources

Disassembly:
push esi
push edi
push 5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov esi, dword [sym.imp.USER32.dll_GetWindow]
push eax
call esi
push 2
push eax
call esi
mov edi, eax
test edi, edi
jbe 0x402e0f
push edi
call fcn.004028dc
pop ecx
push 2
push edi
jmp 0x402dfb
push 0
push 0x402dd5
call dword [sym.imp.USER32.dll_EnumWindows]
pop edi
pop esi
ret

Function at 0x402e1f
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x407b84
call sub.MSVCRT.dll__EH_prolog
push ecx
push ecx
push esi
mov esi, ecx
and dword [ebp - 4], 0
push 0
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.0040711c
call fcn.0040162d
pop ecx
pop ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0x40a0e8
call sub.MFC42.DLL_CString::CString_1
push 0x91
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
mov byte [ebp - 4], 1
call fcn.0040711c
and byte [ebp - 4], 0
mov ecx, esi
call fcn.00402831
push 6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4053c5
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x44
xor esi, esi
pop edi
lea eax, [ebp - 0x58]
push edi
push esi
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
cmp dword [ebp + 0x18], esi
mov dword [ebp - 0x58], edi
jne 0x4053f3
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x28], si
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push 0x40
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp dword [ebp + 0x10], esi
mov edi, dword [ebp - 0x14]
jne 0x40543f
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x405434
push 1
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 1
pop eax
jmp 0x405451
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp + 0x14], esi
je 0x40544e
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll__unlink]
pop ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 0x14