joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51d7f2
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x51d8af
cmp dword [esi + 4], 0xffffffff
jne 0x51d8af
lea edi, [esi + 0x140]
push edi
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + esi + 0x13f]
mov cl, byte [ecx + esi + 0x13f]
cmp cl, 0x5c
je 0x51d845
cmp cl, 0x2f
je 0x51d845
mov byte [eax + 1], 0x2f
mov byte [eax + 2], 0
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
cmp ebx, 1
jne 0x51d86c
push edi
call fcn.00519a90
add esp, 4
cmp eax, 0xffffffff
jne 0x51d86c
pop edi
pop esi
mov eax, 0x2000000
pop ebx
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push ebx
push ecx
push edi
call fcn.0051c380
add esp, 0x10
test eax, eax
jne 0x51d88f
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
pop ecx
ret 0xc
push eax
call fcn.0051c950
add esp, 4
mov dword [esi], eax
neg eax
sbb eax, eax
pop edi
and eax, 0xfffffe00
pop esi
add eax, 0x200
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebx
pop ecx
ret 0xc

Function at 0x51df00
Capabilities:
Create directory

Disassembly:
sub esp, 0x208
push ebx
mov ebx, dword [esp + 0x210]
push ebp
push edi
test ebx, ebx
je 0x51df7a
push 0x104
lea eax, [esp + 0x114]
push ebx
push eax
call fcn.0052c111
lea edi, [esp + 0x11c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x51df56
mov al, byte [esp + ecx + 0x10f]
lea ecx, [esp + ecx + 0x10f]
cmp al, 0x2f
je 0x51df53
cmp al, 0x5c
jne 0x51df56
mov byte [ecx], 0
lea ecx, [esp + 0x110]
push ecx
call fcn.00519b60
add esp, 4
test al, al
jne 0x51df7a
lea edx, [esp + 0x110]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, dword [esp + 0x21c]
mov al, byte [ebp]
test al, al
je 0x51e049
mov edx, ebp
mov ecx, ebp
cmp al, 0x2f
je 0x51df98
cmp al, 0x5c
jne 0x51df9a
mov edx, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x51df90
cmp edx, ebp
je 0x51dfde
mov eax, edx
push esi
sub eax, ebp
mov esi, ebp
mov ecx, eax
lea edi, [esp + 0x114]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [esp + eax + 0x114], 0
lea eax, [esp + 0x114]
push eax
push ebx
call fcn.0051df00
add esp, 8
pop esi
test ebx, ebx
mov byte [esp + 0xc], 0
je 0x51dffa
push 0x104
lea ecx, [esp + 0x10]
push ebx
push ecx
call fcn.0052c111
add esp, 0xc
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x10f], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edx, 0x104
sub edx, ecx
push edx
lea eax, [esp + ecx + 0x10]
push ebp
push eax
call fcn.0052c111
lea ecx, [esp + 0x18]
mov byte [esp + 0x11b], 0
push ecx
call fcn.00519b60
add esp, 0x10
test al, al
jne 0x51e049
lea edx, [esp + 0xc]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop ebp
pop ebx
add esp, 0x208
ret
Function at 0x522ce0
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x548978
push 0x52bec0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
xor esi, esi
mov edi, dword [ebp - 0x20]
push 1
push esi
push esi
mov eax, dword [ebp - 0x28]
push eax
call fcn.0052bfa0
sub eax, esi
sbb edx, edi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sbb edx, esi
mov ecx, dword [ebp - 0x24]
add eax, ecx
adc edx, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x522e90
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x9c
push eax
call esi
test eax, eax
jne 0x522ed1
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call esi
test eax, eax
je 0x522f3e
cmp dword [esp + 0x1c], 2
jne 0x522f3e
cmp dword [esp + 0x10], 5
jne 0x522f3e
cmp dword [esp + 0x14], 1
jne 0x522f3e
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x522f28
push str.IsWow64Process
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x522f19
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
jmp 0x522f21
mov dword [esp + 8], 0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 8]
test eax, eax
je 0x522f3e
pop edi
mov eax, 1
pop esi
add esp, 0xa0
ret
pop edi
xor eax, eax
pop esi
add esp, 0xa0
ret
Function at 0x525720
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x59549c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x525733
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x525774
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x595544]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x5257a6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x5257aa
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x52579b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x5257c8
mov bl, byte [esp + ecx + 0x4c]
jmp 0x5257cc
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x5257bd
xor ecx, ecx
mov eax, 0x5954ac
xor ebx, ebx
mov bl, byte [ecx + 0x595554]
cmp byte [esp + ebx + 0x14], 0
je 0x5257f7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x59556c]
cmp byte [esp + ebx + 0x14], 0
je 0x52580e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x5257de
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x525767
lea edx, [esp + 0x84]
push edx
call fcn.00525850
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x538a24
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x53fda8
call fcn.0052c784
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.0053e1bc
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x538a63
call fcn.0053e1bc
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x538a71
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x538a7f
or eax, 0xffffffff
jmp 0x538b67
mov ecx, esi
call fcn.0053899a
mov dword [ebp - 0x14], eax
call fcn.00539a0e
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x538ab6
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x538ab6
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.005399c2
push dword [ebp - 0x14]
call fcn.005394f4
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00538732
cmp eax, edi
je 0x538b29
test byte [esi + 0x24], 0x10
je 0x538af7
push 4
mov ecx, esi
pop ebx
call fcn.00538ef4
test ah, 1
je 0x538aef
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0053b51d
cmp dword [esi + 0x1c], edi
je 0x538b29
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.00538f28
jmp 0x538b29
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x538b3d
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x538b56
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x538b56
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.005389d4
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x53b3cb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x53b40d
call fcn.0053e1bc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x53b40d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x53b404
xor eax, eax
jmp 0x53b415
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0053b41b
pop edi
pop esi
pop ebx
ret 4
Function at 0x53e752
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x53e780
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x53e79e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0053e6b8
jmp 0x53e79e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x53e79e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0053e6b8
test edi, edi
mov eax, edi
jne 0x53e788
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x1005c8b0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1005ca55
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3d000]
push edi
or ebp, 0xffffffff
jmp 0x1005c8da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1005c8e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1005c8d0
mov eax, 1
add ebx, ebx
jne 0x1005c8f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1005c904
jne 0x1005c914
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1005c914
dec eax
add ebx, ebx
jne 0x1005c910
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1005c8e8
xor ecx, ecx
sub eax, 3
jb 0x1005c92c
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1005c99e
sar eax, 1
mov ebp, eax
jmp 0x1005c937
add ebx, ebx
jne 0x1005c937
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1005c944
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1005c968
inc ecx
add ebx, ebx
jne 0x1005c954
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1005c949
jne 0x1005c965
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1005c949
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1005c988
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1005c979
jmp 0x1005c8d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1005c988
add edi, ecx
jmp 0x1005c8d6
pop esi
mov edi, esi
mov ecx, 0x1df0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1005c9a6
cmp byte [edi], 0x11
jne 0x1005c9a6
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x1005c9ab
lea edi, [esi + 0x57000]
mov eax, dword [edi]
or eax, eax
je 0x1005ca23
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x623b4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6247c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1005c9d8
mov ecx, edi
jns 0x1005ca07
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62480]
or eax, eax
je 0x1005ca1d
mov dword [ebx], eax
add ebx, 4
jmp 0x1005c9f5
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1005ca54
cmp al, 0xef
ja 0x1005ca47
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1005ca29
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1005ca36
popal
jmp 0x1002c2b7
Function at 0x401000
Capabilities:
Check mutex on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push str.TimeSink_Ad_Client
push 0
push 0
mov byte [esp + 0x1f], 1
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 0xb7
jne 0x40106b
push str.TimeSink_Kill_Ad_Client
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x9c40
push ebp
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov edi, eax
call ebx
cmp edi, 0xffffffff
je 0x401066
cmp edi, 0x102
jne 0x40106b
mov byte [esp + 0x13], 0
push ebp
call ebx
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4011b0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4011e0
mov ecx, dword [esp + 0xc]
cmp ecx, 3
jl 0x4011e0
dec ecx
mov eax, esi
test ecx, ecx
jle 0x4011d8
push ebx
mov dl, byte [eax + 1]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
inc eax
dec ecx
jne 0x4011ca
pop ebx
mov cl, byte [esi]
mov dl, byte [eax]
xor dl, cl
mov byte [eax], dl
pop esi
ret

Function at 0x4011f0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x401219
mov eax, dword [esp + 8]
cmp eax, 2
jl 0x401219
mov dl, byte [ecx]
lea eax, [eax + ecx - 1]
push ebx
xor byte [eax], dl
mov dl, byte [eax]
mov bl, byte [eax - 1]
dec eax
xor bl, dl
cmp eax, ecx
mov byte [eax], bl
ja 0x40120a
pop ebx
ret

Function at 0x401220
Capabilities:
Get file version info

Disassembly:
sub esp, 8
lea eax, [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x4012b8
push edi
call fcn.00406160
mov esi, eax
add esp, 4
test esi, esi
je 0x4012b8
push esi
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4012af
lea ecx, [esp + 0x18]
lea edx, [esp + 0xc]
push ecx
push edx
push 0x40f030
push esi
mov dword [esp + 0x28], 0x34
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4012af
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4012af
mov eax, dword [esp + 0xc]
xor ebx, ebx
push 1
push ebx
mov edi, dword [eax + 0xc]
mov eax, dword [eax + 8]
push ebx
push eax
call fcn.00406230
add edi, eax
push esi
adc ebx, edx
call fcn.004060f0
add esp, 4
mov eax, edi
mov edx, ebx
pop edi
pop esi
pop ebx
add esp, 8
ret
push esi
call fcn.004060f0
add esp, 4
pop edi
xor eax, eax
pop esi
xor edx, edx
pop ebx
add esp, 8
ret

Function at 0x4016e0
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx + 4], 0x67452301
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 8], 0xefcdab89
mov dword [ecx + 0xc], 0x98badcfe
mov dword [ecx + 0x10], 0x10325476
ret
Function at 0x402260
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
xor edi, edi
mov esi, ebp
test ebx, ebx
jle 0x402294
xor eax, eax
mov al, byte [esi]
add eax, edi
cdq
xor eax, edx
sub eax, edx
and eax, 0xff
xor eax, edx
sub eax, edx
inc esi
inc edi
mov al, byte [eax + ecx]
cmp edi, ebx
mov byte [esi - 1], al
jl 0x402274
push ebx
push ebp
call fcn.004011b0
add esp, 8
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x402560
Capabilities:
Get graphical window text

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push edi
push 0x3e8
push ebx
call ebp
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0xc1
push eax
mov dword [esp + 0x20], eax
call edi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 4]
push eax
call fcn.004060e0
mov ecx, dword [esp + 0x1c]
add esp, 4
lea eax, [ecx + 1]
push eax
mov dword [esp + 0x1c], eax
call fcn.00406310
mov edx, dword [esp + 0x1c]
add esp, 4
mov dword [esi + 4], eax
push eax
mov eax, dword [esp + 0x14]
push edx
push 0xd
push eax
call edi
push 0x3e9
push ebx
call ebp
push 0
push 0
push 0xc1
push eax
mov dword [esp + 0x20], eax
call edi
test eax, eax
mov dword [esi + 8], 0
jle 0x402628
inc eax
push eax
mov dword [esp + 0x1c], eax
call fcn.00406310
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [esp + 0x1c], eax
push eax
push ecx
push 0xd
push edx
call edi
mov eax, dword [esp + 0x1c]
push eax
call fcn.00406270
mov ecx, dword [esp + 0x20]
add esp, 4
mov dword [esi + 8], eax
push ecx
call fcn.004060e0
add esp, 4
push 0x3ea
push ebx
call ebp
push 0
push 0
push 0xc1
push eax
mov dword [esp + 0x20], eax
call edi
mov edx, dword [esi + 0x10]
mov dword [esp + 0x18], eax
push edx
call fcn.004060e0
mov eax, dword [esp + 0x1c]
add esp, 4
inc eax
push eax
mov dword [esp + 0x1c], eax
call fcn.00406310
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
add esp, 4
mov dword [esi + 0x10], eax
push eax
push ecx
push 0xd
push edx
call edi
push 0x3eb
push ebx
call ebp
push 0
mov ebp, eax
push 0
push 0xc1
push ebp
call edi
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x14]
push eax
call fcn.004060e0
mov ecx, dword [esp + 0x1c]
add esp, 4
lea eax, [ecx + 1]
push eax
mov dword [esp + 0x1c], eax
call fcn.00406310
mov edx, dword [esp + 0x1c]
add esp, 4
mov dword [esi + 0x14], eax
push eax
push edx
push 0xd
push ebp
call edi
mov edi, dword [sym.imp.USER32.dll_IsDlgButtonChecked]
push 0x3f2
push ebx
call edi
neg eax
sbb eax, eax
push 0x3ef
neg eax
inc eax
push ebx
mov dword [esi], eax
call edi
test eax, eax
jne 0x4026ec
mov dword [esi + 0xc], 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [esi + 0xc], 2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x402ee0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push esi
test eax, eax
mov dword [esp + 4], 0
jne 0x402ef7
mov eax, str.SOFTWARETimeSink__Inc.
mov edx, dword [esp + 0xc]
lea ecx, [esp + 4]
push ecx
push 0xf003f
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x402f18
xor al, al
pop esi
pop ecx
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 4]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x402f4f
xor al, al
pop esi
pop ecx
ret
mov eax, dword [esp + 0x20]
test eax, eax
je 0x402f5d
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov al, 1
pop esi
pop ecx
ret

