joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4132f0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x41c31a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
mov ebp, ecx
mov dword [esp + 4], 0
mov al, byte [ebp + 0x7c]
test al, al
jne 0x41345d
mov eax, dword [ebp + 0x140]
test eax, eax
push ebx
mov ebx, dword [esp + 0x1c]
je 0x4133d4
push esi
push edi
lea esi, [ebp + 0x13c]
push ebx
mov ecx, esi
call dword [0x41d3f4]
push 0x421238
push 0x41f15c
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Replace]
lea edi, [ebp + 0x138]
push esi
mov ecx, edi
call dword [0x41d410]
push str._br_
push 0x41f15c
mov ecx, edi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Replace]
push 0x41f15c
push str._br_
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Replace]
push 0x41f15c
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator_1]
push 0
push 0x3c
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_CWnd::FilterToolTipMessage]
mov edi, eax
test edi, edi
jl 0x4133d2
push edi
push 0x3e
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_CWnd::FilterToolTipMessage]
cmp eax, edi
jle 0x4133c0
sub eax, edi
inc eax
push eax
push edi
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_CMDIFrameWnd::DelayUpdateFrameMenu]
push 0
push 0x3c
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_CWnd::FilterToolTipMessage]
mov edi, eax
test edi, edi
jge 0x4133a4
pop edi
pop esi
push ebp
call sub.MFC71U.DLL_AfxHelpEnabled
mov eax, dword [ebp + 0x140]
test eax, eax
je 0x4133ec
lea eax, [ebp + 0x13c]
jmp 0x413407
push ebx
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_2]
mov dword [esp + 0x14], 0
mov dword [esp + 8], 1
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [eax]
push ecx
push edx
push eax
call sub.MFC71U.DLL_AfxMessageBox
mov dword [ebp + 0x78], eax
test byte [esp + 8], 1
pop ebx
je 0x41342e
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov al, byte [ebp + 0x7c]
test al, al
mov eax, dword [ebp + 0x78]
je 0x413460
cmp eax, 2
je 0x41345d
mov ecx, dword [ebp + 0x84]
mov edx, dword [ebp + 0x74]
push 4
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp + 0x78]
mov ecx, dword [esp + 8]
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x4141a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41c448
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x14]
mov dword [esp + 8], esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_void_]
xor edi, edi
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], edi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_void_]
lea ecx, [esi + 0x4c]
mov byte [esp + 0x14], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_void_]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
mov dword [esi + 4], edi
mov dword [esi + 0x10], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi], eax
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x417f7f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ecx], 0xffffffff
mov eax, dword [0x4296b8]
mov dword [ebp - 4], eax
je 0x417fbd
call fcn.00417ea3
push 7
lea ecx, [ebp - 0x14]
push ecx
movzx eax, ax
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x417fbd
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.MSVCR71.dll__wtoi]
pop ecx
jmp 0x417fbf
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.0041a43b
leave
ret
Function at 0x418b18
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4296b8]
push edi
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x418b46
mov edi, dword [ebp + 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
jmp 0x418bd1
push esi
push edi
call dword [sym.imp.MSVCR71.dll_malloc]
mov esi, eax
test esi, esi
pop ecx
jne 0x418b61
mov edi, dword [ebp + 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
jmp 0x418bd0
push esi
push edi
push 0
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x418b88
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41f178
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x418b9d
push esi
call dword [sym.imp.MSVCR71.dll_free]
mov edi, dword [ebp + 8]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
jmp 0x418bcf
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0x14]
push ecx
movzx ecx, word [eax + 0x16]
push ecx
movzx ecx, word [eax + 0x10]
movzx eax, word [eax + 0x12]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00418053
push esi
call dword [sym.imp.MSVCR71.dll_free]
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x10]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop ecx
pop esi
mov ecx, dword [ebp - 4]
pop edi
call fcn.0041a43b
leave
ret
Function at 0x41a111
Capabilities:
Encode data using xor

Disassembly:
mov dh, al
test ecx, ebp
xor al, 0xa6
or ecx, esi
jbe 0x41a088
imul edx, ebx, 0x3487e940
imul edx, edi
inc eax
dec edi
je 0x41a09b
imul ebp, ecx, 0x1ae35b7f
lea edi, [0xe5763862]
push esi
push 0xa94134
mov dl, al
call 0x41a111
test eax, ebx
adc dh, 0xc2
or ecx, eax
mov bh, 0xb6
dec dl
sub dl, dh
dec cl
mov ecx, 0xc1ce0f72
test ebp, edx
je 0x41a0c7
xchg dh, dh
lea ecx, [edi]
inc edx
imul edx, ebx
mov edx, edi
lea ebp, [0x83e913b7]
mov eax, 0
lea edx, [0x9eefe277]
imul ebp, ecx
xchg ecx, eax
imul ebp, esi
mov edx, ecx
lea esi, [eax]
movsx edx, bl
sbb dl, 3
lea ecx, [0x29842f36]
inc eax
mov ebx, esi
sbb eax, 0xeecd9d69
add al, dl
mov ch, 0x50
inc eax
sub edi, ebx
movzx esi, bx
mov eax, 0xfc6c69ef
mov edi, 0x9d24d59e
dec ecx
inc ebx
and ecx, edi
xor esi, 0x6097
mov ebx, ecx
or ebp, 0x2f943bf0
movsx ebp, bl
pop esi
mov ebx, edx
xchg bl, ah
jo 0x41a138
dec ebx
cmp dh, bh
add ecx, ecx
or bl, 0x10
movsx eax, si
and ch, 7
cmp ecx, ecx
jae 0x41a154
imul ebx, eax
imul eax, esi, 0x69b7b334
imul ebp, edx, 0x47c79c72
or eax, ebp
lea eax, [0xdd0b8074]
mov ebx, 0xadee444
cmp ebx, ebp
jno 0x41a166
cmp dl, dh
cmp dl, dh
mov dh, ah
lea ebp, [0xd93]
lea edi, [0x36785f6a]
adc eax, edi
mov dl, 0x89
xor ebp, 0xfac
inc ebx
xor dh, cl
movsx ebx, cx
lea ecx, [ebp]
mov edi, 0x28f8c4f2
mov eax, eax
dec edx
add ecx, 0x28c
lea eax, [0x85d18e04]
mov al, cl
mov dl, 0x1f
imul ebx, ebp, 0xfb7d5dd9
sub ecx, 0xfffff0ae
inc edx
xchg ebx, edi
sub ecx, 0xf53
mov eax, 0x41697506
add eax, 0xeec45b45
or eax, 0x8c95a902
imul edx, ecx, 0x677f07b0
mov eax, ebp
xor dl, 0x66
imul eax, esi, 0x5a904231
cmp ecx, 0x1d8
jne 0x41a199
movzx edx, bl
push 0xaabf8b
push 0x8b47a
imul ebp, edi
mov dh, 0x52
xchg dh, ah
xchg bl, ch
dec cl
jmp 0x41a205
lea ebp, [0xae8da635]
mov edx, ebx
lea edi, [0x8ae3b274]
add esi, 0x2ce41
mov edi, ebx
add esi, 0xed181
dec edx
add cl, bh
cmp ecx, ebp
or edi, ebp
mov bh, bl
mov ebx, 0x3fbb4b9e
sub ecx, esi
test bl, bl
mov al, 0x20
push esi
inc edi
and eax, eax
xchg ch, cl
movzx edx, bx
mov edi, 0xf6070200
cmp ebp, ebp
xchg ebp, eax
ret
Function at 0x46a150
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5be26c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x20], 0x720067
push esi
mov word [ebp - 8], ax
lea esi, [ebp - 0x20]
mov eax, 0x5c5af8
mov dword [ebp - 0x1c], 0x700061
mov dword [ebp - 0x18], 0x2e0068
mov edx, 0xe
mov dword [ebp - 0x14], 0x710071
sub esi, eax
mov dword [ebp - 0x10], 0x63002e
mov dword [ebp - 0xc], 0x6d006f
lea ecx, [edx + 0x7ffffff0]
test ecx, ecx
je 0x46a1be
movzx ecx, word [esi + eax]
test cx, cx
je 0x46a1be
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x46a1a0
lea ecx, [eax - 2]
test edx, edx
pop esi
cmovne ecx, eax
xor eax, eax
mov word [ecx], ax
mov eax, 0x5c5af8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c16d
mov esp, ebp
pop ebp
ret

