joyce8/EMBER2024-capa huggingface dataset:
Function at 0x19f8094
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov al, byte [esp + 6]
xchg ebp, edx
xchg bp, ax
xchg cx, bx
mov dx, 0x4aff
lea ebx, [edx + esi]
jmp 0x19f8067
xchg word [esp + 3], bp
mov esi, 0x34027773
jmp 0x19f807d

Function at 0x19f8864
Capabilities:
Execute anti-debugging instructions

Disassembly:
add esp, 5
mov byte [esp + 1], dl
pop di
dec edi
jmp 0x19f88a0
cld
sub esp, 0x11
mov dx, 0x22d2
xchg word [esp + 0xa], cx
xchg word [esp + 0xb], bp
jmp 0x19f888a

Function at 0x19f895c
Capabilities:
Execute anti-debugging instructions

Disassembly:
push di
pop edx
std
jmp 0x19f8966
cmc
sub esp, 0x16
mov dword [esp + 0xf], ebp
not dx
bswap edx
clc
jmp 0x19f89bf
rdtsc
mov word [esp + 0x1d], sp
mov ax, 0x8e55
not bl
not ax
mov ax, cx
jmp 0x19f8997

Function at 0x19f8b84
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov ebp, 0x62f2fdc7
lea ebp, reloc.mscoree.dll__CorExeMain
mov word [esp + 3], di
jmp 0x19f8a67
mov ch, 0xb9
lea ecx, [ecx + esi]
push word [esp]
sub esp, 9
xchg word [esp + 0xb], di
mov cl, 1
jmp 0x19f8a3c
adc edi, 0x81192d18
rdtsc
mov esi, dword [esp]
inc ebx
mov dh, ch
add esp, 0xd
jmp 0x19f8ab4
inc edi
ror ebp, cl
pop word [esp + 2]
xchg word [esp], ax
cpuid
lea esp, [esp + 0x12]
jmp 0x19f8a52
mov dx, word [esp + 2]
xchg si, ax
push word [esp + 0xa]
bsr edi, edx
jmp 0x19f8af4
xchg dl, cl
pushal
inc cl
mov cx, 0x4175
lea eax, [edx*4]
dec edx
jmp 0x19f8a9e
pop ebx
shl dl, 0
mov bh, 0xf0
pop ax
mov word [esp + 5], dx
mov si, ax
jmp 0x19f8a8a
mov ax, sp
lea ecx, [ecx + ebp]
mov bp, bx
mov dh, cl
add esp, 6
rdtsc
jmp 0x19f8b46
xchg cx, bp
rdtsc
mov esi, dword [esp + 0x1e]
not al
pop esi
add esp, 0x15
jmp 0x19f8ade
bsr esi, esi
mov di, 0x48ea
sbb ch, bl
xchg ch, bl
bts ebp, edi
jmp 0x19f8b2f
xchg word [esp + 5], si
lea edi, [eax + ebp]
mov word [esp + 2], bp
inc ecx
add esp, 9
std
jmp 0x19f8b05
lea ebp, [ebp*4]
mov bl, byte [esp]
sub esp, 0x14
add esp, 4
jmp 0x19f8b5a
pushfd
mov bl, ah
mov dword [esp + 3], ecx
push word [esp]
mov byte [esp], al
mov bx, 0x2a4d
jmp 0x19f8b1b
mov ah, cl
pop eax
lea esp, [esp + 1]
lea esp, [esp + 0xc]
popal
sub esp, 0x1d
jmp 0x19f8ba8
mov si, 0xb574
mov ecx, 0x93e815f8
jmp 0x19f8acc
sub esp, 7
lea esp, [esp + 0x24]
popfd
jmp 0x19f8ed0
push 0x2487015b
add dword [esp], reloc.mscoree.dll__CorExeMain
Function at 0x19f98a9
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov bx, word [esp + 0xf]
pushal
pop bp
ror ah, 1
rdtsc
mov bh, cl
jmp 0x19f98ab
jmp 0x19f988a
mov si, 0x15c
mov dl, ah
mov si, word [esp + 0x10]
not edx
push dword [esp + 0x14]
push dword [esp + 0x27]
jmp 0x19f9941
mov byte [esp + 0x11], bh
lea edx, [ecx - 0x83]
xchg dl, dh
mov esi, 0x5a25e34a
rcr ax, cl
ror ebx, 0x13
jmp 0x19f98f2
add esp, 4
push dword [esp + 0x17]
mov bp, 0x9640
pop word [esp + 0x1b]
xchg dl, al
lea esp, [esp + 0xb]
jmp 0x19f9908

Function at 0x19f9c85
Capabilities:
Execute anti-debugging instructions

Disassembly:
sub esp, 0xe
mov eax, 0xf3c2f2be
pop esi
jmp 0x19f9d10
bswap esi
xchg byte [esp + 0x17], cl
push dword [esp + 0x17]
dec al
jmp 0x19f9d25
mov bp, 0x4d80
pushfd
rdtsc
push dword [esp + 0xf]
xchg ah, ch
bsr bx, ax
jmp 0x19f9cd6
mov ebx, esp
mov ah, byte [esp + 0x2b]
mov word [esp], bx
add esp, 0x20
mov byte [esp], ah
mov di, bx
jmp 0x19f9cec
lea ebp, [edx*4]
lea edx, [ecx*4]
pop cx
lea esi, [eax*4]
jmp 0x19f9d79
lea ebx, reloc.mscoree.dll__CorExeMain
pop dword [esp + 0x15]
cpuid
btr cx, ax
jmp 0x19f9dbf
lea ebx, [edi + ebp]
mov si, word [esp + 0x13]
mov ecx, 0x7e6519de
mov si, word [esp + 0xb]
jmp 0x19f9d63
push word [esp + 4]
lea eax, reloc.mscoree.dll__CorExeMain
push ax
jmp 0x19f9de8
lea esi, reloc.mscoree.dll__CorExeMain
xchg ah, al
xchg byte [esp + 0x12], bh
pop si
cmc
rdtsc
jmp 0x19f9da9
pop dword [esp + 0xa]
lea esp, [esp + 0xd]
lea esp, [esp + 4]
jmp 0x19f9e13
mov byte [esp + 0x15], dh
mov ebx, dword [esp + 0x19]
lea esp, [esp + 0xd]
mov byte [esp + 2], al
push esp
mov bh, bl
jmp 0x19f9dd2
lea esp, [esp]
rcr eax, 0x15
inc eax
add esp, 0
clc
mov bp, sp
jmp 0x19f9e3b
lea ecx, reloc.mscoree.dll__CorExeMain
not eax
cpuid
mov bl, ah
sbb ah, al
adc ch, ch
jmp 0x19f9dfd
cld
shl ax, 1
lea esp, [esp + 1]
mov byte [esp + 2], al
lea edi, [eax + ebp]
jmp 0x19f9e61
mov edx, dword [esp]
mov al, ah
mov bh, dh
adc ebx, ebp
pushfd
mov byte [esp + 2], bl
jmp 0x19f9e25
xchg di, dx
xchg bp, dx
bswap eax
neg esi
cld
mov word [esp], dx
jmp 0x19f9f40
xchg byte [esp], cl
pop di
xchg ah, dh
mov ax, 0xa796
mov dl, 0xb5
mov ch, byte [esp + 1]
jmp 0x19f9e4b
push word [esp + 1]
btc di, si
stc
call fcn.019f9ea2
mov al, ah
bswap eax
bsr di, si
bts dx, bx
lea esp, [esp + 3]
inc ecx
jmp 0x19f9f19
mov edi, dword [esp + 3]
cmc
xchg bx, ax
mov dl, byte [esp + 3]
pop word [esp]
mov dl, byte [esp + 1]
jmp 0x19f9eb8
cld
pop eax
mov byte [esp + 1], dl
add bx, ax
stc
cpuid
jmp 0x19f9f51
bt ax, sp
lea esi, [eax*4]
bswap ebp
stc
lea edx, [ebp*4]
bts esi, ebx
jmp 0x19f9f03
cmc
mov ecx, dword [esp]
neg ax
mov di, dx
sub esp, 2
neg dh
jmp 0x19f9eed
ror edi, 0xe
cmc
call 0x19f9f5b
rcl bp, cl
xchg word [esp + 3], bp
cpuid
lea esi, [edx + edi]
jmp 0x19f9fc2
mov bx, word [esp]
call fcn.019f9fda
movsd dword es:[edi], dword [esi]
sub al, 0xa2
lds esi, [ebx + ebx*8]
mov ch, 0x39
test eax, 0x98d73bc8
mov dl, byte [esp + 1]
mov edi, 0xb7635b65
lea edx, [ebx + edi]
xchg word [esp], ax
pop edi
mov cx, word [esp + 1]
jmp 0x19f9f90
mov ebx, edi
xchg dword [esp], edi
mov edx, esi
lea ebx, [ebx*4]
mov byte [esp + 2], cl
xchg byte [esp + 2], bh
jmp 0x19f9fa6
Function at 0x19f9fda
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esp, [esp + 5]
xchg byte [esp], bh
cmc
sub bp, si
xchg si, di
jmp 0x19fbc7d
push dword [esp + 0x12]
add esp, 0xc
sub esp, 6
xchg al, bh
pop dword [esp + 6]
jmp 0x19fa02a
xchg byte [esp + 0x14], dh
rdtsc
mov bl, al
xchg ch, dl
mov bh, 0xf4
sbb edx, ebp
jmp 0x19f9fee
mov si, 0xc2c9
btr ebp, esi
lea esi, reloc.mscoree.dll__CorExeMain
call fcn.019fa216
int3
mov ecx, dword [esp + 0xb]
mov esi, 0x4e8e6950
adc cx, di
neg edx
xchg word [esp + 0xb], dx
jmp 0x19fa014
bswap esi
pop word [esp + 5]
mov dh, ch
mov byte [esp + 0xc], ch
mov dh, byte [esp + 0x15]
mov dh, 0xe3
jmp 0x19fa004
xchg dword [esp + 0xd], edx
mov ch, al
sub esp, 4
cld
sub esp, 1
xchg ebp, ebx
jmp 0x19fa044
lea ebp, [eax + eax]
inc ebx
not di
mov cl, 0x40
bswap edx
mov dword [esp + 0xe], eax
jmp 0x19fa297
dec ebp
cpuid
lea ebp, [eax + edi]
mov eax, 0xdbf55e93
sub esp, 0x15
mov byte [esp + 0x12], cl
jmp 0x19fb268
mov dx, bp
bsr edi, ebp
mov di, dx
mov ah, 0x49
mov bl, bh
rdtsc
jmp 0x19fb96f
add esp, 1
lea esp, [esp]
lea esp, [esp]
lea ebx, [ecx + edi]
bswap ebx
add esp, 0
jmp 0x19fb9bc

