joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c5f9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
and dword [edi + 4], 0
and dword [edi], 0
mov eax, 0x8000
cmp dword [ebp + 0xc], eax
jae 0x40c615
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push eax
push esi
push dword [edi + 0xc]
call fcn.004199f0
xor eax, eax
inc eax
add esp, 0xc
xor bl, bl
cmp dword [ebp + 0xc], eax
jbe 0x40c638
xor bl, byte [eax + esi]
inc eax
cmp eax, dword [ebp + 0xc]
jb 0x40c62f
push 8
mov ecx, edi
call fcn.00409fcb
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
and dword [esi + 0x14], 0
cmp bl, byte [eax]
jne 0x40c696
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.0040c495
mov edi, eax
test edi, edi
je 0x40c696
push 1
mov ecx, esi
call fcn.0040c57f
mov eax, dword [esi + 0x14]
lea ecx, [eax + 1]
imul eax, eax, 0x28
add eax, dword [esi]
mov dword [esi + 0x14], ecx
lea ecx, [eax + 0xc]
mov dword [ecx], edi
mov dword [eax + 0x14], ecx
lea ecx, [eax + 0x1c]
push 3
mov dword [eax + 0x24], ecx
pop ecx
mov dword [eax], 0x28
mov dword [eax + 0x18], ecx
mov dword [eax + 8], ecx
jmp 0x40c6f6
push 1
mov ecx, esi
call fcn.0040c57f
mov eax, dword [esi + 0x14]
lea ecx, [eax + 1]
imul eax, eax, 0x28
add eax, dword [esi]
mov dword [esi + 0x14], ecx
lea ecx, [eax + 0xc]
mov dword [eax + 0x14], ecx
lea ecx, [eax + 0x1c]
mov dword [eax + 0x24], ecx
push 3
pop ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 8], ecx
xor edx, edx
mov dword [eax], 0x16
xor ecx, ecx
cmp dword [esi + 0x14], edx
jle 0x40c6f6
xor edi, edi
mov eax, dword [esi]
add eax, edi
cmp dword [eax + 0x14], edx
jne 0x40c6e2
lea ebx, [eax + 0xc]
mov dword [eax + 0x14], ebx
cmp dword [eax + 0x24], edx
jne 0x40c6ed
lea ebx, [eax + 0x1c]
mov dword [eax + 0x24], ebx
inc ecx
add edi, 0x28
cmp ecx, dword [esi + 0x14]
jl 0x40c6d3
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x40d991
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push ecx
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp + 0x10]
push ebx
push esi
lea ebx, [ecx + 8]
movdqu xmm1, xmmword [ebx]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], eax
lea esi, [ecx + 0x18]
jbe 0x40da16
mov eax, edi
movdqu xmm2, xmmword [eax]
mov eax, dword [ecx + 4]
mov edx, eax
shl edx, 4
add edx, esi
movdqu xmm0, xmmword [edx]
add edi, 0x10
dec eax
pxor xmm0, xmm2
test eax, eax
jle 0x40d9ed
mov edx, eax
shl edx, 4
add edx, esi
movdqu xmm3, xmmword [edx]
dec eax
sub edx, 0x10
aesdec xmm0, xmm3
test eax, eax
jg 0x40d9dc
cmp byte [ecx + 1], 0
movdqu xmm3, xmmword [esi]
aesdeclast xmm0, xmm3
je 0x40da00
pxor xmm0, xmm1
mov eax, dword [esp + 0xc]
add dword [esp + 0xc], 0x10
dec dword [ebp + 0xc]
movdqa xmm1, xmm2
movdqu xmmword [eax], xmm0
jne 0x40d9b5
pop edi
pop esi
movdqu xmmword [ebx], xmm1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40da23
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
push 0x20
push dword [ebp + 8]
mov edi, ecx
mov ebx, dword [edi + 4]
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 4], edi
sub ebx, 6
call fcn.004199f0
xor eax, eax
add esp, 0xc
xor edx, edx
cmp ebx, eax
mov dword [ebp + 8], eax
jle 0x40da93
cmp edx, dword [edi + 4]
jg 0x40dbe1
cmp eax, ebx
jge 0x40da84
lea ecx, [ebp + eax*4 - 0x38]
mov esi, dword [ebp + 8]
cmp esi, 4
jge 0x40da84
lea esi, [esi + edx*4]
lea edi, [edi + esi*4 + 0x18]
mov esi, ecx
inc eax
add ecx, 4
inc dword [ebp + 8]
cmp eax, ebx
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 4]
jl 0x40da64
cmp dword [ebp + 8], 4
jne 0x40da8f
inc edx
and dword [ebp + 8], 0
cmp eax, ebx
jl 0x40da53
cmp edx, dword [edi + 4]
jg 0x40dbe1
mov eax, ebx
shl eax, 2
lea ecx, [ebp + eax - 0x3b]
mov dword [ebp - 0xc], ecx
lea ecx, [ebp + eax - 0x3a]
mov dword [ebp - 0x10], ecx
lea ecx, [ebp + eax - 0x39]
lea eax, [ebp + eax - 0x3c]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0x43a1b8
mov eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
mov al, byte [ebp - 0x38]
xor al, byte [ecx + 0x43a2d8]
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 0x38], al
movzx ecx, byte [ecx]
mov cl, byte [ecx + 0x43a2d8]
xor byte [ebp - 0x37], cl
mov ecx, dword [ebp - 0x14]
movzx ecx, byte [ecx]
mov cl, byte [ecx + 0x43a2d8]
xor byte [ebp - 0x36], cl
mov ecx, dword [ebp - 0x18]
movzx ecx, byte [ecx]
mov cl, byte [ecx + 0x43a2d8]
xor byte [ebp - 0x35], cl
mov ecx, dword [ebp - 8]
xor al, byte [ecx]
inc dword [ebp - 8]
mov byte [ebp - 0x38], al
cmp ebx, 8
je 0x40db35
cmp ebx, 1
jle 0x40db96
lea ecx, [ebp - 0x34]
lea edi, [ebx - 1]
xor esi, esi
mov al, byte [ecx + esi - 4]
xor byte [ecx + esi], al
inc esi
cmp esi, 4
jl 0x40db20
add ecx, 4
dec edi
jne 0x40db1e
jmp 0x40db93
push 3
lea ecx, [ebp - 0x34]
pop edi
push 4
pop esi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
dec esi
jne 0x40db3e
dec edi
jne 0x40db3b
movzx eax, byte [ebp - 0x2c]
mov al, byte [eax + 0x43a2d8]
xor byte [ebp - 0x28], al
movzx eax, byte [ebp - 0x2b]
mov al, byte [eax + 0x43a2d8]
xor byte [ebp - 0x27], al
movzx eax, byte [ebp - 0x2a]
mov al, byte [eax + 0x43a2d8]
xor byte [ebp - 0x26], al
movzx eax, byte [ebp - 0x29]
mov al, byte [eax + 0x43a2d8]
xor byte [ebp - 0x25], al
push 3
lea ecx, [ebp - 0x24]
pop edi
push 4
pop esi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
dec esi
jne 0x40db87
dec edi
jne 0x40db84
mov edi, dword [ebp - 4]
xor ecx, ecx
test ebx, ebx
jle 0x40dbd8
cmp edx, dword [edi + 4]
jg 0x40dbe1
cmp ecx, ebx
jge 0x40dbc9
lea eax, [ebp + ecx*4 - 0x38]
mov esi, dword [ebp + 8]
cmp esi, 4
jge 0x40dbc9
lea esi, [esi + edx*4]
lea edi, [edi + esi*4 + 0x18]
mov esi, eax
inc ecx
add eax, 4
inc dword [ebp + 8]
cmp ecx, ebx
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 4]
jl 0x40dba9
cmp dword [ebp + 8], 4
jne 0x40dbd4
inc edx
and dword [ebp + 8], 0
cmp ecx, ebx
jl 0x40db9c
cmp edx, dword [edi + 4]
jle 0x40dac4
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40dbe8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
xor eax, eax
push edi
inc eax
mov edi, ecx
cmp dword [edi + 4], eax
mov dword [ebp - 8], eax
jle 0x40dc77
lea eax, [edi + 0x28]
push ebx
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov ecx, dword [ebp - 4]
lea esi, [ebp + eax - 0x1c]
add ecx, 2
mov dword [ebp - 0xc], 4
movzx edx, byte [ecx + 1]
movzx ebx, byte [ecx - 1]
mov dl, byte [eax + edx*4 + 0x4371b8]
xor dl, byte [eax + ebx*4 + 0x4379b8]
movzx ebx, byte [ecx - 2]
xor dl, byte [eax + ebx*4 + 0x437db8]
movzx ebx, byte [ecx]
xor dl, byte [eax + ebx*4 + 0x4375b8]
add ecx, 4
mov byte [esi], dl
add esi, 4
dec dword [ebp - 0xc]
jne 0x40dc17
inc eax
cmp eax, 4
jl 0x40dc06
push 0x10
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 4]
call fcn.004199f0
add dword [ebp - 4], 0x10
add esp, 0xc
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [edi + 4]
jl 0x40dc04
pop esi
pop ebx
pop edi
leave
ret
Function at 0x40e419
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
cmp dword [0x43a3e0], ebx
jne 0x40e432
mov ecx, 0x43a3d8
call fcn.0040e3da
mov esi, dword [ebp + 0xc]
mov ecx, esi
and ecx, 0xf
mov eax, esi
xor edx, edx
sub eax, ecx
cmp byte [ebp + 0x14], bl
setne dl
cmp byte [ebp + 0x10], bl
je 0x40e484
mov ecx, dword [0x43a3e0]
cmp ecx, ebx
je 0x40e4a0
push edx
push eax
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x40e4c1
push str.CryptProtectMemory_failed
mov esi, 0x435184
push esi
call fcn.00406c33
pop ecx
pop ecx
mov ecx, esi
call fcn.00406b62
push 2
mov ecx, esi
call fcn.00406b9c
jmp 0x40e4c1
mov ecx, dword [0x43a3e4]
cmp ecx, ebx
je 0x40e4a0
push edx
push eax
push dword [ebp + 8]
call ecx
test eax, eax
jne 0x40e4c1
push str.CryptUnprotectMemory_failed
jmp 0x40e465
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ecx, ecx
cmp esi, ebx
jbe 0x40e4c1
mov dl, al
add dl, 0x4b
mov eax, dword [ebp + 8]
add eax, ecx
mov bl, dl
add bl, cl
xor byte [eax], bl
inc ecx
cmp ecx, esi
jb 0x40e4b1
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x40e99a
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x40eb70
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
ret 4
Function at 0x40f7eb
Capabilities:
Create thread

