joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435f30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x38]
mov eax, dword [edi]
test al, 2
je 0x435f56
pop edi
pop esi
mov dword [0x4a4b38], 3
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
test al, 1
jne 0x435f6d
pop edi
pop esi
mov dword [0x4a4b38], 0xa
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x38]
mov ecx, dword [0x47bf6c]
push eax
push ecx
call sub.MSVCRT.dll_strlen
mov edx, dword [0x47bf6c]
add esp, 4
push eax
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov ebx, eax
mov eax, dword [0x47bf6c]
push eax
call sub.MSVCRT.dll_strlen
add esp, 0x14
cmp ebx, eax
je 0x435fb7
pop edi
pop esi
mov dword [0x4a4b38], 2
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], eax
mov esi, dword [ebp + 0x1c]
test esi, esi
je 0x435fec
mov ecx, dword [esi + 8]
mov edx, dword [esi]
push ecx
push edx
call fcn.00439450
mov ecx, dword [ebp + 8]
add esp, 8
mov dword [ecx + 0x10], eax
jmp 0x435ff6
mov edx, dword [ebp + 8]
mov dword [edx + 0x10], 0
mov eax, dword [edi + 0x38]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call fcn.00436580
mov edx, dword [edi + 0x38]
mov eax, dword [ebp + 0x10]
push edx
push eax
call fcn.00436580
mov dl, byte [esi + 4]
mov al, byte [ebp + 0x18]
add bl, 0xf
shl bl, 4
test esi, esi
sete cl
mov byte [ebp - 3], al
mov byte [ebp - 2], 0
dec ecx
and ecx, 0x80
or bl, cl
dec dl
or bl, dl
mov byte [ebp - 4], bl
mov ecx, dword [edi + 0x38]
push ecx
push 3
lea edx, [ebp - 4]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
xor ebx, ebx
add esp, 0x20
cmp esi, ebx
je 0x43609f
cmp dword [esi], ebx
mov dword [ebp + 8], ebx
jle 0x43609f
mov eax, dword [esi + 8]
mov cl, byte [eax + ebx]
add eax, ebx
mov byte [ebp - 4], cl
mov dl, byte [eax + 1]
mov byte [ebp - 3], dl
mov al, byte [eax + 2]
mov byte [ebp - 2], al
mov ecx, dword [edi + 0x38]
push ecx
push 3
lea edx, [ebp - 4]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 3
jne 0x435fa4
mov eax, dword [ebp + 8]
mov ecx, dword [esi]
inc eax
add ebx, 3
cmp eax, ecx
mov dword [ebp + 8], eax
jl 0x43605a
or dword [edi], 2
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4360b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx + 0x38]
mov eax, dword [esi]
test al, 4
push edi
je 0x4360dc
cmp dword [esi + 0x34], 0xffff0000
jbe 0x4360dc
pop edi
pop esi
mov dword [0x4a4b38], 4
xor eax, eax
pop ebx
pop ebp
ret
test al, 1
jne 0x4360f1
pop edi
pop esi
mov dword [0x4a4b38], 0xa
xor eax, eax
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x20]
test edi, edi
mov edx, dword [ebp + 0x14]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0x1c], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], ecx
je 0x43612a
mov edx, dword [edi + 8]
mov eax, dword [edi]
push edx
push eax
call fcn.00439450
add esp, 8
mov dword [ebx + 0x2c], eax
jmp 0x436131
mov dword [ebx + 0x2c], 0
mov byte [ebp + 8], 0x2c
mov ecx, dword [esi + 0x38]
push ecx
push 1
lea edx, [ebp + 8]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov eax, dword [esi + 0x38]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call fcn.00436580
mov edx, dword [esi + 0x38]
mov eax, dword [ebp + 0x10]
push edx
push eax
call fcn.00436580
mov ecx, dword [esi + 0x38]
mov edx, dword [ebp + 0x14]
push ecx
push edx
call fcn.00436580
mov eax, dword [esi + 0x38]
mov ecx, dword [ebp + 0x18]
push eax
push ecx
call fcn.00436580
add esp, 0x30
test edi, edi
je 0x436188
mov eax, dword [edi + 4]
dec eax
jmp 0x43618a
xor eax, eax
mov ecx, dword [ebp + 0x1c]
test edi, edi
sete dl
dec edx
and edx, 0x80
test ecx, ecx
sete cl
dec ecx
and ecx, 0x40
or dl, cl
or dl, al
mov byte [ebp + 8], dl
mov edx, dword [esi + 0x38]
push edx
push 1
lea eax, [ebp + 8]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
xor eax, eax
add esp, 0x10
cmp edi, eax
je 0x436218
cmp dword [edi], eax
mov dword [ebp + 0x10], eax
jle 0x436218
mov dword [ebp + 0xc], eax
mov ecx, dword [edi + 8]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx]
mov cl, byte [eax]
mov byte [ebp + 8], cl
mov dl, byte [eax + 1]
mov byte [ebp + 9], dl
mov al, byte [eax + 2]
mov byte [ebp + 0xa], al
mov ecx, dword [esi + 0x38]
push ecx
push 3
lea edx, [ebp + 8]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 3
jne 0x436237
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov ecx, dword [edi]
inc eax
add edx, 3
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp + 0xc], edx
jl 0x4361ce
mov eax, dword [ebx + 0x10]
test eax, eax
jne 0x436248
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0x436248
pop edi
pop esi
mov dword [0x4a4b38], 5
xor eax, eax
pop ebx
pop ebp
ret
pop edi
pop esi
mov dword [0x4a4b38], 2
xor eax, eax
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0x14]
imul eax, dword [ebp + 0x18]
mov edx, dword [esi]
or edx, 4
push ebx
mov dword [esi], edx
mov dword [esi + 0x34], eax
call fcn.004365b0
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
Function at 0x436370
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax + 0x38]
test byte [esi], 1
jne 0x43638e
mov dword [0x4a4b38], 0xa
xor eax, eax
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
push edi
jne 0x4363a3
mov ecx, dword [esi + 0x38]
push ecx
push 1
push 1
lea edx, [ebp + 0x10]
jmp 0x4363bb
mov byte [ebp + 9], al
mov al, byte [ebp + 0x10]
mov byte [ebp + 8], 0x21
mov byte [ebp + 0xa], al
mov ecx, dword [esi + 0x38]
push ecx
push 3
push 1
lea edx, [ebp + 8]
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
push edx
call edi
mov eax, dword [esi + 0x38]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
add esp, 0x10
push eax
push ecx
push 1
push edx
call edi
mov byte [ebp + 8], 0
mov eax, dword [esi + 0x38]
push eax
push 1
lea ecx, [ebp + 8]
push 1
push ecx
call edi
add esp, 0x20
pop edi
mov eax, 1
pop esi
pop ebp
ret