Function at 0x19fa0d0
Capabilities:
Execute anti-debugging instructions

Disassembly:
bsf di, cx
pop word [esp]
lea esp, [esp + 0x10]
jmp 0x19fa0d2
jmp 0x19fa0ba
pop word [esp + 2]
mov ebp, 0x27acf43c
mov bp, dx
inc dx
btc ebx, ebx
pop word [esp]
jmp 0x19fa10e

Function at 0x19fa4b9
Capabilities:
Execute anti-debugging instructions

Disassembly:
cld
lea ecx, reloc.mscoree.dll__CorExeMain
mov cx, word [esp]
jmp 0x19fa653
std
pop word [esp + 9]
lea esp, [esp + 0x15]
btc ax, bx
bsf eax, esp
pop eax
jmp 0x19fa536
mov edi, eax
add ecx, ebx
std
lea edi, [edx + ebp]
sub esp, 0xa
pushfd
jmp 0x19fa4f1
mov ch, byte [esp + 3]
add esp, 3
shl ah, 3
mov cx, word [esp + 4]
mov word [esp + 1], di
mov bh, dl
jmp 0x19fa5ac
lea edx, [ecx + ebx]
lea ecx, [ecx + ebp]
mov bh, byte [esp + 1]
bswap ecx
xchg word [esp + 3], bx
push word [esp + 4]
jmp 0x19fa518
rdtsc
push esi
btr dx, di
lea esp, [esp + 2]
bswap esi
neg eax
jmp 0x19fa591
setl ch
bswap edi
cpuid
lea ebp, [esi*4]
mov si, 0x3aa7
mov esi, dword [esp]
jmp 0x19fa54e
lea eax, reloc.mscoree.dll__CorExeMain
btr si, si
mov si, word [esp + 0x10]
jmp 0x19fa5d8
setne bh
neg bx
stc
xchg byte [esp + 2], ah
xchg si, bx
sub esp, 0x1f
jmp 0x19fa57b
lea eax, reloc.mscoree.dll__CorExeMain
xchg byte [esp + 1], ch
pop di
setg bh
mov dh, 0x5a
bsr ebp, ecx
jmp 0x19fa564
popal
stc
cld
std
popfd
jmp 0x19fa628
xchg dword [esp + 0x15], edx
bswap ebx
rdtsc
dec bx
setle ch
lea esp, [esp + 0x24]
jmp 0x19fa5c2
rdtsc
mov bp, word [esp + 8]
cpuid
pop word [esp + 0xe]
lea edi, [eax*4]
mov di, 0xf85a
jmp 0x19fa50a
lea esp, [esp + 4]
push si
call fcn.019fa612
pop edx
xchg ebp, eax
xchg word [esp + 1], di
pop edx
btc ax, ax
sub esp, 0x12
jmp 0x19fa5f4
Function at 0x19fa6e1
Capabilities:
Access peb ldr_data

Disassembly:
call fcn.019fa0ef
mov dword [esp], eax
push word [esp + 3]
call fcn.019fa6a6
lea esp, [esp + 2]
mov dword [esp + 0x14], edi
lea esp, [esp + 0x14]
jmp 0x19fa71b
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
jmp 0x19fa862
mov eax, dword [eax]
mov eax, dword [eax + 8]
push eax
jmp 0x19fa0ea

Function at 0x19faf4d
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov byte [esp], dl
lea ebp, [edi*4]
neg bl
cpuid
mov esi, esp
jmp 0x19fa42b
add esp, 0
lea esp, [esp]
lea edi, [ebp*4]
btc si, di
bswap esi
xchg byte [esp], ah
jmp 0x19fa2ab
mov si, 0xee3a
clc
setbe ch
seto cl
mov bh, 0xbe
lea eax, [ebp + ebp]
jmp 0x19fa316
mov edx, esp
lea eax, [ecx*4]
mov cl, 0xd1
and ah, 0xa8
lea esp, [esp]
jmp 0x19fa36c
inc bp
lea ebp, [ecx*4]
mov al, bh
mov ecx, dword [esp]
std
mov cl, 0x15
jmp 0x19fa2d9
mov edi, ecx
mov bh, byte [esp]
mov bp, word [esp]
rdtsc
xchg byte [esp], ch
mov di, word [esp]
jmp 0x19fa2ec
xchg al, ah
mov ebx, dword [esp]
cmp cx, 0x807c
xchg ebx, esi
xchg esi, ecx
bswap ebx
jmp 0x19fa303
xchg edi, ecx
mov edi, eax
xchg dx, di
add esp, 0xf
xchg byte [esp + 0xb], ah
add esp, 4
jmp 0x19fa396
xchg cl, ah
mov ah, byte [esp + 7]
mov cl, 0xae
xchg byte [esp + 3], cl
xchg byte [esp], ch
jmp 0x19fa380
setbe ah
mov bl, byte [esp]
rdtsc
sets bh
bsf ax, cx
sub esp, 0x1c
jmp 0x19fa343
mov word [esp + 3], cx
inc eax
mov esi, ebx
lea eax, reloc.mscoree.dll__CorExeMain
jmp 0x19fa3c6
mov bx, ax
xchg byte [esp + 6], dl
lea ebx, [edx + ebp]
not bh
bsf cx, cx
lea esp, [esp + 1]
jmp 0x19fa356
xchg bh, cl
push dword [esp + 5]
mov dword [esp + 1], ecx
pop word [esp + 2]
mov word [esp + 9], ax
jmp 0x19fa3f6
mov word [esp], di
push dword [esp + 5]
mov byte [esp + 6], dh
lea ebp, reloc.mscoree.dll__CorExeMain
xchg dx, bx
add esp, 3
jmp 0x19fa3ac
push dword [esp + 7]
inc ah
bswap edx
cmp ebp, edi
xchg byte [esp + 9], dl
cld
jmp 0x19fa40e
mov byte [esp + 5], bh
mov edi, 0xa92cee47
push dword [esp + 2]
lea eax, [esi + edi]
mov ah, 0x77
xchg dword [esp + 1], esi
jmp 0x19fa3e0
cpuid
xchg dword [esp + 0xa], ebp
mov al, byte [esp + 6]
call fcn.019fa4ab
ficomp word [ebp - 0x33]
xchg esp, eax
xchg dword [bx + si], ebp
scasb al, byte es:[edi]
cmp al, 0x5b
mov dh, 0x5f
aas
push es
mov di, dx
xchg ecx, edx
btr esi, ebp
add esp, 0
setp al
mov byte [esp], bl
jmp 0x19fa331
push word [esp]
mov ebx, ecx
xchg esi, ebx
not bp
lea esp, [esp + 0x22]
lea eax, reloc.mscoree.dll__CorExeMain
jmp 0x19fa2c1
pushal
mov ch, 0x12
xchg ah, al
cmc
mov ecx, 0xbe018e8
pop word [esp + 0x1d]
jmp 0x19fa4d7
mov byte [esp + 2], al
lea esp, [esp + 8]
xchg ebx, ecx
xchg bh, dh
lea edx, reloc.mscoree.dll__CorExeMain
jmp 0x19faa24
Function at 0x105d33e0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x105d35cd
pushal
mov esi, section.UPX1
lea edi, [esi - 0x355000]
push edi
or ebp, 0xffffffff
jmp 0x105d340a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x105d3411
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105d3400
mov eax, 1
add ebx, ebx
jne 0x105d3423
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x105d3434
jne 0x105d3453
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105d3453
dec eax
add ebx, ebx
jne 0x105d3440
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x105d3418
add ebx, ebx
jne 0x105d344f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x105d34a5
xor ecx, ecx
sub eax, 3
jb 0x105d346b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x105d34da
sar eax, 1
mov ebp, eax
jmp 0x105d3476
add ebx, ebx
jne 0x105d3476
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105d3444
inc ecx
add ebx, ebx
jne 0x105d3484
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x105d3444
add ebx, ebx
jne 0x105d3491
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x105d3486
jne 0x105d34a2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x105d3486
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x105d34c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x105d34b6
jmp 0x105d3406
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x105d34c4
add edi, ecx
jmp 0x105d3406
pop esi
mov edi, esi
mov ecx, 0x65e5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x105d34e2
cmp byte [edi], 0x27
jne 0x105d34e2
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 0x105d34e7
lea edi, [esi + 0x5c8000]
mov eax, dword [edi]
or eax, eax
je 0x105d355f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5e61c8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5e62f8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x105d3514
mov ecx, edi
jns 0x105d3543
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 + 0x5e62fc]
or eax, eax
je 0x105d3559
mov dword [ebx], eax
add ebx, 4
jmp 0x105d3531
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 0x105d3590
cmp al, 0xef
ja 0x105d3583
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x105d3565
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x105d3572
mov ebp, dword [esi + 0x5e6300]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x105d35c4
sub esp, 0xffffff80
jmp 0x100fb2ca
Function at 0x4024c7
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, eax
dec eax
test ecx, ecx
je 0x4024e0
lea ecx, [eax + 1]
mov eax, dword [esp + 4]
xor byte [eax], 0xa5
inc eax
dec ecx
jne 0x4024d9
ret