Function at 0x46a1e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5be26c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, 0x5c5b3c
mov dword [ebp - 0x34], 0x61004d
lea esi, [ebp - 0x34]
mov dword [ebp - 0x30], 0x6e0069
push edi
mov dword [ebp - 0x2c], 0x690057
mov edx, 0x19
mov dword [ebp - 0x28], str.P5_aS
sub esi, eax
mov dword [ebp - 0x24], 0x77006f
mov dword [ebp - 0x20], 0x650057
mov dword [ebp - 0x1c], 0x570062
mov dword [ebp - 0x18], 0x6e0069
mov dword [ebp - 0x14], 0x6f0064
mov dword [ebp - 0x10], 0x2e0077
mov dword [ebp - 0xc], 0x6d0078
mov dword [ebp - 8], 0x6c
lea ecx, [edx + 0x7fffffe5]
test ecx, ecx
je 0x46a274
movzx ecx, word [esi + eax]
test cx, cx
je 0x46a274
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x46a256
lea ecx, [eax - 2]
test edx, edx
pop edi
cmovne ecx, eax
xor eax, eax
pop esi
pop ebx
mov word [ecx], ax
mov eax, 0x5c5b3c
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c16d
mov esp, ebp
pop ebp
ret

Function at 0x46a2a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5be26c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x2c], 0x70006f
push esi
mov word [ebp - 8], ax
lea esi, [ebp - 0x2c]
mov eax, 0x5c5b14
mov dword [ebp - 0x28], 0x6e0065
push edi
mov dword [ebp - 0x24], 0x77002e
mov edx, 0x14
mov dword [ebp - 0x20], 0x690065
sub esi, eax
mov dword [ebp - 0x1c], 0x690078
mov dword [ebp - 0x18], 0x2e006e
mov dword [ebp - 0x14], 0x710071
mov dword [ebp - 0x10], 0x63002e
mov dword [ebp - 0xc], 0x6d006f
lea ecx, [edx + 0x7fffffea]
test ecx, ecx
je 0x46a324
movzx ecx, word [esi + eax]
test cx, cx
je 0x46a324
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x46a306
lea ecx, [eax - 2]
test edx, edx
pop edi
cmovne ecx, eax
xor eax, eax
pop esi
mov word [ecx], ax
mov eax, 0x5c5b14
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c16d
mov esp, ebp
pop ebp
ret
Function at 0x539620
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00539496

Function at 0x54782c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x401c2e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
and byte [ebp - 0x100], 0
push edi
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0xff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 8
lea eax, [ebp - 0x100]
push 0x404008
push eax
call fcn.00401ca0
mov ecx, 0x401bdc
mov eax, 0x4017fd
sub ecx, eax
push ecx
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00401d18
push 0x100
lea eax, [ebp - 0x100]
push 0
push eax
call fcn.004020d0
add esp, 0x24
call fcn.00401846
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40167d
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x43b690]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
push edi
call fcn.004015c8
mov edi, eax
xor eax, eax
push 0x206
mov word [ebp - 0x74], ax
xor esi, esi
lea eax, [ebp - 0x72]
push esi
push eax
call fcn.00415aa0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x74]
push eax
push edi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x7c], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, esi
jne 0x4016ee
xor eax, eax
jmp 0x40179f
push ebx
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041168c
mov ebx, eax
pop ecx
cmp ebx, esi
jne 0x401711
xor eax, eax
jmp 0x40179e
push ebx
push edi
push esi
lea eax, [ebp - 0x74]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
mov esi, 0x43cf78
test eax, eax
je 0x40178a
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x42d900
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40178a
mov eax, dword [ebp - 0x78]
push dword [eax + 0x30]
movzx ecx, word [eax + 0xc]
push dword [eax + 0x2c]
push dword [eax + 0x28]
push dword [eax + 0x24]
push dword [eax + 0x20]
push dword [eax + 0x18]
push dword [eax + 0x1c]
push dword [eax]
push dword [eax + 0x14]
push dword [eax + 0x10]
push dword [eax + 0xc]
push dword [eax + 8]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str.FileVersion_:__d._d._d._d___FileVersionMS_:_0x_08x__FileVersionLS_:_0x_08x__ProductVersionMS_:_0x_08x__ProductVersionLS_:_0x_08x__Signature_:_0x_08x__FileFlags_:_0x_08x__FileFlagsMask_:_0x_08x__FileOS_:_0x_08x__FileType_:_0x_08x__FileSubType_:_0x_08x__FileDateMS_:_0x_08x__FileDateLS_:_0x_08x__
push 0x168
push esi
call fcn.004157dd
add esp, 0x4c
push ebx
call fcn.004135b8
movzx eax, word [0x43cf78]
neg eax
sbb eax, eax
pop ecx
and eax, esi
pop ebx
mov ecx, dword [ebp + 0x194]
pop edi
xor ecx, ebp
pop esi
call fcn.00413e96
add ebp, 0x198
leave
ret
Function at 0x40194a
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x43b690]
xor eax, ebp
mov dword [ebp + 0x84], eax
push ebx
mov ebx, dword [ebp + 0x90]
push 0x103
lea eax, [ebp - 0x7f]
push 0
push eax
mov byte [ebp - 0x80], 0
call fcn.00415aa0
add esp, 0xc
test ebx, ebx
jne 0x40198b
xor eax, eax
jmp 0x4019e1
push esi
push edi
lea edi, [ebx + 1]
mov al, byte [edi]
test al, al
je 0x4019dc
mov esi, edi
sub esi, ebx
cmp al, 0x5c
jne 0x4019d4
push esi
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00415dd0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov byte [ebp + esi - 0x80], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4019c4
test al, 0x10
jne 0x4019d4
push 0
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4019f9
inc edi
mov al, byte [edi]
inc esi
test al, al
jne 0x40199a
xor eax, eax
inc eax
pop edi
pop esi
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
pop ebx
call fcn.00413e96
add ebp, 0x88
leave
ret 4
xor eax, eax
jmp 0x4019df

Function at 0x4019fd
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x43b690]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
mov esi, dword [ebp + 0x198]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
mov dword [ebp - 0x80], esi
call fcn.00415aa0
add esp, 0xc
test esi, esi
jne 0x401a42
xor eax, eax
jmp 0x401ab0
push ebx
push edi
lea edi, [esi + 2]
movzx eax, word [edi]
xor ecx, ecx
cmp cx, ax
je 0x401aab
mov ebx, edi
sub ebx, esi
push 0x5c
pop ecx
cmp cx, ax
jne 0x401a9d
mov esi, ebx
sar esi, 1
add esi, esi
push esi
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push eax
call fcn.00415dd0
xor eax, eax
mov word [ebp + esi - 0x7c], ax
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401a8d
test al, 0x10
jne 0x401a9d
push 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x401ac8
inc edi
inc edi
movzx eax, word [edi]
inc ebx
xor ecx, ecx
inc ebx
cmp cx, ax
jne 0x401a55
xor eax, eax
inc eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop esi
call fcn.00413e96
add ebp, 0x190
leave
ret 4
xor eax, eax
jmp 0x401aae
Function at 0x403267
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4032d0
cmp dword [ebp + 0x10], 1
je 0x4032a8
cmp dword [ebp + 0x10], 2
je 0x4032a8
push 0xd
pop eax
jmp 0x4032d0
mov eax, dword [ebp - 4]
test edi, edi
je 0x4032ca
test eax, eax
je 0x4032c5
test al, 1
jne 0x4032a3
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x4032ca
jmp 0x4032a3
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x4032d6
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x403381
cmp dword [ebp + 0xc], ebx
je 0x403381
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
jbe 0x40337c
push edi
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041168c
pop ecx
mov edi, eax
push edi
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x403374
and dword [ebp + 8], ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
push 0x42d900
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x403374
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str._d._d._d._d
push dword [ebp + 0xc]
call fcn.00416382
add esp, 0x18
inc ebx
push edi
call fcn.004135b8
pop ecx
pop edi
mov eax, ebx
pop esi
jmp 0x403383
xor eax, eax
pop ebx
leave
ret
Function at 0x4069f6
Capabilities:
Print debug messages

Disassembly:
push ebp
sub esp, 0x21c
lea ebp, [esp - 4]
mov eax, dword [0x43b690]
xor eax, ebp
mov dword [ebp + 0x21c], eax
push 0xac
mov eax, 0x42b187
call fcn.00413ea5
mov eax, dword [0x43e89c]
mov edi, dword [ebp + 0x228]
test eax, eax
je 0x406b67
xor eax, eax
push 0x1fe
mov word [ebp + 0x1c], ax
xor esi, esi
lea eax, [ebp + 0x1e]
push esi
push eax
call fcn.00415aa0
add esp, 0xc
call fcn.00401880
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x42ef04
lea eax, [ebp + 0x1c]
push 0x100
push eax
call fcn.004157dd
add esp, 0x14
push edi
lea ecx, [ebp - 0x80]
call fcn.00406082
mov edi, eax
mov dword [ebp - 4], esi
push 0x42ef00
lea ecx, [ebp - 0x48]
call fcn.00406082
mov dword [ebp - 0x10], eax
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x9c]
call fcn.00406082
mov byte [ebp - 4], 2
push dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00405d84
mov byte [ebp - 4], 3
push edi
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00405d84
mov byte [ebp - 4], 4
push 0x42eefc
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00406711
mov byte [ebp - 4], 5
push str._Module_Unloading____n
push eax
lea eax, [ebp]
push eax
call fcn.00406711
add esp, 0x30
mov byte [ebp - 4], 7
push esi
push ebx
lea ecx, [ebp - 0x64]
call fcn.00404665
mov byte [ebp - 4], 8
push esi
push ebx
lea ecx, [ebp - 0xb8]
call fcn.00404665
mov byte [ebp - 4], 9
push esi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00404665
mov byte [ebp - 4], 0xa
push esi
push ebx
lea ecx, [ebp - 0x9c]
call fcn.00404665
mov byte [ebp - 4], 0xb
push esi
push ebx
lea ecx, [ebp - 0x48]
call fcn.00404665
mov byte [ebp - 4], 0xc
push esi
push ebx
lea ecx, [ebp - 0x80]
call fcn.00404665
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x406b52
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [ebp - 4], 0xffffffff
push esi
push ebx
lea ecx, [ebp]
call fcn.00404665
mov eax, dword [0x43e89c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x21c]
xor ecx, ebp
call fcn.00413e96
add ebp, 0x220
leave
ret
Function at 0x407107
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
sub esp, 0x490
lea ebp, [esp - 4]
mov eax, dword [0x43b690]
xor eax, ebp
mov dword [ebp + 0x490], eax
push 0x24
mov eax, 0x42b240
call fcn.00413ea5
push 7
pop esi
mov edi, ecx
xor ebx, ebx
push ebx
lea ecx, [ebp + 0x250]
mov dword [ebp + 0x268], esi
call fcn.004034fd
mov dword [ebp - 4], ebx
lea eax, [edi + 0xf8]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040603f
mov byte [ebp - 4], 1
lea eax, [ebp + 0x250]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00406c74
pop ecx
pop ecx
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.0040461a
cmp dword [ebp + 0x268], 8
mov eax, dword [ebp + 0x254]
jae 0x40718f
lea eax, [ebp + 0x254]
mov dword [ebp - 0x10], eax
xor eax, eax
push 0x206
mov word [ebp + 0x288], ax
lea eax, [ebp + 0x28a]
push ebx
push eax
call fcn.00415aa0
add esp, 0xc
push dword [ebp + 0x49c]
mov ecx, edi
call fcn.004017b6
push eax
push str.TSLOG
push dword [ebp - 0x10]
lea eax, [ebp + 0x288]
push str._s_s._s__d_..log
push 0x104
push eax
call fcn.004157dd
add esp, 0x1c
lea eax, [ebp]
push eax
lea eax, [ebp + 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push ebx
lea ecx, [ebp + 0x26c]
mov dword [ebp - 0x14], eax
mov dword [ebp + 0x284], esi
call fcn.004034fd
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14], 0xffffffff
je 0x40728d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x10]
lea ecx, [ebp + 0x26c]
call fcn.00405cb6
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp + 0x26c]
call fcn.00405c99
cmp dword [ebp + 0x284], 8
mov eax, dword [ebp + 0x270]
jae 0x407247
lea eax, [ebp + 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40727c
cmp dword [ebp + 0x284], 8
mov eax, dword [ebp + 0x270]
jae 0x407267
lea eax, [ebp + 0x270]
push eax
call esi
push eax
call esi
push eax
push str.DeleteLogFile_Failed__ErrorCode_:__d_0x_08x___LogFilePath_:__s
push edi
call fcn.0040b9cd
add esp, 0x14
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407215
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp + 0x26c]
call fcn.00404665
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp + 0x250]
call fcn.00404665
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x490]
xor ecx, ebp
call fcn.00413e96
add ebp, 0x494
leave
ret 4