joyce8/EMBER2024-capa huggingface dataset:
Function at 0x497bcb
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0048d490
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x497c3a
cmp esi, dword [ebp - 4]
je 0x497c35
cmp dword [ebp + 0xc], 0
je 0x497c35
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x497c12
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0049771d
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x497c3c
xor eax, eax
inc eax
jmp 0x497c3c
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x497ca1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4c6180]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0048d490
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0048d490
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x497d18
cmp word [ecx], dx
je 0x497d18
mov eax, dword [0x4ac02c]
push edi
dec eax
push eax
push 0x4abf18
call fcn.00497c40
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x497d8b
cmp word [eax], dx
je 0x497d8b
mov eax, dword [edi]
test eax, eax
je 0x497d3c
cmp word [eax], dx
je 0x497d3c
lea eax, [ebp - 0x10]
push eax
call fcn.00497623
jmp 0x497d45
lea eax, [ebp - 0x10]
push eax
call fcn.004976be
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x497db5
mov eax, dword [0x4abf14]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4abc08
call fcn.00497c40
add esp, 0xc
test al, al
je 0x497db5
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x497d80
cmp word [eax], di
je 0x497d80
lea eax, [ebp - 0x10]
push eax
call fcn.00497623
pop ecx
jmp 0x497db7
lea eax, [ebp - 0x10]
push eax
call fcn.004976be
jmp 0x497d7d
mov eax, dword [edi]
test eax, eax
je 0x497da2
cmp word [eax], dx
je 0x497da2
lea eax, [ebp - 0x10]
push eax
call fcn.004975d8
pop ecx
jmp 0x497db5
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x497e80
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00497ac5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x497e80
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x497e80
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x497e80
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x497e0d
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0048f3a2
test ebx, ebx
je 0x497e7b
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0048f3a2
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x497e80
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x497e80
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0049a9dd
add esp, 0x10
xor eax, eax
inc eax
jmp 0x497e82
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00474a5a
leave
ret
Function at 0x49c0d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x49c0fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x49c0fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x401520
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push ebx
push esi
mov esi, dword [ecx + 4]
mov ecx, eax
shr ecx, 4
xor ecx, esi
and ecx, 0xf0f0f0f
xor esi, ecx
shl ecx, 4
xor eax, ecx
mov ecx, eax
shr ecx, 0x10
xor ecx, esi
and ecx, 0xffff
xor esi, ecx
shl ecx, 0x10
xor eax, ecx
mov ecx, esi
shr ecx, 2
xor ecx, eax
and ecx, 0x33333333
xor eax, ecx
add ecx, ecx
add ecx, ecx
xor esi, ecx
mov ecx, esi
shr ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor eax, ecx
shl ecx, 8
xor esi, ecx
rol esi, 1
mov ecx, esi
xor ecx, eax
and ecx, 0xaaaaaaaa
xor esi, ecx
xor ecx, eax
rol ecx, 1
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 8
mov edi, edi
mov eax, esi
ror eax, 4
xor eax, dword [edx]
add edx, 0x10
mov ecx, eax
shr ecx, 0x18
mov edi, eax
shr edi, 0x10
and edi, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x419168]
or ecx, dword [edi*4 + 0x419368]
mov edi, eax
shr edi, 8
and edi, 0x3f
or ecx, dword [edi*4 + 0x419568]
and eax, 0x3f
or ecx, dword [eax*4 + 0x419768]
mov eax, dword [edx - 0xc]
xor eax, esi
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x419268]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
or edi, dword [ebx*4 + 0x419468]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or edi, dword [ebx*4 + 0x419668]
and eax, 0x3f
or edi, dword [eax*4 + 0x419868]
or edi, ecx
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 4]
xor edi, dword [ebp - 0xc]
mov eax, edi
ror eax, 4
xor eax, dword [edx - 8]
mov dword [ebp - 4], edi
mov ecx, eax
shr ecx, 0x18
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
and ecx, 0x3f
mov ecx, dword [ecx*4 + 0x419168]
or ecx, dword [ebx*4 + 0x419368]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or ecx, dword [ebx*4 + 0x419568]
and eax, 0x3f
or ecx, dword [eax*4 + 0x419768]
mov eax, dword [edx - 4]
xor eax, edi
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x419268]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
or edi, dword [ebx*4 + 0x419468]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
or edi, dword [ebx*4 + 0x419668]
and eax, 0x3f
or edi, dword [eax*4 + 0x419868]
or edi, ecx
xor esi, edi
dec dword [ebp - 8]
jne 0x4015a0
mov ecx, dword [ebp - 4]
ror esi, 1
mov eax, esi
xor eax, ecx
and eax, 0xaaaaaaaa
xor esi, eax
xor eax, ecx
ror eax, 1
mov ecx, eax
shr ecx, 8
xor ecx, esi
and ecx, 0xff00ff
xor esi, ecx
shl ecx, 8
xor eax, ecx
mov ecx, eax
shr ecx, 2
xor ecx, esi
and ecx, 0x33333333
xor esi, ecx
lea edx, [ecx*4]
mov ecx, esi
shr ecx, 0x10
xor eax, edx
mov edx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xffff
xor eax, ecx
shl ecx, 0x10
xor esi, ecx
mov ecx, esi
shr ecx, 4
xor ecx, eax
and ecx, 0xf0f0f0f
mov edi, ecx
shl edi, 4
xor edi, esi
mov dword [edx], edi
pop edi
xor ecx, eax
pop esi
mov dword [edx + 4], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401b00
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, eax
push esi
mov esi, edx
mov eax, 0x55555556
imul ebx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax + eax*2]
push edi
xor edi, edi
sub ebx, edx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], ebx
test eax, eax
jle 0x401bd5
mov edx, dword [ebp + 8]
add edx, 0xfffffffc
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
lea esp, [esp]
mov al, byte [esi]
movzx ebx, byte [esi + 2]
mov dl, byte [esi + 1]
mov byte [ebp - 1], bl
movzx eax, al
mov ebx, eax
shr ebx, 2
movzx ebx, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], bl
movzx edx, dl
shl eax, 4
mov ebx, edx
shr ebx, 4
or ebx, eax
and ebx, 0x3f
movzx eax, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
movzx eax, byte [ebp - 1]
mov ebx, eax
add edx, edx
shr ebx, 6
add edx, edx
or ebx, edx
and ebx, 0x3f
movzx edx, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and eax, 0x3f
mov byte [ecx + 2], dl
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 3], al
mov eax, dword [ebp - 8]
add eax, 4
add esi, 3
add ecx, 4
add edi, 4
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0x10]
jle 0x401bc9
mov word [ecx], 0xa0d
add ecx, 2
mov dword [ebp - 8], 0
add edi, 2
dec dword [ebp - 0xc]
jne 0x401b40
mov ebx, dword [ebp - 0x14]
cmp ebx, 1
jne 0x401c0d
movzx eax, byte [esi]
mov edx, eax
shr edx, 2
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
and eax, 3
mov byte [ecx], dl
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
lea eax, [edi + 4]
pop edi
pop esi
mov word [ecx + 2], 0x3d3d
mov byte [ecx + 4], 0
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 2
jne 0x401c5d
movzx eax, byte [esi]
mov dl, byte [esi + 1]
mov esi, eax
shr esi, 2
mov bl, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
movzx edx, dl
and eax, 3
mov esi, edx
shl eax, 4
mov byte [ecx], bl
shr esi, 4
or esi, eax
movzx eax, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
and edx, 0xf
movzx edx, byte [edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
lea eax, [edi + 4]
pop edi
pop esi
mov byte [ecx + 2], dl
mov word [ecx + 3], 0x3d
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
mov byte [ecx], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4023b0
Capabilities:
Hash data using sha1
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
push ebx
push esi
push edi
push 0x400
xor esi, esi
call dword [sym.imp.MSVCR100.dll_malloc]
mov ebx, eax
add esp, 4
cmp ebx, esi
je 0x40250b
mov eax, dword [ebp + 8]
push 0x41361c
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov dword [esp + 0x14], eax
cmp eax, esi
je 0x402501
push eax
push 0x400
xor ecx, ecx
push 1
push ebx
mov dword [esp + 0x20], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov word [esp + 0x44], cx
mov dword [esp + 0x28], 0x67452301
mov dword [esp + 0x2c], 0xefcdab89
mov dword [esp + 0x30], 0x98badcfe
mov dword [esp + 0x34], 0x10325476
mov dword [esp + 0x38], 0xc3d2e1f0
mov dword [esp + 0x88], esi
mov dword [esp + 0x8c], esi
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
cmp eax, esi
jle 0x4024b1
add dword [esp + 0x10], eax
mov edi, eax
mov esi, ebx
test eax, eax
je 0x402497
cmp dword [esp + 0x78], 0
je 0x402514
mov eax, 3
mov dword [esp + 0x7c], eax
push eax
push str.AddArray_Error__d._n
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 0x10
mov eax, dword [esp + 0x14]
push eax
push 0x400
push 1
push ebx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
test eax, eax
jg 0x402453
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 8]
push ecx
push edx
push str._s_hashed._File_length_is__d_n
call dword [sym.imp.MSVCR100.dll_printf]
mov edi, dword [ebp + 0xc]
add esp, 0xc
lea eax, [esp + 0x18]
call fcn.00401c70
mov esi, eax
test esi, esi
je 0x4024f3
push esi
push str.GetResult_Error__d__could_not_compute_message_digest._n
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x40
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 0xc
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
push ebx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x402525
jmp 0x402473
mov eax, dword [esp + 0x7c]
mov ecx, 1
sub edi, ecx
test eax, eax
jne 0x402497
movsx edx, word [esp + 0x34]
mov al, byte [esi]
mov byte [esp + edx + 0x36], al
add word [esp + 0x34], cx
add dword [esp + 0x2c], 8
jne 0x402555
add dword [esp + 0x30], ecx
jne 0x402555
mov dword [esp + 0x7c], ecx
cmp word [esp + 0x34], 0x40
jne 0x40256a
lea ecx, [esp + 0x18]
push ecx
call fcn.00401d70
add esp, 4
inc esi
test edi, edi
jne 0x402521
jmp 0x402497
Function at 0x4027b0
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415cf8
push 0x4124c2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
cmp byte [0x41a850], bl
jne 0x40286e
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
push 4
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
mov dword [ebp - 0x1c], esi
push 4
push str.intelhaxm
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov dword [ebp - 0x20], edi
cmp edi, ebx
je 0x40287f
cmp esi, ebx
je 0x40287f
lea eax, [ebp - 0x3c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x38], 4
je 0x40285d
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call sub.MSVCR100.dll__local_unwind2
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
call fcn.004028a6
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
lea edx, [ebp - 0x10]
push edx
call sub.MSVCR100.dll__local_unwind2
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4028c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x412b7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x990
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x18], vtable.WTL::CMessageLoop.0
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x9a4], ebx
mov edi, dword [0x41b19c]
lea eax, [esp + 0x18]
add edi, 0x10
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, dword [0x41b170]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x18], eax
call fcn.004072c0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [esp + 0x50]
push eax
call fcn.0040a140
mov esi, dword [ebp + 8]
push esi
mov byte [esp + 0x9a8], 1
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
lea ecx, [esp + 0x54]
push ecx
call fcn.0040c1c0
test eax, eax
jne 0x402997
lea edx, [esp + 0x50]
push edx
mov byte [esp + 0x9a8], bl
call fcn.0040a350
mov dword [esp + 0x9a4], 2
jmp 0x402a57
push ecx
mov eax, esp
lea edi, [esp + 0x54]
mov dword [esp + 0x14], esp
mov dword [eax], ebx
call fcn.00404e10
cmp eax, ebx
jne 0x4029cc
mov eax, edi
push eax
mov byte [esp + 0x9a8], bl
call fcn.0040a350
mov dword [esp + 0x9a4], 3
jmp 0x402a57
mov ecx, dword [ebp + 0xc]
mov edx, dword [esp + 0x54]
push ecx
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov al, byte [0x41a851]
mov byte [esp + 0x850], al
cmp byte [0x41a850], bl
jne 0x402a03
call fcn.00405cb0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x18]
push ebx
call eax
mov esi, dword [ebp + 0x10]
jmp 0x402a1f
mov ecx, dword [str.demu.exe]
mov esi, dword [ebp + 0x10]
mov dword [esi], ecx
mov edx, dword [0x413920]
mov dword [esi + 4], edx
mov al, byte [0x413924]
mov byte [esi + 8], al
call fcn.00405cb0
mov ecx, dword [esp + 0x118]
mov edx, dword [eax]
mov edx, dword [edx + 0x20]
push esi
push ecx
mov ecx, eax
call edx
call fcn.00406a90
lea eax, [esp + 0x50]
push eax
mov byte [esp + 0x9a8], bl
call fcn.0040a350
mov dword [esp + 0x9a4], 4
mov eax, dword [esp + 0x28]
mov esi, dword [sym.imp.MSVCR100.dll_free]
cmp eax, ebx
je 0x402a6f
push eax
call esi
add esp, 4
mov dword [esp + 0x28], ebx
mov dword [esp + 0x9a4], 0xffffffff
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
cmp eax, ebx
je 0x402a90
push eax
call esi
add esp, 4
mov ecx, dword [esp + 0x99c]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4031e0
Capabilities:
Write file on windows