Function at 0x402fc3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
lea eax, [ebp - 0x38]
push ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll__stat]
pop ecx
test eax, eax
pop ecx
je 0x403058
push 0x40c548
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
je 0x403058
push esi
lea eax, [ebp + 0xc]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_time]
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_srand]
pop ecx
lea esi, [ebp - 0x14]
pop ecx
push 8
pop edi
call dword [sym.imp.MSVCRT.dll_rand]
mov word [esi], ax
inc esi
inc esi
dec edi
jne 0x403010
mov eax, dword [ebp + 0xc]
pop edi
mov dword [ebp - 4], eax
xor ecx, ecx
lea eax, [ebp - 0x11]
pop esi
mov dl, byte [ebp + ecx - 4]
inc ecx
mov byte [eax], dl
inc eax
inc eax
cmp ecx, 4
jb 0x40302b
mov al, byte [ebp + 0x10]
push ebx
mov byte [ebp - 0x10], al
push 0x10
lea eax, [ebp - 0x14]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.00403068
pop ecx
pop ecx
pop ebx
leave
ret

Function at 0x403119
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x40c54c
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, dword [ebp + 0x10]
pop ecx
test edi, edi
pop ecx
mov esi, eax
je 0x40313e
and byte [edi], 0
test esi, esi
jne 0x403149
push 5
jmp 0x4031d5
push esi
push 0x10
lea eax, [ebp - 0x14]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
push esi
mov ebx, eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
cmp ebx, 0x10
je 0x40316d
push 4
jmp 0x4031d5
cmp byte [ebp - 0x10], 2
jne 0x403169
xor ecx, ecx
lea eax, [ebp - 0x11]
mov dl, byte [eax]
mov byte [ebp + ecx + 8], dl
inc ecx
inc eax
inc eax
cmp ecx, 4
jb 0x403178
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
imul esi, esi, 0x15180
test edi, edi
je 0x4031bd
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebx + esi]
push eax
call fcn.0040273f
push edi
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00402cfd
add esp, 0x20
mov edi, dword [sym.imp.MSVCRT.dll_time]
lea eax, [ebp - 4]
push eax
call edi
add eax, 0x3f480
pop ecx
cmp ebx, eax
jle 0x4031d8
push 2
pop eax
jmp 0x4031eb
lea eax, [ebp - 4]
push eax
call edi
pop ecx
add ebx, esi
xor ecx, ecx
cmp ebx, eax
setl cl
inc ecx
mov eax, ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40327e
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_malloc]
push 0x11c
call edi
push dword [ebp + 8]
mov esi, eax
call sub.MSVCRT.dll_strlen
add eax, 4
push eax
call edi
push dword [ebp + 8]
mov edi, eax
push edi
call sub.MSVCRT.dll_strcpy
push 0x40c550
push edi
call sub.MSVCRT.dll_strcat
add esp, 0x1c
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push edi
mov edi, dword [sym.imp.MSVCRT.dll_free]
mov dword [esi], eax
call edi
cmp dword [esi], 0xffffffff
pop ecx
jne 0x403328
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jl 0x4032f8
cmp eax, 3
jle 0x40331a
cmp eax, 8
je 0x40330c
cmp eax, 0x12
je 0x40331a
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 0x16
push esi
call edi
pop ecx
xor eax, eax
jmp 0x403370
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 0xc
jmp 0x403304
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 2
jmp 0x403304
mov eax, dword [ebp - 0x140]
sub eax, 0x80
neg eax
sbb eax, eax
and eax, dword [ebp - 0x140]
mov word [esi + 0xa], 0xa
mov word [esi + 8], 0xa
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x120]
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x114]
push eax
lea eax, [esi + 0x10]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
mov byte [esi + 0x118], 1
pop ecx
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x4038a3
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10a4
call fcn.00408a40
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [eax + 0x3c]
xor edx, edx
cmp word [ecx + eax + 0x5c], 2
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x10a4]
push dword [ebp + 8]
sete dl
push eax
mov esi, edx
call dword [sym.imp.MSVCRT.dll_vsprintf]
add esp, 0xc
lea eax, [ebp - 0x10a4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test esi, esi
pop esi
je 0x40391e
lea eax, [ebp - 0x104]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push 0
push eax
lea eax, [ebp - 0x10a4]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push eax
lea eax, [ebp - 0x10a4]
push eax
call dword [sym.imp.MSVCRT.dll_fputs]
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push eax
push 0xa
call dword [sym.imp.MSVCRT.dll_fputc]
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_fflush]
add esp, 0x14
leave
ret
Function at 0x40427b
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
cmp dword [0x40f6c0], 2
push esi
push edi
jne 0x40436c
push str.advapi32.dll
xor edi, edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
je 0x4042b4
push str.GetUserNameW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, edi
mov dword [ebp - 4], 0x208
je 0x40436c
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x21c]
push eax
call esi
test eax, eax
je 0x40436c
cmp word [ebp - 0x21c], di
lea eax, [ebp - 0x21c]
je 0x404361
push ebx
jmp 0x4042ed
mov eax, dword [ebp - 8]
movzx ebx, word [eax]
inc eax
inc eax
cmp ebx, 0x20
mov dword [ebp - 8], eax
jne 0x404300
push 0x5f
pop ebx
cmp ebx, 0x20
jl 0x404324
cmp ebx, 0x7e
jg 0x404324
push ebx
push str._:___
call dword [sym.imp.MSVCRT.dll_strchr]
pop ecx
test eax, eax
pop ecx
jne 0x404324
and byte [ebp - 0x13], al
push 1
mov byte [ebp - 0x14], bl
pop eax
jmp 0x404337
push ebx
lea eax, [ebp - 0x14]
push str.__x_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea esi, [eax + edi]
lea ecx, [esi + 1]
cmp ecx, dword [ebp + 0xc]
jae 0x404357
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
add edi, eax
push edi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edi, esi
mov eax, dword [ebp - 8]
cmp word [eax], 0
jne 0x4042ea
pop ebx
mov eax, dword [ebp + 8]
and byte [edi + eax], 0
mov eax, edi
jmp 0x40438d
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x404386
and byte [esi], al
push esi
call sub.MSVCRT.dll_strlen
pop ecx
pop edi
pop esi
leave
ret

Function at 0x405003
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
mov ebx, dword [ebp + 8]
push edi
push ebx
call fcn.0040327e
mov edi, eax
pop ecx
test edi, edi
je 0x4050c6
push esi
push ebx
call sub.MSVCRT.dll_strlen
mov esi, eax
lea eax, [ebp - 0x400]
push esi
push ebx
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
mov al, byte [ebp + esi - 0x401]
add esp, 0x10
cmp al, 0x2f
je 0x405055
cmp al, 0x5c
je 0x405055
mov byte [ebp + esi - 0x400], 0x5c
inc esi
push edi
call fcn.00403374
test eax, eax
pop ecx
je 0x4050be
cmp byte [eax + 0x10], 0x2e
lea ecx, [eax + 0x10]
jne 0x40507b
mov dl, byte [eax + 0x11]
test dl, dl
je 0x405055
cmp dl, 0x2e
jne 0x40507b
cmp byte [eax + 0x12], 0
je 0x405055
lea eax, [ebp + esi - 0x400]
push ecx
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x400]
push 0x1ff
push eax
call dword [sym.imp.MSVCRT.dll__chmod]
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.MSVCRT.dll__unlink]
add esp, 0x14
test eax, eax
je 0x405055
lea eax, [ebp - 0x400]
push eax
call fcn.00405003
pop ecx
jmp 0x405055
push edi
call fcn.00403433
pop ecx
pop esi
push ebx
call dword [sym.imp.MSVCRT.dll__rmdir]
pop ecx
pop edi
pop ebx
leave
ret