joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002f8a0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1013fd28], eax
je 0x1002f8be
mov eax, 0x10dd
jmp 0x1002f99f
mov eax, dword [0x1013fd38]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1002f93c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1002f91a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1002f91a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1002e950
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.100164ee
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1002f8c6
mov dword [0x1013fd38], 0
call fcn.1002f230
mov ecx, dword [0x1013fd34]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1002f989
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.100164ee
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1002f954
mov dword [0x1013fd34], 0
mov dword [0x1013fd28], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1002fe80
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1013fd2c], 0
je 0x1002fe99
mov eax, dword [0x1013fd2c]
jmp 0x1002ff39
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x1002feab
xor eax, eax
jmp 0x1002ff39
push 8
call fcn.1001888b
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1002ff01
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1002feea
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.100164ee
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x1013fd2c], eax
mov dword [0x1013fd30], 0
mov eax, dword [ebp - 8]
jmp 0x1002ff39
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1002ff1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1002fecb
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1013fd34]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1013fd34], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x40f080
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40b015
lea edi, [esi - 0xa015]
push edi
or ebp, 0xffffffff
jmp 0x40f0a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40f0a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40f098
mov eax, 1
add ebx, ebx
jne 0x40f0bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40f0b0
jne 0x40f0cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0b0
xor ecx, ecx
sub eax, 3
jb 0x40f0e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40f152
mov ebp, eax
add ebx, ebx
jne 0x40f0eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40f0f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40f11c
inc ecx
add ebx, ebx
jne 0x40f108
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40f0fd
jne 0x40f119
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40f0fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40f13c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40f12d
jmp 0x40f09e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40f13c
add edi, ecx
jmp 0x40f09e
pop esi
mov edi, esi
mov ecx, 0x265
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40f15a
cmp byte [edi], 2
jne 0x40f15a
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 eax, ebx
loop 0x40f15f
lea edi, [esi + 0xd000]
mov eax, dword [edi]
or eax, eax
je 0x40f1ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xf000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xf064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40f18c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xf068]
or eax, eax
je 0x40f1c8
mov dword [ebx], eax
add ebx, 4
jmp 0x40f1a9
call dword [esi + 0xf06c]
popal
jmp 0x40354a

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

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x2a9812fe
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
mov ecx, 0x6bb814df
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x407200
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x10]
push 2
push ecx
push esi
call edi
test eax, eax
jne 0x407229
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret
cmp dword [esp + 0x10], 2
je 0x407237
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret
cmp word [esp + 8], 0
je 0x407246
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
call edi
test eax, eax
jne 0x407262
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret
cmp dword [esp + 0x10], 2
je 0x407270
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret
mov eax, dword [esp + 8]
cmp ax, 1
je 0x407287
cmp ax, 2
je 0x407287
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x10]
push 2
push edx
push esi
call edi
test eax, eax
jne 0x4072a3
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret
cmp dword [esp + 0x10], 2
je 0x4072b1
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret
mov eax, dword [esp + 8]
pop edi
and eax, 0xffff
pop esi
pop ecx
ret
Function at 0x408530
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x10]
push 2
push ecx
push esi
mov dword [esp + 0x1c], 0
call edi
test eax, eax
jne 0x40855e
pop edi
pop esi
pop ecx
ret
cmp dword [esp + 0x10], 2
je 0x40856b
pop edi
xor eax, eax
pop esi
pop ecx
ret
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
mov dword [esp + 0x1c], 1
call edi
test eax, eax
jne 0x40858c
pop edi
pop esi
pop ecx
ret
cmp dword [esp + 0x10], 2
je 0x408599
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x10]
push 2
push eax
push esi
mov dword [esp + 0x1c], ecx
call edi
test eax, eax
jne 0x4085ba
pop edi
pop esi
pop ecx
ret
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 2
pop edi
sete al
pop esi
pop ecx
ret
Function at 0x408600
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
mov eax, dword [esp + 0x20]
push ebp
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x10], ebx
jne 0x408639
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
mov edi, dword [esp + 0x28]
mov ecx, dword [edi]
push ecx
push ebx
call fcn.00408530
add esp, 8
test eax, eax
jne 0x40865e
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
mov eax, dword [edi]
xor ebp, ebp
test eax, eax
jbe 0x408709
lea esi, [edi + 0x28]
mov al, byte [esi - 0x14]
mov dl, byte [esi - 0x18]
mov byte [esp + 0x15], al
mov eax, dword [esi]
mov byte [esp + 0x14], dl
mov byte [esp + 0x17], 0
mov cx, word [eax + 0xc]
mov word [esp + 0x18], cx
mov dx, word [eax + 0xe]
mov word [esp + 0x1a], dx
mov ecx, dword [esp + 0x1a]
mov eax, dword [esp + 0x18]
and ecx, 0xffff
and eax, 0xffff
imul ecx, eax
cmp ecx, 8
jl 0x4086b6
mov byte [esp + 0x16], 0
jmp 0x4086be
mov dl, 1
shl dl, cl
mov byte [esp + 0x16], dl
mov eax, dword [esi - 8]
push ebp
push edi
mov dword [esp + 0x24], eax
call fcn.004085d0
add esp, 8
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x14]
mov dword [esp + 0x20], eax
push 0
push ecx
push 0x10
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408654
cmp dword [esp + 0x2c], 0x10
jne 0x408654
mov eax, dword [edi]
inc ebp
add esi, 0x24
cmp ebp, eax
jb 0x40866d
mov eax, dword [edi]
xor ebx, ebx
test eax, eax
jbe 0x408760
lea esi, [edi + 0x28]
mov eax, dword [esi]
push 0
mov ebp, dword [eax + 0x14]
mov dword [eax + 0x14], 0
mov ecx, dword [esi - 8]
mov edx, dword [esi - 0xc]
lea eax, [esp + 0x30]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408654
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi - 8]
cmp ecx, eax
jne 0x408654
mov edx, dword [esi]
inc ebx
add esi, 0x24
mov dword [edx + 0x14], ebp
mov eax, dword [edi]
cmp ebx, eax
jb 0x408714
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret
Function at 0x412540
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
push ebp
xor ebx, ebx
push esi
push ebx
push 0x80
mov ebp, 1
push 3
push ebx
push ebp
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x412577
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea ecx, [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x2c]
push 2
push edx
push esi
call edi
cmp word [esp + 0x24], 0x4d4d
jne 0x41259a
xor ebp, ebp
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x1a]
push 2
push ecx
push esi
call edi
lea edx, [esp + 0x18]
push 0
push edx
lea eax, [esp + 0x1c]
push 4
push eax
push esi
call edi
test ebp, ebp
jne 0x4125ed
mov ecx, dword [esp + 0x14]
mov eax, ecx
mov edx, ecx
and eax, 0xff0000
shr edx, 0x10
or eax, edx
mov edx, ecx
and edx, 0xff00
shl ecx, 0x10
or edx, ecx
shr eax, 8
shl edx, 8
or eax, edx
mov dword [esp + 0x14], eax
jmp 0x4125f1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4126da
push 0
push 0
push eax
push esi
call fcn.004b57a0
add esp, 0x10
or eax, edx
je 0x4126da
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x24]
push 2
push ecx
push esi
call edi
test ebp, ebp
jne 0x412641
mov ecx, dword [esp + 0x1c]
xor edx, edx
mov eax, ecx
mov dl, ch
shl eax, 8
xor dl, al
and edx, 0xff
xor eax, edx
mov dword [esp + 0x1c], eax
jmp 0x412645
mov eax, dword [esp + 0x1c]
and eax, 0xffff
push 1
lea eax, [eax + eax*2]
shl eax, 2
cdq
push edx
push eax
push esi
call fcn.004b57a0
add esp, 0x10
or eax, edx
je 0x4126da
lea eax, [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x1c]
push 4
push ecx
push esi
inc ebx
call edi
test eax, eax
je 0x4126da
cmp dword [esp + 0x18], 4
jne 0x4126da
test ebp, ebp
jne 0x4126b0
mov ecx, dword [esp + 0x14]
mov eax, ecx
mov edx, ecx
and eax, 0xff0000
shr edx, 0x10
or eax, edx
mov edx, ecx
and edx, 0xff00
shl ecx, 0x10
or edx, ecx
shr eax, 8
shl edx, 8
or eax, edx
mov dword [esp + 0x14], eax
jmp 0x4126b4
mov eax, dword [esp + 0x14]
cmp ebx, 0xa000
ja 0x4126d5
test eax, eax
jne 0x4125f9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x10
ret
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x416690
Capabilities:
Get common file path

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x208
mov edx, ecx
xor eax, eax
push esi
mov esi, dword [esp + 0x210]
push edi
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0x104
and ecx, 3
rep stosb byte es:[edi], al
cmp dword [esp + 0x220], 1
jne 0x4166d4
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x416789
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [esp + 8]
push edx
call fcn.004d6713
add esp, 4
cmp word [esp + eax*2 + 6], 0x5c
je 0x416706
lea eax, [esp + 8]
push 0x598458
push eax
call fcn.004d62f1
add esp, 8
lea ecx, [esp + 8]
push ecx
push str._sTWAINDSM.DLL
push esi
call fcn.004d5ee1
push esi
call fcn.004381b0
add esp, 0x10
test eax, eax
jne 0x4167c9
mov edi, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edx, [esp + 8]
push 0x104
push edx
call edi
lea eax, [esp + 8]
push eax
call fcn.004d6713
add esp, 4
cmp word [esp + eax*2 + 6], 0x5c
je 0x416760
lea ecx, [esp + 8]
push 0x598458
push ecx
call fcn.004d62f1
add esp, 8
lea edx, [esp + 8]
push edx
push str._sTWAINDSM.DLL
push esi
call fcn.004d5ee1
push esi
call fcn.004381b0
add esp, 0x10
test eax, eax
jne 0x4167c9
lea eax, [esp + 8]
push 0x104
push eax
call edi
lea ecx, [esp + 8]
push ecx
call fcn.004d6713
add esp, 4
cmp word [esp + eax*2 + 6], 0x5c
je 0x4167b0
lea edx, [esp + 8]
push 0x598458
push edx
call fcn.004d62f1
add esp, 8
lea eax, [esp + 8]
push eax
push str._sTWAIN_32.DLL
push esi
call fcn.004d5ee1
push esi
call fcn.004381b0
add esp, 0x10
pop edi
pop esi
add esp, 0x208
ret
Function at 0x417fa0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x208
push ebp
push esi
mov esi, dword [esp + 0x238]
push edi
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 0
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x228]
mov dword [esp + 0xc], 0
test esi, esi
je 0x417fec
lea eax, [esp + 0x14]
push esi
push eax
call fcn.004d631b
add esp, 8
cmp word [esi], 0
jne 0x418011
test edi, edi
je 0x418011
push 0x5b9260
lea ecx, [esp + 0x18]
push 0x40
push ecx
push 0x5aae60
push str.Outline1
push str.AddText
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ebp, dword [esp + 0x22c]
test ebp, ebp
je 0x41803d
push 0
push 0
push 0
push 0x493e1
push 0
push 5
lea edx, [esp + 0x2c]
push str._d_d_d_u_d_d
push edx
call fcn.004d5ee1
add esp, 0x20
mov esi, dword [esp + 0x224]
mov eax, dword [esi + 8]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
sub eax, ecx
mov ecx, dword [esi + 0xc]
sub ecx, edx
test edi, edi
jne 0x41805f
test ebp, ebp
jne 0x41805f
xor edx, edx
jmp 0x418064
mov edx, 1
lea edi, [esp + 0x14]
push edi
mov edi, dword [esp + 0x23c]
push edi
mov edi, dword [esp + 0x23c]
push edi
push ecx
mov ecx, dword [esp + 0x22c]
push eax
mov eax, dword [esp + 0x244]
push eax
push edx
mov edx, dword [esp + 0x234]
push ecx
push 0xff
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x44]
push edx
lea ecx, [esp + 0x4c]
push eax
push ecx
push esi
call fcn.00417d70
mov edx, dword [esi]
mov edi, dword [esp + 0x58]
mov ecx, dword [esi + 4]
mov eax, dword [esp + 0x54]
add esp, 0x48
add edx, edi
add ecx, eax
mov dword [esi + 8], edx
mov dword [esi + 0xc], ecx
pop edi
pop esi
pop ebp
add esp, 0x208
ret

Function at 0x41bb90
Capabilities:
Read .ini file

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp ebx, 0xffffffff
jne 0x41bbb6
push 0x5b9260
push 1
push str.UseFSDither
push str.Others
call esi
mov ebx, eax
push edi
mov edi, dword [esp + 0x1c]
cmp edi, 0xffffffff
jne 0x41bbd5
push 0x5b9260
push 0
push str.DecrQuality
push str.Others
call esi
mov edi, eax
mov eax, dword [esp + 0x20]
cmp eax, 0xffffffff
jne 0x41bbf1
push 0x5b9260
push 0
push str.Grayscale
push str.Others
call esi
test edi, edi
pop edi
je 0x41bc21
push 0
push 6
mov ecx, dword [esp + 0x14]
push 0
push 0x5b9260
push 0
add eax, 0x64
push 0
push eax
mov eax, dword [esp + 0x2c]
push ebx
push eax
push 0
push ecx
call fcn.0041b9d0
add esp, 0x2c
pop esi
pop ebx
ret
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ebx
push edx
push eax
call fcn.00426ca0
add esp, 0x10
pop esi
pop ebx
ret
Function at 0x42c590
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x2c0
push ebx
push esi
mov esi, dword [esp + 0x2d0]
push edi
push 0x7f00
push 0
mov dword [esp + 0x48], str.IrfanViewHEXView
mov dword [esp + 0x34], esi
mov dword [esp + 0x28], 0x42bb00
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x3ee
push esi
mov dword [esp + 0x3c], eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 0x40], 0x598a5c
mov dword [esp + 0x3c], 5
mov dword [esp + 0x20], 3
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.USER32.dll_RegisterClassW]
mov edi, dword [esp + 0x2d8]
lea ecx, [esp + 0x44]
push edi
push str.IrfanView_HEXView____s
push ecx
call fcn.004d5ee1
mov edx, dword [esp + 0x2e8]
mov ebx, dword [esp + 0x2dc]
push 0x5b9260
push 0x598a5c
lea eax, [esp + 0x2c]
push edx
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
push ebx
call fcn.004c4e30
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
add esp, 0x2c
push 0
push esi
push 0
push ebx
push ecx
mov ecx, dword [esp + 0x24]
push edx
push eax
push ecx
lea edx, [esp + 0x64]
push 0xff0000
push edx
push str.IrfanViewHEXView
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 5
push eax
mov dword [0x5b555c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x5b555c]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov ecx, dword [0x5b555c]
push edi
push 0
push 0x52b
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [0x5b555c]
push edx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x2c0
ret

Function at 0x42db20
Capabilities:
Read .ini file

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
lea ecx, [ebx + ebx]
push esi
mov edx, ecx
push edi
xor eax, eax
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 1
and ecx, 3
push ebx
rep stosb byte es:[edi], al
call fcn.004d61b4
mov esi, eax
add esp, 8
test esi, esi
je 0x42dbb0
mov eax, dword [esp + 0x14]
push ebx
push esi
push eax
call fcn.0042d880
add esp, 0xc
test eax, eax
je 0x42dba7
mov ecx, dword [esp + 0x20]
push ecx
push 0
push str.JPGComConversion
push str.IPTC
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push esi
call fcn.0042daf0
add esp, 8
push ebx
push ebp
push 0xffffffffffffffff
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
call fcn.004d59c1
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.004d59c1
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x42f7e0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x978
mov ecx, dword [0x5b5574]
lea eax, [esp + 0x2a0]
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_LoadStringW]
push esi
push edi
push 0x20
push eax
push 0x52a
push ecx
call ebp
mov edi, dword [esp + 0x998]
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
lea edx, [esp + 0x2b0]
lea eax, [esp + 0x68]
push edx
push edi
push 0x598d30
push eax
call ebx
push 0x598a58
push edi
call fcn.004d78c5
add esp, 0x18
test eax, eax
jne 0x42f854
mov edx, dword [0x5b5574]
lea ecx, [esp + 0x68]
push 0x104
push ecx
push 0x4e9
push edx
call ebp
lea eax, [esp + 0x68]
push eax
call fcn.004d6713
mov esi, eax
push edi
inc esi
push str.._s
lea ecx, [esp + esi*2 + 0x74]
push ecx
call ebx
push edi
call fcn.004d6713
lea eax, [esi + eax + 3]
push 0x5aae60
lea edx, [esp + eax*2 + 0x80]
push edx
call ebx
mov ebx, dword [esp + 0x9b0]
mov edi, dword [esp + 0x9ac]
xor eax, eax
add esp, 0x1c
lea ecx, [ebx + ebx]
mov edx, ecx
push 0x104
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [0x5b5574]
lea eax, [esp + 0x4fc]
push eax
push 0x466
push ecx
call ebp
mov ebp, dword [esp + 0x9a4]
xor esi, esi
cmp ebp, esi
jne 0x42f8ff
mov edx, dword [esp + 0x9a0]
mov eax, dword [esp + 0x99c]
push 0x5b9260
push 0x104
push 0x5ab738
push 0x598470
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
jmp 0x42f90d
push ebp
push 0x5ab738
call fcn.004d631b
add esp, 8
lea ecx, [esp + 0x2b0]
push 0x104
push ecx
call fcn.004d77bf
mov edx, dword [esp + 0x994]
mov ecx, 0x16
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [0x5b550c]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x998]
lea ecx, [esp + 0x70]
add esp, 8
mov dword [esp + 0x2c], edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
lea edx, [esp + 0x10]
lea eax, [esp + 0x740]
lea ecx, [esp + 0x4f8]
push edx
mov dword [esp + 0x14], 0x58
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 1
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0x124
mov dword [esp + 0x40], 0x5ab738
mov dword [esp + 0x44], ecx
mov word [esp + 0x4c], si
mov word [esp + 0x4e], si
mov dword [esp + 0x50], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x48], 0x80204
call dword [0x5aae20]
test eax, eax
je 0x42fa1b
push 0x104
push 0x5ab738
call fcn.004d77bf
add esp, 8
cmp ebp, esi
jne 0x42f9fb
mov eax, dword [esp + 0x9a0]
mov ecx, dword [esp + 0x99c]
push 0x5b9260
push 0x5ab738
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea edx, [esp + 0x2b0]
push edx
call fcn.004d7731
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x978
ret
call dword [0x5aae34]
cmp eax, 0x3003
jne 0x42fa30
push 0x30
call dword [sym.imp.USER32.dll_MessageBeep]
lea eax, [esp + 0x2b0]
push eax
call fcn.004d7731
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x978
ret
Function at 0x42ffc0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x490
lea eax, [esp]
push esi
mov esi, dword [esp + 0x498]
push edi
push 0x124
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, dword [esp + 0x4a0]
lea ecx, [esp + 8]
push edi
lea edx, [esp + 0x254]
push ecx
push edx
call fcn.004d5ee1
add esp, 0xc
lea eax, [esp + 0x250]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea ecx, [esp + 8]
push 0x124
push ecx
push 0x7a6
push esi
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
lea edx, [esp + 8]
push edi
lea eax, [esp + 0x254]
push edx
push eax
call fcn.004d5ee1
add esp, 0xc
lea ecx, [esp + 0x250]
push ecx
push 0x7a6
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
pop edi
pop esi
add esp, 0x490
ret