Disassembly:
push ecx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
cmp dword [esi], ebp
jbe 0x40f866
push ebx
push edi
lea edi, [esi + 4]
lea eax, [esp + 0x10]
push eax
push 0
push esi
push 0x40f78d
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x40f842
push str.CreateThread_failed
push 0x435184
call fcn.00406c33
pop ecx
pop ecx
mov ecx, 0x435184
call fcn.00406b62
push 2
mov ecx, 0x435184
call fcn.00406b9c
mov dword [edi], ebx
inc dword [esi + 0x84]
mov eax, dword [0x43ea44]
test eax, eax
je 0x40f85c
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
inc ebp
add edi, 4
cmp ebp, dword [esi]
jb 0x40f7fb
pop edi
pop ebx
pop esi
pop ebp
pop ecx
ret

Function at 0x415ff5
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x423ffc
call fcn.00417c1c
push ecx
push ebx
push esi
mov esi, ecx
push 1
lea ecx, [esi + 4]
mov dword [ebp - 0x10], esi
call fcn.00409f31
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
lea ecx, [esi + 0x4b38]
call fcn.00410e84
lea ecx, [esi + 0x98d0]
call fcn.0041188f
lea ecx, [esi + 0xe65c]
mov byte [ebp - 4], 5
call fcn.0040c377
push 1
lea ecx, [esi + 0xe694]
mov byte [ebp - 4], 6
call fcn.00409f31
lea eax, [esi + 0xe6a4]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea eax, [esi + 0xe6b4]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
lea eax, [esi + 0xe6c4]
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 0xa
mov dword [esi], eax
mov dword [esi + 0x4b34], ebx
mov byte [esi + 0x4c38], bl
mov byte [esi + 0x4c48], bl
mov byte [esi + 0x4c49], bl
mov byte [esi + 0x4c4a], bl
mov dword [esi + 0x1c], 1
call fcn.0040f664
push ebx
mov ecx, esi
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0xe6d8], ebx
mov dword [esi + 0xe6dc], ebx
call fcn.00414158
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x41c68f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42a4f0]
jne 0x41c699
repz ret
jmp fcn.00421c60
Function at 0x4229cc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0041c710
and dword [ebp - 4], 0
cmp dword [0x43f658], 0
mov ebx, eax
jne 0x422a7d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x422b2e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x422b2e
push eax
call fcn.0041c69e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43f658], eax
call esi
push eax
call fcn.0041c69e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43f65c], eax
call esi
push eax
call fcn.0041c69e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x43f660], eax
call esi
push eax
call fcn.0041c69e
pop ecx
mov dword [0x43f668], eax
test eax, eax
je 0x422a7d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041c69e
pop ecx
mov dword [0x43f664], eax
mov eax, dword [0x43f664]
cmp eax, ebx
je 0x422ad5
cmp dword [0x43f668], ebx
je 0x422ad5
push eax
call fcn.0041c719
push dword [0x43f668]
mov esi, eax
call fcn.0041c719
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x422ad5
test edi, edi
je 0x422ad5
call esi
test eax, eax
je 0x422acc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x422acc
test byte [ebp - 0xc], 1
jne 0x422ad5
or dword [ebp + 0x10], 0x200000
jmp 0x422b0e
mov eax, dword [0x43f65c]
cmp eax, ebx
je 0x422b0e
push eax
call fcn.0041c719
pop ecx
test eax, eax
je 0x422b0e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x422b0e
mov eax, dword [0x43f660]
cmp eax, ebx
je 0x422b0e
push eax
call fcn.0041c719
pop ecx
test eax, eax
je 0x422b0e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43f658]
call fcn.0041c719
pop ecx
test eax, eax
je 0x422b2e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x422b30
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x405e7c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x4229f4], esi
push edi
jne 0x405eb6
mov ecx, 0x4229f0
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x405e92
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x422df0
jl 0x405e8d
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x405eeb
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4229f0]
xor eax, esi
inc ecx
dec edx
jne 0x405ece
pop edi
pop esi
not eax
ret 0xc

Function at 0x416213
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00416292
jae 0x41621f
xor ecx, ecx
call fcn.00416292
jae 0x416249
xor eax, eax
call fcn.00416292
jae 0x41625a
mov al, 0x10
call fcn.00416292
adc al, al
jae 0x41623b
jne 0x416287
stosb byte es:[edi], al
jmp 0x416220
call fcn.0041629e
dec ecx
loop 0x416266
mov eax, ebp
call fcn.0041629c
jmp 0x416288
lodsb al, byte [esi]
shr eax, 1
je 0x4162ae
adc ecx, 2
mov ebp, eax
jmp 0x416288
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0041629c
cmp eax, 0x7d00
jae 0x416286
cmp eax, 0x500
jae 0x416287
cmp eax, 0x7f
ja 0x416288
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x416220
pop ebp
ret 8
Function at 0x401000
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test esi, esi
jne 0x40101d
pop esi
mov esp, ebp
pop ebp
ret
push edi
push esi
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x401061
mov ecx, dword [ebp - 4]
push edi
push esi
push ecx
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x401057
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 8]
push eax
push 0x42f224
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
jne 0x401069
push edi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x40107d
mov eax, dword [ebp + 8]
test eax, eax
je 0x40107d
movzx ecx, word [ecx + 0xa]
mov dword [eax], ecx
push edi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4010a0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
lea ecx, [ebp - 0x11c]
push ecx
push ebx
mov dword [ebp - 0x110], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test esi, esi
jne 0x4010e0
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e325
mov esp, ebp
pop ebp
ret
push edi
push esi
call dword [sym.imp.MSVCR100.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x40112f
mov edx, dword [ebp - 0x11c]
push edi
push esi
push edx
push ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x401125
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueA]
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x118]
push ecx
push str.VarFileInfoTranslation
push edi
call esi
test eax, eax
jne 0x401141
push edi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e325
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x118]
movzx edx, word [eax + 2]
movzx eax, word [eax]
push 0x42f920
push edx
push eax
lea ecx, [ebp - 0x108]
push str.StringFileInfo_04X_04X_s
push ecx
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x14
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x108]
push ecx
push edi
call esi
cmp dword [ebp - 0x114], 0x50
ja 0x4011a4
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebp - 0x110]
push 0x50
push edx
push eax
call dword [sym.imp.MSVCR100.dll__mbsnbcpy]
add esp, 0xc
push edi
call dword [sym.imp.MSVCR100.dll_free]
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0042e325
mov esp, ebp
pop ebp
ret
Function at 0x4015d0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push edi
push 0
mov edi, eax
call dword [sym.imp.MSVCR100.dll__time64]
add esp, 4
sub eax, dword [esi]
sbb edx, dword [esi + 4]
xor ecx, ecx
cmp edx, ecx
jg 0x4015f8
jl 0x4015f3
cmp eax, dword [ebp + 8]
jae 0x4015f8
xor eax, eax
pop edi
pop ebp
ret
movsx edx, word [esi + 0xc]
mov dword [ebp + 8], ecx
mov ecx, dword [esi + 0x22]
lea eax, [ebp + 8]
push eax
movzx eax, word [esi + 0x14]
push ecx
mov ecx, dword [esi + 8]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
je 0x4016a9
mov eax, dword [esi + 0x22]
movsx ecx, word [esi + 0xc]
lea edx, [ebp + 8]
push edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0x20
push edx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
test eax, eax
je 0x4016a9
mov eax, dword [esi + 0x22]
mov ecx, dword [esi + 8]
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov ebx, dword [sym.imp.MSVCR100.dll_printf]
test edi, edi
je 0x401660
push edi
push 0x42f92c
call ebx
add esp, 8
cmp dword [ebp + 0xc], 0
jle 0x401698
xor edi, edi
cmp dword [esi + 0x28], 0xffffffff
jne 0x401671
mov dword [esi + 0x28], edi
cmp dword [esi + 0x28], edi
jle 0x401686
push 0x42f930
call ebx
inc edi
add esp, 4
cmp edi, dword [esi + 0x28]
jl 0x401676
mov edx, dword [ebp + 0xc]
inc dword [esi + 0x28]
cmp dword [esi + 0x28], edx
jle 0x401698
mov dword [esi + 0x28], 0
push 0
call dword [sym.imp.MSVCR100.dll__time64]
add esp, 4
mov dword [esi], eax
mov dword [esi + 4], edx
pop ebx
mov eax, 1
pop edi
pop ebp
ret

Function at 0x4016c0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x40171e
mov edx, dword [esi + 0x22]
lea ecx, [ebp - 4]
push ecx
movsx ecx, word [esi + 0xc]
push edx
movzx edx, word [esi + 0x14]
push ecx
push edx
push eax
mov dword [esi + 0x28], 0xffffffff
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
je 0x401710
mov ecx, dword [esi + 0x22]
movsx edx, word [esi + 0xc]
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 8]
push ecx
push edx
push 0x20
push eax
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov esp, ebp
pop ebp
ret
Function at 0x4040a0
Capabilities:
Terminate process

Disassembly:
push esi
xor esi, esi
mov eax, 0x439794
push edi
lea esp, [esp]
cmp dword [eax - 0xc], 0
mov edi, 1
je 0x4040f2
cmp dword [eax], 0
je 0x4040e1
cmp dword [eax + 0xc], 0
je 0x4040e5
cmp dword [eax + 0x18], 0
je 0x4040ea
cmp dword [eax + 0x24], 0
je 0x4040ef
add eax, 0x3c
add esi, 5
cmp eax, 0x4399ec
jl 0x4040b0
jmp 0x4040f7
add esi, edi
jmp 0x4040f2
add esi, 2
jmp 0x4040f2
add esi, 3
jmp 0x4040f2
add esi, 4
cmp esi, 0x32
jl 0x404154
push str.Cannot_open_any_more_scratch_files__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
call fcn.00404c60
add dword [0x437d8c], edi
je 0x40414c
mov edi, dword [sym.imp.MSVCR100.dll_clock]
call edi
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov esi, edx
shr esi, 0x1f
add esi, edx
lea ecx, [ecx]
call edi
mov ecx, eax
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
sub eax, esi
cmp eax, 3
jbe 0x404130
push 0x64
call dword [sym.imp.MSVCR100.dll_exit]
push 0
push 0
call dword [sym.imp.MSVCR100.dll__tempnam]
lea esi, [esi + esi*2]
add esi, esi
add esi, esi
add esp, 8
mov dword [esi + 0x439784], eax
test eax, eax
jne 0x4041a5
push str.tmpfile
call dword [sym.imp.MSVCR100.dll_perror]
push str._Unable_to_open_temp_file_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
call fcn.00404c60
add dword [0x437d8c], edi
je 0x40419d
call fcn.004048c0
push 6
call dword [sym.imp.MSVCR100.dll_exit]
push 0x42f964
push eax
mov dword [esi + 0x439788], edi
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
test eax, eax
jne 0x4041f1
push str.tmpfile
call dword [sym.imp.MSVCR100.dll_perror]
push str._Unable_to_open_temp_file_n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
call fcn.00404c60
add dword [0x437d8c], edi
je 0x4041e9
call fcn.004048c0
push 6
call dword [sym.imp.MSVCR100.dll_exit]
pop edi
mov dword [esi + 0x439780], eax
pop esi
ret

Function at 0x404200
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
mov edi, dword [sym.imp.MSVCR100.dll_remove]
add esp, 4
mov esi, 0x439784
xor ebx, ebx
mov ecx, dword [ebp + 8]
cmp dword [esi - 4], ecx
jne 0x404248
mov edx, dword [esi]
push edx
mov dword [esi - 4], ebx
call edi
mov eax, dword [esi]
add esp, 4
cmp eax, ebx
je 0x404243
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov dword [esi + 4], ebx
mov dword [esi], ebx
add esi, 0xc
cmp esi, 0x4399dc
jl 0x404220
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x404260
Capabilities:
Terminate process

Disassembly:
push edi
mov edi, eax
push esi
push edi
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
test eax, eax
jne 0x4042c7
push 0x42f959
call dword [sym.imp.MSVCR100.dll_perror]
push edi
mov edi, dword [sym.imp.MSVCR100.dll_printf]
push str.Unable_to_open__s_for
call edi
mov al, byte [esi]
add esp, 0xc
cmp al, 0x72
jne 0x40429b
push str.reading_n
jmp 0x4042a8
cmp al, 0x77
je 0x4042a3
cmp al, 0x61
jne 0x4042ad
push str.writing_n
call edi
add esp, 4
call fcn.00404c60
inc dword [0x437d8c]
je 0x4042bf
call fcn.004048c0
push 0x64
call dword [sym.imp.MSVCR100.dll_exit]
pop edi
ret