Function at 0x402f70
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x402f7f
xor al, al
pop edi
pop esi
ret
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x402f8c
mov eax, str.SOFTWARETimeSink__Inc.
push 2
push eax
mov eax, dword [esp + 0x14]
push eax
call fcn.00403030
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x402fa7
xor al, al
pop edi
pop esi
ret
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
push ecx
push edi
push edx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
pop esi
sete al
ret

Function at 0x402fe0
Capabilities:
Delete registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push 0x2001f
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403003
xor al, al
ret
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0xc]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
sete al
pop esi
ret
Function at 0x4033f0
Capabilities:
Create directory

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x14]
push edi
lea eax, [esp + 0x10]
push 0
push eax
push esi
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
mov dword [esp + 0x28], ebp
call fcn.00402ee0
add esp, 0x18
test al, al
jne 0x40343f
cmp ebp, 0x11
ja 0x403433
mov byte [esi], al
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push str.c:Program_Files
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov bl, byte [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test bl, bl
mov dword [esp + 0x10], eax
je 0x40348e
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push esi
call fcn.004068b0
add esp, 8
test eax, eax
je 0x40348a
push 0
push esi
call edi
test eax, eax
jne 0x40345e
call ebp
cmp eax, 0xb7
je 0x40345e
mov byte [esi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
add eax, 9
cmp eax, ebp
mov dword [esp + 0x10], eax
jb 0x4034a8
mov byte [esi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push str.TimeSink
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
test bl, bl
je 0x4034d8
push 0
push esi
call fcn.004068b0
add esp, 8
test eax, eax
je 0x4034d8
push 0
push esi
call edi
test eax, eax
jne 0x4034d8
mov byte [esi], al
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4034f0
Capabilities:
Create directory

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
push ebx
push edi
push esi
call fcn.004033f0
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x403518
mov byte [esi], al
pop edi
pop esi
pop ebp
pop ebx
ret
add ebp, 0xa
cmp ebp, edi
jb 0x403529
mov byte [esi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push str.AdGateway
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
test bl, bl
je 0x403570
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push esi
call fcn.004068b0
add esp, 8
test eax, eax
je 0x403570
push 0
push esi
call edi
test eax, eax
jne 0x403545
call ebx
cmp eax, 0xb7
je 0x403545
mov byte [esi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret