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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 4
shl eax, 4
pop edx
mov esi, ecx
lea edi, [eax + ecx + 0x3c]
mov dword [ebp - 4], edx
xor eax, eax
mov ecx, edi
mov bl, byte [ecx]
xor byte [esi + eax], bl
inc eax
add ecx, edx
cmp eax, edx
jl 0x10038240
inc edi
add esi, edx
dec dword [ebp - 4]
jne 0x1003823c
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1003835b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x10065060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 4
lea esi, [ebp - 8]
lea ecx, [eax + 4]
pop edi
mov al, byte [esi - 0xc]
mov dl, byte [esi - 8]
call fcn.10038521
mov bl, al
mov al, dl
call fcn.10038521
xor bl, al
xor bl, byte [esi - 4]
mov al, dl
xor bl, byte [esi]
xor bl, dl
mov byte [ecx - 4], bl
call fcn.10038521
mov bl, al
mov al, byte [esi - 4]
call fcn.10038521
xor bl, al
xor bl, byte [esi - 0xc]
mov al, byte [esi - 4]
xor bl, byte [esi]
xor bl, al
mov byte [ecx], bl
call fcn.10038521
mov bl, al
mov al, byte [esi]
call fcn.10038521
xor bl, al
mov al, byte [esi]
xor bl, dl
xor bl, byte [esi - 0xc]
xor bl, al
mov byte [ecx + 4], bl
call fcn.10038521
mov bl, al
mov al, byte [esi - 0xc]
call fcn.10038521
xor bl, al
xor bl, dl
xor bl, byte [esi - 4]
xor bl, byte [esi - 0xc]
inc ecx
mov byte [ecx + 7], bl
inc esi
dec edi
jne 0x10038383
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10039e38
leave
ret 4
Function at 0x10038410
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10065060]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x10]
lea esi, [eax + 4]
mov dword [ebp - 0x1c], 4
mov al, byte [edi - 4]
mov bl, byte [edi + 4]
call fcn.1003859d
push ebx
mov dl, al
call fcn.10038576
xor dl, al
movzx eax, byte [edi + 8]
push eax
call fcn.10038531
xor dl, al
movzx eax, byte [edi]
push eax
call fcn.1003854f
xor dl, al
movzx eax, byte [edi - 4]
push eax
mov byte [esi - 4], dl
call fcn.10038531
push ebx
mov byte [ebp - 0x15], al
call fcn.1003854f
mov cl, byte [ebp - 0x15]
xor cl, al
movzx eax, byte [edi + 8]
push eax
mov byte [ebp - 0x15], cl
call fcn.10038576
mov cl, byte [ebp - 0x15]
xor cl, al
mov al, byte [edi]
mov byte [ebp - 0x15], cl
call fcn.1003859d
mov cl, byte [ebp - 0x15]
xor cl, al
movzx eax, byte [edi - 4]
push eax
mov byte [esi], cl
call fcn.10038576
mov bl, al
mov al, byte [edi + 4]
call fcn.1003859d
movzx edx, byte [edi + 8]
push edx
xor bl, al
call fcn.1003854f
xor bl, al
movzx eax, byte [edi]
push eax
call fcn.10038531
xor bl, al
movzx eax, byte [edi - 4]
push eax
mov byte [esi + 4], bl
call fcn.1003854f
mov bl, al
movzx eax, byte [edi + 4]
push eax
call fcn.10038531
xor bl, al
mov al, dl
call fcn.1003859d
xor bl, al
movzx eax, byte [edi]
push eax
call fcn.10038576
xor bl, al
mov byte [esi + 8], bl
inc esi
inc edi
dec dword [ebp - 0x1c]
jne 0x1003843c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10039e38
leave
ret 4
Function at 0x10038c1c
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push 0x2c
mov eax, 0x1004fd8e
call fcn.1003b56a
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
xor esi, esi
mov eax, ebx
mov dword [ebp - 0x30], esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10038c3b
sub eax, edi
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x14], 0xf
call fcn.100022c0
mov dword [ebp - 4], esi
cmp dword [ebp - 0x30], esi
jbe 0x10038d42
jmp 0x10038c68
mov ebx, dword [ebp + 0xc]
movsx eax, byte [esi + ebx]
mov al, byte [eax + 0x1005a938]
inc esi
cmp esi, dword [ebp - 0x30]
jae 0x10038c7c
cmp al, 0xff
je 0x10038c68
cmp al, 0xff
je 0x10038d42
movsx ecx, byte [esi + ebx]
mov cl, byte [ecx + 0x1005a938]
inc esi
mov byte [ebp - 0x31], cl
cmp esi, dword [ebp - 0x30]
jae 0x10038c9c
cmp cl, 0xff
je 0x10038c84
cmp cl, 0xff
je 0x10038d42
sar cl, 4
shl al, 2
and cl, 3
or cl, al
movzx eax, cl
push eax
xor eax, eax
inc eax
lea edi, [ebp - 0x2c]
call fcn.10022c40
jmp 0x10038cc4
mov ebx, dword [ebp + 0xc]
mov bl, byte [esi + ebx]
inc esi
cmp bl, 0x3d
je 0x10038d42
movsx eax, bl
mov bl, byte [eax + 0x1005a938]
cmp esi, dword [ebp - 0x30]
jae 0x10038ce0
cmp bl, 0xff
je 0x10038cc1
cmp bl, 0xff
je 0x10038d42
mov al, byte [ebp - 0x31]
mov cl, bl
sar cl, 2
shl al, 4
and cl, 0xf
or cl, al
movzx eax, cl
push eax
xor eax, eax
inc eax
lea edi, [ebp - 0x2c]
call fcn.10022c40
mov eax, dword [ebp + 0xc]
mov al, byte [esi + eax]
inc esi
cmp al, 0x3d
je 0x10038d42
movsx eax, al
mov al, byte [eax + 0x1005a938]
cmp esi, dword [ebp - 0x30]
jae 0x10038d21
cmp al, 0xff
je 0x10038d04
cmp al, 0xff
je 0x10038d42
shl bl, 6
or bl, al
movzx eax, bl
push eax
xor eax, eax
inc eax
lea edi, [ebp - 0x2c]
call fcn.10022c40
cmp esi, dword [ebp - 0x30]
jb 0x10038c65
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x2c]
push eax
call fcn.10001a40
lea ecx, [ebp - 0x2c]
call fcn.10001a70
mov eax, dword [ebp - 0x38]
call fcn.1003b5ed
ret
Function at 0x10039138
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
xor esi, esi
push edi
cmp dword [0x100680bc], esi
je 0x10039158
push esi
push esi
mov dword [0x100680bc], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [ebp - 0xc]
push eax
push 0x100575d4
xor edi, edi
inc edi
push edi
push esi
push 0x100576a4
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x10039182
xor eax, eax
jmp 0x10039263
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 4]
push edx
push esi
push esi
push esi
push esi
push esi
push esi
push str.ROOTCIMV2
mov dword [ebp - 4], esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x10039257
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jl 0x1003924e
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push esi
push 0x30
push dword [ebp + 8]
mov dword [ebp - 8], esi
mov ecx, dword [eax]
push 0x1005b394
push eax
call dword [ecx + 0x50]
test eax, eax
jl 0x1003924e
mov dword [ebp - 0x10], edi
push ebx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
lea edx, [ebp - 0x3c]
push edx
push 0xa
push 0xffffffffffffffff
push eax
xor ebx, ebx
call dword [ecx + 0x10]
mov dword [ebp - 0x14], eax
cmp dword [ebp + 8], esi
je 0x10039244
xor edi, edi
cmp dword [ebp + 8], esi
jbe 0x10039224
push dword [ebp + 0xc]
push dword [ebp + edi*4 - 0x3c]
call fcn.100393fe
test eax, eax
je 0x10039221
inc edi
cmp edi, dword [ebp + 8]
jb 0x10039209
jmp 0x10039224
xor ebx, ebx
inc ebx
xor edi, edi
cmp dword [ebp + 8], esi
jbe 0x1003923b
mov eax, dword [ebp + edi*4 - 0x3c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc edi
cmp edi, dword [ebp + 8]
jb 0x1003922b
cmp ebx, esi
jne 0x10039244
cmp dword [ebp - 0x14], esi
je 0x100391e3
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop ebx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret 8

Function at 0x10039c1f
Capabilities:
Hash data with md5

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

Function at 0x10039e38
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10065060]
jne 0x10039e42
repz ret
jmp fcn.1003b60b
Function at 0x10041969
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.1003b876
and dword [ebp - 4], 0
cmp dword [0x10068a54], 0
mov ebx, eax
jne 0x10041a1a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10041acb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x10041acb
push eax
call fcn.1003b804
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10068a54], eax
call esi
push eax
call fcn.1003b804
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10068a58], eax
call esi
push eax
call fcn.1003b804
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10068a5c], eax
call esi
push eax
call fcn.1003b804
pop ecx
mov dword [0x10068a64], eax
test eax, eax
je 0x10041a1a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1003b804
pop ecx
mov dword [0x10068a60], eax
mov eax, dword [0x10068a60]
cmp eax, ebx
je 0x10041a72
cmp dword [0x10068a64], ebx
je 0x10041a72
push eax
call fcn.1003b87f
push dword [0x10068a64]
mov esi, eax
call fcn.1003b87f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10041a72
test edi, edi
je 0x10041a72
call esi
test eax, eax
je 0x10041a69
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10041a69
test byte [ebp - 0xc], 1
jne 0x10041a72
or dword [ebp + 0x10], 0x200000
jmp 0x10041aab
mov eax, dword [0x10068a58]
cmp eax, ebx
je 0x10041aab
push eax
call fcn.1003b87f
pop ecx
test eax, eax
je 0x10041aab
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10041aab
mov eax, dword [0x10068a5c]
cmp eax, ebx
je 0x10041aab
push eax
call fcn.1003b87f
pop ecx
test eax, eax
je 0x10041aab
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10068a54]
call fcn.1003b87f
pop ecx
test eax, eax
je 0x10041acb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10041acd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, 0x418ca0
inc ebx
cmp byte [ebx], 0
je 0x40104d
call 0x401015
pop esi
add esi, 0x4a
mov ecx, 0xee1d
sub esp, ecx
sub esp, 3
mov al, byte [ebx + 1]
mov ah, byte [ebx + 2]
not al
add al, ah
sar al, 1
mov bl, byte [esi + ecx]
add bl, al
xor bl, ah
inc al
mov byte [esp + ecx - 1], bl
loop 0x40102f
mov edx, fcn.00401fe0
sub edx, esi
mov ebx, esp
add ebx, edx
dec ebx
push esp
call ebx
xor eax, eax
push eax
call fcn.00401fe0
xor eax, eax
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x401fe0
Capabilities:
Encode data using xor

Disassembly:
xor ebp, ecx
imul ebp, dword [ecx - 0x28], 0xcde7e6e3
imul ebx, eax, 0xcde7e6e3
cwde
inc ebp
test eax, 0xbbbaedf0
mov esp, 0xc0bfbebd
rol edx, 0x4a
dec edx
dec edx
jge 0x401fc8
jns 0x401fcc
dec esp
cli
invalid
Function at 0x411fa1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00410ec6
xor ebx, ebx
cmp dword [0x41ab54], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x412076
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x411fe1
xor eax, eax
jmp 0x41213a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x411fda
push eax
call fcn.00410e63
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41ab54], eax
call esi
push eax
call fcn.00410e63
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41ab58], eax
call esi
push eax
call fcn.00410e63
mov dword [0x41ab5c], eax
lea eax, [ebp - 8]
push eax
call fcn.00410175
test eax, eax
pop ecx
pop ecx
je 0x412044
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041188b
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x412076
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00410e63
cmp eax, ebx
pop ecx
mov dword [0x41ab64], eax
je 0x412076
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00410e63
pop ecx
mov dword [0x41ab60], eax
mov eax, dword [0x41ab60]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4120ef
cmp dword [0x41ab64], esi
je 0x4120ef
push eax
call fcn.00410ecf
pop ecx
call eax
cmp eax, ebx
je 0x4120bc
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x41ab64]
call fcn.00410ecf
pop ecx
call eax
test eax, eax
je 0x4120bc
test byte [ebp - 0x18], 1
jne 0x4120ef
lea eax, [ebp - 0xc]
push eax
call fcn.004101ac
test eax, eax
pop ecx
je 0x4120d7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041188b
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4120e6
or dword [ebp + 0x10], 0x200000
jmp 0x412120
or dword [ebp + 0x10], 0x40000
jmp 0x412120
mov eax, dword [0x41ab58]
cmp eax, esi
je 0x412120
push eax
call fcn.00410ecf
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x412120
mov eax, dword [0x41ab5c]
cmp eax, esi
je 0x412120
push dword [ebp - 4]
push eax
call fcn.00410ecf
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x41ab54]
call fcn.00410ecf
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x413dea
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x418a58]
jne 0x413df4
repz ret
jmp fcn.00415425
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b004]
jne 0x401010
repz ret
jmp fcn.0040169c

Function at 0x4077b5
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.00404ed2
and dword [ebp - 4], 0
cmp dword [0x42d55c], 0
mov ebx, eax
jne 0x407866
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407917
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407917
push eax
call fcn.00404e60
mov dword [esp], 0x428a4c
push edi
mov dword [0x42d55c], eax
call esi
push eax
call fcn.00404e60
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42d560], eax
call esi
push eax
call fcn.00404e60
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42d564], eax
call esi
push eax
call fcn.00404e60
pop ecx
mov dword [0x42d56c], eax
test eax, eax
je 0x407866
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404e60
pop ecx
mov dword [0x42d568], eax
mov eax, dword [0x42d568]
cmp eax, ebx
je 0x4078be
cmp dword [0x42d56c], ebx
je 0x4078be
push eax
call fcn.00404edb
push dword [0x42d56c]
mov esi, eax
call fcn.00404edb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4078be
test edi, edi
je 0x4078be
call esi
test eax, eax
je 0x4078b5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4078b5
test byte [ebp - 0xc], 1
jne 0x4078be
or dword [ebp + 0x10], 0x200000
jmp 0x4078f7
mov eax, dword [0x42d560]
cmp eax, ebx
je 0x4078f7
push eax
call fcn.00404edb
pop ecx
test eax, eax
je 0x4078f7
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4078f7
mov eax, dword [0x42d564]
cmp eax, ebx
je 0x4078f7
push eax
call fcn.00404edb
pop ecx
test eax, eax
je 0x4078f7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42d55c]
call fcn.00404edb
pop ecx
test eax, eax
je 0x407917
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407919
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..idata
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x204357c0
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0xefa1370
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4018bd
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x4313f4]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
push edi
call fcn.0040172d
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 sub.MSVCR90.dll_memset
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 0x40192e
xor eax, eax
jmp 0x4019e0
push ebx
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412666
mov ebx, eax
pop ecx
cmp ebx, esi
jne 0x401951
xor eax, eax
jmp 0x4019df
push ebx
push edi
push esi
lea eax, [ebp - 0x74]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
mov esi, 0x431818
test eax, eax
je 0x4019cb
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x41ebb0
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4019cb
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 dword [sym.imp.MSVCR90.dll__snwprintf]
add esp, 0x4c
push ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
movzx eax, word [0x431818]
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.0041276a
add ebp, 0x198
leave
ret
Function at 0x401b8e
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x4313f4]
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 sub.MSVCR90.dll_memset
add esp, 0xc
test ebx, ebx
jne 0x401bcf
xor eax, eax
jmp 0x401c25
push esi
push edi
lea edi, [ebx + 1]
mov al, byte [edi]
test al, al
je 0x401c20
mov esi, edi
sub esi, ebx
cmp al, 0x5c
jne 0x401c18
push esi
lea eax, [ebp - 0x80]
push ebx
push eax
call sub.MSVCR90.dll_memcpy
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 0x401c08
test al, 0x10
jne 0x401c18
push 0
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x401c3d
inc edi
mov al, byte [edi]
inc esi
test al, al
jne 0x401bde
xor eax, eax
inc eax
pop edi
pop esi
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
pop ebx
call fcn.0041276a
add ebp, 0x88
leave
ret 4
xor eax, eax
jmp 0x401c23

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

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x4313f4]
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 sub.MSVCR90.dll_memset
add esp, 0xc
test esi, esi
jne 0x401c86
xor eax, eax
jmp 0x401cf4
push ebx
push edi
lea edi, [esi + 2]
movzx eax, word [edi]
xor ecx, ecx
cmp cx, ax
je 0x401cef
mov ebx, edi
sub ebx, esi
push 0x5c
pop ecx
cmp cx, ax
jne 0x401ce1
mov esi, ebx
sar esi, 1
add esi, esi
push esi
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push eax
call sub.MSVCR90.dll_memcpy
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 0x401cd1
test al, 0x10
jne 0x401ce1
push 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x401d0c
inc edi
inc edi
movzx eax, word [edi]
inc ebx
xor ecx, ecx
inc ebx
cmp cx, ax
jne 0x401c99
xor eax, eax
inc eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop esi
call fcn.0041276a
add ebp, 0x190
leave
ret 4
xor eax, eax
jmp 0x401cf2
Function at 0x4067ac
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [0x431f84]
push ebp
push esi
mov esi, ecx
test eax, eax
je 0x4067c0
xor eax, eax
jmp 0x406878
mov eax, dword [esi + 0x24]
push ebx
or ebx, 0xffffffff
push edi
cmp eax, ebx
jne 0x406820
push 0x11
push 0
push str.C:TSLOG_CONFIG_
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov dword [esi + 0x24], eax
cmp eax, ebx
je 0x406873
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, str.C:TSLOG_CONFIGTSLOG.ini
push ebp
call edi
cmp eax, ebx
jne 0x406815
mov ebx, str.C:TSLOG_CONFIGTSLOG.txt
push ebx
call edi
cmp eax, 0xffffffff
jne 0x406815
push ebp
call edi
cmp eax, 0xffffffff
jne 0x406815
push ebx
call edi
cmp eax, 0xffffffff
je 0x406846
push 0
mov ecx, esi
call fcn.00405e82
jmp 0x406873
xor edi, edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, edi
je 0x40684a
cmp eax, 0x102
je 0x406846
push 0x11
push edi
push str.C:TSLOG_CONFIG_
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov dword [esi + 0x24], eax
xor eax, eax
jmp 0x406876
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
push edi
mov ecx, esi
mov dword [esi + 0x24], ebx
call fcn.00405e82
test eax, eax
je 0x406873
push 0x11
push edi
push str.C:TSLOG_CONFIG_
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov dword [esi + 0x24], eax
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x4099e2
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 0x409a4b
cmp dword [ebp + 0x10], 1
je 0x409a23
cmp dword [ebp + 0x10], 2
je 0x409a23
push 0xd
pop eax
jmp 0x409a4b
mov eax, dword [ebp - 4]
test edi, edi
je 0x409a45
test eax, eax
je 0x409a40
test al, 1
jne 0x409a1e
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x409a45
jmp 0x409a1e
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc