joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409365
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x409386
jl 0x40937d
test edi, edi
jne 0x409386
xor eax, eax
xor edx, edx
jmp 0x409447
cmp dword [ebx + 0x38], 0
je 0x40939b
push eax
push edi
push dword [ebp + 8]
call fcn.0040944d
jmp 0x409447
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4093e2
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4093e2
cmp eax, edi
jb 0x4093bc
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040ae60
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4093e8
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40943c
mov ecx, ebx
call fcn.00408bcd
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x409427
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00412776
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x40943c
jmp 0x4093fa
test edx, edx
je 0x40943c
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00412776
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x40a5ea
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a629
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40a629
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a629
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40a629
cmp dword [ecx + 0x74], 0xe
jbe 0x40a629
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41848b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c3ac
push 0x42c3a4
push str.FlsAlloc
push 0x1e
call fcn.004182b8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4184bf
push dword [ebp + 8]
mov ecx, esi
call dword [0x428154]
call esi
jmp 0x4184c5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x418509
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42c3bc
push 0x42c3b4
push str.FlsGetValue
push 0x20
call fcn.004182b8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418540
push dword [ebp + 8]
mov ecx, esi
call dword [0x428154]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41bc18
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041ba89

Function at 0x41c012
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a960
mov eax, dword [0x43601c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00419a18
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41c054
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41c1b0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00426b30
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x437b90]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041d009
mov ecx, dword [esi*4 + 0x437b90]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41c1a9
cmp eax, dword [edi + ecx + 0x24]
jne 0x41c1a9
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c1a9
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041d009
add esp, 0x14
test edx, edx
jl 0x41c1a9
jg 0x41c11f
test eax, eax
jb 0x41c1a9
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41c1a9
jl 0x41c139
cmp dword [ebp - 0x1008], eax
ja 0x41c1a9
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41c157
test ebx, ebx
je 0x41c190
cmp ecx, edi
jae 0x41c190
mov al, byte [ecx]
cmp al, 0xd
jne 0x41c171
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41c17d
cmp byte [ecx + 1], 0xa
jne 0x41c17d
inc ecx
jmp 0x41c17d
movzx eax, al
movsx eax, byte [eax + 0x4362b8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41c157
cmp edx, ebx
jne 0x41c157
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41c1ae
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409e48
leave
ret
Function at 0x41c4a7
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x437b90]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c4e7
cmp byte [ebx], 0xa
jne 0x41c4e7
or byte [eax + edi + 0x28], 4
jmp 0x41c4ec
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41c5ea
mov al, byte [edx]
cmp al, 0x1a
je 0x41c5cc
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41c51b
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41c540
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41c54a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41c4fd
jmp 0x41c5ea
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c5c7
cmp dword [ebp - 0xc], 0
je 0x41c5c7
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x437b90]
test byte [eax + edi + 0x28], 0x48
je 0x41c5a1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41c58c
mov byte [esi], dl
jmp 0x41c59d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x437b90]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41c5ea
cmp byte [ebp - 1], 0xa
jne 0x41c5b0
cmp esi, ebx
jne 0x41c5b0
mov byte [esi], 0xa
jmp 0x41c5e9
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041d027
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41c5ea
mov byte [esi], 0xd
jmp 0x41c5e9
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x437b90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c5e6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c5ea
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41c5f3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x437b90]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c636
cmp word [esi], dx
jne 0x41c636
or byte [edi + eax + 0x28], 4
jmp 0x41c63b
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41c78e
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41c76e
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41c67d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41c6b3
cmp eax, edx
jae 0x41c6bf
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41c655
jmp 0x41c78e
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c76a
cmp dword [ebp - 0x14], 0
je 0x41c76a
mov eax, dword [ebx*4 + 0x437b90]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41c742
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41c70b
mov word [esi], cx
jmp 0x41c73e
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x437b90]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x437b90]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x437b90]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41c78e
pop ebx
cmp word [ebp - 4], bx
jne 0x41c753
cmp esi, dword [ebp + 0xc]
jne 0x41c753
mov word [esi], bx
jmp 0x41c78b
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041d027
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41c78e
push 0xd
jmp 0x41c787
mov ecx, dword [ebx*4 + 0x437b90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c785
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c78e
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41f9bd
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41fa5a
push ebx
push esi
call fcn.0041f986
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041e60b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41fa07
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41fa59
push edi
push eax
call fcn.00418b27
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41fa27
call fcn.00417fdd
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41fa58
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041e60b
add esp, 0x20
test eax, eax
jne 0x41fa46
push edi
call fcn.00417fdd
jmp 0x41fa4e
push ebx
call fcn.00417fdd
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x426930
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42695d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42695d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x419760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x419782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419778
mov eax, 1
add ebx, ebx
jne 0x41979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419790
jne 0x4197ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419790
xor ecx, ecx
sub eax, 3
jb 0x4197c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419832
mov ebp, eax
add ebx, ebx
jne 0x4197cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197fc
inc ecx
add ebx, ebx
jne 0x4197e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197dd
jne 0x4197f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41980d
jmp 0x41977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41981c
add edi, ecx
jmp 0x41977e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41983a
cmp byte [edi], 5
jne 0x41983a
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 0x41983f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4198b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41986c
mov ecx, edi
jns 0x41989b
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 + 0x19090]
or eax, eax
je 0x4198b1
mov dword [ebx], eax
add ebx, 4
jmp 0x419889
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x4198eb
sub esp, 0xffffff80
jmp 0x404c20

Function at 0x438cb8
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x438a14
mov esi, dword [esp]
add esp, 4
sub ecx, 0x5e5adc46
call fcn.00438cf5
inc ecx
dec ecx
sub ecx, edx
xor dword [ebx], esi
inc ecx
inc ebx
or edx, edx
add edx, edx
or edx, edx
cmp ebx, edi
jne fcn.00438cb8
or ecx, ecx
inc ecx
push edx
pop edx
ret
Function at 0x4011e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x485310]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x485e28]
push esi
mov esi, dword [ebp + 8]
push esi
push 1
mov dword [0x485e2c], eax
lea eax, [ebp - 0x20c]
push 4
push eax
mov dword [ebp - 0x20c], 0
call fcn.004369a9
mov eax, dword [ebp - 0x20c]
add esp, 0x10
test eax, eax
jne 0x40124f
push eax
push str.ERROR_
push str.ItemData_count___0_
push dword [0x48f0a0]
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424024
mov esp, ebp
pop ebp
ret
xor ecx, ecx
mov edx, 0x108
mul edx
push ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00423c35
imul ecx, dword [ebp - 0x20c], 0x108
mov ebx, eax
mov dword [ebp - 0x218], ebx
push ecx
push 0
push ebx
call fcn.004255e0
imul ecx, dword [ebp - 0x20c], 0x108
push esi
push 1
push ecx
push ebx
call fcn.004369a9
push esi
push 1
lea eax, [ebp - 0x21c]
push 4
push eax
call fcn.004369a9
xor esi, esi
add esp, 0x30
mov dword [ebp - 0x210], esi
cmp dword [ebp - 0x20c], esi
jle 0x40138d
push edi
nop
push 0x108
push ebx
call fcn.00423470
mov edi, dword [0x485e2c]
add esp, 8
cmp ebx, edi
jae 0x40132e
mov eax, dword [0x485e28]
cmp eax, ebx
ja 0x40132e
mov ecx, ebx
sub ecx, eax
mov eax, 0x3e0f83e1
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x214], eax
cmp edi, dword [0x485e30]
jne 0x40131c
push 1
mov ecx, 0x485e28
call fcn.00401bf0
mov edi, dword [0x485e2c]
mov eax, dword [ebp - 0x214]
test edi, edi
je 0x401361
imul esi, eax, 0x108
add esi, dword [0x485e28]
jmp 0x40134e
cmp edi, dword [0x485e30]
jne 0x401348
push 1
mov ecx, 0x485e28
call fcn.00401bf0
mov edi, dword [0x485e2c]
test edi, edi
je 0x401361
mov esi, ebx
mov ecx, 0x42
rep movsd dword es:[edi], dword [esi]
mov edi, dword [0x485e2c]
mov esi, dword [ebp - 0x210]
inc esi
add edi, 0x108
add ebx, 0x108
mov dword [0x485e2c], edi
mov dword [ebp - 0x210], esi
cmp esi, dword [ebp - 0x20c]
jl 0x4012c0
mov ebx, dword [ebp - 0x218]
pop edi
push 0x108
push ebx
call fcn.00423c27
lea eax, [ebp - 0x208]
mov byte [ebp - 8], 0
push eax
call fcn.00404e40
add esp, 0xc
pop ebx
test eax, eax
jne 0x4013d6
push eax
push str.ERROR_
push str.Failed_to_save_the_file_
push dword [0x48f0a0]
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00424024
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x208]
push 0x485e28
push eax
call fcn.00401930
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop esi
call fcn.00424024
mov esp, ebp
pop ebp
ret
Function at 0x4019f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
cmp eax, dword [ebx + 4]
jne 0x401a1e
push 0
push str.ERROR_
push str.Empty_options_
push dword [0x48f0a0]
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
mov esp, ebp
pop ebp
ret
push 0x46e280
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.0043644b
add esp, 0xc
test eax, eax
je 0x401a53
push 0
push str.ERROR_
push str.Could_not_open_save_file_
push dword [0x48f0a0]
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 4]
mov eax, 0x3e0f83e1
sub ecx, dword [ebx]
imul ecx
xor ecx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, 0x108
mov dword [ebp + 0xc], eax
mul edx
push esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00423c35
imul ecx, dword [ebp + 0xc], 0x108
mov esi, eax
mov dword [ebp - 8], esi
push ecx
push 0
push esi
call fcn.004255e0
mov edx, dword [ebx]
add esp, 0x10
cmp edx, dword [ebx + 4]
je 0x401ac4
mov eax, esi
push edi
mov esi, edx
mov edi, eax
mov ecx, 0x42
add edx, 0x108
rep movsd dword es:[edi], dword [esi]
add eax, 0x108
cmp edx, dword [ebx + 4]
jne 0x401aa5
mov esi, dword [ebp - 8]
pop edi
imul eax, dword [ebp + 0xc], 0x108
push 0xa4c6
push eax
push esi
call fcn.00422b60
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0xc]
push 1
push 4
push eax
call fcn.00436dba
push dword [ebp - 4]
push dword [ebp + 0xc]
push 0x108
push esi
call fcn.00436dba
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push 1
push 4
push eax
call fcn.00436dba
push 0x108
push esi
call fcn.00423c27
add esp, 0x44
push dword [ebp - 4]
call fcn.00436555
add esp, 4
push 0
push str.NOTICE_
push str.File_saved_successfully_
push dword [0x48f0a0]
call dword [sym.imp.USER32.dll_MessageBoxA]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402430
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ce9b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x485310]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0
call fcn.00403de0
mov dword [ebp - 0x21c], eax
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0
call fcn.004040f0
push edi
push 1
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0
push 4
push eax
call fcn.004369a9
mov eax, dword [ebp - 0x220]
add esp, 0x10
test eax, eax
jne 0x4024db
push eax
push str.ERROR_
push str.ItemData_count___0_
push dword [0x48f0a0]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4025c2
xor ecx, ecx
mov edx, 0x27c
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00423c35
imul ecx, dword [ebp - 0x220], 0x27c
mov esi, eax
push ecx
push 0
push esi
call fcn.004255e0
imul ecx, dword [ebp - 0x220], 0x27c
push edi
push 1
push ecx
push esi
call fcn.004369a9
push edi
push 1
lea eax, [ebp - 0x22c]
push 4
push eax
call fcn.004369a9
xor edi, edi
add esp, 0x30
cmp dword [ebp - 0x220], edi
jle 0x402579
nop dword [eax + eax]
push 0x27c
push esi
call fcn.00423470
add esp, 8
lea eax, [ebp - 0x228]
lea ecx, [ebp - 0x21c]
push esi
push eax
call fcn.00402280
mov eax, dword [ebp - 0x228]
inc edi
mov dword [eax + 0x14], esi
add esi, 0x27c
cmp edi, dword [ebp - 0x220]
jl 0x402540
lea eax, [ebp - 0x214]
mov byte [ebp - 0x14], 0
push eax
call fcn.00404e40
add esp, 4
test eax, eax
jne 0x4025a9
push eax
push str.ERROR_
push str.Failed_to_save_the_file_
push dword [0x48f0a0]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4025c2
push dword [ebp + 0xc]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.00403540
add esp, 0xc
mov eax, dword [ebp - 0x21c]
lea ecx, [ebp - 0x21c]
push eax
push dword [eax]
lea eax, [ebp - 0x224]
push eax
call fcn.004041d0
push dword [ebp - 0x21c]
call fcn.00423c22
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00424024
mov esp, ebp
pop ebp
ret
Function at 0x403a30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
cmp eax, dword [ebx + 4]
je 0x403b5a
push 0x46e280
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call fcn.0043644b
add esp, 0xc
test eax, eax
je 0x403a7a
push 0
push str.ERROR_
push str.Could_not_open_save_file_
push dword [0x48f0a0]
call dword [sym.imp.USER32.dll_MessageBoxA]
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 4]
mov eax, 0x19c2d14f
sub ecx, dword [ebx]
imul ecx
xor ecx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, 0x27c
mov dword [ebp - 4], eax
mul edx
push esi
push edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00423c35
mov edx, dword [ebx]
mov esi, eax
add esp, 4
mov dword [ebp - 0xc], esi
xor eax, eax
cmp edx, dword [ebx + 4]
je 0x403aec
mov ebx, esi
nop
cmp eax, dword [ebp - 4]
jge 0x403b5f
mov esi, edx
mov edi, ebx
mov ecx, 0x9f
add edx, 0x27c
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0xc]
inc eax
add ebx, 0x27c
cmp edx, dword [ecx + 4]
jne 0x403ac0
mov esi, dword [ebp - 0xc]
imul eax, dword [ebp - 4], 0x27c
push 0xe2f1
push eax
push esi
call fcn.00422b60
push dword [ebp - 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push 1
push 4
push eax
call fcn.00436dba
push dword [ebp - 8]
imul eax, dword [ebp - 4], 0x27c
push 1
push eax
push esi
call fcn.00436dba
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push 1
push 4
push eax
call fcn.00436dba
push dword [ebp - 8]
call fcn.00436555
add esp, 0x40
push 0
push str.NOTICE_
push str.File_saved_successfully_
push dword [0x48f0a0]
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push str.ERROR_
push str.Error_in_itemdata_
push dword [0x48f0a0]
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret