joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416420
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x416634
sub esp, 0x18
mov eax, dword [0x1ae0534]
test eax, eax
jne 0x41661d
nop
lea eax, [0x1ae051c]
mov dword [esp], eax
call fcn.0040a440
mov eax, dword [0x1ae0520]
test eax, eax
je 0x416469
cmp dword [eax + 8], 0xcc
jne 0x4164df
mov edx, dword [0x1ae0514]
test edx, edx
jne 0x4164c1
mov dword [esp], 0x1000
mov dword [esp + 4], 0
lea eax, [0x1ae8e30]
mov dword [esp + 8], eax
call fcn.0040c7d0
mov eax, dword [esp + 0xc]
mov dword [0x1ae0514], eax
mov ecx, dword [0x1ae04d8]
mov dword [eax], ecx
mov eax, dword [0x1ae0514]
mov dword [0x1ae04d8], eax
movzx eax, byte [0x1ae12e0]
test al, al
jne 0x4164c1
xor eax, eax
jmp 0x4165c9
mov edx, dword [0x1ae0514]
mov ebx, dword [edx + 4]
mov dword [0x1ae0514], ebx
mov ebx, dword [0x1ae0520]
mov dword [edx + 4], ebx
mov dword [0x1ae0520], edx
mov edx, dword [0x1ae0520]
mov eax, dword [edx + 8]
cmp eax, 0xcc
jae 0x4165b1
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
lea eax, [edx + 8]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402580
mov eax, dword [esp + 0x10]
lea eax, [eax + eax*4]
mov ecx, dword [esp + 0x14]
lea edi, [ecx + eax*4 + 0x10]
mov edx, dword [0x1ae0c70]
lea ebx, [ecx + eax*4 + 0x1c]
lea ebp, [ecx + eax*4 + 0x20]
lea esi, [ecx + eax*4 + 0x14]
test edx, edx
jne 0x41653d
mov edx, dword [esp + 0x20]
mov dword [ecx + eax*4 + 0x10], edx
jmp 0x41654a
mov edx, eax
mov eax, dword [esp + 0x20]
call fcn.0046ca10
mov eax, edx
mov edx, dword [esp + 0x24]
mov dword [ecx + eax*4 + 0x18], edx
mov edx, dword [0x1ae0c70]
test edx, edx
jne 0x416576
mov edx, dword [esp + 0x28]
mov dword [ecx + eax*4 + 0x1c], edx
mov edx, dword [esp + 0x2c]
mov dword [ecx + eax*4 + 0x20], edx
mov edx, dword [esp + 0x1c]
mov dword [ecx + eax*4 + 0x14], edx
jmp 0x416597
mov edi, ebx
mov eax, dword [esp + 0x28]
call fcn.0046ca10
mov edi, ebp
mov eax, dword [esp + 0x2c]
call fcn.0046ca10
mov edi, esi
mov eax, dword [esp + 0x1c]
call fcn.0046ca10
mov byte [0x1ae033b], 1
nop
lea eax, [0x1ae051c]
mov dword [esp], eax
call fcn.0040a640
add esp, 0x18
ret
mov ecx, 0xcc
call fcn.0046caa0
lea esi, [0x1ae12e0]
xchg ebp, eax
mov byte [esi + ebx], al
xchg ebp, eax
lea eax, [ebx + 1]
cmp eax, 0x80
jge 0x4164c1
mov ecx, eax
mov eax, 0xcccccccd
imul ecx
add edx, ecx
sar edx, 2
mov eax, ecx
sar ecx, 0x1f
sub edx, ecx
lea edx, [edx + edx*4]
mov ebx, eax
sub eax, edx
cmp eax, 5
jae 0x416613
lea edx, [0x1903010]
movzx ebp, byte [edx + eax]
cmp ebx, 0x80
jb 0x4165bb
mov eax, ebx
mov ecx, pe_nt_image_headers32
call fcn.0046ca90
mov ecx, 5
call fcn.0046ca90
lea eax, [0x10a4f5a]
mov dword [esp], eax
mov dword [esp + 4], 0x18
call fcn.0043bac0
nop
call fcn.0046b600
jmp fcn.00416420
Function at 0x42a640
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x42a75c
sub esp, 0x14
mov eax, dword [esp + 0x18]
movzx ecx, byte [eax + 6]
cmp cl, 1
je 0x42a6d5
cmp cl, 2
je 0x42a67d
cmp cl, 3
jne 0x42a745
mov byte [eax + 8], 1
jmp 0x42a741
mov ecx, dword [eax + 8]
mov dword [esp], ecx
mov ecx, dword [esp + 0x20]
mov dword [esp + 4], ecx
call fcn.0042fe90
nop
lea eax, [0x1abb744]
mov dword [esp], eax
call fcn.0040a440
nop
mov eax, dword [0x1abb710]
sub eax, dword [0x1abb6f4]
mov dword [0x1abb710], eax
mov eax, dword [0x1abb700]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov dword [0x1abb700], ecx
nop
lea eax, [0x1abb744]
mov dword [esp], eax
call fcn.0040a640
jmp 0x42a741
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov ebx, dword [eax + 0x10]
mov ebp, dword [eax + 0x14]
mov esi, dword [esp + 0x1c]
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
call fcn.00416420
nop
lea eax, [0x1abb744]
mov dword [esp], eax
call fcn.0040a440
nop
mov eax, dword [0x1abb6e8]
sub eax, dword [0x1abb6cc]
mov dword [0x1abb6e8], eax
mov eax, dword [0x1abb6d8]
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
mov dword [0x1abb6d8], ecx
nop
nop
lea eax, [0x1abb744]
mov dword [esp], eax
call fcn.0040a640
add esp, 0x14
ret
lea eax, [0x10943fe]
mov dword [esp], eax
mov dword [esp + 4], 0x10
call fcn.0043bac0
nop
call fcn.0046b600
jmp fcn.0042a640
Function at 0x4587c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x458947
sub esp, 0x10
mov ecx, dword [esp + 0x18]
test ecx, ecx
jbe 0x45893d
mov edx, dword [esp + 0x14]
movzx ebx, byte [edx]
test ebx, ebx
jne 0x45881c
movzx ebp, byte [esp + 0x28]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x45881c
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov byte [esp + 0x38], 0
add esp, 0x10
ret
test ebx, 0x80
je 0x45882f
xor eax, eax
xor ebx, ebx
xor ebp, ebp
jmp 0x458912
mov eax, 1
mov ebp, ebx
and ebx, 1
neg ebx
shr ebp, 1
xor ebx, ebp
mov ebp, dword [esp + 0x24]
add dword [ebp], ebx
cmp ecx, eax
jb 0x458904
sub ecx, eax
mov ebx, dword [esp + 0x1c]
sub ebx, eax
mov ebp, ebx
neg ebx
sar ebx, 0x1f
and eax, ebx
lea ebx, [edx + eax]
test ecx, ecx
jbe 0x4588fb
movzx edx, byte [edx + eax]
test edx, 0x80
je 0x458886
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
xor eax, eax
xor edx, edx
xor esi, esi
jmp 0x4588cf
mov eax, 1
cmp eax, ecx
ja 0x4588bd
mov esi, dword [esp + 0x20]
add dword [esi], edx
sub ebp, eax
mov edx, ebp
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, eax
add ebx, ebp
mov dword [esp + 0x2c], ebx
sub ecx, eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov byte [esp + 0x38], 1
add esp, 0x10
ret
call fcn.0046cb00
lea esi, [ecx + 7]
mov ecx, dword [esp + 8]
mov eax, ebp
mov ebp, dword [esp + 0xc]
cmp eax, ecx
jae 0x4588f6
movzx edi, byte [eax + ebx]
lea ebp, [eax + 1]
mov eax, edi
and edi, 0x7f
mov ecx, esi
shl edi, cl
or edx, edi
test al, 0x80
jne 0x4588c2
mov ecx, dword [esp + 8]
mov eax, ebp
mov ebp, dword [esp + 0xc]
jmp 0x45888b
call fcn.0046caa0
xor eax, eax
mov ecx, eax
call fcn.0046ca90
call fcn.0046cb00
lea ebp, [ecx + 7]
mov ecx, dword [esp + 0x18]
mov eax, edi
cmp ecx, eax
jbe 0x458938
movzx esi, byte [eax + edx]
lea edi, [eax + 1]
mov eax, esi
and esi, 0x7f
mov ecx, ebp
shl esi, cl
or ebx, esi
test al, 0x80
jne 0x458909
mov ecx, dword [esp + 0x18]
mov eax, edi
jmp 0x458834
call fcn.0046caa0
xor eax, eax
mov ecx, eax
call fcn.0046ca90
nop
call fcn.0046b600
jmp fcn.004587c0
Function at 0x462a90
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x462b2f
sub esp, 0x30
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
lea edi, [esp + 0xc]
xor eax, eax
call fcn.0046ccf7
lea ecx, [0x462b40]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 8]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 4]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0xc]
mov dword [esp], ecx
call fcn.0046b4f0
mov ecx, dword [esp + 4]
mov dword [esp + 0x44], ecx
add esp, 0x30
ret
call fcn.0046b600
jmp fcn.00462a90
Function at 0x46c8c0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movd xmm0, dword [esp + 8]
pinsrw xmm0, ebx, 4
pshufhw xmm0, xmm0, 0
movdqa xmm1, xmm0
pxor xmm0, xmmword [0x1ae1040]
aesenc xmm0, xmm0
cmp ebx, 0x10
jb 0x46b08b
je 0x46b0de
cmp ebx, 0x20
jbe 0x46b0e4
cmp ebx, 0x40
jbe 0x46b12a
jmp 0x46b1cb
test ebx, ebx
je 0x46b0d4
add eax, 0x10
test ax, 0xff0
je 0x46b0c0
movdqu xmm1, xmmword [eax - 0x10]
add ebx, ebx
pand xmm1, xmmword [ebx*8 + 0x1258e00]
pxor xmm1, xmm0
aesenc xmm1, xmm1
aesenc xmm1, xmm1
aesenc xmm1, xmm1
movd dword [edx], xmm1
ret
movdqu xmm1, xmmword [eax + ebx - 0x20]
add ebx, ebx
pshufb xmm1, xmmword [ebx*8 + 0x1259000]
jmp 0x46b0a8
aesenc xmm0, xmm0
movd dword [edx], xmm0
ret
movdqu xmm1, xmmword [eax]
jmp 0x46b0a8
pxor xmm1, xmmword [0x1ae1050]
aesenc xmm1, xmm1
movdqu xmm2, xmmword [eax]
movdqu xmm3, xmmword [eax + ebx - 0x10]
pxor xmm2, xmm0
pxor xmm3, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
pxor xmm2, xmm3
movd dword [edx], xmm2
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x1ae1050]
pxor xmm2, xmmword [0x1ae1060]
pxor xmm3, xmmword [0x1ae1070]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax]
movdqu xmm5, xmmword [eax + 0x10]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
pxor xmm4, xmm0
pxor xmm5, xmm1
pxor xmm6, xmm2
pxor xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0x1ae1050]
pxor xmm2, xmmword [0x1ae1060]
pxor xmm3, xmmword [0x1ae1070]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax + ebx - 0x40]
movdqu xmm5, xmmword [eax + ebx - 0x30]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
dec ebx
shr ebx, 6
movdqu xmm0, xmmword [eax]
movdqu xmm1, xmmword [eax + 0x10]
movdqu xmm2, xmmword [eax + 0x20]
movdqu xmm3, xmmword [eax + 0x30]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
add eax, 0x40
dec ebx
jne 0x46b22a
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
cmp byte [0x1ae0343], 0
je 0x46c8da
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp 0x46b050
jmp fcn.00408e00
Function at 0x5e55d2
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
xor byte [eax], cl
push ds
ror byte [eax], 1
sti
or bl, bh
jp 0x5e55d0
adc edx, dword [esi + 0x32c8b8a7]
js 0x5e55a0
lds edx, [esi]
xor byte [eax], cl
sti
jp 0x5e561b
iretd
pop ds
or byte [edx - 0x7c], dl
push edx
test byte [edx - 0x77], ch
push edx
test byte [edx - 0x77], ch
in eax, dx
arpl word [ecx + 0x35ff21d3], si
wait
aad 0xff
xor byte [eax], cl
js 0x5e55a5
xor al, 8
or al, 0x78
dec ecx
pop es
sti
invalid
pop ebx
mov eax, 0xafd996c8
and byte [edx], bh
mov ch, 0x35
wait
std
push dword [eax]
or byte [eax - 0x1cf8bad9], dl
mov word [edi - 8], es
cmp al, 0xff
xor ch, al
sbb dword [ebx + 0x37], 0x277afb08
mul dword [esi - 0x1b]
sub al, 0xf0
stc
out dx, eax
xor byte [eax], cl
dec eax
in eax, 0x30
push ebp
mov eax, dword [0x252397ba]
lodsb al, byte es:[esi]
dec eax
or dword [ebx - 0xb], edi
or bl, bh
push dword [edi - 0x757b1525]
outsd dx, dword [esi]
dec eax
jp 0x5e56c3
iretd
add byte [esi], bh
or al, 0xa9
push ecx
cmp ebp, dword [ebx]
mov eax, 0xb9af06db
add dword [0x9058427b], 0xffffffc8
dec esp
push ecx
cmp ebx, 0x7a5efcc1
bound edx, qword [edi - 0x72]
and byte [ecx], cl
push ecx
inc edx
pop ebx
mov eax, 0x8a8496c8
push ebx
lea esp, [edi]
daa
inc ebp
pop es
jecxz 0x5e5738
daa
aas
or al, 0x8e
ja 0x5e5699
xchg ebp, eax
cmp dh, byte [ebp*4 + 0xfabf951]
or dword [ebx + 2], edi
or bl, bh
call [edi + 0x44]
push eax
idiv dword [ecx + 0x6c020ec9]
pop edi
or byte [esp + esi - 0x64], 0x41
push dword [eax]
or byte [esp + eax*4 - 0x14], ah
test ah, ch
pop ss
mov ebx, 0xad6c5dbc
sub byte es:[eax + ecx*2 - 0x11], al
inc edi
ja 0x5e5708
jae 0x5e5732
or bl, bh
push dword [edi + 0x1cd28d77]
or dword [edx + 0x43], esi
sbb al, 9
jb 0x5e574f
sar ah, 0x5e
xor al, 0x30
pop esi
les edx, [edi - 0x5f]
inc byte [esi + 4]
push ebp
inc esi
add al, 0x55
xchg edi, esi
pop eax
std
xchg esp, eax
push dword [eax]
outsd dx, dword [esi]
xchg esp, eax
push dword [eax]
or byte [eax + edi*4 + 0x58], dl
or bl, bh
push dword [eax]
push ecx
inc edx
push edi
test byte [edx + 0x24], 0xff
and al, 0xff
pop ebx
dec edx
loop 0x5e5717
pop eax
sub eax, 0x9b30ff5b
mov ecx, 0xfb1bacf6
push dword [eax]
jo 0x5e57a3
and dword [ecx], esi
or byte [eax + 0x535138b8], dl
idiv dword [ecx - 0x50266938]
and byte [edx], bh
mov ch, 0x35
pushfd
cld
push dword [eax]
or bl, dh
fisub dword [0xf7ecfb08]
inc edx
xchg esp, eax
call [ebx + 0x4a]
loop 0x5e56ee
push ebx
rcr byte [edx + 0x3e], 1
mov bl, byte [edi - 5]
push dword [eax]
or byte [eax + 0x635138b8], dl
out dx, eax
stosd dword es:[edi], eax
or dword [ecx], 0xfb08397b
push dword [ebx + 0x37460ac8]
outsd dx, dword [esi]
sbb dword [ecx + esi], ecx
or byte [esi], dl
xchg dword [edx], edi
sbb ebx, dword [edx]
std
call [eax]
sub ebx, dword [0xff119b36]
xor byte [eax], cl
cld
enter 0x7038, 0xffffffffffffff89
inc esi
add al, 0x55
stc
enter 0x7038, 0xfffffffffffffffa
inc edi
add al, 0x55
pop ss
dec esp
xor al, 0x9c
invalid
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44101c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x441028
push 0x441024
push 0x441020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x441028]
push dword [0x441024]
push dword [0x441020]
mov dword [0x441014], esp
call fcn.00427e18
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
push str.f:_sourcelcc_startepawm_user.c
push 0x80000
push str.ClipboardOpen
mov dword [0x44100c], ebp
push ecx
push eax
mov ecx, 2
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x4012bb
push edi
mov byte [ebp - 8], 1
inc dword [ebp - 8]
mov dword [ebp - 0x10], 3
jmp 0x4012e7
mov byte [ebp - 8], 5
push 0x32
call sub.KERNEL32.dll_Sleep
mov dword [0x44100c], ebp
mov byte [ebp - 8], 4
push 0
call sub.USER32.DLL_OpenClipboard
mov dword [0x44100c], ebp
mov dword [ebp - 0x14], eax
cmp eax, 0
jne 0x40130e
mov edi, dword [ebp - 0x10]
sub edi, 1
mov dword [ebp - 0x10], edi
cmp edi, 0
jg 0x4012d6
mov byte [ebp - 8], 7
mov eax, dword [ebp - 0x14]
mov byte [ebp - 8], 8
cmp dword [ebp - 0xc], 0x4410bc
je 0x40132c
push 0
call fcn.0042b684
add esp, 4
pop edi
leave
ret
Function at 0x4033a6
Capabilities:
Capture screenshot
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push str.f:_sourcelcc_startepawinmenu.c
push 0x9d0000
push str.ClientAreaToClipboard
mov dword [0x44100c], ebp
sub esp, 0x1c
mov ecx, 7
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x4033c6
push edi
mov byte [ebp - 8], 1
mov byte [ebp - 8], 6
lea edi, [ebp - 0x1c]
push edi
push dword [ebp + 8]
call sub.USER32.DLL_GetClientRect
mov dword [0x44100c], ebp
inc dword [ebp - 8]
lea edi, [ebp - 0x1c]
push edi
push dword [ebp + 8]
call sub.USER32.DLL_ClientToScreen
mov dword [0x44100c], ebp
mov byte [ebp - 8], 9
push 0
call sub.USER32.DLL_GetDC
mov dword [0x44100c], ebp
mov dword [ebp - 0x20], eax
inc dword [ebp - 8]
push dword [ebp - 0x20]
call sub.GDI32.DLL_CreateCompatibleDC
mov dword [0x44100c], ebp
mov dword [ebp - 0x24], eax
inc dword [ebp - 8]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x20]
call sub.GDI32.DLL_CreateCompatibleBitmap
mov dword [0x44100c], ebp
mov dword [ebp - 0x28], eax
inc dword [ebp - 8]
push dword [ebp - 0x28]
push dword [ebp - 0x24]
call sub.GDI32.DLL_SelectObject
mov dword [0x44100c], ebp
mov byte [ebp - 8], 0xe
push 0xcc0020
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0
push 0
push dword [ebp - 0x24]
call sub.GDI32.DLL_BitBlt
mov dword [0x44100c], ebp
mov byte [ebp - 8], 0x10
push 0
call sub.USER32.DLL_OpenClipboard
mov dword [0x44100c], ebp
inc dword [ebp - 8]
call sub.USER32.DLL_EmptyClipboard
mov dword [0x44100c], ebp
inc dword [ebp - 8]
push dword [ebp - 0x28]
push 2
call sub.USER32.DLL_SetClipboardData
mov dword [0x44100c], ebp
inc dword [ebp - 8]
call sub.USER32.DLL_CloseClipboard
mov dword [0x44100c], ebp
mov byte [ebp - 8], 0x15
push dword [ebp - 0x24]
call sub.GDI32.DLL_DeleteDC
mov dword [0x44100c], ebp
inc dword [ebp - 8]
push dword [ebp - 0x28]
call sub.GDI32.DLL_DeleteObject
mov dword [0x44100c], ebp
inc dword [ebp - 8]
push dword [ebp - 0x20]
push 0
call sub.USER32.DLL_ReleaseDC
mov dword [0x44100c], ebp
mov byte [ebp - 8], 0x18
cmp dword [ebp - 0xc], 0x454754
je 0x40350d
push 0
call fcn.0042b684
add esp, 4
pop edi
leave
ret
Function at 0x404174
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push str.f:_sourcelcc_startepawinmain.c
push 0x330000
push str.getFWfile
mov dword [0x44100c], ebp
sub esp, 0x250
mov ecx, 0x94
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x404197
push edi
mov byte [ebp - 8], 1
mov byte [ebp - 8], 8
mov dword [0x430528], 0
mov byte [ebp - 8], 0xa
push 0x430a98
lea edi, [ebp - 0x25c]
push edi
call fcn.0042baa5
add esp, 8
mov dword [0x44100c], ebp
inc dword [ebp - 8]
push str.startEPA_Pico_V.uf2
lea edi, [ebp - 0x25c]
push edi
call sub.CRTDLL.DLL_strcat
add esp, 8
mov dword [0x44100c], ebp
mov byte [ebp - 8], 0xd
lea edi, [ebp - 0x14a]
push edi
lea edi, [ebp - 0x25c]
push edi
call sub.KERNEL32.dll_FindFirstFileA
mov dword [0x44100c], ebp
mov dword [ebp - 0x154], eax
cmp eax, 0xffffffff
je 0x404339
mov byte [ebp - 8], 0xf
push 0x56
lea edi, [ebp - 0x11e]
push edi
call sub.CRTDLL.DLL_strrchr
add esp, 8
mov dword [0x44100c], ebp
mov dword [ebp - 0x150], eax
cmp eax, 0
je 0x4042fc
inc dword [ebp - 8]
lea edi, [ebp - 0x158]
push edi
push 0x454cbc
push dword [ebp - 0x150]
call fcn.0042b61c
add esp, 0xc
mov dword [0x44100c], ebp
cmp eax, 1
jne 0x4042f8
inc dword [ebp - 8]
fld qword [0x454cb4]
fld dword [ebp - 0x158]
fadd qword [0x454ca4]
fmulp st(1)
sub esp, 8
fstp qword [esp]
cvttsd2si edi, qword [esp]
add esp, 8
mov dword [ebp - 0x15c], edi
inc dword [ebp - 8]
mov edi, dword [0x430528]
cmp dword [ebp - 0x15c], edi
jle 0x4042f4
inc dword [ebp - 8]
mov edi, dword [ebp - 0x15c]
mov dword [0x430528], edi
inc dword [ebp - 8]
push 0x430a98
push 0x430538
call fcn.0042baa5
add esp, 8
mov dword [0x44100c], ebp
inc dword [ebp - 8]
lea edi, [ebp - 0x11e]
push edi
push 0x430538
call sub.CRTDLL.DLL_strcat
add esp, 8
mov dword [0x44100c], ebp
mov byte [ebp - 8], 0x17
mov byte [ebp - 8], 0x18
mov byte [ebp - 8], 0x19
mov byte [ebp - 8], 0x1a
lea edi, [ebp - 0x14a]
push edi
push dword [ebp - 0x154]
call sub.KERNEL32.dll_FindNextFileA
mov dword [0x44100c], ebp
cmp eax, 0
jne 0x40421b
inc dword [ebp - 8]
push dword [ebp - 0x154]
call sub.KERNEL32.dll_FindClose
mov dword [0x44100c], ebp
mov byte [ebp - 8], 0x1d
cmp dword [ebp - 0xc], 0x454988
je 0x404350
push 0
call fcn.0042b684
add esp, 4
pop edi
leave
ret
Function at 0x4080e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push str.f:_sourcelcc_startepa_seriowin.c
push 0xc60000
push str.COMread
mov dword [0x44100c], ebp
sub esp, 0x10
mov ecx, 4
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x408100
push edi
mov byte [ebp - 8], 1
mov byte [ebp - 8], 6
cmp dword [0x454dc8], 0
jne 0x408129
inc dword [ebp - 8]
mov eax, 0xffffffff
jmp 0x4081e6
mov byte [ebp - 8], 9
call fcn.00407906
mov dword [0x44100c], ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mov byte [ebp - 8], 0xb
mov dword [ebp - 0x10], 0
inc dword [ebp - 8]
push 0
lea edi, [ebp - 0x10]
push edi
push 1
lea edi, [ebp - 0x15]
push edi
push dword [0x454dc8]
call sub.KERNEL32.dll_ReadFile
mov dword [0x44100c], ebp
mov byte [ebp - 8], 0xe
cmp dword [ebp - 0x10], 1
je 0x4081b2
inc dword [ebp - 8]
call fcn.00407906
mov dword [0x44100c], ebp
mov dword [ebp - 0x14], eax
inc dword [ebp - 8]
mov edi, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], edi
je 0x4081ae
inc dword [ebp - 8]
dec dword [ebp + 8]
inc dword [ebp - 8]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x1c], edi
inc dword [ebp - 8]
push 0xa
call sub.KERNEL32.dll_Sleep
mov dword [0x44100c], ebp
mov byte [ebp - 8], 0x15
mov byte [ebp - 8], 0x16
mov byte [ebp - 8], 0x17
cmp dword [ebp - 0x10], 1
je 0x4081ca
cmp dword [ebp + 8], 0
jg 0x40813e
mov byte [ebp - 8], 0x19
cmp dword [ebp - 0x10], 1
je 0x4081de
inc dword [ebp - 8]
mov eax, 0xffffffff
jmp 0x4081e6
mov byte [ebp - 8], 0x1c
movzx eax, byte [ebp - 0x15]
mov byte [ebp - 8], 0x1d
cmp dword [ebp - 0xc], 0x454e5c
je 0x4081fd
push 0
call fcn.0042b684
add esp, 4
pop edi
leave
ret
Function at 0x408200
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push str.f:_sourcelcc_startepa_seriowin.c
push 0xe60000
push str.COMrdblk
mov dword [0x44100c], ebp
sub esp, 0x10
mov ecx, 4
dec ecx
mov dword [esp + ecx*4], 0xfffa5a5a
jne 0x408220
push edi
mov byte [ebp - 8], 1
inc dword [ebp - 8]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 8], 5
cmp dword [0x454dc8], 0
jne 0x408253
inc dword [ebp - 8]
mov eax, 0xffffffff
jmp 0x408323
mov byte [ebp - 8], 8
call fcn.00407906
mov dword [0x44100c], ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 8], 0xa
call fcn.00407fa0
mov dword [0x44100c], ebp
mov dword [ebp - 0x10], eax
inc dword [ebp - 8]
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 0x10], edi
jge 0x4082c4
inc dword [ebp - 8]
call fcn.00407906
mov dword [0x44100c], ebp
mov dword [ebp - 0x14], eax
inc dword [ebp - 8]
mov edi, dword [ebp - 0x18]
cmp dword [ebp - 0x14], edi
je 0x4082c0
inc dword [ebp - 8]
dec dword [ebp + 0x10]
inc dword [ebp - 8]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x18], edi
inc dword [ebp - 8]
push 0xa
call sub.KERNEL32.dll_Sleep
mov dword [0x44100c], ebp
mov byte [ebp - 8], 0x12
mov byte [ebp - 8], 0x13
mov byte [ebp - 8], 0x14
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 0x10], edi
jge 0x4082da
cmp dword [ebp + 0x10], 0
jg 0x408268
mov byte [ebp - 8], 0x16
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 0x10], edi
jl 0x408306
inc dword [ebp - 8]
push 0
lea edi, [ebp - 0x1c]
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x454dc8]
call sub.KERNEL32.dll_ReadFile
mov dword [0x44100c], ebp
mov byte [ebp - 8], 0x19
mov edi, dword [ebp + 0xc]
cmp dword [ebp - 0x1c], edi
je 0x40831c
inc dword [ebp - 8]
mov eax, 0
jmp 0x408323
mov byte [ebp - 8], 0x1c
mov eax, dword [ebp - 0x1c]
mov byte [ebp - 8], 0x1d
cmp dword [ebp - 0xc], 0x454e64
je 0x40833a
push 0
call fcn.0042b684
add esp, 4
pop edi
leave
ret