joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407c90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4760a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x4b9314]
xor eax, esp
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
xor eax, eax
push esi
push edi
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], eax
mov word [esp + 0x18], ax
mov esi, dword [esp + 0x48]
mov dword [esp + 0x3c], eax
mov eax, esi
and eax, 0xf
mov dword [esp + 0x10], eax
call fcn.00470546
mov ebx, dword [eax + 0xc]
push edi
call fcn.00407150
add esp, 4
push eax
shr esi, 4
inc esi
movzx eax, si
push eax
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x407d3d
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x407d3d
mov edi, eax
xor ecx, ecx
nop
mov ax, word [edi]
add edi, 2
test ax, ax
je 0x407d37
movzx ebx, ax
cmp ecx, dword [esp + 0x10]
je 0x407d90
lea edi, [edi + ebx*2]
inc ecx
cmp ecx, 0x10
jl 0x407d20
xor eax, eax
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], eax
mov ecx, ebp
mov word [ebp + 4], ax
call fcn.00404a60
cmp dword [esp + 0x2c], 8
jb 0x407d70
mov edx, dword [esp + 0x18]
push edx
call fcn.00466c9d
add esp, 4
mov ecx, dword [esp + 0x34]
pop edi
pop esi
mov eax, ebp
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x24]
pop ebx
xor ecx, esp
call fcn.0044c1c4
add esp, 0x30
ret
lea ecx, [ebx + ebx + 2]
push ecx
call fcn.00466c98
push ebx
mov esi, eax
push edi
push esi
call fcn.0044cd02
xor edi, edi
push esi
mov word [esi + ebx*2], di
call fcn.0044c6ad
add esp, 0x14
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00404b70
push esi
call fcn.00466c9d
add esp, 4
push 0xffffffffffffffff
push edi
lea edx, [esp + 0x1c]
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], edi
push edx
mov ecx, ebp
mov word [ebp + 4], di
call fcn.00404a60
cmp dword [esp + 0x2c], 8
jb 0x407d70
mov eax, dword [esp + 0x18]
push eax
jmp 0x407d68

Function at 0x409fd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x409fe9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x409ffd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40a01e
cmp esi, eax
jae 0x409ff7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40a010
cmp esi, eax
jae 0x409ff7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x40d070
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8
Function at 0x40d090
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
mov edx, dword [esi]
inc eax
push eax
mov eax, dword [esp + 0x18]
push edi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 0xc

Function at 0x40d0c0
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x40d0d2
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x40d660
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x4b9314]
xor eax, esp
push ebp
push esi
push edi
mov edi, dword [esp + 0x12c]
mov ebp, ecx
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x130], eax
mov eax, dword [ebp]
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x40d6ce
test ecx, ecx
je 0x40d6c0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x40d6dc
test ecx, ecx
je 0x40d781
push ecx
jmp 0x40d77b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x40d74e
jmp 0x40d710
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.0040d660
mov edi, eax
test edi, edi
jne 0x40d79d
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x40d710
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40d765
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40d781
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0044c1c4
add esp, 0x11c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40d7ac
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x40d783
Function at 0x411cc0
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 0x411d23
xor eax, eax
jmp 0x411e15
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.0044dcc0
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 0x411df7
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 0x411db3
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], eax
mov dword [ebp - 8], ebx
jle 0x411db3
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ebx
jle 0x411db3
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
jg 0x411e07
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.0044dcc0
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 0x411d78
cmp dword [ebp - 0x18], ebx
jne 0x411dfb
xor eax, eax
jmp 0x411e14
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 0x41218c
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 0x4121b5
push ebx
push edi
movzx edi, byte [edx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4ba8c8]
inc edx
dec esi
jne 0x41219d
pop edi
pop ebx
mov dword [ecx], eax
pop esi
ret 8

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

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x40], 0
je 0x4122cf
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 0x412291
cmp dword [esi + 0x40], 0
je 0x4122cd
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
sub eax, ebx
cmp eax, dword [esp + 0x10]
jb 0x412283
lea edi, [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4122c2
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 0x4123c7
Capabilities:
Clear file content

Disassembly:
push esi
push edi
push 0x14
mov esi, edx
push 0
push esi
mov edi, ecx
call fcn.0044dc60
and dword [esi + 4], 0
add esp, 0xc
mov dword [esi], 1
mov dword [esi + 8], 0x14
call fcn.0044dd25
mov edx, esi
mov ecx, edi
mov dword [esi + 0xc], eax
call fcn.00412314
test al, al
je 0x412409
push edi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov al, 1
pop edi
pop esi
ret

Function at 0x412425
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0x10
push esi
push edi
jb 0x412435
mov eax, dword [ebx + 0x24]
jmp 0x412438
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 0x41248d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x412488
cmp dword [ebx + 0x38], 0x10
jb 0x41246f
mov ecx, dword [ebx + 0x24]
jmp 0x412472
lea ecx, [ebx + 0x24]
push edi
push 2
push 3
mov edx, 0xc0000000
call fcn.004169e8
mov esi, eax
cmp esi, 0xffffffff
jne 0x41248d
or eax, 0xffffffff
jmp 0x4124a9
mov edx, dword [esp + 0x10]
mov ecx, esi
call fcn.004122d3
test al, al
jne 0x4124a7
mov edx, dword [esp + 0x10]
mov ecx, esi
call fcn.004123c7
mov eax, esi
pop edi
pop esi
pop ebx
ret 4
Function at 0x4124af
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.00412425
mov esi, eax
cmp esi, 0xffffffff
je 0x4125a3
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
sub dword [ebp - 0x18], eax
cmp edi, 0x100000
jbe 0x41258a
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
jbe 0x41257e
sub eax, edi
mov edi, eax
push edi
call fcn.00466c98
cmp eax, ebx
pop ecx
mov dword [ebp + 0xc], eax
je 0x412564
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 0x412564
cmp dword [ebp - 4], edi
jne 0x412564
lea edx, [ebp - 0x1c]
mov ecx, esi
mov dword [ebp - 0x14], 0x14
call fcn.00412314
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 0x41256e
lea edx, [ebp - 0x1c]
mov ecx, esi
call fcn.004123c7
cmp dword [ebp + 0xc], ebx
je 0x412597
push dword [ebp + 0xc]
call fcn.00466c9d
pop ecx
jmp 0x412597
lea edx, [ebp - 0x1c]
mov ecx, esi
call fcn.004123c7
jmp 0x412597
lea edx, [ebp - 0x1c]
mov ecx, esi
mov dword [ebp - 0x14], edi
call fcn.00412314
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 0x413396
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.0041311b
mov esi, dword [esi + 4]
push 0x14
push 0
push esi
call fcn.0044dc60
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 0x4133ee
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.0044d890
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 0x413409
cmp dword [edi + 0x18], 0x10
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp + 8]
jb 0x413429
mov ecx, dword [ecx]
lea edx, [eax + 1]
call fcn.004121bb
pop edi
mov dword [esi + 8], eax
pop esi
pop ebx
leave
ret 0xc

Function at 0x4136c1
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.00412a98
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.004010c0
and dword [ebp - 4], 0
call fcn.00416772
test al, al
je 0x413710
lea eax, [ebp - 4]
push eax
mov ecx, esi
call fcn.0041343b
test al, al
je 0x413764
cmp dword [ebp - 4], 0
jne 0x413719
cmp byte [esi + 0x85], 0
jne 0x413764
lea edi, [esi + 0x90]
cmp dword [edi], 0xffffffff
je 0x41372d
call ebx
sub eax, dword [ebp - 8]
cmp eax, dword [edi]
jae 0x413764
cmp byte [esi + 0x84], 0
je 0x413764
cmp dword [ebp - 4], 0
je 0x413744
mov eax, dword [esi + 0x88]
jmp 0x41374a
mov eax, dword [esi + 0x8c]
push eax
push dword [esi + 0x94]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x413764
cmp byte [esi + 0x84], 0
jne 0x4136ee
lea edi, [esi + 8]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x413780
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 0x416410
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 0x41644a
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 0x416496
push str.InternetGetConnectedStateExA
push eax
call edi
push 0x496374
push dword [esi + 4]
mov dword [esi + 0xc], eax
call edi
push 0x496360
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 0x41649d
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 0x4164cb
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 0x416504
test eax, eax
jne 0x416504
mov esi, dword [ebp - 0x10]
cmp esi, 3
jb 0x416507
push 2
pop esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x416619
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 0x41663e
xor al, al
jmp 0x4166a5
push 0x100
lea eax, [ebp - 0x100]
push eax
call sub.WS2_32.dll_gethostname
test eax, eax
jne 0x41669e
push esi
lea eax, [ebp - 0x100]
push eax
call sub.WS2_32.dll_gethostbyname
mov esi, eax
test esi, esi
je 0x41669d
cmp word [esi + 0xa], 4
jne 0x41669d
mov eax, dword [esi + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x41669d
push edi
xor edi, edi
push dword [eax]
call sub.WS2_32.dll_ntohl
test eax, eax
je 0x41668b
cmp eax, 0x7f000001
jne 0x41669a
mov eax, dword [esi + 0xc]
add edi, 4
mov eax, dword [edi + eax]
test eax, eax
jne 0x416679
jmp 0x41669c
mov bl, 1
pop edi
pop esi
call sub.WS2_32.dll_WSACleanup
mov al, bl
pop ebx
leave
ret
Function at 0x4167d2
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 0x416830
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 0x416830
cmp esi, ebx
je 0x416829
mov byte [edi + esi - 1], bl
mov dword [ebp - 8], 1
cmp dword [ebp - 4], ebx
pop edi
pop esi
pop ebx
je 0x416841
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret

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

Disassembly:
mov eax, 0x476ef9
call fcn.0044dd48
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.004010a0
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 0x416aba
mov edx, 0x104
lea ecx, [ebp - 0x130]
call fcn.004167d2
test eax, eax
lea eax, [ebp - 0x130]
jne 0x416ac0
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x416ac3
lea eax, [ebp - 0x130]
push eax
jmp 0x416ac8
push 0x4964d8
lea ecx, [ebp - 0x28]
call fcn.004021a0
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.004020f0
push esi
push 1
lea ecx, [ebp - 0x28]
call fcn.004010c0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x416c62
Capabilities:
Create directory

Disassembly:
mov eax, 0x476ef9
call fcn.0044dd48
sub esp, 0x1c
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x416c82
call fcn.00416bff
test al, al
je 0x416c86
mov al, 1
jmp 0x416cd8
push ebx
mov edx, esi
lea ecx, [ebp - 0x28]
call fcn.00401ad0
mov eax, dword [ebp - 0x14]
and dword [ebp - 4], 0
cmp eax, dword [esi + 0x14]
jne 0x416ca8
cmp dword [esi + 0x18], 0x10
jb 0x416cb8
mov esi, dword [esi + 4]
jmp 0x416cbb
lea ecx, [ebp - 0x28]
call fcn.00416c62
test al, al
jne 0x416c9d
xor bl, bl
jmp 0x416cc9
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.004010c0
mov al, bl
pop ebx
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x418e16
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 0x418bb4
mov eax, dword [esi + 0x3b0]
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x418be0
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.004187f6
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 0x418e50
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.00417217
lea eax, [esi + 0x390]
cmp byte [eax], 0
jne 0x418e4d
pop edi
mov ecx, esi
mov byte [eax], 1
pop esi
jmp 0x418b81
Function at 0x4211bb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x18], 0x10
jb 0x4211c6
mov ecx, dword [ecx + 4]
jmp 0x4211c9
add ecx, 4
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4211dc
test al, 0x10
je 0x4211dc
mov al, 1
ret
xor al, al
ret
Function at 0x4269a0
Capabilities:
Parse pe header

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
push 0xffffffffffffffff
mov esi, ecx
push 0
push ebx
lea ecx, [esi + 0x18]
call fcn.004014b0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edi, [esi + 8]
push edi
push ebx
call fcn.004267e0
add esp, 0x10
test al, al
mov byte [esi + 4], al
je 0x426a12
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x4269df
xor eax, eax
jmp 0x4269e4
mov eax, dword [edi + 8]
sub eax, ecx
cmp eax, 0x40
mov ecx, dword [esi + 0xc]
jb 0x426a12
cmp word [ecx], 0x5a4d
jne 0x426a12
mov edx, dword [ecx + 0x3c]
lea edi, [edx + 0xf8]
cmp eax, edi
jb 0x426a12
cmp dword [edx + ecx], 0x4550
jne 0x426a12
push ecx
lea ecx, [esi + 0x34]
call fcn.00426700
mov al, byte [esi + 4]
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x426a20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x478766
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [esi], 0x497b7c
mov dword [esp + 4], esi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov dword [esp + 0x10], eax
mov byte [esi + 0x1c], al
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov eax, dword [esp + 0x20]
push eax
push ecx
push edx
mov ecx, esi
mov byte [esp + 0x1c], 1
call fcn.004269a0
mov ecx, dword [esp + 8]
mov byte [esi + 4], al
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc