joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473be0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0x1c], 0
je 0x473bfc
mov eax, dword [ebp + 0x1c]
push eax
call fcn.00489c70
add esp, 4
test eax, eax
jne 0x473c1d
push 0x4cce96
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.00489ae0
add esp, 8
mov edx, dword [ebp + 0x18]
mov dword [edx], 0
xor eax, eax
jmp 0x473d7f
cmp dword [ebp + 0x10], 0
je 0x473c2b
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
jmp 0x473c32
mov dword [ebp - 8], str.1Emp9
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
cmp dword [ebp + 0x10], 0
jne 0x473c87
mov eax, dword [ebp + 0x18]
cmp dword [eax], 7
jne 0x473c87
push str.1Emp9
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.004405d0
add esp, 8
test eax, eax
jne 0x473c87
mov edx, dword [ebp + 0x14]
mov byte [edx], 0
xor eax, eax
jmp 0x473d7f
mov eax, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0x20
je 0x473ca3
mov eax, dword [ebp - 4]
movsx ecx, byte [eax]
cmp ecx, 9
jne 0x473cae
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x473c8d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0x14]
je 0x473cfb
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
je 0x473ce2
mov eax, dword [ebp - 4]
push eax
call fcn.00489c70
add esp, 4
add eax, 1
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call fcn.0048a5f0
add esp, 0xc
jmp 0x473cfb
mov eax, dword [ebp + 0x14]
mov byte [eax], 0
mov ecx, dword [ebp + 0x18]
mov dword [ecx], 0
mov eax, 1
jmp 0x473d7f
mov edx, dword [ebp + 0x14]
push edx
call fcn.00489c70
add esp, 4
test eax, eax
jne 0x473d1b
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
mov eax, 1
jmp 0x473d7f
mov ecx, dword [ebp + 0x14]
push ecx
call fcn.00489c70
add esp, 4
mov edx, dword [ebp + 0x14]
lea eax, [edx + eax - 1]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x14]
jb 0x473d5a
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
cmp eax, 0x20
je 0x473d4f
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 9
jne 0x473d5a
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
jmp 0x473d31
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0x14]
jb 0x473d69
mov edx, dword [ebp - 4]
mov byte [edx + 1], 0
mov eax, dword [ebp + 0x14]
push eax
call fcn.00489c70
add esp, 4
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x47d63a
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x47d663
call fcn.0048036b
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
test eax, eax
mov dword [esi + 8], eax
jne 0x47d686
push eax
push dword [esi + 4]
call fcn.0047d5c5
push esi
push eax
mov ecx, 0x542790
call fcn.0047d274
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x47e17f
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x4ac012
call fcn.0048ed72
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0047e141
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00412610
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
test eax, eax
mov dword [esi + 4], eax
jne 0x47e1e5
push eax
push dword [esi + 8]
call fcn.0047d5c5
push dword [esi + 0xc]
mov ecx, 0x542790
push eax
call fcn.0047d274
mov eax, esi
call fcn.0048ee11
ret 0x18

Function at 0x480524
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x48052d
xor eax, eax
jmp 0x480596
cmp dword [esp + 8], 0
jne 0x480539
call fcn.0047c20a
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.004902a3
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x480574
push dword [esi + 0x10]
call fcn.0048ffa9
test eax, eax
pop ecx
jne 0x480574
mov esi, dword [esi + 0xc]
call fcn.0048f074
push esi
push dword [eax]
push 1
call fcn.00487861
push dword [esi + 0x10]
call fcn.0048ffd8
test eax, eax
pop ecx
je 0x480593
push dword [esi + 0x10]
call fcn.0048fefd
push eax
call fcn.00403e30
pop ecx
pop ecx
jmp 0x480562
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x48059f
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x4805a9
call fcn.0047c20a
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0049041d
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x4805d6
mov esi, dword [esi + 0xc]
call fcn.0048f074
push esi
push dword [eax]
push 1
call fcn.00487861
pop esi
ret 8
Function at 0x481fef
Capabilities:
Contain obfuscated stackstrings

Disassembly:
xchg ebp, eax
cmp cl, 0xff
inc dword [ebx - 0x6cb43]
inc dword [eax]
je 0x482dbc
push 5
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x1d]
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.00480b9a
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x482036
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x48207f
invalid
test dword [eax], eax

Function at 0x48208e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax - 0x72a5b], al
inc dword [eax]
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.00480c29
pushfd
out 0xf, eax
lea eax, [ebp - 0x72c]
push eax
call fcn.00480c39
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00480bee
add esp, 0xc
mov dword [ebp - 0x6e4], eax
call fcn.00480c29
mov word [ebp + 0x6b], cs
add ecx, dword [ebp - 0x7177b]
test eax, ebp
clc
invalid
call dword [eax + 0x6a]
inc eax
push 5
push dword [ebp - 0x3a8]
call dword [ebp - 0x6e4]
push 5
lea eax, [ebp - 0x394]
push eax
push dword [ebp - 0x3a8]
call fcn.00480b9a
add esp, 0xc
lea eax, [ebp - 0x718]
push eax
push dword [ebp - 0x718]
push 5
push dword [ebp - 0x3a8]
call dword [ebp - 0x6e4]
call fcn.00480c29
jb 0x4821b3
clc
xlatb
and dword [ebp - 0x700], 0
jmp 0x4821a9
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x4821c2
mov eax, dword [ebp - 0x700]
and byte [ebp + eax - 0x394], 0
jmp 0x48219c
test dword [eax], eax
stc
invalid
push 4
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x18]
push eax
lea eax, [ebp - 0x540]
push eax
call fcn.00480b9a
add esp, 0xc
movsx eax, byte [ebp - 8]
mov esi, 0x8d8bf845
sar dl, 0xff
jmp [ebx]
enter 0xffffffffffff8d89, 0xffffffffffffffc0
cli
invalid
jmp [edx + 4]
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00480b9a
add esp, 0xc
movsx eax, byte [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, eax
mov dword [ebp - 0xc], ecx
push 4
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x10]
push eax
lea eax, [ebp - 0x400]
push eax
call fcn.00480b9a
add esp, 0xc
movsx eax, byte [ebp - 8]
mov ecx, dword [ebp - 0x400]
sub ecx, eax
mov dword [ebp - 0x400], ecx
call fcn.00480c29
or edi, esp
wait
fild qword [edx + 4]
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0xc]
push eax
lea eax, [ebp - 0x54c]
push eax
call fcn.00480b9a
add esp, 0xc
movsx eax, byte [ebp - 8]
mov ecx, dword [ebp - 0x54c]
sub ecx, eax
mov dword [ebp - 0x54c], ecx
call fcn.00480c29
ret
Function at 0x4825d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
je 0x482ccf
lea eax, [ebp - 0x230]
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x6fc], 0
jne 0x4827a4
invalid
and byte [ebp - 0x77c], 0
cmp dword [ebp - 0x6fc], 1
jne 0x482855
and byte [ebp - 0x78c], 0
and byte [ebp - 0x78b], 0
mov byte [ebp - 0x78a], 0xa0
test dword [esi - 8], esi
invalid
jmp dword [eax - 0x7885a80]
and byte [ebp - 0x789], 0
mov byte [ebp - 0x788], 3
mov byte [ebp - 0x787], 0x3b
mov byte [ebp - 0x786], 0x33
clc
invalid
push dword [ebx]
mov byte [ebp - 0x785], 0x3c
jnp method.CGdiObject.virtual_0
invalid
invalid
cmp al, 0xc6
test dword [eax + edi*8 - 1], edi
push dword [eax]
mov byte [ebp - 0x783], 0x3a
mov byte [ebp - 0x782], 0x2d
mov byte [ebp - 0x781], 0x71
mov byte [ebp - 0x780], 0x3b
invalid
invalid
invalid
clc

Function at 0x488550
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4e412c]
jne 0x48855a
repz ret
jmp fcn.00492fec
Function at 0x490007
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x490044
cmp dword [ebp + 0x14], edi
je 0x490044
cmp ecx, edi
jne 0x49004b
call fcn.0048f061
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0048c1a0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x49005f
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x490080
cmp ebx, 0xffffffff
je 0x49006f
push ebx
push edi
push ecx
call fcn.004886d0
add esp, 0xc
cmp esi, edi
je 0x49002c
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x49002c
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x49009c
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4900a3
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x490194
test word [esi + 0xc], 0x10c
je 0x4900f7
mov eax, dword [esi + 4]
test eax, eax
je 0x4900f7
jl 0x4901f5
cmp ebx, eax
mov edi, ebx
jb 0x4900c8
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x49019c
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.004885ec
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x49018c
cmp ebx, dword [ebp - 0xc]
jb 0x490164
cmp dword [ebp - 0xc], 0
je 0x490121
mov ecx, bind
xor edx, edx
cmp ebx, ecx
jbe 0x490116
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x49011d
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x49012c
mov eax, bind
cmp ebx, eax
ja 0x49012c
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4901c8
push eax
push dword [ebp - 8]
push esi
call fcn.0048fd4a
pop ecx
push eax
call fcn.0049deb0
add esp, 0xc
test eax, eax
je 0x490207
cmp eax, 0xffffffff
je 0x4901f5
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x49018c
push esi
call fcn.0049bbbc
cmp eax, 0xffffffff
pop ecx
je 0x4901f9
cmp dword [ebp - 4], 0
je 0x4901c8
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4900ab
mov eax, dword [ebp + 0x14]
jmp 0x490046
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4901b3
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.004886d0
add esp, 0xc
call fcn.0048f061
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x49003c
cmp dword [ebp + 0xc], 0xffffffff
je 0x4901de
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004886d0
add esp, 0xc
call fcn.0048f061
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x49003c
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x490046
or dword [esi + 0xc], 0x10
jmp 0x4901f9
Function at 0x490ff4
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4e42f0]
je 0x49100f
inc edi
cmp edi, 0x17
jb 0x491000
cmp edi, 0x17
jae 0x49118f
push ebp
push 3
call fcn.0049ecce
cmp eax, 1
pop ecx
je 0x49115b
push 3
call fcn.0049ecce
test eax, eax
pop ecx
jne 0x491043
cmp dword [0x4e4128], 1
je 0x49115b
cmp ebx, 0xfc
je 0x49118e
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x542d60
push ebp
call fcn.0048a0fd
add esp, 0xc
test eax, eax
je 0x491079
push esi
push esi
push esi
push esi
push esi
call fcn.0048c0a4
add esp, 0x14
push 0x104
mov esi, 0x542d79
push esi
push 0
mov byte [0x542e7d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4910bd
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0048a0fd
add esp, 0xc
test eax, eax
je 0x4910bd
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0048c0a4
add esp, 0x14
push esi
call fcn.00489c70
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x491102
push esi
call fcn.00489c70
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x543074
push 0x4d0904
sub ecx, eax
push ecx
push eax
call fcn.0048a468
add esp, 0x14
test eax, eax
je 0x491102
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0048c0a4
add esp, 0x14
jmp 0x491104
xor esi, esi
push 0x4d0900
push ebx
push ebp
call fcn.0048a08c
add esp, 0xc
test eax, eax
je 0x491124
push esi
push esi
push esi
push esi
push esi
call fcn.0048c0a4
add esp, 0x14
push dword [edi*8 + 0x4e42f4]
push ebx
push ebp
call fcn.0048a08c
add esp, 0xc
test eax, eax
je 0x491146
push esi
push esi
push esi
push esi
push esi
call fcn.0048c0a4
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0049eb11
add esp, 0xc
jmp 0x49118e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x49118e
cmp ebp, 0xffffffff
je 0x49118e
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4e42f4]
push dword [esi]
call fcn.00489c70
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4a6a70
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4e412c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004a6a05
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004886d0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4a6abf
cmp dword [ebp - 0x1c], 5
jb 0x4a6ad7
jmp 0x4a6ad3
cmp dword [ebp - 0x10], 1
jne 0x4a6ad7
cmp dword [ebp - 0x1c], 4
ja 0x4a6ad3
jne 0x4a6ad7
cmp dword [ebp - 0x18], 0
jbe 0x4a6ad7
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4d263c
call fcn.004a68f6
test eax, eax
jge 0x4a6af8
mov byte [0x4e9f60], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00488550
add ebp, 0x78
leave
ret
Function at 0x402ba0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x40a445
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push esi
push edi
lea ecx, [esp + 8]
mov dword [esp + 0x10], 0
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x1c]
push 0x104
push eax
push 0
mov dword [esp + 0x134], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x1c]
push 0
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
push edi
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
lea edx, [esp + 0x1c]
push esi
push edi
push 0
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x402c40
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0x4100c0
push esi
call sub.VERSION.dll_VerQueryValueA
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
push 0x41074c
lea ecx, [esp + 0xc]
call fcn.00409c48
test esi, esi
je 0x402c7d
mov eax, dword [esp + 0xc]
xor edx, edx
mov ecx, dword [eax + 0xc]
mov dx, word [eax + 8]
mov eax, dword [eax + 8]
shr ecx, 0x10
push ecx
push edx
shr eax, 0x10
push eax
lea ecx, [esp + 0x14]
push str._d._d._d
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0x14
push esi
call sub.MFC42.DLL_operatordelete
mov esi, dword [esp + 0x134]
add esp, 4
lea edx, [esp + 8]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString
mov dword [esp + 0x10], 1
lea ecx, [esp + 8]
mov byte [esp + 0x128], 0
call fcn.00409c3c
mov ecx, dword [esp + 0x120]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x124
ret 4
Function at 0x402d30
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
push 0
mov dword [esp + 0x14], 0
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push eax
push 0x18
push ebp
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esp + 0x2e]
mov edx, 1
mov eax, ecx
and eax, 0xffff
cmp cx, 0x10
sbb edi, edi
mov ecx, eax
imul eax, dword [esp + 0x20]
shl edx, cl
neg edi
add eax, 0x1f
imul edi, edx
cdq
and edx, 0x1f
add eax, edx
sar eax, 5
imul eax, dword [esp + 0x24]
add eax, edi
lea ebx, [eax*4 + 0x36]
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
lea ecx, [edi*4 + 0x36]
lea eax, [esi + 0xe]
mov word [esi], 0x4d42
mov dword [esi + 2], ebx
mov dword [esi + 0xa], ecx
mov dword [eax], 0x28
mov edx, dword [esp + 0x20]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x24]
mov dword [eax + 8], ecx
mov dx, word [esp + 0x2c]
mov word [eax + 0xc], dx
mov ecx, dword [esp + 0x2e]
cmp cx, 0x18
jbe 0x402dea
mov word [eax + 0xe], 0x18
jmp 0x402dee
mov word [eax + 0xe], cx
mov ecx, dword [esi + 0xa]
push 0
add ecx, esi
push eax
mov eax, dword [esp + 0x2c]
push ecx
push eax
push 0
push ebp
mov ebp, dword [esp + 0x2c]
push ebp
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
je 0x402e59
mov ecx, dword [esp + 0x3c]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402e59
lea edx, [esp + 0x18]
push 0
push edx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402e50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402e63
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 8

Function at 0x403150
Capabilities:
Read .ini file

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
lea esi, [ebx + 0x1c]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push esi
push 0xffff
push 0x40c9a8
push 0x40c8a8
xor ebp, ebp
call edi
push esi
push 0xffff
push 0x40c9c8
push 0x40c8a8
mov word [0x4106d4], ax
call edi
cmp word [0x4106d4], 0xffff
mov word [0x4106d6], ax
jne 0x4031aa
mov ebp, 1
mov word [0x4106d4], 0x31
cmp ax, 0xffff
jne 0x4031c5
mov ecx, ebx
mov word [0x4106d6], 2
call fcn.00403580
pop edi
pop esi
pop ebp
pop ebx
ret
test ebp, ebp
je 0x4031d0
mov ecx, ebx
call fcn.00403580
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4031e0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x8c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push ebp
xor eax, eax
push esi
push edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov ebp, 0x4106f4
mov ecx, 8
mov esi, str.PresetRect1x
lea edi, [esp + 0x1c]
mov al, byte [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
mov esi, str.PresetRect1y
lea edi, [esp + 0x5c]
add al, 0x30
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
mov esi, str.PresetRect1w
lea edi, [esp + 0x3c]
mov byte [esp + 0x26], al
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
mov esi, str.PresetRect1h
lea edi, [esp + 0x7c]
mov byte [esp + 0x66], al
rep movsd dword es:[edi], dword [esi]
mov byte [esp + 0x46], al
mov byte [esp + 0x86], al
mov eax, dword [esp + 0x18]
or edi, 0xffffffff
add eax, 0x1c
lea ecx, [esp + 0x1c]
push eax
push edi
push ecx
push 0x40c8a8
call ebx
mov edx, dword [esp + 0x18]
mov dword [ebp - 4], eax
lea eax, [esp + 0x5c]
lea esi, [edx + 0x1c]
push esi
push edi
push eax
push 0x40c8a8
call ebx
push esi
lea ecx, [esp + 0x40]
push edi
push ecx
push 0x40c8a8
mov dword [ebp], eax
call ebx
push esi
lea edx, [esp + 0x80]
push edi
push edx
push 0x40c8a8
mov dword [ebp + 4], eax
call ebx
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
cmp eax, edi
mov eax, 1
jne 0x4032cb
xor ecx, ecx
mov dword [esp + 0x10], eax
mov dword [ebp - 4], ecx
jmp 0x4032cd
xor ecx, ecx
cmp dword [ebp], edi
jne 0x4032d9
mov dword [esp + 0x10], eax
mov dword [ebp], ecx
cmp dword [ebp + 4], edi
jne 0x4032e5
mov dword [esp + 0x10], eax
mov dword [ebp + 4], ecx
cmp dword [ebp + 8], edi
jne 0x4032f1
mov dword [esp + 0x10], eax
mov dword [ebp + 8], ecx
mov edx, dword [esp + 0x14]
add ebp, 0x10
inc edx
cmp ebp, 0x410744
mov dword [esp + 0x14], edx
jl 0x403203
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
test eax, eax
pop ebx
je 0x40331e
mov ecx, dword [esp + 8]
call fcn.00403600
add esp, 0x8c
ret