Disassembly:
test edx, edx
je 0x403208
mov eax, edx
push esi
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4031f0
push edi
sub eax, esi
push eax
push 1
push edx
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
pop esi
push edi
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
xor eax, eax
ret

Function at 0x403270
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
push esi
push edi
push 0xc8
lea eax, [ebp - 0xe4]
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0xe4]
push edx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
cmp esi, edi
jne 0x4032af
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push esi
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_]
add esp, 4
mov ebx, eax
push ebx
push esi
push edi
lea eax, [ebp - 0xe4]
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x18]
push edx
push str.VarFileInfoTranslation
push ebx
mov dword [ebp - 4], edi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
xor esi, esi
test dword [ebp - 4], 0xfffffffc
jbe 0x403395
jmp 0x403303
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + edi*4 + 2]
movzx edx, word [eax + edi*4]
push ecx
push edx
lea eax, [ebp - 0x1ac]
push str.StringFileInfo_04x_04xFileVersion
push eax
call dword [sym.imp.MSVCR100.dll_sprintf]
add esp, 0x10
xor eax, eax
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
push edx
lea eax, [ebp - 0x1ac]
push eax
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
mov ebx, dword [ebp - 8]
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403350
sub eax, edx
mov dword [ebp - 0x10], eax
mov edx, 0
je 0x403386
mov cl, byte [edx + ebx]
cmp cl, 0x2c
jne 0x403374
mov ecx, dword [ebp + 8]
mov byte [esi + ecx], 0x2e
jmp 0x40337f
cmp cl, 0x20
je 0x403380
mov eax, dword [ebp + 8]
mov byte [esi + eax], cl
inc esi
inc edx
cmp edx, dword [ebp - 0x10]
jb 0x403363
mov ecx, dword [ebp - 4]
inc edi
shr ecx, 2
cmp edi, ecx
jb 0x403300
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4082d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [ecx]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ecx + 4]
mov dword [ebp - 0x18], ecx
xor esi, esi
push eax
lea ecx, [ebp - 0x10]
or edi, 0x2001f
push ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call fcn.00408220
mov edi, eax
cmp edi, esi
je 0x408321
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x408316
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [ebp - 0x20]
push edx
mov edx, dword [ebp - 0x10]
push esi
push esi
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x224]
push ecx
push esi
push edx
mov dword [ebp - 0x14], 0x100
call ebx
test eax, eax
jne 0x408389
jmp 0x408350
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x10]
call fcn.004082d0
mov edi, eax
cmp edi, esi
jne 0x408308
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x10]
push esi
push esi
push esi
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x224]
push eax
push esi
push ecx
mov dword [ebp - 0x14], 0x100
call ebx
test eax, eax
je 0x408350
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, esi
je 0x40839c
push eax
call edi
mov dword [ebp - 0x10], esi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], esi
call fcn.00408440
mov ebx, eax
mov eax, dword [ebp - 0x10]
cmp eax, esi
je 0x4083b6
push eax
call edi
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408f70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412ba3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x414
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x420], ebx
push 2
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp + 8], edi
cmp edi, ebx
jne 0x408fca
call fcn.00407570
mov esi, eax
jmp 0x4090d1
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x408fe9
call fcn.00407570
jmp 0x4090c8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
cmp eax, ebx
jne 0x409002
call fcn.00407570
jmp 0x4090c8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
mov dword [ebp + 0x10], esi
cmp eax, esi
jae 0x409020
mov esi, 0x8007000e
jmp 0x4090ca
xor ecx, ecx
shld ecx, eax, 1
add eax, eax
mov byte [ebp - 4], 2
cmp ecx, ebx
ja 0x409035
cmp eax, 0xffffffff
jbe 0x40903f
push 0x80070216
call fcn.00409510
cmp eax, 0x400
jbe 0x40906b
lea ecx, [ebp - 0x420]
push ecx
call fcn.00407540
jmp 0x409077
lea edx, [ebp - 0x41c]
mov dword [ebp - 0x420], edx
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x420]
cmp eax, ebx
jne 0x40908f
mov esi, 0x8007000e
jmp 0x4090ca
push esi
push eax
mov eax, dword [ebp + 0xc]
push esi
push eax
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x4090aa
call fcn.00407570
jmp 0x4090c8
mov edx, dword [ebp - 0x420]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x420]
push eax
lea eax, [ebp - 0x18]
call fcn.00408e00
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x41c]
cmp dword [ebp - 0x420], ecx
je 0x4090ea
lea eax, [ebp - 0x420]
call fcn.00407cc0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10