joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101458a7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10139c3a
xor ebx, ebx
cmp dword [0x10300644], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1014597d
push 0x101afafc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10145a5d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x101afaf0
push edi
call esi
cmp eax, ebx
je 0x10145a5d
push eax
call fcn.10139bcc
mov dword [esp], 0x101afae0
push edi
mov dword [0x10300644], eax
call esi
push eax
call fcn.10139bcc
mov dword [esp], 0x101afacc
push edi
mov dword [0x10300648], eax
call esi
push eax
call fcn.10139bcc
mov dword [0x1030064c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1013490c
test eax, eax
pop ecx
pop ecx
je 0x1014594b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10138db6
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1014597d
push 0x101afab0
push edi
call esi
push eax
call fcn.10139bcc
cmp eax, ebx
pop ecx
mov dword [0x10300654], eax
je 0x1014597d
push 0x101afa98
push edi
call esi
push eax
call fcn.10139bcc
pop ecx
mov dword [0x10300650], eax
mov eax, dword [0x10300650]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x10145a02
cmp dword [0x10300654], ecx
je 0x10145a02
push eax
call fcn.10139c43
push dword [0x10300654]
mov esi, eax
call fcn.10139c43
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x10145a02
cmp edi, ebx
je 0x10145a02
call esi
cmp eax, ebx
je 0x101459cf
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x101459cf
test byte [ebp - 0x18], 1
jne 0x10145a02
lea eax, [ebp - 0x10]
push eax
call fcn.10134943
test eax, eax
pop ecx
je 0x101459ea
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10138db6
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x101459f9
or dword [ebp + 0x10], 0x200000
jmp 0x10145a3d
or dword [ebp + 0x10], 0x40000
jmp 0x10145a3d
mov eax, dword [0x10300648]
cmp eax, dword [ebp - 8]
je 0x10145a3d
push eax
call fcn.10139c43
cmp eax, ebx
pop ecx
je 0x10145a3d
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10145a3d
mov eax, dword [0x1030064c]
cmp eax, dword [ebp - 8]
je 0x10145a3d
push eax
call fcn.10139c43
cmp eax, ebx
pop ecx
je 0x10145a3d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10300644]
call fcn.10139c43
cmp eax, ebx
pop ecx
je 0x10145a5d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10145a5f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1014d8a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101964f8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
mov eax, dword [0x101e5aec]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [esp + 0x24]
test eax, eax
mov dword [esp + 0xc], eax
sete al
mov dword [esp + 8], 0x101afcb8
mov byte [esp + 0x10], al
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
push eax
push edx
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x2c], 0
call fcn.1014cfb0
mov bl, al
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp + 8], 0x101afcb8
je 0x1014d920
cmp byte [esp + 0x10], 0
je 0x1014d920
push eax
call fcn.1012ee5b
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x18
ret 0x10
Function at 0x10155260
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x324
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov edx, dword [eax + 0x14]
push esi
push edi
call edx
mov esi, dword [ebp + 0xc]
mov ecx, 0xc1
lea edi, [esp + 0x28]
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], 0
rep movsd dword es:[edi], dword [esi]
mov byte [esp + 0xe], 1
lea ebx, [ebx]
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov edx, dword [eax + 8]
push 1
push 1
lea ecx, [esp + 0x17]
push ecx
mov ecx, esi
call edx
cmp eax, 1
jne 0x10155467
cmp byte [esp + 0xe], 0
mov al, byte [esp + 0xf]
jne 0x101552cd
test al, al
jne 0x101552a0
cmp al, 0x21
je 0x1015545a
cmp al, 0x2c
je 0x101552ea
cmp al, 0x3b
je 0x10155467
test al, al
sete byte [esp + 0xe]
jmp 0x101552a0
mov eax, dword [esi]
mov edx, dword [eax + 8]
push 1
push 9
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call edx
mov eax, dword [esp + 0x10]
push eax
mov ecx, ebx
call fcn.1014df90
mov ecx, dword [esp + 0x12]
push ecx
mov ecx, ebx
mov word [esp + 0x14], ax
call fcn.1014df90
mov edx, dword [esp + 0x14]
push edx
mov ecx, ebx
mov word [esp + 0x16], ax
call fcn.1014df90
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x16]
push eax
mov ecx, ebx
call fcn.1014df90
mov ecx, dword [ebp + 0x10]
cmp word [ecx + 6], 0
mov dx, word [esp + 0x14]
mov word [esp + 0x16], ax
jne 0x1015535e
cmp word [ecx + 8], 0
jne 0x1015535e
mov word [ecx + 6], dx
mov word [ecx + 8], ax
movzx edi, word [esp + 0x10]
movzx ecx, word [ecx + 6]
movzx edx, dx
add edx, edi
cmp edx, ecx
jg 0x101552a0
movzx ecx, word [esp + 0x12]
movzx edx, ax
add edx, ecx
mov ecx, dword [ebp + 0x10]
movzx ecx, word [ecx + 8]
cmp edx, ecx
jg 0x101552a0
movzx ecx, byte [esp + 0x18]
add dword [esp + 0x1c], 1
test cl, cl
jns 0x101553ce
mov edx, dword [esi]
mov edx, dword [edx + 8]
and ecx, 7
add ecx, 1
mov eax, 1
shl eax, cl
push 1
lea ecx, [esp + 0x30]
mov word [esp + 0x2e], ax
movsx eax, ax
lea eax, [eax + eax*2]
push eax
push ecx
mov ecx, esi
call edx
movzx ecx, byte [esp + 0x18]
mov ax, word [esp + 0x16]
xor edx, edx
movzx eax, ax
and ecx, 0x40
mov dword [ebx + 0x1dc], ecx
mov dword [ebx + 0x1e8], eax
mov dword [esp + 0x20], edx
mov dword [ebx + 0x1f0], 0x4000
mov dword [ebx + 0x1e4], 8
mov dword [ebx + 0x1e0], edx
mov dword [ebx + 0x1ec], edx
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
mov ecx, esi
call eax
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push edx
push 0
push esi
mov ecx, ebx
mov edi, eax
call fcn.10154a80
cmp dword [esp + 0x20], 0
je 0x1015543a
push edi
push esi
mov ecx, ebx
call fcn.10154dc0
jmp 0x101552a0
mov ecx, dword [ebx + 0x1f0]
sub ecx, dword [ebx + 0x1f4]
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
add ecx, 1
push 1
push ecx
mov ecx, esi
call edx
jmp 0x101552a0
push esi
mov ecx, ebx
call fcn.10154120
jmp 0x101552a0
mov ecx, dword [esp + 0x24]
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push 0
push ecx
mov ecx, esi
call edx
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10156420
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 8]
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0xc]
mov dword [esi + 0xf864], eax
mov dword [esi + 0xf860], ecx
mov dword [esi + 0xf854], ecx
mov edx, 1
shl edx, cl
add ecx, 0xffffffff
mov eax, 1
shl eax, cl
push edi
xor edi, edi
sub edx, 1
mov dword [esi + 0xf868], eax
add eax, 1
mov dword [esi + 0xf86c], eax
mov ax, word [esi + 0xf868]
add ax, 2
mov ecx, esi
mov dword [esi + 0xf85c], edi
mov dword [esi + 0x1d8], edi
mov dword [esi + 0x1d4], edi
mov word [esi + 0xf858], dx
mov word [esi + 0xf85a], ax
mov dword [esi + 0xf870], edi
call fcn.101546f0
mov dword [esp + 0x10], eax
xor ecx, ecx
mov eax, 0x138b
jmp 0x101564b0
add eax, eax
add ecx, 1
cmp eax, 0x10000
jl 0x101564b0
mov eax, 8
sub eax, ecx
push 0x138b
mov ecx, esi
mov dword [esp + 0x18], eax
call fcn.10154780
movzx ecx, word [esi + 0xf868]
push ecx
mov ecx, esi
call fcn.10155f50
mov ecx, esi
call fcn.101546f0
mov ebp, eax
cmp ebp, 0xffffffff
je 0x101565f4
push ebx
mov ecx, dword [esp + 0x18]
movsx edi, bp
shl edi, cl
mov ebx, ebp
shl ebx, 0xc
add ebx, dword [esp + 0x14]
xor edi, dword [esp + 0x14]
mov ecx, dword [esi + edi*4 + 0x8310]
cmp ecx, ebx
lea eax, [esi + edi*4 + 0x8310]
jne 0x1015652e
movzx edx, word [esi + edi*2 + 0xd13c]
mov dword [esp + 0x14], edx
jmp 0x101565e1
test ecx, ecx
jl 0x10156566
mov ecx, 0x138b
sub ecx, edi
test edi, edi
jne 0x10156542
mov ecx, 1
lea edx, [ecx*4]
sub edi, ecx
sub eax, edx
test edi, edi
jge 0x1015655c
add edi, 0x138b
add eax, 0x4e2c
mov edx, dword [eax]
cmp edx, ebx
je 0x1015659c
test edx, edx
jg 0x10156542
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, esi
call fcn.10155f50
movzx eax, word [esi + 0xf85a]
cmp ax, 0x1000
mov dword [esp + 0x14], ebp
jge 0x101565aa
mov word [esi + edi*2 + 0xd13c], ax
add word [esi + 0xf85a], 1
mov dword [esi + edi*4 + 0x8310], ebx
jmp 0x101565e1
movzx eax, word [esi + edi*2 + 0xd13c]
mov dword [esp + 0x14], eax
jmp 0x101565e1
push 0x138b
mov ecx, esi
call fcn.10154780
movzx eax, word [esi + 0xf868]
mov dx, word [esi + 0xf868]
add dx, 2
push eax
mov ecx, esi
mov word [esi + 0xf85a], dx
mov dword [esi + 0xf85c], 1
call fcn.10155f50
mov ecx, esi
call fcn.101546f0
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x101564f5
pop ebx
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, esi
call fcn.10155f50
movzx edx, word [esi + 0xf86c]
push edx
mov ecx, esi
call fcn.10155f50
pop edi
pop esi
pop ebp
ret 8
Function at 0x10172a20
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x10172a4f
push esi
call fcn.101731b0
add esp, 4
cmp byte [esi + 0x40], 0
je 0x10172a48
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x10172aca
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x10172aba
mov eax, dword [esi + 8]
test eax, eax
je 0x10172a74
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
mov edx, dword [esi + 0x190]
mov eax, dword [edx]
push esi
call eax
add esp, 4
test eax, eax
je 0x10172ab6
cmp eax, 2
je 0x10172aba
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10172a65
cmp eax, 3
je 0x10172a9c
cmp eax, 1
jne 0x10172a65
add dword [ecx + 4], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x10172a65
mov edx, dword [esi + 0x11c]
add dword [eax + 8], edx
jmp 0x10172a65
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.101728b0
pop esi
ret
cmp eax, 0xcc
je 0x10172aec
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
call fcn.101728b0
pop esi
ret
Function at 0x1017b490
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push esi
push edi
mov edi, dword [esp + 0x20]
cmp dword [edi + 0x4c], 1
mov esi, dword [edi + 0x1a8]
mov dword [esp + 0x18], esi
jne 0x1017b4b7
mov dword [esp + 8], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x1017b4c3
mov dword [esp + 8], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [esp + 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push edi
call eax
xor ecx, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
cmp dword [edi + 0x64], ecx
mov dword [esp + 0xc], ecx
jle 0x1017b5cf
push ebx
lea edx, [esi + 0x20]
push ebp
mov dword [esp + 0x18], edx
jmp 0x1017b50c
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebp, dword [edx]
cdq
idiv ebp
cmp dword [esp + 0x10], 0
mov dword [esp + 0x1c], eax
je 0x1017b52d
mov eax, dword [esi + 0x18]
add dword [eax + ecx*4], 0xff
lea eax, [eax + ecx*4]
mov edx, dword [esi + 0x18]
mov edi, dword [edx + ecx*4]
add ebp, 0xffffffff
mov ecx, ebp
xor eax, eax
xor ebx, ebx
call fcn.1017b300
mov ecx, eax
xor esi, esi
cmp esi, ecx
jle 0x1017b562
lea esp, [esp]
add ebx, 1
mov ecx, ebp
mov eax, ebx
call fcn.1017b300
mov ecx, eax
cmp esi, ecx
jg 0x1017b550
mov al, byte [esp + 0x1c]
imul bl
mov byte [esi + edi], al
add esi, 1
cmp esi, 0xff
jle 0x1017b545
cmp dword [esp + 0x10], 0
je 0x1017b5b0
mov eax, 1
lea ecx, [edi - 1]
jmp 0x1017b590
movzx edx, byte [edi]
mov byte [ecx], dl
movzx edx, byte [edi + 0xff]
mov byte [edi + eax + 0xff], dl
add eax, 1
sub ecx, 1
cmp eax, 0xff
jle 0x1017b590
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
add dword [esp + 0x18], 4
add eax, 1
cmp eax, dword [ecx + 0x64]
mov dword [esp + 0x14], eax
jl 0x1017b500
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x1018a12a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x101e5aec]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.1018a0bf
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.1012ea60
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x1018a179
cmp dword [ebp - 0x1c], 5
jb 0x1018a191
jmp 0x1018a18d
cmp dword [ebp - 0x10], 1
jne 0x1018a191
cmp dword [ebp - 0x1c], 4
ja 0x1018a18d
jne 0x1018a191
cmp dword [ebp - 0x18], 0
jbe 0x1018a191
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x101b80d8
call fcn.10189fb0
test eax, eax
jge 0x1018a1b2
mov byte [0x101e7460], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1012e3ba
add ebp, 0x78
leave
ret

Function at 0x10332473
Capabilities:
Get number of processors

Disassembly:
jmp 0x10326794
call fcn.1032677f
salc
arpl word [ebp - 0x79], cx
loop 0x1032678a
adc eax, 0x24748b56
add al, 0x8d
mov dh, 0xd4
adc byte [edx], al
add byte [ecx + 0x5e042474], cl
push edx
mov dword [esp], ebp
push esp
pop ebp
push ebp
mov ebp, esp
add ebp, 4
sub ebp, 0x80
xchg dword [esp], ebp
pop esp
sub esp, 4
mov dword [esp], ebx
push edi
mov dword [esp], esi
push 0x188b
mov dword [esp], edi
jmp 0x1034c3b3
push ebx
mov ebx, 8
add ebx, ebp
mov eax, dword [ebx]
pop ebx
sub esp, 4
mov dword [esp], eax
jmp 0x103451dd
jmp 0x10331476
push 0
push 0x41797261
push 0x7262694c
push 0x64616f4c
lea ecx, [ebp - 0x2c]
sub esp, 4
mov dword [esp], ecx
jmp 0x10340856
push ecx
mov ecx, dword [esp + 4]
lea ecx, [ecx + 0x1983f]
mov dword [esp + 4], ecx
pop ecx
jmp 0x10348e32
jmp 0x1034086d
call fcn.10340858
adc byte [eax - 0x77], dl
loopne 0x1034087c
add al, 0
add byte [eax], al
add eax, 4
xchg dword [esp], eax
pop esp
rol byte [edi + eax*4], 4
and al, 0x5c
push eax
pop dword [ebp - 4]
push ecx
mov ecx, 0xc
add ecx, ebp
mov eax, dword [ecx]
pop ecx
push esi
mov dword [esp], eax
push dword [ebp - 4]
sub dword [esp], 0x3f8325ed
pop ecx
add ecx, 0x3f8325ed
push esi
mov dword [esp], ecx
push eax
mov eax, 8
add eax, ebp
mov edx, dword [eax]
pop eax
push eax
mov eax, 0x64
add edx, eax
pop eax
push ebx
mov dword [esp], edx
jmp 0x1032677d
jmp 0x103451f4
call fcn.103451df
or eax, dword [ebp + 0x68]
mov byte [eax], 0
jmp 0x10326bce
push esi
mov esi, 0x6114390f
xor esi, 0x61143917
mov eax, esi
pop esi
mov eax, dword fs:[eax]
push eax
pop dword [ebp - 4]
push dword [ebp - 4]
pop eax
push dword [eax + 0x30]
sub dword [esp], 0x63f80c4b
pop ecx
add ecx, 0x63f80c4b
push eax
mov eax, 0xfffffff8
add eax, ebp
mov dword [eax], ecx
pop eax
push dword [ebp - 8]
pop edx
push ecx
mov ecx, 8
add ecx, edx
mov eax, dword [ecx]
pop ecx
push edx
mov edx, 0xffffffec
add edx, ebp
mov dword [edx], eax
pop edx
push ebx
mov ebx, 0
mov dword [ebp - 0x10], ebx
pop ebx
cmp dword [ebp - 0x10], 0
je 0x10327698
jmp 0x10328265
Function at 0x103516f2
Capabilities:
Access peb ldr_data

Disassembly:
push eax
mov eax, dword [esp + 4]
lea eax, [eax - 0x4e23]
mov dword [esp + 4], eax
pop eax
jmp 0x10340a70

Function at 0x105fd396
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], ecx
cmp eax, 0x1000
lea ecx, [esp + 8]
jb 0x105fd3f4
jmp 0x105fd3b3
push ebx
mov ebx, 0x1000
sub ecx, ebx
pop ebx
push esi
mov esi, 0x42603735
add esi, 0x62b848ad
not esi
xor esi, 0xa3b2af6
xor esi, 0x5731f4a
shr esi, 4
xor esi, 0x55aeb5a
sub eax, esi
pop esi
test dword [ecx], eax
cmp eax, 0x1000
jae 0x105fd3b3
jmp 0x105fd3f4
sub ecx, 0x42861a21
sub ecx, eax
add ecx, 0x42861a21
push esp
pop eax
test dword [ecx], eax
mov esp, ecx
push dword [eax]
pop ecx
push dword [eax + 4]
xor dword [esp], 0x1d9f7243
pop eax
xor eax, 0x1d9f7243
push ecx
mov dword [esp], eax
ret
Function at 0x401607
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x50
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0xa
lea eax, [ebp - 0x2c]
mov dword [esp], eax
call sym._fread
lea eax, [ebp - 0x2c]
add eax, 6
mov dword [esp], eax
call sym._getFrameSize
cdq
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
jmp 0x4017fa
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0xa
lea eax, [ebp - 0x36]
mov dword [esp], eax
call sym._fread
lea eax, [ebp - 0x36]
add eax, 4
mov dword [esp], eax
call sym._getFrameSize
cdq
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add eax, 0xa
adc edx, 0
add dword [ebp - 0x10], eax
adc dword [ebp - 0xc], edx
movzx eax, byte [ebp - 0x36]
cmp al, 0x54
jne 0x401741
lea eax, [ebp - 0x36]
mov dword [esp + 4], eax
mov dword [esp], 0x406068
call sym._printf
jmp 0x401700
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fgetc
mov byte [ebp - 0x21], al
cmp byte [ebp - 0x21], 0x1f
jle 0x401700
cmp byte [ebp - 0x21], 0x7f
je 0x401700
movsx eax, byte [ebp - 0x21]
mov dword [esp], eax
call sym._putchar
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ecx, eax
mov ebx, edx
add ecx, 0xffffffff
adc ebx, 0xffffffff
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ebx
mov esi, eax
xor esi, 0
mov dword [ebp - 0x40], esi
mov eax, edx
xor ah, 0
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
or eax, dword [ebp - 0x40]
test eax, eax
jne 0x4016da
mov dword [esp], 0xa
call sym._putchar
jmp 0x4017fa
mov dword [esp + 4], str.COMM
lea eax, [ebp - 0x36]
mov dword [esp], eax
call sym._isEqual
test al, al
je 0x4017fa
lea eax, [ebp - 0x36]
mov dword [esp + 4], eax
mov dword [esp], 0x406068
call sym._printf
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fseek
add dword [ebp - 0x18], 0xfffffffc
adc dword [ebp - 0x14], 0xffffffff
jmp 0x4017ba
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fgetc
mov byte [ebp - 0x22], al
cmp byte [ebp - 0x22], 0x1f
jle 0x4017ba
cmp byte [ebp - 0x22], 0x7f
je 0x4017ba
movsx eax, byte [ebp - 0x22]
mov dword [esp], eax
call sym._putchar
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ecx, eax
mov ebx, edx
add ecx, 0xffffffff
adc ebx, 0xffffffff
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ebx
mov esi, eax
xor esi, 0
mov dword [ebp - 0x48], esi
mov eax, edx
xor ah, 0
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
mov eax, ecx
or eax, edx
test eax, eax
jne 0x401794
mov dword [esp], 0xa
call sym._putchar
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x1c]
jl 0x401674
cmp edx, dword [ebp - 0x1c]
jg 0x401817
cmp eax, dword [ebp - 0x20]
jbe 0x401674
nop
add esp, 0x50
pop ebx
pop esi
pop ebp
ret
Function at 0x40181f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0xa
lea eax, [ebp - 0x1f]
mov dword [esp], eax
call sym._fread
lea eax, [ebp - 0x1f]
add eax, 6
mov dword [esp], eax
call sym._getFrameSize
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
jmp 0x401940
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 0xa
lea eax, [ebp - 0x29]
mov dword [esp], eax
call sym._fread
lea eax, [ebp - 0x29]
add eax, 4
mov dword [esp], eax
call sym._getFrameSize
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, 0xa
add dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
lea eax, [ebp - 0x29]
mov dword [esp], eax
call sym._isEqual
test al, al
je 0x40191b
lea eax, [ebp - 0x29]
mov dword [esp + 4], eax
mov dword [esp], 0x406068
call sym._printf
jmp 0x40190c
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fgetc
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0x1f
jle 0x40190c
cmp byte [ebp - 0x15], 0x7f
je 0x40190c
movsx eax, byte [ebp - 0x15]
mov dword [esp], eax
call sym._putchar
mov eax, dword [ebp - 0x10]
lea edx, [eax - 1]
mov dword [ebp - 0x10], edx
test eax, eax
jne 0x4018e6
jmp 0x401940
lea eax, [ebp - 0x29]
add eax, 4
mov dword [esp], eax
call sym._getFrameSize
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jle 0x40187f
nop
leave
ret
Function at 0x4027c0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x40280b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x402804
test esi, esi
je 0x402804
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4027e0
mov dword [esp], 0x408044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4029f0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402a40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402b18
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x402a7e
cmp eax, 4
jne 0x402aa0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x402a8e
cmp edx, 4
je 0x402a8e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004029f0