Function at 0x436430
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
mov edi, dword [eax + 0x38]
je 0x436471
mov ecx, dword [edi + 0x38]
xor edx, edx
mov dl, byte [esi]
push ecx
inc edx
push edx
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
xor ecx, ecx
mov cl, byte [esi]
add esp, 0x10
inc ecx
cmp eax, ecx
je 0x4364a6
pop edi
mov dword [0x4a4b38], 2
xor eax, eax
pop esi
pop ebp
ret
mov byte [ebp + 0xb], 0
mov edx, dword [edi + 0x38]
push edx
push 1
lea eax, [ebp + 0xb]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp eax, 1
je 0x43649f
pop edi
mov dword [0x4a4b38], 2
xor eax, eax
pop esi
pop ebp
ret
mov dword [edi + 0x34], 0
pop edi
mov eax, 1
pop esi
pop ebp
ret

Function at 0x4364b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x4364c5
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [edi + 0x38]
test byte [esi], 1
jne 0x4364df
pop edi
mov dword [0x4a4b38], 0xa
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x38]
mov byte [ebp + 0xb], 0x3b
mov ecx, dword [esi + 0x38]
push ecx
push 1
lea edx, [ebp + 0xb]
push 1
push edx
mov dword [ebp - 4], eax
call dword [sym.imp.MSVCRT.dll_fwrite]
mov eax, dword [edi + 0x2c]
add esp, 0x10
test eax, eax
je 0x43650e
push eax
call fcn.004394d0
add esp, 4
mov eax, dword [edi + 0x10]
test eax, eax
je 0x43651e
push eax
call fcn.004394d0
add esp, 4
test esi, esi
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_free]
je 0x43653f
mov eax, dword [esi + 0x6143]
test eax, eax
je 0x436539
push eax
call ebx
add esp, 4
push esi
call ebx
add esp, 4
push edi
call ebx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 8
test eax, eax
pop ebx
je 0x436566
pop edi
mov dword [0x4a4b38], 9
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x436580
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov byte [ebp + 0xa], al
sar eax, 8
mov byte [ebp + 0xb], al
mov eax, dword [ebp + 0xc]
push eax
push 2
lea ecx, [ebp + 0xa]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
sub eax, 2
add esp, 0x10
neg eax
sbb eax, eax
inc eax
pop ebp
ret

Function at 0x4365b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
push ebx
push esi
mov esi, dword [eax + 0x38]
je 0x4365c7
mov ebx, dword [ecx + 4]
jmp 0x4365d5
mov eax, dword [eax + 0x10]
test eax, eax
je 0x436668
mov ebx, dword [eax + 4]
cmp ebx, 2
jge 0x4365df
mov ebx, 2
mov byte [ebp + 0xb], bl
mov eax, dword [esi + 0x38]
push eax
push 1
lea ecx, [ebp + 0xb]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov ecx, ebx
mov eax, 1
shl eax, cl
lea ecx, [ebx + 1]
mov edx, 1
shl edx, cl
mov dword [esi + 0xc], eax
inc eax
mov dword [esi + 0x10], eax
inc eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x6143]
push eax
mov byte [esi + 0x44], 0
mov dword [esi + 8], ebx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], edx
mov dword [esi + 0x24], 0x1001
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.00439340
mov ecx, dword [esi + 0xc]
push ecx
push esi
call fcn.00436800
add esp, 0x1c
test eax, eax
jne 0x43665f
pop esi
mov dword [0x4a4b38], 8
pop ebx
pop ebp
ret
pop esi
mov eax, 1
pop ebx
pop ebp
ret
pop esi
mov dword [0x4a4b38], 5
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x436900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
cmp ebx, 0x1000
push esi
mov esi, dword [ebp + 0xc]
push edi
jne 0x436973
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.MSVCRT.dll_fwrite]
xor eax, eax
mov al, byte [esi]
test al, al
je 0x43694f
and eax, 0xff
push edi
inc eax
push eax
push 1
push esi
call ebx
xor ecx, ecx
mov cl, byte [esi]
add esp, 0x10
inc ecx
cmp eax, ecx
je 0x43694f
pop edi
pop esi
mov dword [0x4a4b38], 2
xor eax, eax
pop ebx
pop ebp
ret
push edi
push 1
push 1
push esi
mov byte [esi], 0
call ebx
add esp, 0x10
cmp eax, 1
je 0x4369bc
pop edi
pop esi
mov dword [0x4a4b38], 2
xor eax, eax
pop ebx
pop ebp
ret
cmp byte [esi], 0xff
jne 0x4369aa
mov edx, dword [ebp + 8]
push edx
push pe_nt_image_headers32
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
xor ecx, ecx
mov cl, byte [esi]
add esp, 0x10
inc ecx
cmp eax, ecx
je 0x4369a7
pop edi
pop esi
mov dword [0x4a4b38], 2
xor eax, eax
pop ebx
pop ebp
ret
mov byte [esi], 0
mov dl, byte [esi]
inc dl
xor eax, eax
mov al, dl
mov byte [esi], dl
and eax, 0xff
mov byte [eax + esi], bl
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
Function at 0x43a8d0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x11], 0xca
jne 0x43a903
push esi
call fcn.0043ff50
mov al, byte [esi + 0x3d]
add esp, 4
test al, al
je 0x43a8fc
mov dword [esi + 0x11], 0xcf
mov al, 1
pop esi
pop ebp
ret
mov dword [esi + 0x11], 0xcb
mov eax, dword [esi + 0x11]
cmp eax, 0xcb
jne 0x43a97f
mov eax, dword [esi + 0x183]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x43a96d
mov eax, dword [esi + 8]
test eax, eax
je 0x43a927
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x183]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43a968
cmp eax, 2
je 0x43a96d
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43a91a
cmp eax, 3
je 0x43a94d
cmp eax, 1
jne 0x43a91a
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x43a91a
mov edx, dword [esi + 0x10f]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43a91a
xor al, al
pop esi
pop ebp
ret
mov eax, dword [esi + 0x72]
push esi
mov dword [esi + 0x7a], eax
call fcn.0043a9b0
add esp, 4
pop esi
pop ebp
ret
cmp eax, 0xcc
je 0x43a99f
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x11]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043a9b0
add esp, 4
pop esi
pop ebp
ret

