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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ebx
movzx ecx, byte [edx + 0x16d]
and ecx, 0x20
shr ecx, 5
mov ebx, dword [eax]
test ecx, ecx
mov eax, dword [eax + 8]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], esi
je 0x10130099
cmp eax, 5
jl 0x10130099
cmp eax, 0x11
jg 0x10130099
mov edx, dword [ebp + 0x10]
mov eax, edx
shr eax, 0x1f
add eax, edx
sar eax, 1
test eax, eax
jle 0x1013008a
mov edx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x1c], eax
xor ecx, ecx
lea edi, [edx + ebx]
movzx edx, byte [ecx + edi - 1]
inc esi
movzx eax, byte [ebx]
xor eax, edx
mov byte [ebx], dl
inc ebx
xor byte [ecx + edi - 1], al
dec ecx
cmp esi, dword [ebp - 0x1c]
jl 0x10130072
xor eax, eax
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
movsx edi, byte [edx + 0x158]
cmp eax, 0x19
jl 0x1013008a
cmp eax, 0x1f
jle 0x101300c0
cmp eax, 0x32
jl 0x101300b6
cmp eax, 0x34
jle 0x101300c0
jmp 0x1013008a
cmp eax, 0x28
jl 0x1013008a
cmp eax, 0x30
jg 0x1013008a
test ecx, ecx
je 0x10130123
test edi, edi
je 0x101300d2
cmp eax, 0x34
je 0x101300d2
cmp eax, 0x32
jne 0x10130123
mov edx, dword [ebp + 0x10]
mov esi, edx
shr esi, 0x1f
add esi, edx
sar esi, 1
test esi, esi
jle 0x10130123
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
lea ecx, [eax + ebx]
mov dword [ebp - 0x14], ecx
xor ecx, ecx
mov esi, dword [ebp - 0x14]
mov eax, ebx
movzx edi, byte [eax]
inc edx
movzx ebx, byte [ecx + esi - 1]
xor edi, ebx
mov byte [eax], bl
inc eax
mov ebx, edi
xor byte [ecx + esi - 1], bl
dec ecx
cmp edx, dword [ebp - 0x10]
jl 0x101300fd
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [eax + 8]
mov edx, dword [eax*4 + 0x10189adc]
cmp edx, 0xffffffff
je 0x101301b8
lea eax, [edx*4]
shl edx, 5
sub edx, eax
mov edx, dword [edx + edi*4 + 0x10189bc0]
test edx, edx
je 0x1013008a
lea eax, [ebp - 0x1c]
push eax
push 0
push ebx
call edx
add esp, 0xc
cmp eax, 1
jne 0x101301b8
cmp dword [ebp + 0x10], 4
jne 0x10130174
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov dword [ecx], edx
jmp 0x1013008a
cmp dword [ebp + 0x10], 8
jne 0x10130191
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov dword [edx], eax
mov esi, dword [ecx]
mov ebx, dword [ebp - 0x18]
mov dword [esi + 4], ebx
jmp 0x1013008a
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov dword [ecx], edx
mov esi, dword [eax]
mov ebx, dword [ebp - 0x18]
mov dword [esi + 4], ebx
mov edx, dword [eax]
mov edi, dword [ebp - 0x14]
mov dword [edx + 8], edi
mov ecx, dword [eax]
mov eax, dword [ebp - 0x10]
mov dword [ecx + 0xc], eax
jmp 0x1013008a
mov eax, 0x5f
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x10130cd0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], ebx
mov ebx, 1
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], 0
push 1
push 0x1033f958
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x10130d5c
mov eax, 0x51eb851f
mov ecx, ebx
imul ebx
sar edx, 5
mov eax, ebx
sar ecx, 0x1f
sub edx, ecx
imul esi, edx, 0x64
sub eax, esi
jne 0x10130d5c
cmp ebx, 0x15f90
jl 0x10130d53
cmp ebx, 0x1d4c0
jge 0x10130d30
mov eax, 0x32
jmp 0x10130d55
cmp ebx, 0x2bf20
jge 0x10130d3f
mov eax, 0x64
jmp 0x10130d55
mov eax, 0x1482
cmp ebx, 0x57d78
jl 0x10130d55
mov eax, 0xfa
jmp 0x10130d55
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
test eax, eax
je 0x10130d70
inc ebx
cmp ebx, 0x57e40
jl 0x10130ce8
mov eax, dword [ebp - 4]
test eax, eax
je 0x10130d8a
mov dword [ebp - 0x14], 0x98
lea eax, [ebp - 0x14]
push eax
call fcn.10136540
add esp, 4
mov eax, dword [0x1033f95c]
test eax, eax
jne 0x10130dc0
cmp dword [0x10333380], 1
je 0x10130e44
xor ebx, ebx
xor esi, esi
cmp dword [0x1033f954], 0
je 0x10130e04
mov dword [0x1033f95c], 1
cmp dword [0x10333380], 1
je 0x10130def
mov dword [0x1033f958], 0
push dword [0x1033f950]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10130e62
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov dword [edx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret
push esi
push 2
call fcn.10105e07
push ebx
push 0x16
call fcn.10105e07
add esp, 0x10
jmp 0x10130dc0
mov dword [0x1033f954], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1033f950], eax
cmp eax, 0xffffffff
jne 0x10130e28
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10130dad
push 0x10130cb0
call fcn.100f9049
push 0x10130c70
call fcn.100f9049
add esp, 8
jmp 0x10130dad
push 1
push 2
call fcn.10105e07
mov esi, eax
push 1
push 0x16
call fcn.10105e07
add esp, 0x10
mov ebx, eax
jmp 0x10130da4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x70
call fcn.10112670
add esp, 0xc
test eax, eax
je 0x10130e8c
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov edx, 0x70
mov ecx, dword [edx + 0x103332dc]
mov dword [eax + edx - 4], ecx
mov ebx, dword [edx + 0x103332d8]
mov dword [eax + edx - 8], ebx
mov esi, dword [edx + 0x103332d4]
mov dword [eax + edx - 0xc], esi
mov ecx, dword [edx + 0x103332d0]
mov dword [eax + edx - 0x10], ecx
sub edx, 0x10
jne 0x10130e94
push dword [ebp - 0x10]
push dword [0x1033f950]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 0x10]
jmp 0x10130dde
Function at 0x10130ee0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], ebx
mov ebx, 1
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], 0
push 1
push 0x1033f958
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x10130f6c
mov eax, 0x51eb851f
mov ecx, ebx
imul ebx
sar edx, 5
mov eax, ebx
sar ecx, 0x1f
sub edx, ecx
imul esi, edx, 0x64
sub eax, esi
jne 0x10130f6c
cmp ebx, 0x15f90
jl 0x10130f63
cmp ebx, 0x1d4c0
jge 0x10130f40
mov eax, 0x32
jmp 0x10130f65
cmp ebx, 0x2bf20
jge 0x10130f4f
mov eax, 0x64
jmp 0x10130f65
mov eax, 0x1482
cmp ebx, 0x57d78
jl 0x10130f65
mov eax, 0xfa
jmp 0x10130f65
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
test eax, eax
je 0x10130f80
inc ebx
cmp ebx, 0x57e40
jl 0x10130ef8
mov eax, dword [ebp - 4]
test eax, eax
je 0x10130f9a
mov dword [ebp - 0x14], 0x98
lea eax, [ebp - 0x14]
push eax
call fcn.10136540
add esp, 4
mov eax, dword [0x1033f95c]
test eax, eax
jne 0x10130fd0
cmp dword [0x10333380], 1
je 0x10131069
xor ebx, ebx
xor esi, esi
cmp dword [0x1033f954], 0
je 0x10131026
mov dword [0x1033f95c], 1
cmp dword [0x10333380], 1
je 0x10131011
mov dword [0x1033f958], 0
push dword [0x1033f950]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x101310a7
mov eax, dword [ebp + 8]
mov dword [eax], ebx
cmp dword [0x10333380], 1
je 0x10131087
xor eax, eax
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push esi
push 2
call fcn.10105e07
push ebx
push 0x16
call fcn.10105e07
add esp, 0x10
jmp 0x10130fd0
mov dword [0x1033f954], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1033f950], eax
cmp eax, 0xffffffff
jne 0x1013104d
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10130fbd
push 0x10130cb0
call fcn.100f9049
push 0x10130c70
call fcn.100f9049
add esp, 8
jmp 0x10130fbd
push 1
push 2
call fcn.10105e07
mov esi, eax
push 1
push 0x16
call fcn.10105e07
add esp, 0x10
mov ebx, eax
jmp 0x10130fb4
push 1
push 2
call fcn.10105e07
push 1
push 0x16
mov dword [ebx + 0x64], eax
call fcn.10105e07
add esp, 0x10
mov dword [ebx + 0x68], eax
jmp 0x10131005
lea eax, [ebp - 0x10]
push eax
push 0
push 0x70
call fcn.10112670
add esp, 0xc
test eax, eax
je 0x101310ce
mov edx, dword [ebp + 8]
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov edx, 0x70
mov ecx, dword [edx + 0x103332dc]
mov dword [eax + edx - 4], ecx
mov ebx, dword [edx + 0x103332d8]
mov dword [eax + edx - 8], ebx
mov esi, dword [edx + 0x103332d4]
mov dword [eax + edx - 0xc], esi
mov ecx, dword [edx + 0x103332d0]
mov dword [eax + edx - 0x10], ecx
sub edx, 0x10
jne 0x101310d6
push dword [ebp - 0x10]
push dword [0x1033f950]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp - 0x10]
jmp 0x10130ff3
Function at 0x10132890
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
mov esi, dword [eax + 0x7c]
test esi, esi
mov dword [ebp - 0xc], edi
je 0x10132a4c
mov edx, dword [0x10333380]
mov edi, dword [esi + 0x14]
lea eax, [edi*4]
shl edi, 5
sub edi, eax
cmp edx, 2
lea ebx, [edi + 0x1033f9c8]
jge 0x101328df
mov eax, dword [ebx]
test eax, eax
jne 0x10132920
mov dword [edi + 0x1033f9c8], 1
jmp 0x10132920
push ebx
call fcn.10131170
add esp, 4
test eax, eax
jne 0x1013291a
cmp dword [edi + 0x1033f9c4], 0
je 0x10132a2c
mov dword [edi + 0x1033f9c8], 0
push 0xffffffffffffffff
push dword [edi + 0x1033f9c4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call fcn.10131170
add esp, 4
mov edx, dword [0x10333380]
cmp edx, 1
je 0x10132a18
mov eax, dword [esi + 0x18]
dec eax
mov dword [esi + 0x18], eax
test eax, eax
jle 0x1013298f
mov eax, dword [0x10333380]
cmp eax, 1
je 0x10132974
cmp eax, 2
jge 0x1013294f
mov dword [edi + 0x1033f9c8], 0
jmp 0x10132965
mov dword [edi + 0x1033f9c8], 0
push dword [edi + 0x1033f9c4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push dword [edi + 0x1033f9d8]
push dword [edi + 0x1033f9d4]
call fcn.10131150
add esp, 8
mov eax, dword [0x10333380]
jmp 0x1013293e
mov edx, dword [esi]
test edx, edx
je 0x1013299b
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x101329a6
mov dword [eax], edx
jmp 0x101329ac
mov dword [edi + 0x1033f9c0], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x7c], 0
mov eax, dword [0x10333380]
cmp eax, 1
je 0x101329fd
cmp eax, 2
jge 0x101329d1
mov dword [edi + 0x1033f9c8], 0
jmp 0x101329e7
mov dword [edi + 0x1033f9c8], 0
push dword [edi + 0x1033f9c4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esi + 8]
call fcn.10112730
push esi
call fcn.10112730
add esp, 8
jmp 0x10132965
push dword [edi + 0x1033f9d8]
push dword [edi + 0x1033f9d4]
call fcn.10131150
add esp, 8
mov eax, dword [0x10333380]
jmp 0x101329c0
lea eax, [edi + 0x1033f9d4]
push eax
call fcn.10131120
add esp, 4
jmp 0x10132929
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [edi + 0x1033f9c4], eax
mov dword [edi + 0x1033f9c8], 0
jmp 0x10132903
xor eax, eax
mov esi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x401cc0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0xc
cmp eax, 0xc
jge 0x401cd2
xor eax, eax
add esp, 0xc
ret
mov eax, dword [0x4e8e90]
inc eax
cmp eax, 1
mov dword [0x4e8e90], eax
jne 0x401cf7
push 0
call fcn.0049c444
xor eax, 0xbb40e64e
push eax
call fcn.0048f4ca
add esp, 8
mov eax, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov edi, dword [esp + 0x30]
push edi
push ebp
push eax
call fcn.00401e90
add esp, 0xc
xor esi, esi
call fcn.0048f4a9
mov ebx, eax
push edi
sar ebx, 7
push ebp
and ebx, 0xff
call fcn.00401e10
push ebx
push edi
push ebp
mov dword [esp + 0x3c], eax
call fcn.00401e30
mov dl, byte [esp + 0x3c]
add esp, 0x14
xor bl, dl
mov byte [esp + esi + 0x10], bl
inc esi
cmp esi, 0xa
jl 0x401d14
mov ecx, dword [esp + 0x20]
push edi
push ebp
push ecx
call fcn.00401e90
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x1c]
add esp, 0xc
xor esi, esi
sub eax, edx
mov dword [esp + 0x20], eax
push edi
push ebp
call fcn.00401e10
mov bl, byte [esp + esi + 0x18]
mov dword [esp + 0x30], eax
mov eax, ebx
and eax, 0xff
push eax
push edi
push ebp
call fcn.00401e30
mov dl, byte [esp + 0x3c]
mov ecx, dword [esp + 0x34]
add esp, 0x14
xor bl, dl
add ecx, esi
inc esi
cmp esi, 0xa
mov byte [esp + ecx + 0x10], bl
jl 0x401d69
push edi
push ebp
call fcn.00401e10
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x30], eax
shr ebx, 0x10
mov edx, ebx
and edx, 0xff
push edx
push edi
push ebp
call fcn.00401e30
mov al, byte [esp + 0x3c]
push edi
xor bl, al
mov eax, dword [esp + 0x3c]
push ebp
mov byte [esi + eax], bl
inc esi
call fcn.00401e10
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x44], eax
shr ebx, 0x18
push ebx
push edi
push ebp
call fcn.00401e30
mov al, byte [esp + 0x50]
mov ecx, dword [esp + 0x4c]
add esp, 0x28
xor bl, al
mov byte [esi + ecx], bl
lea eax, [esi + 1]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x401e30
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [edx]
push edi
mov edi, dword [esp + 0x14]
mov ecx, esi
xor ecx, eax
and ecx, 0xff
shr esi, 8
mov ecx, dword [edi + ecx*4]
xor ecx, esi
mov esi, dword [edx + 4]
mov dword [edx], ecx
and ecx, 0xff
add ecx, esi
mov esi, dword [edx + 8]
imul ecx, ecx, 0x8088405
inc ecx
mov ebx, esi
mov dword [edx + 4], ecx
and ebx, 0xff
shr ecx, 0x18
xor ecx, ebx
shr esi, 8
mov ecx, dword [edi + ecx*4]
pop edi
xor ecx, esi
pop esi
mov dword [edx + 8], ecx
pop ebx
ret
Function at 0x40a1c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b320c
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x4e64ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x220], eax
mov edi, dword [ebp + 8]
test edi, edi
je 0x40a3af
cmp word [edi], 0
je 0x40a3af
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x40a21b
or eax, 0xffffffff
jmp 0x40a3b1
call fcn.00409ca0
mov ecx, eax
test ecx, ecx
je 0x40a3cf
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x22c], eax
push edi
lea ecx, [ebp - 0x228]
mov dword [ebp - 4], 0
call fcn.00409380
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00409d50
mov edx, dword [ebp - 0x228]
add esp, 8
test eax, eax
mov byte [ebp - 4], 0
sete byte [ebp - 0x219]
or ebx, 0xffffffff
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a292
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0x219], 0
mov esi, dword [ebp - 0x22c]
je 0x40a2a9
or edi, 0xffffffff
jmp 0x40a38f
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00461360
mov eax, dword [ebp - 0x220]
add esp, 0xc
push dword [eax]
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
cmp ax, word [ebp - 0x218]
jne 0x40a2f6
xor edi, edi
jmp 0x40a38f
mov eax, dword [ebp - 0x220]
mov eax, dword [eax + 4]
sub eax, 0x10
push eax
call fcn.00409a30
add eax, 0x10
add esp, 4
mov dword [ebp - 0x224], eax
push dword [esi - 0xc]
lea ecx, [ebp - 0x224]
mov byte [ebp - 4], 2
push esi
call fcn.00409930
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x220]
call fcn.00409380
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.0044cc80
add esp, 0xc
lea ecx, [ebp - 0x220]
call fcn.00409780
push 0xa
push 0
push dword [ebp - 0x230]
call fcn.0046e097
add esp, 0xc
lea ecx, [ebp - 0x230]
mov edi, eax
call fcn.00409780
lea ecx, [ebp - 0x224]
call fcn.00409780
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40a3ab
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
jmp 0x40a3b1
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045b907
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004099e0
int3
Function at 0x40ad00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40ad59
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40ad59
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40ad4a
cmp esi, edx
jae 0x40ad59
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40ad38
cmp esi, edx
jae 0x40ad59
cmp word [esi], 0
je 0x40ad59
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4114f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3a96
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4e64ec]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x41159c
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x41159c
call fcn.004107a0
mov edi, eax
jmp 0x4116bb
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4115bf
call fcn.004107a0
jmp 0x4116ae
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x4115dd
call fcn.004107a0
jmp 0x4116ae
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x4115fe
mov edi, 0x8007000e
jmp 0x4116b0
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x4116f4
jb 0x41161c
cmp eax, 0xffffffff
ja 0x4116f4
cmp eax, 0x400
jbe 0x411631
push eax
lea ecx, [ebp - 0x418]
call fcn.004106c0
jmp 0x411657
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x411657
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x41166e
mov edi, 0x8007000e
jmp 0x4116b0
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x41168e
call fcn.004107a0
jmp 0x4116ae
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00411350
mov edi, eax
test esi, esi
je 0x4116bb
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4116d4
lea ecx, [ebp - 0x418]
call fcn.004109c0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045b907
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.004099e0
int3
Function at 0x415f60
Capabilities:
Check os version
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3d3e
mov eax, dword fs:[0]
push eax
sub esp, 0x32c
mov eax, dword [0x4e64ec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x334], esi
mov dword [ebp - 0x338], esi
call fcn.00409ca0
mov ecx, eax
test ecx, ecx
je 0x41609e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 4], eax
push 0x20a
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00461360
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x4bc0d4
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416020
sub eax, edx
lea ecx, [esi + 4]
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0040abc0
push 0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x330]
mov byte [esi], 0
push eax
mov dword [ebp - 0x330], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x416081
cmp dword [ebp - 0x320], 2
jne 0x416081
cmp dword [ebp - 0x32c], 6
jb 0x416081
mov byte [esi], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045b907
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004099e0
int3
Function at 0x416530
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4010
call fcn.0045bc90
mov eax, dword [0x4e64ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x4004]
push edi
mov edi, dword [ebp + 0xc]
push 0x4000
push 0
push eax
call fcn.00461360
add esp, 0xc
mov dword [ebp - 0x4008], 0
test esi, esi
je 0x416622
test edi, edi
je 0x416622
lea eax, [ebp - 0x4008]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x416622
cmp eax, 0x3fff
ja 0x416622
lea ecx, [ebp - 0x4004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x416622
lea eax, [ebp - 0x4010]
push eax
lea eax, [ebp - 0x400c]
push eax
push 0x4bb64c
lea eax, [ebp - 0x4004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x416622
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
push 0
push edi
call fcn.00461360
mov ecx, dword [ebp - 0x400c]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push str._d._d._d._d
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b907
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0045b907
mov esp, ebp
pop ebp
ret
Function at 0x417e50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4e64ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
mov esi, ecx
call dword [sym.imp.USER32.dll_GetDC]
push 0x118
mov ebx, eax
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.00461360
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
jb 0x417eb9
push esi
push 0x417ca0
push 0
push ebx
call dword [sym.imp.GDI32.dll_EnumFontFamiliesW]
jmp 0x417ec2
mov eax, 0x100
or word [esi + 0xc], ax
movzx ecx, word [esi + 0xc]
movzx eax, cx
test ecx, 0x100
je 0x417ee2
push 0x4bc418
lea ecx, [esi + 8]
call fcn.00417fc0
movzx eax, word [esi + 0xc]
movzx ecx, ax
test al, 0x10
je 0x417efa
push str.Tahoma
lea ecx, [esi + 8]
call fcn.00417fc0
movzx ecx, word [esi + 0xc]
test cl, 1
je 0x417f0c
push 0x4bc3fc
lea ecx, [esi + 8]
call fcn.00417fc0
push ebx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [esi + 8]
push 0x20
push 0
push 0
push 0
push 0x86
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push 0xfffffffffffffff4
call dword [sym.imp.GDI32.dll_CreateFontW]
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 4], eax
xor ecx, ebp
pop esi
pop ebx
call fcn.0045b907
mov esp, ebp
pop ebp
ret