joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b8c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x40b8e4
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x40b8f9
cmp dword [eax], 0
je 0x40b8f9
add eax, 4
pop esi
pop edi
ret
push edi
call fcn.0041f7b0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x40b8d9
mov eax, dword [edi]
test eax, eax
je 0x40b966
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x40b97b
mov esi, eax
test eax, eax
jne 0x40b93c
push 4
push 0xc
call fcn.00401390
add esp, 8
test eax, eax
je 0x40b98b
mov dword [eax], 0
mov dword [eax + 8], edi
mov esi, eax
mov eax, dword [edi]
test eax, eax
je 0x40b980
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40b955
mov ecx, dword [eax]
mov dword [eax], 0
test ecx, ecx
je 0x40b957
mov ecx, dword [eax + 4]
jmp 0x40b957
xor ecx, ecx
mov dword [esi], 1
lea eax, [esi + 4]
mov dword [esi + 4], ecx
pop esi
pop edi
ret
push edi
call fcn.0041f7b0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x40b90c
xor eax, eax
pop esi
pop edi
ret
push edi
call fcn.0041f7b0
add esp, 4
jmp 0x40b934
push 4
push 0xc
call fcn.00420310
add esp, 8
ud2

Function at 0x40b9a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x40b9c5
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x40b9da
cmp byte [eax + 4], 0
je 0x40b9da
add eax, 5
pop esi
pop edi
ret
push edi
call fcn.0041f7b0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x40b9b9
mov eax, dword [edi]
test eax, eax
je 0x40ba40
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x40ba55
mov esi, eax
test eax, eax
jne 0x40ba1a
push 4
push 8
call fcn.00401390
add esp, 8
test eax, eax
je 0x40ba65
mov dword [eax], edi
mov byte [eax + 4], 0
mov esi, eax
mov eax, dword [edi]
test eax, eax
je 0x40ba5a
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [esp + 0x10]
xor ecx, ecx
test eax, eax
je 0x40ba33
cmp byte [eax], 0
mov byte [eax], 0
movzx eax, byte [eax + 1]
cmove eax, ecx
mov ecx, eax
mov byte [esi + 4], 1
lea eax, [esi + 5]
mov byte [esi + 5], cl
pop esi
pop edi
ret
push edi
call fcn.0041f7b0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x40b9ed
xor eax, eax
pop esi
pop edi
ret
push edi
call fcn.0041f7b0
add esp, 4
jmp 0x40ba12
push 4
push 8
call fcn.00420310
add esp, 8
ud2
Function at 0x410710
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x43c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x410ff0
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov esi, 0x200
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 2
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x2c], 0
mov eax, dword [eax + 4]
mov dword [ebp - 0x38], eax
cmp esi, 0x201
jae 0x4107a0
jmp 0x41078e
jbe 0x410829
cmp esi, 0x201
jae 0x4107a0
lea edi, [ebp - 0x448]
mov dword [ebp - 0x28], 0x200
mov ebx, esi
jmp 0x4107d1
mov ebx, dword [ebp - 0x20]
sub esi, ebx
je 0x4107c5
mov dword [ebp - 0x10], 0
push esi
push ebx
lea eax, [ebp - 0x34]
push eax
call fcn.004201c0
add esp, 0xc
mov ebx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x24], ecx
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push edi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x4107f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41088c
cmp esi, ebx
jne 0x410780
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4108ab
lea esi, [ebx + ebx]
test ebx, ebx
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x41078e
jmp 0x4107a0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], 0
cmp esi, eax
ja 0x4108c8
lea eax, [ebp - 0x48]
push esi
push edi
push eax
call fcn.0040f9b0
add esp, 0xc
movsd xmm0, qword [ebp - 0x48]
mov esi, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x40]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x410876
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.004013a0
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x43c
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov dword [esi + 4], eax
mov dword [esi], 0
mov byte [esi + 0xc], 2
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x410866
jmp 0x410876
mov dword [ebp - 0x10], 0
push 0x424aa0
push 0x28
push str.internal_error:_entered_unreachable_code
call fcn.00420510
add esp, 0xc
jmp 0x4108d7
push 0x424ab0
push eax
push esi
call fcn.004207d0
add esp, 0xc
ud2
Function at 0x410df0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x438
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x411010
mov esi, 0x200
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 2
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x2c], 0
cmp esi, 0x201
jae 0x410e80
jmp 0x410e6e
jbe 0x410f06
cmp esi, 0x201
jae 0x410e80
lea edi, [ebp - 0x444]
mov dword [ebp - 0x28], 0x200
mov ebx, esi
jmp 0x410eb1
mov ebx, dword [ebp - 0x20]
sub esi, ebx
je 0x410ea5
mov dword [ebp - 0x10], 0
push esi
push ebx
lea eax, [ebp - 0x34]
push eax
call fcn.004201c0
add esp, 0xc
mov ebx, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x24], ecx
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
jne 0x410ed5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x410f69
cmp esi, ebx
jne 0x410e60
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x410f88
lea esi, [ebx + ebx]
test ebx, ebx
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x410e6e
jmp 0x410e80
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], 0
cmp esi, eax
ja 0x410fa5
lea eax, [ebp - 0x44]
push esi
push edi
push eax
call fcn.0040f9b0
add esp, 0xc
movsd xmm0, qword [ebp - 0x44]
mov esi, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x3c]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x410f53
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.004013a0
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x438
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov dword [esi + 4], eax
mov dword [esi], 0
mov byte [esi + 0xc], 2
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x410f43
jmp 0x410f53
mov dword [ebp - 0x10], 0
push 0x424aa0
push 0x28
push str.internal_error:_entered_unreachable_code
call fcn.00420510
add esp, 0xc
jmp 0x410fb4
push 0x424ab0
push eax
push esi
call fcn.004207d0
add esp, 0xc
ud2
Function at 0x41dff0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41e048
mov esi, dword [esp + 0x18]
lea edi, [edx + eax*2]
xor ebx, ebx
movzx eax, byte [edx + 1]
cmp byte [edx], ch
lea edx, [edx + 2]
lea ebp, [ebx + eax]
jne 0x41e040
cmp ebp, ebx
jb 0x41e0c2
cmp ebp, dword [esp + 0x1c]
ja 0x41e0d3
add ebx, esi
nop word [eax + eax]
test eax, eax
je 0x41e042
dec eax
cmp byte [ebx], cl
lea ebx, [ebx + 1]
jne 0x41e030
jmp 0x41e09f
ja 0x41e048
cmp edx, edi
mov ebx, ebp
jne 0x41e005
mov edx, dword [esp + 0x24]
test edx, edx
je 0x41e0a3
mov esi, dword [esp + 0x20]
movzx ecx, cx
mov al, 1
add edx, esi
nop dword [eax + eax]
movzx ebx, byte [esi]
lea edi, [esi + 1]
test bl, bl
js 0x41e080
mov esi, edi
sub ecx, ebx
jns 0x41e097
jmp 0x41e0a5
cmp edi, edx
je 0x41e0ac
movzx edi, byte [esi + 1]
and ebx, 0x7f
add esi, 2
shl ebx, 8
or ebx, edi
sub ecx, ebx
js 0x41e0a5
xor al, 1
cmp esi, edx
jne 0x41e060
jmp 0x41e0a5
xor eax, eax
jmp 0x41e0a5
mov al, 1
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x426a30
push 0x2b
push str.called__Option::unwrap____on_a__None__valueC:Userslucak.rustup_toolchains_nightly_x86_64_pc_windows_msvclib_rustlib_src_rustlibrarycore_src_slicememchr.rs
call fcn.00420510
add esp, 0xc
ud2
push 0x426a20
push ebp
push ebx
call fcn.004207f0
add esp, 0xc
ud2
push 0x426a20
push dword [esp + 0x20]
push ebp
call fcn.004207d0
add esp, 0xc
ud2

Function at 0x41f164
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41f1a3
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41f1a3
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f1a3
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41f1a3
cmp dword [ecx + 0x74], 0xe
jbe 0x41f1a3
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41f7b0
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
mov edi, dword [esp + 0x30]
cmp dword [edi + 4], 0
je 0x41f82a
lea ebx, [edi + 0xc]
mov dword [esp + 4], 0
lea eax, [esp + 4]
push 0
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceBeginInitialize]
cmp eax, 1
mov dword [esp], eax
jne 0x41f865
cmp dword [esp + 4], 0
je 0x41f84c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x41f88b
mov esi, eax
inc eax
mov dword [edi], eax
mov eax, dword [0x42a164]
nop word [eax + eax]
mov dword [edi + 8], eax
lock cmpxchg dword [0x42a164], edi
jne 0x41f810
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
jmp 0x41f85c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x41f8d2
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [edi], ecx
jne 0x41f850
mov esi, dword [esp]
jmp 0x41f85c
mov esi, dword [edi]
jmp 0x41f85b
mov esi, eax
push dword [esp]
call dword [sym.imp.KERNEL32.dll_TlsFree]
dec esi
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
ret
mov dword [esp + 0x10], 0
lea eax, [esp + 8]
mov ecx, esp
push 0x421848
push eax
push 0x4217bc
push ecx
push 0
call fcn.0041fac0
add esp, 0x14
ud2
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
mov dword [esp + 0x10], 0x42186c
mov dword [esp + 0x14], 1
mov dword [esp + 8], 0
mov dword [esp + 0x18], str.assertion_failed:_self.is_char_boundary_new_len_C:Userslucak.rustup_toolchains_nightly_x86_64_pc_windows_msvclib_rustlib_src_rustlibrary_alloc_src_string.rs
mov dword [esp + 0x1c], 0
lea eax, [esp + 8]
push 0x421874
push eax
call fcn.00420450
add esp, 8
ud2
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0x42186c
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], str.assertion_failed:_self.is_char_boundary_new_len_C:Userslucak.rustup_toolchains_nightly_x86_64_pc_windows_msvclib_rustlib_src_rustlibrary_alloc_src_string.rs
mov dword [esp + 0x1c], 0
lea eax, [esp + 8]
mov ecx, esp
push 0x421888
push eax
push 0x421884
push ecx
push 1
call fcn.0041fb80
add esp, 0x14
ud2
Function at 0x4025e0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x514
lea eax, [ebp - 4]
push edi
xor edi, edi
push eax
push 0xf003f
push edi
push 0x401624
push 0x80000002
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4026b3
push ebx
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 8]
push edi
push eax
push edi
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4026a9
xor ebx, ebx
cmp dword [ebp - 8], edi
jbe 0x4026a9
lea eax, [ebp - 0x514]
push 0x4015e4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x100
lea eax, [ebp - 0x114]
push edi
push eax
mov dword [ebp - 0xc], 0x100
call fcn.00406e48
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push edi
push edi
lea eax, [ebp - 0xc]
push edi
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4026a3
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x514]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x514]
push eax
call fcn.004026b8
pop ecx
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x402634
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
xor al, al
pop edi
leave
ret

Function at 0x4026b8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push edi
je 0x402793
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call edi
test eax, eax
je 0x402793
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 0xf003f
push ebx
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402793
push esi
mov esi, 0x100
push esi
lea eax, [ebp - 0x104]
push ebx
push eax
call fcn.00406e48
add esp, 0xc
lea eax, [ebp + 8]
mov dword [ebp + 8], esi
push eax
lea eax, [ebp - 0x104]
push eax
push ebx
push ebx
push 0x401684
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
pop esi
jne 0x402793
lea eax, [ebp - 0x504]
push 0x401660
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 8]
mov byte [ebp + eax - 0x104], bl
lea eax, [ebp - 0x104]
push eax
call edi
test eax, eax
je 0x402793
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x504]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x504]
push eax
call fcn.00402797
pop ecx
pop edi
pop ebx
leave
ret
Function at 0x402797
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x4028f8
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
test eax, eax
je 0x4028f8
lea eax, [ebp - 4]
mov ebx, 0x80000002
push eax
push 0xf003f
push edi
mov dword [ebp - 4], edi
push dword [ebp + 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4028f8
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp - 0x804]
push eax
push edi
push edi
mov edi, 0x401560
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [0x407870]
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x404]
push 0x401690
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [0x407874]
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x404]
push eax
call esi
inc eax
push eax
lea eax, [ebp - 0x404]
push eax
push 1
push 0
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [ebp - 0x404]
push eax
call esi
inc eax
push eax
lea eax, [ebp - 0x404]
push eax
push 1
push 0
push 0x40156c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [0x407874]
lea eax, [ebp - 0x404]
push dword [0x407870]
push 0x40157c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x404]
push eax
call esi
inc eax
push eax
lea eax, [ebp - 0x404]
push eax
push 1
push 0x40156c
push 0x401584
push ebx
call fcn.004063d2
add esp, 0x18
lea eax, [ebp - 0x404]
push eax
call esi
inc eax
push eax
lea eax, [ebp - 0x404]
push eax
push 1
push edi
push 0x401584
push ebx
call fcn.004063d2
add esp, 0x18
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4028fd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
push 0x410
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.00406e48
add esp, 0xc
lea eax, [ebp - 0x410]
push 0
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x40298a
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp - 0x410]
push eax
call esi
test eax, eax
je 0x40298a
lea eax, [ebp - 0x410]
push eax
call esi
cmp byte [ebp + eax - 0x411], 0x5c
jne 0x40296b
lea eax, [ebp - 0x410]
push eax
call esi
and byte [ebp + eax - 0x411], 0
lea eax, [ebp - 0x410]
push 0x401694
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x410]
push eax
call fcn.0040298d
pop ecx
pop esi
leave
ret
Function at 0x40298d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2000
push ebx
mov ebx, 0x1000
push esi
push ebx
lea eax, [ebp - 0x1000]
push 0
push eax
call fcn.00406e48
add esp, 0xc
lea eax, [ebp - 0x1000]
push dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
cmp byte [ebp - 0x1000], 0
lea esi, [ebp - 0x1000]
je 0x402a2d
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push ebx
lea eax, [ebp - 0x2000]
push 0
push eax
call fcn.00406e48
add esp, 0xc
push dword [ebp + 8]
push dword [0x407870]
push 0x4016e8
push esi
call edi
push dword [ebp + 8]
push dword [0x407874]
push 0x4016d8
push esi
call edi
push dword [ebp + 8]
push 0x4016d4
push 0x4016c4
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [esi + eax + 1], 0
lea esi, [esi + eax + 1]
jne 0x4029d6
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402a31
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
lea eax, [ebp - 4]
push ebx
xor ebx, ebx
push eax
push 0xf003f
push ebx
push 0x4015b8
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402aeb
push esi
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 0x808]
mov edi, 0x401560
push eax
push ebx
push ebx
push edi
push dword [ebp - 4]
mov dword [ebp - 8], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [0x407870]
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x408]
push 0x401690
push eax
call esi
push dword [0x407874]
lea eax, [ebp - 0x408]
push eax
call esi
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x408]
push eax
push 1
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor al, al
pop ebx
leave
ret
Function at 0x402af0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x514
lea eax, [ebp - 4]
push edi
xor edi, edi
push eax
push 0xf003f
push edi
push 0x401710
push 0x80000001
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402bc3
push ebx
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 8]
push edi
push eax
push edi
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x402bb9
xor ebx, ebx
cmp dword [ebp - 8], edi
jbe 0x402bb9
lea eax, [ebp - 0x514]
push 0x4016f8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x100
lea eax, [ebp - 0x114]
push edi
push eax
mov dword [ebp - 0xc], 0x100
call fcn.00406e48
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push edi
push edi
lea eax, [ebp - 0xc]
push edi
push eax
lea eax, [ebp - 0x114]
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x402bb3
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x514]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x514]
push eax
call fcn.00402bc6
pop ecx
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x402b44
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
pop edi
leave
ret

Function at 0x402bc6
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
lea eax, [ebp - 4]
push edi
xor edi, edi
push eax
push 0xf003f
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402caf
push esi
mov esi, 0x400
push esi
lea eax, [ebp - 0x404]
push edi
push eax
call fcn.00406e48
add esp, 0xc
lea eax, [ebp + 8]
mov dword [ebp + 8], esi
mov esi, 0x401728
push eax
lea eax, [ebp - 0x404]
push eax
push edi
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402ca5
mov al, byte [0x407884]
push dword [ebp + 8]
mov byte [ebp - 0x3f8], al
mov al, byte [0x407880]
mov byte [ebp - 0x3f7], al
mov al, byte [0x40787c]
mov byte [ebp - 0x3f6], al
mov al, byte [0x407878]
mov byte [ebp - 0x3f5], al
mov al, byte [0x407894]
mov byte [ebp - 0x3f4], al
mov al, byte [0x407890]
mov byte [ebp - 0x3f3], al
mov al, byte [0x40788c]
mov byte [ebp - 0x3f2], al
mov al, byte [0x407888]
mov byte [ebp - 0x3f1], al
lea eax, [ebp - 0x404]
push eax
push 3
push edi
push esi
push dword [ebp - 4]
mov byte [ebp - 0x400], 2
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
leave
ret

Function at 0x402cb2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x402cdd
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
push esi
setne bl
call fcn.00405dee
pop ecx
test bl, bl
pop ebx
je 0x402cdd
test eax, eax
je 0x402cdd
mov al, 1
pop esi
ret
xor al, al
pop esi
ret