Function at 0x43ad50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x15]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
push eax
push 0x1000
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
test eax, eax
ja 0x43adb5
mov al, byte [esi + 0x24]
test al, al
je 0x43ad8f
mov edx, dword [edi]
mov dword [edx + 0x14], 0x2a
mov eax, dword [edi]
push edi
call dword [eax]
add esp, 4
mov ecx, dword [edi]
mov dword [ecx + 0x14], 0x78
mov edx, dword [edi]
push 0xffffffffffffffff
push edi
call dword [edx + 4]
mov eax, dword [esi + 0x20]
mov byte [eax], 0xff
mov ecx, dword [esi + 0x20]
add esp, 8
mov byte [ecx + 1], 0xd9
mov eax, 2
mov edx, dword [esi + 0x20]
mov dword [esi + 4], eax
pop edi
mov dword [esi], edx
mov byte [esi + 0x24], 0
mov al, 1
pop esi
pop ebp
ret
Function at 0x443820
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [edi + 4], ebx
call fcn.00443800
push 0x54
push edi
mov dword [ebp - 4], eax
call fcn.00443600
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x443865
push edi
call fcn.00443810
mov eax, dword [edi]
mov dword [eax + 0x14], 0x36
mov ecx, dword [edi]
mov dword [ecx + 0x18], ebx
mov edx, dword [edi]
push edi
call dword [edx]
add esp, 8
mov dword [esi], fcn.00443950
mov dword [esi + 4], fcn.00443ac0
mov dword [esi + 8], fcn.00443b60
mov dword [esi + 0xc], fcn.00443c00
mov dword [esi + 0x10], 0x443cc0
mov dword [esi + 0x14], 0x443d30
mov dword [esi + 0x18], 0x443da0
mov dword [esi + 0x1c], 0x443f40
mov dword [esi + 0x20], 0x444140
mov dword [esi + 0x24], fcn.00444340
mov dword [esi + 0x28], 0x444450
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [ebp - 4]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x40]
mov ecx, 2
mov dword [eax - 8], ebx
mov dword [eax], ebx
sub eax, 4
dec ecx
jne 0x4438c6
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
cmp eax, ebx
je 0x443940
lea ecx, [ebp + 0xb]
push ecx
lea edx, [ebp - 4]
push edx
push str._ld_c
push eax
mov byte [ebp + 0xb], 0x78
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x443940
mov al, byte [ebp + 0xb]
cmp al, 0x6d
je 0x44391d
cmp al, 0x4d
jne 0x44392e
mov eax, dword [ebp - 4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
jmp 0x443931
mov eax, dword [ebp - 4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44a480
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
lea esi, [eax + eax*4]
cmp byte [esi + esi*4 + 0x49eb78], 2
jne 0x44a4f0
mov ecx, dword [esi + esi*4 + 0x49eb81]
mov eax, dword [esi + esi*4 + 0x49eb7d]
push edi
mov edi, dword [esi + esi*4 + 0x49eb89]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x44a4b5
sub eax, ecx
mov edi, eax
mov eax, dword [esi + esi*4 + 0x49eb79]
push 0
push ecx
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [esi + esi*4 + 0x49eb79]
mov edx, dword [esi + esi*4 + 0x49eb8d]
push ecx
push edi
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x1c
pop edi
mov byte [esi + esi*4 + 0x49eb78], 1
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x44a500
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
lea esi, [ecx + ecx*4]
mov al, byte [esi + esi*4 + 0x49eb78]
test al, al
jne 0x44a524
push 0xc
call fcn.0040c4d0
add esp, 4
xor eax, eax
pop esi
pop ebp
ret
mov eax, dword [esi + esi*4 + 0x49eb81]
push edi
mov edi, dword [ebp + 0xc]
cmp edi, eax
je 0x44a5a2
mov eax, dword [esi + esi*4 + 0x49eb7d]
push ebx
mov ebx, dword [esi + esi*4 + 0x49eb89]
lea edx, [ebx + edi]
cmp edx, eax
jbe 0x44a54d
sub eax, edi
mov ebx, eax
push ecx
call fcn.0044a480
mov eax, dword [esi + esi*4 + 0x49eb79]
push 0
push edi
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [esi + esi*4 + 0x49eb79]
mov edx, dword [esi + esi*4 + 0x49eb8d]
push ecx
push ebx
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fread]
mov eax, dword [esi + esi*4 + 0x49eb89]
add esp, 0x20
lea ecx, [eax + edi - 1]
mov byte [esi + esi*4 + 0x49eb78], 1
mov dword [esi + esi*4 + 0x49eb81], edi
mov dword [esi + esi*4 + 0x49eb85], ecx
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret

Function at 0x44bc90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x27c
push esi
push edi
lea eax, [ebp - 0x27c]
push eax
push str.bitmap
push str.viewer
push str.bwclient.ini
call fcn.0040e790
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
test eax, eax
jne 0x44bce6
lea ecx, [ebp - 0x17c]
push str.mspaint.exe
push ecx
call sub.MSVCRT.dll_strcpy
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x17c]
push eax
call sub.MSVCRT.dll_strcat
jmp 0x44bd65
lea ecx, [ebp - 0x27c]
push ecx
call fcn.00410c90
lea edx, [ebp - 0x27c]
push str._FILE
push edx
call dword [sym.imp.MSVCRT.dll_strstr]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x44bd4c
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x17c]
push ecx
mov byte [esi], 0x20
mov byte [esi + 1], 0
call sub.MSVCRT.dll_strcpy
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x17c]
push eax
call sub.MSVCRT.dll_strcat
add esi, 5
lea ecx, [ebp - 0x17c]
push esi
push ecx
call sub.MSVCRT.dll_strcat
add esp, 0x18
jmp 0x44bd68
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x17c]
push str._s__s
push ecx
call edi
add esp, 0x10
push 9
lea edx, [ebp - 0x17c]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
ja 0x44bda3
push eax
push 0xa0
call fcn.00410630
add esp, 4
push eax
lea eax, [ebp - 0x17c]
push eax
call edi
lea ecx, [ebp - 0x17c]
push ecx
call fcn.0040d270
add esp, 0x10
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4527a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
xor eax, eax
mov ecx, 0x15
lea edi, [ebp - 0x54]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x479594]
push 8
push ecx
lea edx, [ebp - 0x52]
push edx
xor ebx, ebx
mov dword [ebp - 0x58], 0x2a269c
mov dword [ebp - 0x3a], eax
call sub.MSVCRT.dll_memcpy
push 8
lea eax, [ebp - 0x4a]
push 0x49eae4
push eax
call sub.MSVCRT.dll_memcpy
mov ecx, dword [0x4795d0]
mov edx, dword [0x4795d4]
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 0x42], ecx
mov dword [ebp - 0x3e], edx
mov word [ebp - 0xa], bx
call dword [sym.imp.MSVCRT.dll_ftell]
push 1
push 0x58
push esi
mov edi, eax
call dword [sym.imp.MSVCRT.dll_fseek]
lea eax, [ebp + 0xc]
push eax
push ebx
push 1
call fcn.0044a5b0
add esp, 0x34
test eax, eax
je 0x452899
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
jle 0x452881
mov ecx, dword [ebp + 0x10]
mov dx, word [ecx]
cmp dx, word [eax + 9]
jg 0x452881
mov dx, word [eax + 5]
cmp dx, word [ecx + 4]
jg 0x452881
mov dx, word [ecx + 2]
cmp dx, word [eax + 0xb]
jg 0x452881
mov dx, word [eax + 7]
cmp dx, word [ecx + 6]
jg 0x452881
mov ecx, dword [0x4c6c38]
test ecx, ecx
je 0x452874
call fcn.00447430
test eax, eax
mov eax, dword [ebp + 0xc]
jne 0x452874
mov cl, byte [eax + 0x11]
test cl, cl
je 0x452881
push esi
push eax
call fcn.004538a0
mov eax, dword [ebp + 0xc]
add esp, 8
mov ecx, dword [eax + 1]
lea eax, [ebp + 0xc]
push eax
add ebx, ecx
push ebx
push 1
call fcn.0044a5b0
add esp, 0xc
test eax, eax
jne 0x452825
push esi
call fcn.00453e20
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 0
sub eax, edi
push edi
push esi
mov dword [ebp - 8], eax
call ebx
push esi
push 1
lea ecx, [ebp - 0x58]
push 0x58
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
mov edx, dword [ebp - 8]
push 0
add edx, edi
push edx
push esi
call ebx
push esi
call fcn.00454a00
add esp, 0x34
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x453750
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
xor eax, eax
mov ecx, 0x15
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
mov eax, dword [0x479594]
push 8
lea ecx, [ebp - 0x56]
push 0x49eae4
push ecx
xor ebx, ebx
mov dword [ebp - 0x5c], 0x2a269c
mov dword [ebp - 0x3e], eax
call sub.MSVCRT.dll_memcpy
push 8
lea edx, [ebp - 0x4e]
push 0x49eae4
push edx
call sub.MSVCRT.dll_memcpy
mov eax, dword [0x4795d0]
mov ecx, dword [0x4795d4]
mov dword [ebp - 0x46], eax
mov eax, dword [0x4c709c]
mov edx, eax
add esp, 0x18
neg edx
sbb edx, edx
mov dword [ebp - 0xc], eax
mov eax, dword [0x4a6b90]
and edx, 0xa93
test eax, eax
mov dword [ebp - 0x42], ecx
mov word [ebp - 0xe], dx
mov byte [ebp - 7], 1
je 0x4537ed
push 8
lea eax, [ebp - 0x56]
push 0x49eb00
push eax
call sub.MSVCRT.dll_memcpy
mov cl, byte [0x4a6b90]
add esp, 0xc
dec cl
mov byte [ebp - 8], cl
mov esi, dword [ebp + 8]
push esi
push 1
lea edx, [ebp - 0x5c]
push 0x58
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
cmp word [ebp - 0xe], 0xa93
jne 0x45381a
mov eax, dword [ebp - 0xc]
push 1
push eax
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push 0
push 1
call fcn.0044a5b0
add esp, 0xc
test eax, eax
je 0x45388d
mov edx, dword [ebp - 4]
cmp byte [edx], 0
jle 0x453872
mov eax, dword [0x4c6c38]
test eax, eax
je 0x45385b
call fcn.00447430
test eax, eax
jne 0x45385b
mov eax, dword [ebp - 4]
mov cl, byte [eax + 0x11]
test cl, cl
je 0x453872
mov eax, dword [eax + 0xd]
push esi
push 0
push eax
jmp 0x453865
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xd]
push esi
push 0
push edx
push 0xff
call fcn.00453e50
add esp, 0x10
mov eax, dword [ebp - 4]
mov edi, dword [eax + 1]
lea ecx, [ebp - 4]
push ecx
add ebx, edi
push ebx
push 1
call fcn.0044a5b0
add esp, 0xc
test eax, eax
jne 0x45382e
push esi
call fcn.00453e20
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x453e20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
push 1
lea ecx, [ebp - 1]
push 1
push ecx
mov byte [ebp - 1], 0
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x454380
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [ebp + 8]
push ebx
mov word [eax], 0xffff
mov eax, dword [0x4a6ba4]
test eax, eax
push esi
push edi
je 0x454484
mov eax, dword [0x4a6bb0]
test eax, eax
je 0x454484
push 0
push 0
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ax, word [0x4a6ba8]
mov esi, dword [ebp + 0xc]
add esp, 0xc
xor edi, edi
test ax, ax
jle 0x454413
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [0x4a6bb0]
push ecx
push 1
lea edx, [ebp - 0x104]
push 0x104
push edx
mov byte [ebp - 0x104], 0
call ebx
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 0x18
test eax, eax
je 0x454475
mov ax, word [0x4a6ba8]
movsx ecx, ax
inc edi
cmp edi, ecx
jl 0x4543d2
cmp ax, 0xfa
jge 0x454484
mov ecx, dword [ebp + 8]
mov word [ecx], ax
movsx eax, word [0x4a6ba8]
mov edx, eax
shl edx, 6
add edx, eax
mov eax, dword [0x4a6bb0]
push 0
shl edx, 2
push edx
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [0x4a6bb0]
push ecx
push 1
push 0x104
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
mov eax, dword [0x4a6bac]
add esp, 0x1c
inc word [0x4a6ba8]
pop edi
inc eax
pop esi
mov dword [0x4a6bac], eax
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov word [edx], di
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret