joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5200b0
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov dword [edi + 4], ebx
call fcn.004328b0
push 0x50
push edi
mov dword [esp + 0x18], eax
call fcn.00521e70
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x5200f4
push edi
call fcn.00431b40
mov eax, dword [edi]
push edi
mov dword [eax + 0x14], 0x35
mov ecx, dword [edi]
mov dword [ecx + 0x18], ebx
mov edx, dword [edi]
call dword [edx]
add esp, 8
mov dword [esi], fcn.005201f0
mov dword [esi + 4], fcn.00520340
mov dword [esi + 8], fcn.005203f0
mov dword [esi + 0xc], fcn.005204a0
mov dword [esi + 0x10], 0x520550
mov dword [esi + 0x14], 0x5205c0
mov dword [esi + 0x18], 0x520630
mov dword [esi + 0x1c], 0x5207b0
mov dword [esi + 0x20], 0x5209a0
mov dword [esi + 0x24], fcn.00520b90
mov dword [esi + 0x28], 0x520c90
mov eax, dword [esp + 0xc]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x3c]
mov ecx, 2
mov dword [eax - 8], ebx
mov dword [eax], ebx
sub eax, 4
dec ecx
jne 0x52014f
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], 0x50
push str.JPEGMEM
mov dword [edi + 4], esi
call sub.MSVCRT.dll_getenv
add esp, 4
cmp eax, ebx
je 0x5201df
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
push str._ld_c
push eax
mov byte [esp + 0x24], 0x78
call sub.MSVCRT.dll_sscanf
add esp, 0x10
test eax, eax
jle 0x5201df
mov al, byte [esp + 0x14]
cmp al, 0x6d
je 0x5201a8
cmp al, 0x4d
jne 0x5201cc
mov eax, dword [esp + 0xc]
pop edi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1001a093
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x1001a0a2
pop dword [ebp - 0x4c]
mov eax, 0x1001a0a2
sub dword [ebp - 0x4c], eax
push 0x40
push 0x1000
push 0x3c0c3
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x4c]
call dword [eax]
mov ecx, 0x3643
xor esi, esi
add esi, eax
mov edx, 0x1003be00
add edx, dword [ebp - 0x4c]
mov ebx, 0x9c554215
add ebx, 0x73972811
xor dword [ebp - 0xc], 0x1cb373e2
mov edi, dword [edx]
add dword [ebp - 0x34], 0x58be364f
xor edi, ebx
sub dword [ebp - 0x2c], edi
mov dword [esi], edi
xor dword [ebp - 8], 0xb1c08a33
add esi, 4
add edx, 0xeabef5a0
sub edx, 0xeabef59c
loop 0x1001a0ed
add eax, 0xcbdf
xor ebx, ebx
add ebx, eax
add eax, 0x796039d
sub eax, 0x7960398
mov ecx, 0xe32703b0
sub ecx, 0xd32703b0
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret

Function at 0x100289d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100330b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10035b0c]
test dword [ebp + 8], eax
je 0x10028a7a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call fcn.1001a093
xor eax, eax
add esp, 0xc
mov word [ebp - 8], ax
mov eax, dword [0x10035b08]
test eax, eax
je 0x10028a6d
lea ecx, [ebp - 0x808]
push ecx
push eax
call fcn.1001a093
mov eax, dword [0x100330ac]
pop ecx
pop ecx
test eax, eax
jle 0x10028a7a
push esi
mov esi, dword [0x10035b10]
push edi
mov edi, dword [0x10035b14]
cdq
push edx
push eax
push edi
push esi
call fcn.10029420
add esi, 1
mov dword [0x10035b10], esi
adc edi, 0
or eax, edx
mov dword [0x10035b14], edi
pop edi
pop esi
jne 0x10028a7a
push dword [0x10035b08]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
pop ecx
jmp 0x10028a7a
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028d50
leave
ret
Function at 0x420bca
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push 0x14
push 0x4788f8
call fcn.00475f6c
mov esi, edx
mov ebx, ecx
mov edi, dword [ebp + 8]
mov eax, dword [edi]
lea ecx, [eax + esi]
mov dword [ebp - 0x1c], ecx
and dword [ebp - 4], 0
mov edx, dword [ebp + 0xc]
cmp eax, edx
jae 0x420bf5
mov edx, eax
mov dword [ebp + 0xc], edx
sub eax, edx
mov dword [edi], eax
mov di, word [ebp + 0x10]
mov eax, edx
dec edx
mov dword [ebp + 0xc], edx
test eax, eax
je 0x420c26
movzx ecx, byte [esi]
add cx, di
mov eax, 0x3193
movzx ecx, cx
imul ecx, eax
mov edi, 0x58bf
sub di, cx
inc esi
mov dword [ebp - 0x20], esi
jmp 0x420bfd
cmp esi, dword [ebp - 0x1c]
jae 0x420c58
movzx edx, byte [esi]
inc esi
mov dword [ebp - 0x20], esi
movzx ecx, di
shr ecx, 8
xor ecx, edx
mov byte [ebx], cl
inc ebx
mov dword [ebp - 0x24], ebx
add dx, di
mov eax, 0x3193
movzx ecx, dx
imul ecx, eax
mov edi, 0x58bf
sub di, cx
jmp 0x420c26
mov dword [ebp - 4], 0xfffffffe
call fcn.00420c6c
call fcn.00475fb1
ret 0xc

Function at 0x425e78
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, edx
xor ebx, ebx
push edi
mov byte [esi], bl
test cx, cx
jns 0x425e96
neg ecx
mov byte [esi], 1
movzx ecx, cx
movsx eax, cx
mov edi, 0x1c2
cdq
idiv edi
movzx ecx, ax
mov al, cl
mov dword [ebp - 4], ecx
sar al, 2
and al, 1
movzx edx, dx
xor byte [esi], al
mov eax, ecx
and eax, 1
mov dword [ebp - 8], eax
je 0x425ec2
sub edi, edx
movzx edx, di
movsx eax, dx
push 0x23cf532
shl eax, 0x10
push eax
call int.00476090
mov esi, eax
shl esi, 0xe
push esi
push esi
call fcn.00476034
mov ecx, eax
mov eax, dword [ebp - 4]
sar eax, 1
and eax, 1
mov dword [ebp - 0xc], ecx
cmp ax, word [ebp - 8]
jne 0x425ef6
mov edi, ebx
jmp 0x425f00
xor ebx, ebx
mov edi, 0x40000000
inc ebx
mov esi, ecx
mov dword [ebp - 4], 4
movsx eax, bx
push esi
push dword [eax*4 + 0x405070]
call fcn.00476034
push dword [ebp - 0xc]
add edi, eax
push esi
call fcn.00476034
add ebx, 2
mov esi, eax
sub dword [ebp - 4], 1
jne 0x425f07
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4290c0
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x47c9c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [0x47f33c]
mov eax, dword [0x47f308]
push ebx
push esi
mov esi, dword [0x47f304]
lea ecx, [edx + edx]
sub ecx, esi
add ecx, eax
sub eax, esi
add ecx, ecx
push edi
mov edi, 0x7fffffff
cmp edi, eax
sbb eax, eax
not eax
and eax, ecx
mov ecx, 0x3fffffff
cmp ecx, edx
sbb ecx, ecx
not ecx
and ecx, eax
mov eax, edx
shl eax, 2
cmp ecx, eax
mov eax, dword [0x47f334]
sbb ebx, ebx
xor edi, edi
not ebx
and ebx, ecx
cmp dword [eax + 4], ebx
jae 0x42918a
mov eax, dword [eax]
mov edx, dword [0x47f334]
mov dword [ebp - 8], eax
mov eax, dword [0x47f1e0]
push ebx
push dword [edx]
mov eax, dword [eax + 0x178]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x14]
mov ecx, esi
call dword [0x480148]
call esi
mov ecx, dword [0x47f334]
mov dword [ecx], eax
mov eax, dword [0x47f334]
cmp dword [eax], edi
je 0x4291fd
mov dword [eax + 4], ebx
mov ecx, dword [0x47f334]
mov edx, dword [0x47f33c]
mov esi, dword [0x47f304]
mov eax, dword [ecx + 4]
shr eax, 2
mov dword [0x47f340], eax
mov eax, dword [ecx]
mov dword [0x47f344], eax
jmp 0x42918f
mov eax, dword [0x47f344]
lea ebx, [eax + edx*4]
mov dword [0x47f348], esi
mov eax, dword [0x47f308]
movzx edx, word [0x47f328]
sub eax, esi
cmp dword [0x47f308], esi
mov dword [0x47f338], ebx
sbb ecx, ecx
not ecx
and ecx, eax
mov dword [ebp - 8], ecx
jbe 0x4291e5
mov word [ebx], dx
mov eax, edx
movzx ecx, byte [esi]
lea ebx, [ebx + 2]
shr eax, 8
xor al, cl
mov byte [esi], al
lea eax, [ecx + edx]
imul edx, eax, 0xce6d
add edx, 0x58bf
inc esi
inc edi
cmp edi, dword [ebp - 8]
jb 0x4291bd
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov word [0x47f328], dx
pop ebx
call fcn.00475950
mov esp, ebp
pop ebp
ret
mov eax, dword [0x47f1e0]
lea edx, [ebp - 8]
push edx
mov eax, dword [eax + 0x178]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x480148]
call esi
mov eax, dword [0x47f334]
push 0xfffffffffffffffa
pop ecx
mov dword [eax + 4], edi
call fcn.00428f15
int3

Function at 0x429564
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [0x47f31c], 0
je 0x4295ea
mov edx, dword [0x47f308]
push esi
mov esi, dword [0x47f304]
cmp esi, edx
je 0x4295db
mov eax, dword [0x47f338]
mov ecx, esi
sub ecx, dword [0x47f348]
push ebx
xor ebx, ebx
push edi
movzx ecx, word [eax + ecx*2]
mov eax, edx
sub eax, esi
mov dword [ebp - 4], ecx
cmp edx, esi
sbb edi, edi
not edi
and edi, eax
jbe 0x4295d9
mov edx, ecx
mov eax, 0x3193
shr edx, 8
xor dl, byte [esi]
movzx ecx, dl
add cx, word [ebp - 4]
movzx ecx, cx
imul ecx, eax
mov eax, 0x58bf
mov byte [esi], dl
sub ax, cx
inc esi
inc ebx
movzx ecx, ax
mov dword [ebp - 4], ecx
cmp ebx, edi
jb 0x4295aa
pop edi
pop ebx
and dword [0x47f31c], 0
and dword [0x47f318], 0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Packed with generic packer

Disassembly:
mov eax, 0x831eac
push eax
push ds
add dword [eax], 0x50
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x401080
arpl word [edx + esi], si
adc ebx, dword [edi - 0x54]
xchg ebx, eax
neg dl
push cs
dec ecx
mov eax, 0x7fb97088
add ah, ah
aam 0xeb
jp 0x40109d
mov byte [eax - 0x47], dh
jg 0x401033
in al, 0xd4
jmp 0x4010af
test eax, 0xcf33638c
adc ch, bl
js 0x400fd0
sbb ch, ah
daa
stosd dword es:[edi], eax
mov dword [0x540fb128], eax
xchg edi, eax
inc ecx
and dword [esi + esi*8 - 0x78], ebp
rcr byte [eax - 0x2e], 0xa4
sti
push ss
scasd eax, dword es:[edi]
jne 0x40108b
jl 0x40102c
salc
pushal
jbe 0x401085
daa
xchg esp, eax
lcall 0xa4e8, 0x1020bb2d
push eax
in eax, dx
xor bl, ah
sti
bnd jg 0x401002
popal
lea ebp, [edx - 0x70bb56c6]
push ds
pop ss
cmp dword [eax + ebx*8 + 0x46], eax
and byte [eax - 0x702274c0], al
pop eax
test al, 0xc5
fisttp qword [edi + 0x3dc5a858]
lahf
mov ah, 0xc2
sub ecx, dword [0x6e1df55c]
cmp eax, 0x2bc2b49f
or eax, 0x6e1df55c
pop esp
cmc
sbb eax, 0x97530b6e
or edx, dword [ebx - 0x69]
in al, 0x34
sub dword [ebx], esp
jge 0x401055
ja 0x4010fe
fld xword [esi - 7]
or al, 0xb7
dec edx
mov ch, 0xfc
outsd dx, dword [esi]
jns 0x4010cd
fcom qword [eax - 0x69d98623]
retf 0x41f8
and ecx, eax
hlt
int1
push 0xffffffffffffffb7
dec edx
mul dword [esi - 0x69]
invalid
push edx
inc edi
aas
int1
lds esi, [eax - 0x386d9885]
out 0xf1, eax
xchg edx, eax
cmp al, 0x61
sahf
jmp 0xb6298785
Function at 0x805370
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2db000]
push edi
jmp 0x80538a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x805391
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x805380
mov eax, 1
add ebx, ebx
jne 0x8053a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8053b4
jne 0x8053d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8053d3
dec eax
add ebx, ebx
jne 0x8053c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x805398
add ebx, ebx
jne 0x8053cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x805425
xor ecx, ecx
sub eax, 3
jb 0x8053eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x80545a
sar eax, 1
mov ebp, eax
jmp 0x8053f6
add ebx, ebx
jne 0x8053f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8053c4
inc ecx
add ebx, ebx
jne 0x805404
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8053c4
add ebx, ebx
jne 0x805411
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x805406
jne 0x805422
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x805406
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x805444
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x805436
jmp 0x805386
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x805444
add edi, ecx
jmp 0x805386
pop esi
mov edi, esi
mov ecx, 0x8b6a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x805462
cmp byte [edi], 0x29
jne 0x805462
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 0x805467
lea edi, [esi + section.UPX0]
mov eax, dword [edi]
or eax, eax
je 0x8054df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x417080]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4171ac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x805494
mov ecx, edi
jns 0x8054c3
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 + 0x4171b0]
or eax, eax
je 0x8054d9
mov dword [ebx], eax
add ebx, 4
jmp 0x8054b1
call dword [esi + 0x4171c0]
mov ebp, dword [esi + 0x4171b4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
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 0x805513
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x4058d5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x4058e4
pop dword [ebp - 0x20]
mov eax, 0xe93160a6
sub eax, 0xe8f107c2
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x2f743d4b
add dword [ebp - 0x30], 0x1ede0800
mov dword [ebp - 0x2c], 0x3616a1bf
add dword [ebp - 0x2c], 0xfc1caa86
mov dword [ebp - 0x28], 0x615fe659
sub dword [ebp - 0x28], 0x1513a22b
mov dword [ebp - 0x24], 0xc1db4053
sub dword [ebp - 0x24], 0xc1db4053
lea eax, [ebp - 0x30]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xdc0e2f6a
sub dword [ebp - 0x30], 0x679bc614
mov dword [ebp - 0x2c], 0xfaf7a77b
add dword [ebp - 0x2c], 0x4674b9fa
mov dword [ebp - 0x28], 0x9c2effff
add dword [ebp - 0x28], 0xc7406c6d
mov dword [ebp - 0x24], 0xee996100
add dword [ebp - 0x24], 0x11669f00
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0xa384a281
sub eax, 0xa3442181
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x39f60
push 0
call eax
mov ecx, 0x10159c1f
sub ecx, 0x10154824
xor esi, esi
add esi, eax
mov edx, 0x450400
add edx, dword [ebp - 0x20]
mov edi, 0xd23e436c
sub edi, 0xede02a04
xor dword [ebp - 0x10], 0x5f45303
mov ebx, dword [edx]
add dword [ebp - 8], 0xed4fef83
xor ebx, edi
mov dword [esi], ebx
xor dword [ebp - 0x1c], ecx
add esi, 4
add edx, 0xa5605e8
sub edx, 0xa5605e4
loop 0x4059fd
add eax, 0x53e8a731
add eax, 0xac189b8e
mov ebx, eax
add eax, 0x2f1bcb38
add eax, 0xd0e434cd
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x405ba0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x42fa50
push esi
call fcn.004060e4
push esi
call fcn.00405b43
mov edi, eax
test edi, edi
jne 0x405bc1
xor eax, eax
jmp 0x405c19
push edi
call fcn.00406378
test byte [0x434ef8], 0x80
je 0x405bde
mov ax, word [edi]
test ax, ax
je 0x405bbd
cmp ax, 0x5c
je 0x405bbd
sub edi, esi
sar edi, 1
jmp 0x405bf8
call fcn.00406427
test eax, eax
je 0x405bf2
test byte [eax], 0x10
je 0x405bbd
push esi
call fcn.00405ae4
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405be4
call fcn.00405a98
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405c94
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405cb3
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405cb9
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
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_CreateFileW]
ret 0xc
Function at 0x401c39
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x401c43
repz ret
jmp fcn.00404b43

Function at 0x403202
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x40c2b8]
je 0x40321d
inc edi
cmp edi, 0x17
jb 0x40320e
cmp edi, 0x17
jae 0x40339d
push ebp
push 3
call fcn.004066b0
cmp eax, 1
pop ecx
je 0x403369
push 3
call fcn.004066b0
test eax, eax
pop ecx
jne 0x403251
cmp dword [0x40c010], 1
je 0x403369
cmp ebx, 0xfc
je 0x40339c
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x40ce90
push ebp
call fcn.0040664b
add esp, 0xc
test eax, eax
je 0x403287
push esi
push esi
push esi
push esi
push esi
call fcn.00404757
add esp, 0x14
push 0x104
mov esi, 0x40cea9
push esi
push 0
mov byte [0x40cfad], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4032cb
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040664b
add esp, 0xc
test eax, eax
je 0x4032cb
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00404757
add esp, 0x14
push esi
call fcn.004065c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x403310
push esi
call fcn.004065c0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x40d1a4
push 0x40a95c
sub ecx, eax
push ecx
push eax
call fcn.00406506
add esp, 0x14
test eax, eax
je 0x403310
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00404757
add esp, 0x14
jmp 0x403312
xor esi, esi
push 0x40a958
push ebx
push ebp
call fcn.00406495
add esp, 0xc
test eax, eax
je 0x403332
push esi
push esi
push esi
push esi
push esi
call fcn.00404757
add esp, 0x14
push dword [edi*8 + 0x40c2bc]
push ebx
push ebp
call fcn.00406495
add esp, 0xc
test eax, eax
je 0x403354
push esi
push esi
push esi
push esi
push esi
call fcn.00404757
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004062d8
add esp, 0xc
jmp 0x40339c
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40339c
cmp ebp, 0xffffffff
je 0x40339c
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x40c2bc]
push dword [esi]
call fcn.004065c0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4062d8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00403f42
xor ebx, ebx
cmp dword [0x40d774], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4063ae
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40648e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40648e
push eax
call fcn.00403ed4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40d774], eax
call esi
push eax
call fcn.00403ed4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40d778], eax
call esi
push eax
call fcn.00403ed4
mov dword [0x40d77c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00402f8f
test eax, eax
pop ecx
pop ecx
je 0x40637c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404757
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4063ae
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00403ed4
cmp eax, ebx
pop ecx
mov dword [0x40d784], eax
je 0x4063ae
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403ed4
pop ecx
mov dword [0x40d780], eax
mov eax, dword [0x40d780]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x406433
cmp dword [0x40d784], ecx
je 0x406433
push eax
call fcn.00403f4b
push dword [0x40d784]
mov esi, eax
call fcn.00403f4b
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x406433
cmp edi, ebx
je 0x406433
call esi
cmp eax, ebx
je 0x406400
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406400
test byte [ebp - 0x18], 1
jne 0x406433
lea eax, [ebp - 0x10]
push eax
call fcn.00402fc6
test eax, eax
pop ecx
je 0x40641b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404757
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40642a
or dword [ebp + 0x10], 0x200000
jmp 0x40646e
or dword [ebp + 0x10], 0x40000
jmp 0x40646e
mov eax, dword [0x40d778]
cmp eax, dword [ebp - 8]
je 0x40646e
push eax
call fcn.00403f4b
cmp eax, ebx
pop ecx
je 0x40646e
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40646e
mov eax, dword [0x40d77c]
cmp eax, dword [ebp - 8]
je 0x40646e
push eax
call fcn.00403f4b
cmp eax, ebx
pop ecx
je 0x40646e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40d774]
call fcn.00403f4b
cmp eax, ebx
pop ecx
je 0x40648e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406490
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407bdf
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x407c0c
call fcn.00401f66
mov dword [eax], esi
call fcn.00401f53
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00404853
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x407be8
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x407c3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401f79
pop ecx
call fcn.00401f53
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x407c62
test al, 1
je 0x407c62
test byte [esp + 0xc], 2
je 0x407c62
call fcn.00401f66
mov dword [eax], 5
call fcn.00401f53
mov dword [eax], 0xd
jmp 0x407c32
xor eax, eax
pop esi
ret