joyce8/EMBER2024-capa huggingface dataset:
Function at 0xc31058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00c311a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xc3107e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc3106a
add dl, dl
jne 0xc31089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc310dc
xor eax, eax
add dl, dl
jne 0xc31096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xc3117d
add dl, dl
jne 0xc310a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc310b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc310bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc310c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xc310d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xc31075
mov eax, 1
add dl, dl
jne 0xc310ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xc310f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc310e1
sub eax, ebx
mov ebx, 1
jne 0xc31128
mov ecx, 1
add dl, dl
jne 0xc3110e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc31119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc31105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc31075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xc3113f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xc3114a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xc31136
cmp eax, 0x7d00
jae 0xc3116d
cmp eax, 0x500
jb 0xc31168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc31075
cmp eax, 0x7f
ja 0xc31170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xc31075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xc3119e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xc31075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x2c195f82
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..tls
nop
nop
mov ebx, 0x42f314
mov ecx, 0x54182d6e
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0x484b59fa
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x1c422885
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x408ecc
mov ecx, 0xff23368
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..text
nop
mov ebx, 0x42e1d0
mov ecx, 0x41cc6bca
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401950
Capabilities:
Terminate process

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x2c
mov dword [esp + 8], 8
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov dword [esi], eax
sub esp, 0xc
test eax, eax
je 0x4019c4
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
sub esp, 8
mov ebp, eax
test eax, eax
je 0x4019a0
add esp, 0x2c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], 0x3ec
call dbg.output_write
mov eax, dword [esi]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FreeLibrary]
sub esp, 4
jmp 0x401995
cmp dword [esp + 0x40], 0
je 0x4019da
mov eax, dword fs:[0x18]
cmp dword [eax + 0x34], 0xc1
je 0x4019f7
mov dword [esp + 4], ebx
mov dword [esp], 0x3eb
call dbg.output_write
mov dword [esp], 3
call dword [sym.imp.kernel32.dll_ExitProcess]
lea eax, [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_GetBinaryTypeW]
push edx
push edx
test eax, eax
je 0x4019da
cmp dword [esp + 0x1c], 6
jne 0x4019da
call dbg.reexec_self
jmp 0x4019da

Function at 0x401f10
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit

Function at 0x402010
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x40206b
cmp byte [esi + ebx - 1], 0xa
je 0x40203f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4060a4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x402590
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov edi, dword [0x4060b4]
mov esi, dword [ebp + 8]
test edi, edi
je 0x402750
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x4060b4]
movzx eax, al
bt eax, esi
jae 0x4027b0
mov ecx, dword [0x4060a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x402656
test byte [0x403018], 8
jne 0x4026f0
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x403028], 8
jne 0x4026a0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x402625
cmp esi, 3
jbe 0x402660
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x404234]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x402625
mov ecx, dword [0x4060b4]
test ecx, ecx
je 0x402790
mov dword [esp], 0x403028
call dword [0x4060b4]
test al, 8
je 0x4025fc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x4025fc
mov ebx, dword [0x4060b4]
test ebx, ebx
je 0x402770
mov dword [esp], 0x403018
call dword [0x4060b4]
test al, 8
je 0x4025e9
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
shr edx, 6
imul ebx, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, ebx
lea ebx, [esp + 0x28]
mov dword [esp + 0xc], ecx
mov dword [esp], ebx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x4025ef
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4060b4
call sym._load_func.part.0
jmp 0x4025b0
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4060b4
call sym._load_func.part.0
jmp 0x4026fa
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x4060b4
call sym._load_func.part.0
jmp 0x4026ae
mov eax, 0xffffffff
jmp 0x402656
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.00405a40
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 0x40e030
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.00405b10
add edi, eax
push esi
adc ebx, edx
call fcn.004059d0
add esp, 4
mov eax, edi
mov edx, ebx
pop edi
pop esi
pop ebx
add esp, 8
ret
push esi
call fcn.004059d0
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 0x402ed0
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 0x402ee7
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 0x402f08
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 0x402f3f
xor al, al
pop esi
pop ecx
ret
mov eax, dword [esp + 0x20]
test eax, eax
je 0x402f4d
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
mov al, 1
pop esi
pop ecx
ret

Function at 0x402f60
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
jne 0x402f6f
xor al, al
pop edi
pop esi
ret
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x402f7c
mov eax, str.SOFTWARETimeSink__Inc.
push 2
push eax
mov eax, dword [esp + 0x14]
push eax
call fcn.00403020
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x402f97
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 0x402fd0
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 0x402ff3
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 0x4033e0
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.00402ed0
add esp, 0x18
test al, al
jne 0x40342f
cmp ebp, 0x11
ja 0x403423
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 0x40347e
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push esi
call fcn.004064f0
add esp, 8
test eax, eax
je 0x40347a
push 0
push esi
call edi
test eax, eax
jne 0x40344e
call ebp
cmp eax, 0xb7
je 0x40344e
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 0x403498
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 0x4034c8
push 0
push esi
call fcn.004064f0
add esp, 8
test eax, eax
je 0x4034c8
push 0
push esi
call edi
test eax, eax
jne 0x4034c8
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 0x4034e0
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.004033e0
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x403508
mov byte [esi], al
pop edi
pop esi
pop ebp
pop ebx
ret
add ebp, 0xa
cmp ebp, edi
jb 0x403519
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 0x403560
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push esi
call fcn.004064f0
add esp, 8
test eax, eax
je 0x403560
push 0
push esi
call edi
test eax, eax
jne 0x403535
call ebx
cmp eax, 0xb7
je 0x403535
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
Function at 0x403570
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.004034e0
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x403598
mov byte [esi], al
pop edi
pop esi
pop ebp
pop ebx
ret
add ebp, 9
cmp ebp, edi
jb 0x4035a9
mov byte [esi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push str.Profiles
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
test bl, bl
je 0x4035f0
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push esi
call fcn.004064f0
add esp, 8
test eax, eax
je 0x4035f0
push 0
push esi
call edi
test eax, eax
jne 0x4035c5
call ebx
cmp eax, 0xb7
je 0x4035c5
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

Function at 0x403600
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
push eax
push ebx
push esi
call fcn.00403570
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x403628
mov byte [esi], al
pop edi
pop esi
pop ebp
pop ebx
ret
mov ebp, dword [esp + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [edi + eax + 1]
cmp edi, ebx
mov dword [esp + 0x1c], edi
jb 0x403649
mov byte [esi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40e030
push esi
call edi
push ebp
push esi
call edi
mov al, byte [esp + 0x20]
test al, al
je 0x40369a
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push esi
call fcn.004064f0
add esp, 8
test eax, eax
je 0x40369a
push 0
push esi
call edi
test eax, eax
jne 0x40366f
call ebx
cmp eax, 0xb7
je 0x40366f
mov byte [esi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4036b0
Capabilities:
Create directory
Get session user name

Disassembly:
sub esp, 0x10c
mov eax, dword [esp + 0x110]
push ebx
mov ebx, dword [esp + 0x120]
push ebp
mov ebp, dword [esp + 0x120]
push esi
mov esi, dword [esp + 0x120]
push edi
push ebx
push ebp
push esi
push eax
call fcn.00403600
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4036f5
mov byte [esi], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
mov dword [esp + 0x1c], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x403721
lea eax, [esp + 0x18]
push str.DfltUser
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edi, [edi + eax + 1]
cmp edi, ebp
mov dword [esp + 0x10], edi
jb 0x403748
mov byte [esi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40e030
push esi
call edi
lea edx, [esp + 0x18]
push edx
push esi
call edi
test bl, bl
je 0x40379f
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push esi
call fcn.004064f0
add esp, 8
test eax, eax
je 0x40379f
push 0
push esi
call edi
test eax, eax
jne 0x40376e
call ebx
cmp eax, 0xb7
je 0x40376e
mov byte [esi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x4037b0
Capabilities:
Create directory

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
push edi
push eax
push ecx
push esi
push ebp
call fcn.004036b0
add esp, 0x10
mov dword [esp + 0x20], eax
test eax, eax
jne 0x4037e5
mov byte [esi], al
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x2c
push eax
call fcn.00405bf0
add esp, 4
mov ebx, eax
mov dword [esp + 0x10], 0x100
push 0x100
call fcn.00405bf0
add esp, 4
mov dword [esp + 0x1c], eax
push str.SOFTWARETimeSink__Inc.AdGatewayChannels
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40e030
push ebx
call edi
push ebp
push ebx
call edi
mov ebp, dword [esp + 0x1c]
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push ebp
push str.ChannelID
push ebx
push 0x80000002
call fcn.00402ed0
add esp, 0x18
test al, al
je 0x4038dc
cmp byte [ebp], 0
je 0x4038dc
inc ebp
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x20]
lea eax, [ecx + eax + 1]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
mov dword [esp + 0x20], eax
jb 0x40388a
mov byte [esi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 0x40e030
push esi
call edi
push ebp
push esi
call edi
mov al, byte [esp + 0x28]
test al, al
je 0x4038d8
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push esi
call fcn.004064f0
add esp, 8
test eax, eax
je 0x4038d8
push 0
push esi
call edi
test eax, eax
jne 0x4038aa
call ebp
cmp eax, 0xb7
je 0x4038aa
mov byte [esi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov ebp, dword [esp + 0x1c]
push ebp
call fcn.004059c0
add esp, 4
push ebx
call fcn.004059c0
mov eax, dword [esp + 0x24]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret