joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002d5c
Capabilities:
Parse pe header

Disassembly:
push 0x28
push 0x10012c0
call fcn.01002f14
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1002d97
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002d97
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1002daf
cmp eax, 0x20b
je 0x1002d9c
mov dword [ebp - 0x1c], edi
jmp 0x1002dc3
cmp dword [ecx + 0x84], 0xe
jbe 0x1002d97
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1002dbd
cmp dword [ecx + 0x74], 0xe
jbe 0x1002d97
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10068e8], 0xffffffff
or dword [0x10068ec], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1005848]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1005844]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10068f0], eax
call fcn.01002f0a
cmp dword [0x100523c], edi
jne 0x1002e1e
push fcn.01002f0a
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01002ef3
push 0x1005010
push 0x100500c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1005840]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100583c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x1005008
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.010029f9
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x1002e95
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1002eca
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01002f4f
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408e84
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x4776614e
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x76302060
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x41a280
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13000]
push edi
or ebp, 0xffffffff
jmp 0x41a2a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41a2a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41a298
mov eax, 1
add ebx, ebx
jne 0x41a2bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41a2b0
jne 0x41a2cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41a2b0
xor ecx, ecx
sub eax, 3
jb 0x41a2e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41a352
mov ebp, eax
add ebx, ebx
jne 0x41a2eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41a2f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41a31c
inc ecx
add ebx, ebx
jne 0x41a308
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41a2fd
jne 0x41a319
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41a2fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41a33c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41a32d
jmp 0x41a29e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41a33c
add edi, ecx
jmp 0x41a29e
pop esi
mov edi, esi
mov ecx, 0xb1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41a35a
cmp byte [edi], 3
jne 0x41a35a
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 0x41a35f
lea edi, [esi + 0x18000]
mov eax, dword [edi]
or eax, eax
je 0x41a3d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a858]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a894]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41a38c
mov ecx, edi
jns 0x41a3bb
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 + 0x1a898]
or eax, eax
je 0x41a3d1
mov dword [ebx], eax
add ebx, 4
jmp 0x41a3a9
call dword [esi + 0x1a8a8]
mov ebp, dword [esi + 0x1a89c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
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 0x41a40b
sub esp, 0xffffff80
jmp 0x401ad4
Function at 0xa24865
Capabilities:
Encode data using xor
Execute anti-debugging instructions

Disassembly:
sbb dword [ecx - 0x761e418], ecx
rdtsc
pushfd
rcr dl, cl
jmp 0xa24887
jnp 0xa248aa
jp 0xa248aa
mov dh, byte [esp]
add edi, dword [esi]
mov ch, byte [esp]
jmp 0xa248ba
lea esp, [esp + 0xc]
xor edi, 0x2f236aa4
not eax
dec ax
jmp 0xa248d4
rdtsc
call fcn.00a248f1
xor byte [eax], al
add byte [eax], al
sub eax, 0xa95a3faf
add byte [ebp - 0x40], al
push esi
xor eax, eax
add esi, ebp
jge 0xa248bd
je 0xa24859
inc ecx
int3
jl 0xa2488b
mov dh, byte [esp]
jmp 0xa2488e

Function at 0xa26aa5
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea edx, reloc.MSVFW32.dll_DrawDibDraw
sub esp, 0xf
jmp 0xa26acc
cmc
sub esp, 0x1a
lea ecx, [ebx + ebp]
lea esp, [esp + 1]
jmp 0xa26b39
jo 0xa26ab4
cmc
sub esp, 0x1a
jmp 0xa26b65
mov cx, 0x9539
mov al, 0xf3
jmp 0xa26b4c
bsr ax, bp
jl 0xa26b0c
mov cx, 0x9539
mov al, 0xf3
jmp 0xa26b4c
lea esp, [esp + 0x2c]
add esi, 0x3474cfbc
xchg ecx, eax
bswap edx
setbe dl
jmp 0xa26b22
neg esi
xchg ch, cl
lea eax, reloc.MSVFW32.dll_DrawDibDraw
pushal
xchg byte [esp + 4], ah
jmp 0xa26c09
lea ecx, [ebx + ebp]
lea esp, [esp + 1]
jmp 0xa26b39
mov ax, word [esp + 4]
lea esp, [esp + 2]
jmp 0xa26b8f
rdtsc
mov ax, word [esp + 4]
lea esp, [esp + 2]
ror esi, 0
mov ax, word [esp]
jmp 0xa26bb2
sub esp, 5
lea esp, [esp + 1]
jmp 0xa26bdb
bt dx, bx
jbe 0xa26b98
sub esp, 5
lea esp, [esp + 1]
jmp 0xa26bdb
lea ecx, [eax*4]
jmp 0xa26bf2
add esi, dword [ebp]
add eax, 0xcf799eb8
jns 0xa26bc1
lea ecx, [eax*4]
jmp 0xa26c1b
xchg al, dh
jmp fcn.00a27091
mov ah, 0xdb
add esp, 0x1a
jbe 0xa26b84
rdtsc
jmp 0xa26b6e
xchg al, dh
jmp fcn.00a27091

Function at 0xa271d8
Capabilities:
Execute anti-debugging instructions

Disassembly:
cmc
js 0xa271fd
pop word [esp]
mov dl, bh
mov dx, word [esp + 1]
jmp 0xa2721b

Function at 0xa271ee
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea edx, [eax + ebx]
add esp, 0
jmp 0xa27213
xchg dword [esp], edx
mov edx, 0xf3d0e597
neg dx
jge 0xa271ae
jl 0xa271d0
pop word [esp]
jmp 0xa27231
mov dl, bh
mov dx, word [esp + 1]
mov dx, 0xa5cc
inc dx

Function at 0xa27274
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea edx, [eax*4]
jmp 0xa2724a

Function at 0xb3aaf6
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esp, [esp + 0x11]
lea ebp, reloc.MSVFW32.dll_DrawDibDraw
mov byte [esp], bh
mov esi, dword [esp]
lea ecx, [ebx*4]
jmp 0xb3aa92
Function at 0xb3ad51
Capabilities:
Execute anti-debugging instructions

Disassembly:
bsr ebp, eax
pop dword [esp + 0x12]
neg ecx
bsf eax, esi
pop ebp
or al, 0x7b
jmp 0xb3ad86
bsf eax, ebx
push dword [esp + 0xf]
jmp 0xb3ad3b
mov di, dx
push word [esp + 0xa]
cpuid
pop dword [esp]
lea edx, reloc.MSVFW32.dll_DrawDibDraw
mov ecx, 0xc53c96b1
jmp 0xb3adb5
push word [esp + 0xb]
xchg ebp, ecx
mov cx, 0x2228
mov dword [esp + 2], esi
mov bh, byte [esp + 0xe]
xchg dword [esp + 7], ecx
jmp 0xb3ad5a
bswap eax
cld
not di
rdtsc
xchg byte [esp + 0xb], al
jmp 0xb3adc9
xchg ah, bh
pop dword [esp]
mov ah, 0x30
xchg dword [esp + 8], esi
mov cx, si
mov byte [esp + 7], ah
jmp 0xb3ad9f
lea ecx, [esp + 0xcd]
xchg bl, bh
mov dword [esp + 1], esp
not edi
lea ebx, [eax*4]
xchg word [esp + 0xb], bx
jmp 0xb3ae18
cld
rol ch, 4
pop ecx
xchg edi, eax
mov bp, word [esp + 1]
add esp, 8
jmp 0xb3ae02

Function at 0xb3afd0
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop word [esp + 0x10]
add esp, 8
pop dx
cpuid
sub esp, 0xd
lea ebx, [ecx + edi]
jmp 0xb3afd4
bswap esi
jmp 0xb3afab
sub esp, 7
push ecx
rdtsc
mov esi, dword [esp + 4]
lea esp, [esp + 0x3b]
mov edi, 0xa1131551
jmp 0xb3b08e
mov ax, 0xcd69
add esp, 5
sete cl
lea edx, [esi + ebp]
jmp 0xb3b058
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
xchg word [esp + 2], si
mov ebp, ebx
sbb di, dx
lea esp, [esp + 2]
or al, 0x27
jmp 0xb3afee
dec bl
bsf edi, esi
mov cx, word [esp + 5]
xchg ebp, edi
rcl di, cl
mov di, 0x5dfe
jmp 0xb3b004
lea ebx, [edi + ebp]
mov edx, dword [esp]
bswap ebp
std
bswap esi
jmp 0xb3b06e
bsr di, dx
mov ebp, dword [esp]
mov bp, cx
sets al
lea edi, reloc.MSVFW32.dll_DrawDibDraw
clc
jmp 0xb3b042
mov edi, 0x5e2067be
xchg byte [esp], dl
lea edx, [ecx + edi]
dec ax
mov eax, esp
mov ebp, dword [esp]
jmp 0xb3c18c
cld
mov di, word [esp + 3]
push edi
sets bh
mov bh, al
not bh
jmp 0xb3b02d
dec ebp
cld
lea ebp, [esi + esi]
add esp, 2
mov esi, 0xb26a0896
jmp 0xb3b0e5
dec dh
bt ebp, esp
pop di
mov si, word [esp + 3]
mov si, 0x5f25
mov ebp, dword [esp]
jmp 0xb3b09e
mov byte [esp + 0x17], ch
rdtsc
mov eax, dword [esp + 0x11]
add esp, 0x19
mov ax, 0x6a79
pop edi
jmp 0xb3b0b4
bts di, cx
lea ecx, reloc.MSVFW32.dll_DrawDibDraw
stc
lea esp, [esp + 1]
mov si, 0xa7cb
mov bx, 0xae54
jmp 0xb3b252
sbb dx, di
mov ax, di
ror ebx, 7
pushal
and si, sp
cpuid
jmp 0xb3b0d1
cmc
mov cl, 0xa4
lea eax, [edi*4]
xchg byte [esp], dl
mov al, 0xa1
lea eax, reloc.MSVFW32.dll_DrawDibDraw
call fcn.00b3b161
shl dx, cl
sub esp, 0xd
cmp ebp, esi
pop esi
push dword [esp + 6]
setg dh
jmp 0xb3b205
sets bh
mov cl, dl
pop dword [esp + 2]
call fcn.00b3b22f
push ebp
fimul dword [eax + 0x2f]
fidivr dword [eax]
mov ebx, 0xc5960f92
setbe ch
mov bx, word [esp + 4]
pop di
mov bl, dh
cmc
mov word [esp + 4], dx
jmp 0xb3b1ef
mov cx, sp
dec dl
bts eax, eax
rdtsc
mov bl, 0x12
mov cl, bl
jmp 0xb3b18d
bswap esi
neg dx
mov al, 0x54
xchg ecx, edi
pop esi
neg ebp
jmp 0xb3b111
pop word [esp]
mov cx, bx
lea ebp, reloc.MSVFW32.dll_DrawDibDraw
mov bl, dl
shl cx, 8
mov dx, word [esp + 2]
jmp 0xb3b28c
neg ebp
mov si, bx
mov byte [esp + 1], ah
xchg word [esp + 5], bp
rdtsc
inc bl
jmp 0xb3b8a1
mov edx, dword [esp]
setns ch
bswap edx
seto ah
sub esp, 8
inc ebx
jmp 0xb3bde4
Function at 0xb3b471
Capabilities:
Execute anti-debugging instructions

Disassembly:
push dword [esp + 5]
jmp 0xb3b47b
xchg dword [esp + 0x13], edi
clc
shl edi, cl
mov bl, 0x89
mov dword [esp + 0x29], ecx
setne ch
jmp 0xb3b4e4
inc bh
neg bh
lea ebp, [ebx*4]
pop edx
jmp 0xb3b50a
mov bl, 0xd8
lea esp, [esp + 0x14]
add esp, 0x1c
sub esp, 0x1a
pop dword [esp + 5]
mov ecx, 0x4f8fcd1d
jmp 0xb3b4a4
pop bp
xchg ebx, esi
xchg edi, eax
xchg byte [esp + 7], al
ror ch, cl
xchg dh, ah
jmp 0xb3b4ba
pop ecx
mov ax, 0x55f
bsr cx, cx
bswap esi
cpuid
jmp 0xb3b573
mov word [esp + 7], di
mov word [esp + 4], dx
add esp, 5
rdtsc
xchg word [esp + 6], cx
mov bl, 0x65
jmp 0xb3b4f4
rdtsc
mov ebp, 0xaa2982a5
setnp ah
bswap esi
clc
or eax, esp
jmp 0xb3b5ee
lea esp, [esp + 5]
dec ecx
xchg word [esp], bx
mov dh, ah
lea esp, [esp + 1]
add esp, 5
jmp 0xb3b53c
mov edx, 0x289023de
dec si
lea ebp, reloc.MSVFW32.dll_DrawDibDraw
mov eax, 0xd12a26db
mov esi, 0x6777e700
mov bh, 0xbb
jmp 0xb3b552
or bh, cl
rdtsc
rdtsc
lea ebp, [edi + 0x32]
lea eax, [esi*4]
call 0xb3b5c0
xchg esi, edi
setne dl
pop ebx
mov dword [esp + 5], edx
add esp, 0xd
cpuid
jmp 0xb3b618
dec dh
rcl edi, 0xa
push edx
xchg esi, ebx
not edx
rdtsc
jmp 0xb3b655
mov dx, bx
setg ah
call fcn.00b3b66e
adc ah, byte [ebx + 0x41a55633]
xchg cx, ax
adc byte [ebx + 0x5c4830a], dl
add esp, 5
xchg byte [esp], al
cmp bh, 0x57
push bp
lea ebx, [esi*4]
mov bx, word [esp + 2]
jmp 0xb3b63f

Function at 0xb3b78f
Capabilities:
Execute anti-debugging instructions

Disassembly:
sub esp, 0xf
bsf ecx, ebp
rdtsc
setge bl
mov edi, dword [esp + 5]
jmp 0xb3b6e4
cpuid
pop ax
shr ch, 4
xchg edi, ebx
xchg bp, ax
lea eax, reloc.MSVFW32.dll_DrawDibDraw
jmp 0xb3b6a5
sub esp, 0
rdtsc
xchg byte [esp + 8], bh
lea ebp, reloc.MSVFW32.dll_DrawDibDraw
jmp 0xb3b713
mov dword [esp + 0x16], esp
std
xchg word [esp + 6], dx
lea esi, [edx*4]
pop edx
pop word [esp + 7]
jmp 0xb3b6ce
xchg byte [esp + 7], ah
rdtsc
mov ebp, dword [esp + 0xb]
xchg si, bp
jmp 0xb3b769
cpuid
mov bp, bx
pop dword [esp + 0xb]
lea esi, [ecx*4]
push dword [esp + 5]
mov dword [esp + 7], ebx
jmp 0xb3b6fd
btc bp, cx
push dword [esp + 6]
mov ebp, dword [esp + 0xa]
cld
mov byte [esp + 8], dl
lea esi, [esp + ecx]
jmp 0xb3b6bb
lea edi, [eax*4]
rdtsc
rcl ebp, cl
xchg dword [esp + 2], edx
jmp 0xb3b82c
mov word [esp + 5], bx
mov ebx, dword [esp]
not dh
mov di, si
std
pop ebx
jmp 0xb3b753
rdtsc
xchg ebp, ebx
bsf ebp, esi
jmp 0xb3b73a
xchg ch, al
xchg dh, bh
mov dword [esp + 3], edi
btc ebp, ebx
xchg word [esp], si
jmp 0xb3b7c5
xchg dword [esp + 0x1f], ecx
pop word [esp + 3]
xchg dh, bh
xchg bx, bp
add esp, 9
lea esp, [esp + 0x10]
jmp 0xb3b798
neg esi
xchg word [esp + 0xd], si
mov cx, bx
xchg ch, cl
neg di
call fcn.00b3b803
inc ebp
hlt
rdtsc
lea esi, [eax + esi]
mov ch, byte [esp + 0x1f]
cpuid
push ebp
bswap edx
jmp 0xb3b7ae
lea esp, [esp + 9]
push dword [esp + 1]
xchg dword [esp], ecx
mov cl, ch
pop word [esp + 5]
sub esp, 0x1e
jmp 0xb3b7dd
Function at 0x4025a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x4025cb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00402ec0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x4025ed
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x4025ef
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x402673
jg 0x402604
test esi, esi
je 0x402673
test ecx, ecx
jl 0x40264d
jg 0x40260e
test eax, eax
je 0x40264d
cmp edi, ecx
jg 0x402622
jl 0x402618
cmp esi, eax
jae 0x402622
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.005c7940
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x402650
mov edx, dword [ebp + 8]
test edi, edi
jl 0x402673
jg 0x40265a
test esi, esi
je 0x402673
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x402673
push eax
push esi
push 1
push edx
call fcn.005cc7a6
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402690
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x4026bb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00402fa0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x4026dd
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x4026df
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x40277e
jg 0x4026fc
test esi, esi
je 0x40277e
test ecx, ecx
jl 0x402749
jg 0x402706
test eax, eax
je 0x402749
cmp ebx, ecx
jg 0x40271a
jl 0x402710
cmp esi, eax
jae 0x40271a
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.005c7940
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x402750
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x40277e
jg 0x40275a
test esi, esi
je 0x40277e
cmp dword [edi + 0x4c], 0
je 0x40277e
mov ecx, edi
call fcn.004035e0
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.005cc9ef
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
pop edi
pop esi
sbb edx, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402ab0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x67c374]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x402ae0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004514cc
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x402b1c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x402b1c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004514cc
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x402c01
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x402b44
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x402b77
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.005cb886
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004514cc
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x402c01
cmp eax, 1
jle 0x402bd4
cmp eax, 3
jne 0x402c01
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.004013e0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004514cc
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x402bf1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.005cc7a6
add esp, 0x10
cmp edi, eax
jne 0x402c01
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x402b07
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004514cc
mov esp, ebp
pop ebp
ret 4
Function at 0x4036a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x67c374]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x403741
cmp byte [esi + 0x3d], 0
je 0x403741
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4036f7
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x403709
sub eax, 1
je 0x40370d
sub eax, 2
je 0x403741
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004514cc
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40372a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.005cc7a6
add esp, 0x10
cmp edi, eax
jne 0x4036f7
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004514cc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004514cc
mov esp, ebp
pop ebp
ret
Function at 0x403900
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f6aa8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x67c374]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebx]
push 0
push 0
mov dword [ebp - 0x14], 0
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [ebx]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
mov dword [edi + 0x30], 0
mov dword [edi + 8], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0x201
mov dword [edi + 0x18], 6
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.00404bb0
push 8
call fcn.004514eb
mov esi, eax
push 1
mov dword [ebp - 4], 1
call fcn.0044f60f
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp + 8]
mov dword [edi + 0x30], esi
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], 0
mov dword [ebp - 4], 2
mov esi, dword [esi + 4]
mov ecx, esi
mov dword [ebp - 0x18], esi
mov eax, dword [esi]
call dword [eax + 4]
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 3
push eax
call fcn.00405100
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp + 0xb], al
mov dword [ebp - 4], 4
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 8]
test eax, eax
je 0x403a2e
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov al, byte [ebp + 0xb]
mov byte [ebp - 4], 0
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x403a4e
mov eax, dword [edi + 0xc]
mov ecx, edi
or eax, 4
push 0
push eax
call fcn.00404bb0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc