joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4254e6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push ebx
push edi
push 0x41
pop ecx
xor ebx, ebx
push 0x41
xor eax, eax
mov byte [ebp - 0x230], bl
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
pop ecx
mov byte [ebp - 0x128], bl
lea edi, [ebp - 0x127]
rep stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push str.SoftwareWildTangentCDA_
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x20], 0x104
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x425549
xor eax, eax
jmp 0x42563b
push esi
push 5
pop eax
push ebx
push ebx
push eax
push ebx
mov dword [ebp - 0x10], eax
mov edi, str.FileName_d_d_d_d
lea eax, [ebp - 0x128]
push edi
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ebx
call fcn.00465bad
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0x18
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 4]
mov byte [ebp - 0x24], bl
call esi
test eax, eax
jne 0x42561d
push dword [ebp - 4]
inc dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 8]
push 9
pop eax
cmp dword [ebp - 8], eax
mov dword [ebp - 4], ebx
jle 0x4255d9
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], eax
mov dword [ebp - 8], ebx
jle 0x4255d9
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ebx
jle 0x4255d9
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
jg 0x42562d
push dword [ebp - 8]
lea eax, [ebp - 0x128]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push edi
push eax
call fcn.00465bad
add esp, 0x18
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x128]
push eax
push dword [ebp - 4]
mov byte [ebp - 0x24], bl
call esi
test eax, eax
je 0x42559e
cmp dword [ebp - 0x18], ebx
jne 0x425621
xor eax, eax
jmp 0x42563a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop edi
pop ebx
leave
ret
Function at 0x4259b2
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jbe 0x4259db
push ebx
push edi
movzx edi, byte [edx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4d4288]
inc edx
dec esi
jne 0x4259c3
pop edi
pop ebx
mov dword [ecx], eax
pop esi
ret 8

Function at 0x425a86
Capabilities:
Check for time delay via gettickcount
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x40], 0
je 0x425af5
push ebx
push edi
push dword [esi + 0x94]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, eax
jmp 0x425ab7
cmp dword [esi + 0x40], 0
je 0x425af3
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
sub eax, ebx
cmp eax, dword [esp + 0x10]
jb 0x425aa9
lea edi, [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x425ae8
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x40], 0
push edi
mov byte [esi + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
pop esi
ret 4

Function at 0x425c06
Capabilities:
Clear file content

Disassembly:
push esi
push edi
push 0x14
mov esi, edx
push 0
push esi
mov edi, ecx
call fcn.00464db0
and dword [esi + 4], 0
add esp, 0xc
mov dword [esi], 1
mov dword [esi + 8], 0x14
call fcn.00468608
mov edx, esi
mov ecx, edi
mov dword [esi + 0xc], eax
call fcn.00425b3a
test al, al
je 0x425c48
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov al, 1
pop edi
pop esi
ret

Function at 0x425c4b
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0x10
push esi
push edi
jb 0x425c5b
mov eax, dword [ebx + 0x24]
jmp 0x425c5e
lea eax, [ebx + 0x24]
push 0
mov edi, 0x80
push edi
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x425cb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x425cae
cmp dword [ebx + 0x38], 0x10
jb 0x425c95
mov ecx, dword [ebx + 0x24]
jmp 0x425c98
lea ecx, [ebx + 0x24]
push edi
push 2
push 3
mov edx, 0xc0000000
call fcn.00434c07
mov esi, eax
cmp esi, 0xffffffff
jne 0x425cb3
or eax, 0xffffffff
jmp 0x425ccf
mov edx, dword [esp + 0x10]
mov ecx, esi
call fcn.00425af9
test al, al
jne 0x425ccd
mov edx, dword [esp + 0x10]
mov ecx, esi
call fcn.00425c06
mov eax, esi
pop edi
pop esi
pop ebx
ret 4
Function at 0x425cd5
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
push 0xffffffffffffffff
push dword [edi]
mov dword [ebp - 8], edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
call fcn.00425c4b
mov esi, eax
cmp esi, 0xffffffff
je 0x425dc9
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
sub dword [ebp - 0x18], eax
cmp edi, 0x100000
jbe 0x425db0
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
jbe 0x425da4
sub eax, edi
mov edi, eax
push edi
call fcn.0047e898
cmp eax, ebx
pop ecx
mov dword [ebp + 0xc], eax
je 0x425d8a
push ebx
push ebx
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x425d8a
cmp dword [ebp - 4], edi
jne 0x425d8a
lea edx, [ebp - 0x1c]
mov ecx, esi
mov dword [ebp - 0x14], 0x14
call fcn.00425b3a
push ebx
lea eax, [ebp + 8]
push eax
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x425d94
lea edx, [ebp - 0x1c]
mov ecx, esi
call fcn.00425c06
cmp dword [ebp + 0xc], ebx
je 0x425dbd
push dword [ebp + 0xc]
call fcn.0047e89d
pop ecx
jmp 0x425dbd
lea edx, [ebp - 0x1c]
mov ecx, esi
call fcn.00425c06
jmp 0x425dbd
lea edx, [ebp - 0x1c]
mov ecx, esi
mov dword [ebp - 0x14], edi
call fcn.00425b3a
push esi
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 8]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 8
Function at 0x426d19
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x14]
push 0
mov dword [ebp - 4], ecx
add ebx, 0x15
push ebx
mov ecx, esi
call fcn.00426a41
mov esi, dword [esi + 4]
push 0x14
push 0
push esi
call fcn.00464db0
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
push 0x14
pop edx
mov dword [esi + 4], edx
mov dword [esi], ebx
mov al, byte [eax + 0x60]
mov byte [esi + 0x10], al
cmp dword [edi + 0x18], 0x10
mov ecx, dword [edi + 0x14]
lea eax, [edi + 4]
mov dword [ebp + 8], eax
jb 0x426d71
mov eax, dword [eax]
mov ebx, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
mov eax, dword [ebx + 4]
add eax, edx
inc ecx
push ecx
push dword [ebp + 0xc]
push eax
call fcn.00465760
add esp, 0xc
xor ecx, ecx
mov eax, dword [ebx + 4]
mov dl, byte [esi + 0x10]
lea eax, [ecx + eax + 0x14]
xor byte [eax], dl
inc ecx
cmp ecx, dword [edi + 0x14]
jbe 0x426d8c
cmp dword [edi + 0x18], 0x10
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp + 8]
jb 0x426dac
mov ecx, dword [ecx]
lea edx, [eax + 1]
call fcn.004259e1
pop edi
mov dword [esi + 8], eax
pop esi
pop ebx
leave
ret 0xc

Function at 0x427044
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov esi, ecx
call ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.00426265
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.00401cb0
and dword [ebp - 4], 0
call fcn.0042a9f6
test al, al
je 0x427093
lea eax, [ebp - 4]
push eax
mov ecx, esi
call fcn.00426dbe
test al, al
je 0x4270e7
cmp dword [ebp - 4], 0
jne 0x42709c
cmp byte [esi + 0x85], 0
jne 0x4270e7
lea edi, [esi + 0x90]
cmp dword [edi], 0xffffffff
je 0x4270b0
call ebx
sub eax, dword [ebp - 8]
cmp eax, dword [edi]
jae 0x4270e7
cmp byte [esi + 0x84], 0
je 0x4270e7
cmp dword [ebp - 4], 0
je 0x4270c7
mov eax, dword [esi + 0x88]
jmp 0x4270cd
mov eax, dword [esi + 0x8c]
push eax
push dword [esi + 0x94]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4270e7
cmp byte [esi + 0x84], 0
jne 0x427071
lea edi, [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x427103
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x40], 0
push edi
mov byte [esi + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x427246
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp byte [esi + 0x3c], 0
je 0x427256
xor al, al
jmp 0x4272b8
mov eax, dword [ebp + 8]
mov dword [esi + 0x80], eax
mov al, byte [ebp + 0xc]
mov byte [esi + 0x84], al
mov al, byte [ebp + 0x10]
mov byte [esi + 0x85], al
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x88], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x8c], eax
mov eax, dword [ebp + 0x1c]
push 0x4aa18c
lea ecx, [esi + 0x64]
mov byte [esi + 0x3c], 1
mov dword [esi + 0x90], eax
call fcn.00401ab0
lea eax, [ebp + 0xc]
push eax
push 0
push esi
push 0x42723a
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x40], eax
mov al, 1
pop esi
pop ebp
ret 0x18

Function at 0x427423
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x48faa1
call fcn.0046862c
sub esp, 0x164
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], esi
push esi
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x20], 0xf
call fcn.00401b80
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 4], esi
jb 0x42745f
mov eax, dword [eax + 4]
jmp 0x427462
add eax, 4
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [ebp + 0x10]
xor ebx, ebx
inc ebx
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], bl
mov dword [ebp + 0xc], 0xff
mov dword [ebp - 0x18], ebx
jb 0x427496
mov eax, dword [eax + 4]
jmp 0x427499
add eax, 4
lea ecx, [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x170]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push esi
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, esi
je 0x4274cb
mov dword [ebp - 0x1c], str.Unable_to_get_the_value_from_the_registry
push 0x4c186c
lea eax, [ebp - 0x1c]
jmp 0x42754d
lea eax, [ebp - 0x170]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401ab0
push dword [ebp - 0x14]
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x38]
push eax
call fcn.00408e90
push esi
push ebx
lea ecx, [ebp - 0x38]
call fcn.00401cb0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc
push eax
call fcn.00465b2b
int3
Function at 0x427559
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x48fab3
call fcn.0046862c
sub esp, 0x128
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
push edi
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x1c], 0xf
call fcn.00401b80
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 4], edi
jb 0x427590
mov eax, dword [eax + 4]
jmp 0x427593
add eax, 4
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 0x18], 0xff
mov dword [ebp - 0x10], 1
jb 0x4275c5
mov eax, dword [eax + 4]
jmp 0x4275c8
add eax, 4
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x134]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push edi
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
lea ecx, [ebp - 0x34]
je 0x4275f0
push 0x4a9a26
jmp 0x4275f7
lea eax, [ebp - 0x134]
push eax
call fcn.00401ab0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x34]
push eax
call fcn.00408e90
push edi
push 1
lea ecx, [ebp - 0x34]
call fcn.00401cb0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword fs:[0], ecx
leave
ret 0xc

Function at 0x42762e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and dword [ebp - 4], 0
push esi
push edi
mov esi, ecx
call fcn.004272f2
test al, al
mov edi, 0x4a9a26
je 0x4276a0
cmp dword [esi + 0x3c], 0x10
jb 0x427658
mov esi, dword [esi + 0x28]
jmp 0x42765b
add esi, 0x28
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0x10
jb 0x427669
mov eax, dword [eax + 4]
jmp 0x42766c
add eax, 4
push esi
push 0xff
lea ecx, [ebp - 0x104]
push ecx
push edi
push eax
push str.SKUInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x104]
push eax
call fcn.00465aa0
test eax, eax
pop ecx
jle 0x4276a0
lea eax, [ebp - 0x104]
push eax
jmp 0x4276a1
push edi
mov ecx, dword [ebp + 8]
call fcn.00401820
mov eax, dword [ebp + 8]
pop edi
pop esi
leave
ret 8
Function at 0x42a6b5
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov esi, ecx
xor ebx, ebx
push edi
push str.SENSAPI.DLL
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 8], ebx
call ebp
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi], eax
je 0x42a6ef
push str.IsNetworkAlive
push eax
call edi
mov dword [esi + 8], eax
push str.WININET.DLL
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
call ebp
cmp eax, ebx
mov dword [esi + 4], eax
je 0x42a73b
push str.InternetGetConnectedStateExA
push eax
call edi
push 0x4aabe4
push dword [esi + 4]
mov dword [esi + 0xc], eax
call edi
push 0x4aabd0
push dword [esi + 4]
mov dword [esi + 0x10], eax
call edi
push str.InternetGetConnectedStateA
push dword [esi + 4]
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x42a742
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SoftwareWildTangent
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x42a770
push 2
pop eax
leave
ret
push ebx
mov ebx, dword [ebp - 4]
push esi
push 4
pop esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0
push str.ConnectionStatusOverride
push ebx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [ebp - 8], esi
jne 0x42a7a9
test eax, eax
jne 0x42a7a9
mov esi, dword [ebp - 0x10]
cmp esi, 3
jb 0x42a7ac
push 2
pop esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x42a8be
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
push ebx
lea eax, [ebp - 0x290]
push eax
push 0x101
xor bl, bl
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x42a8e3
xor al, al
jmp 0x42a94a
push 0x100
lea eax, [ebp - 0x100]
push eax
call sub.WS2_32.dll_gethostname
test eax, eax
jne 0x42a943
push esi
lea eax, [ebp - 0x100]
push eax
call sub.WS2_32.dll_gethostbyname
mov esi, eax
test esi, esi
je 0x42a942
cmp word [esi + 0xa], 4
jne 0x42a942
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x42a942
push edi
xor edi, edi
push dword [eax]
call sub.WS2_32.dll_ntohl
test eax, eax
je 0x42a930
cmp eax, 0x7f000001
jne 0x42a93f
mov eax, dword [esi + 0xc]
add edi, 4
mov eax, dword [edi + eax]
test eax, eax
jne 0x42a91e
jmp 0x42a941
mov bl, 1
pop edi
pop esi
call sub.WS2_32.dll_WSACleanup
mov al, bl
pop ebx
leave
ret
Function at 0x42fb26
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x3b0]
mov edi, 0xac
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x3b0]
call fcn.0042f9d0
mov ecx, dword [esi + 0x3b0]
xor eax, eax
mov dword [ecx + 0xa8], eax
mov ecx, dword [esi + 0x3b0]
mov byte [ecx + 0x102], al
cmp dword [esi + 0x3a0], eax
jne 0x42fb9e
lea ecx, [ebp - 4]
push ecx
push eax
push dword [esi + 0x3b0]
mov dword [esi + 0x3a8], 1
push 0x42f9f1
push 0xfa0
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x3a0], eax
mov eax, dword [esi + 0x3b0]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
leave
ret

Function at 0x431096
Capabilities:
Terminate thread

Disassembly:
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x3b0]
mov edi, 0xac
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x3a0]
test eax, eax
jne 0x430edd
mov eax, dword [esi + 0x3b0]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x430f09
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x3b0]
and dword [esi + 0x3a0], 0
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esi + 0x3b0]
mov ecx, esi
call fcn.00430b1f
pop edi
pop esi
ret
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x3b0]
mov edi, 0xac
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x3b0]
add eax, edi
cmp dword [esi + 0x3a0], 0
push eax
jne 0x4310d0
mov byte [esi + 0x390], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
ret
mov dword [esi + 0x3a8], 4
mov dword [esi + 0x3ac], 2
mov byte [esi + 0x3c], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x7d0
mov ecx, esi
call fcn.0042f6dc
lea eax, [esi + 0x390]
cmp byte [eax], 0
jne 0x4310cd
pop edi
mov ecx, esi
mov byte [eax], 1
pop esi
jmp 0x430eaa
Function at 0x434a7b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 1
xor ebx, ebx
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, edx
mov edi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x434ad9
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push ebx
push str.ProgramFilesDir
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x434ad9
cmp esi, ebx
je 0x434ad2
mov byte [edi + esi - 1], bl
mov dword [ebp - 8], 1
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0x434aea
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret

Function at 0x434c6d
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, 0x490df8
call fcn.0046862c
sub esp, 0x124
push esi
push edi
xor esi, esi
mov edi, ecx
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x10], 0xf
call fcn.00401b80
push 1
push 0x26
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x434cd9
mov edx, 0x104
lea ecx, [ebp - 0x130]
call fcn.00434a7b
test eax, eax
lea eax, [ebp - 0x130]
jne 0x434cdf
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x434ce2
lea eax, [ebp - 0x130]
push eax
jmp 0x434ce7
push 0x4ab3e8
lea ecx, [ebp - 0x28]
call fcn.00401ab0
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.00408e90
push esi
push 1
lea ecx, [ebp - 0x28]
call fcn.00401cb0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x434eef
Capabilities:
Create directory

Disassembly:
mov eax, 0x490df8
call fcn.0046862c
sub esp, 0x1c
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x434f0f
call fcn.00434e8c
test al, al
je 0x434f13
mov al, 1
jmp 0x434f65
push ebx
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.00401660
mov eax, dword [ebp - 0x14]
and dword [ebp - 4], 0
cmp eax, dword [esi + 0x14]
jne 0x434f35
cmp dword [esi + 0x18], 0x10
jb 0x434f45
mov esi, dword [esi + 4]
jmp 0x434f48
lea ecx, [ebp - 0x28]
call fcn.00434eef
test al, al
jne 0x434f2a
xor bl, bl
jmp 0x434f56
add esi, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne bl
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401cb0
mov al, bl
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
cmp dword [ecx + 0x18], 0x10
jb 0x43a701
mov ecx, dword [ecx + 4]
jmp 0x43a704
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43a717
test al, 0x10
je 0x43a717
mov al, 1
ret
xor al, al
ret