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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push edi
mov ebx, 0xf003f
push eax
push ebx
push 0
mov edi, VariantInit
push 0x40a5a0
push edi
mov dword [ebp - 0xc], 0xa
call esi
test eax, eax
jne 0x405d8d
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x40a630
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x405de8
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push ebx
push 0
push 0x40a578
push edi
call esi
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x405dc2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push 0x40a570
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp dword [ebp - 8], edi
je 0x405dd0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x405dea
cmp dword [ebp - 4], edi
je 0x405de2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, 0x409
jmp 0x405e07
xor edi, edi
lea eax, [ebp - 0x18]
push eax
call fcn.00407337
cmp dword [ebp - 4], edi
pop ecx
mov esi, eax
je 0x405e04
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, si
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405e0c
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
lea eax, [ebp - 0x30]
mov ecx, dword [ebp + 8]
push esi
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call fcn.004042d5
add eax, 0x10
mov eax, dword [eax]
cmp eax, esi
je 0x405e41
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
lea ecx, [ebp - 0x30]
call fcn.00406293
mov ecx, dword [ebp + 8]
inc esi
push esi
lea eax, [ebp - 4]
push 1
push eax
mov dword [ebp - 4], 0x5c
call fcn.004066b9
cmp dword [0x40825c], eax
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
je 0x405f6c
xor esi, esi
inc eax
push esi
push eax
push esi
lea ecx, [ebp - 0x30]
push dword [ebp + 8]
mov dword [ebp - 0x24], 0x408250
mov dword [ebp - 0x1c], 0x408248
mov dword [ebp - 0x14], eax
call fcn.00406075
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0x408244
call fcn.004068d7
push esi
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x405f40
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], eax
call fcn.004068d7
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405ed8
test al, 0x10
jne 0x405f40
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
push 0x9011
call fcn.00405c51
lea ecx, [ebp - 0x30]
call fcn.00403d9b
mov esi, eax
mov ecx, esi
call fcn.004068d7
push dword [esi + 4]
lea ecx, [ebp - 0x10]
call fcn.00406e1e
push eax
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea esi, [ebx + 0x580]
add esp, 0xc
push dword [esi]
call edi
lea eax, [ebp - 0x134]
push 0xffffffffffffffff
push eax
call fcn.0040168c
pop ecx
mov dword [esi], eax
pop ecx
push 0x4b0
mov ecx, ebx
push dword [ebp - 4]
call fcn.00405c2a
lea ecx, [ebp - 0x30]
call fcn.00406293
push dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x5c
push 1
push eax
call fcn.004066b9
cmp dword [0x40825c], eax
jne 0x405e72
lea ecx, [ebp - 0xc]
call fcn.004016cb
push dword [ebp - 0x10]
call edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40737a
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x4073cc
push eax
call fcn.00401c7e
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4073cc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x40a614
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4073d0
xor al, al
jmp 0x407431
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x40a5f8
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
test eax, eax
je 0x40742f
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.00401c7e
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x40742f
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x40741d
mov al, 1
pop ebx
leave
ret 4

Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push 0
push 0x40103e
push 0
push 0x25
push eax
call dword [sym.imp.USER32.DLL_DialogBoxParamA]
or eax, eax
je 0x401036
push dword [section..bss]
push 0x402004
push 0x402044
push 0
call dword [sym.imp.USER32.DLL_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x401470
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
mov eax, edx
push esi
sub eax, ebx
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0x6d1dc
lea ebx, [ebx]
inc byte [ecx + 0x100]
movzx edi, byte [ecx + 0x100]
lea ebx, [ebx + 1]
movzx eax, byte [edi + ecx]
add byte [ecx + 0x101], al
movzx esi, byte [ecx + 0x101]
mov dl, byte [edi + ecx]
movzx eax, byte [esi + ecx]
mov byte [edi + ecx], al
mov byte [esi + ecx], dl
movzx eax, byte [ecx + 0x101]
movzx edx, byte [ecx + 0x100]
movzx eax, byte [eax + ecx]
add al, byte [edx + ecx]
mov edx, dword [ebp - 8]
movzx eax, al
movzx eax, byte [eax + ecx]
xor al, byte [edx + ebx - 1]
dec dword [ebp - 4]
mov byte [ebx - 1], al
jne 0x401490
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4020e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0
push 0
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
xor ebx, ebx
test edi, edi
jne 0x40210d
mov ecx, esi
call fcn.00402180
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
js 0x402172
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edi
or ecx, eax
jge 0x40212a
push edi
mov ecx, esi
call fcn.00402530
push edi
push dword [esi]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [esi]
test eax, eax
jne 0x402140
xor ecx, ecx
jmp 0x402152
push dword [eax - 8]
push eax
call fcn.004036ac
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x402172
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x402172
mov dword [eax - 0xc], ecx
mov eax, dword [esi]
pop edi
xor edx, edx
mov ebx, 1
mov word [eax + ecx*2], dx
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4
push 0x80070057
call fcn.00402bb0
int3

Function at 0x402a80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402a99
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402ad4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x402ad0
lea ebx, [ebx]
cmp esi, edx
jae 0x402ad4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x402ac0
cmp esi, edx
jb 0x402adb
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4076ce
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4140a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004049e7
mov dword [ebp - 0x14], eax
cmp dword [0x482f9c], edi
jne 0x4077bf
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x40774c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40789f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40789f
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40789f
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x482f9c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x482fa0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x482fa4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x482fac], eax
test eax, eax
je 0x4077bc
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x482fa8], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4077e4
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4077d7
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4077f9
push 4
pop eax
jmp 0x4078a1
cmp dword [ebp - 0x14], edi
je 0x4077f9
push dword [0x482f9c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4077de
mov eax, dword [0x482fa8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x407857
cmp dword [0x482fac], esi
je 0x407857
push eax
call ebx
push dword [0x482fac]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x407857
test eax, eax
je 0x407857
call ecx
test eax, eax
je 0x40784c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40784c
test byte [ebp - 8], 1
jne 0x407857
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x407887
mov eax, dword [0x482fa0]
cmp eax, esi
je 0x407884
push eax
call ebx
test eax, eax
je 0x407884
call eax
mov edi, eax
test edi, edi
je 0x407884
mov eax, dword [0x482fa4]
cmp eax, esi
je 0x407884
push eax
call ebx
test eax, eax
je 0x407884
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x482f9c]
call ebx
test eax, eax
je 0x40789f
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4078a1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402e19
leave
ret
Function at 0x403060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0xffffffff
jne 0x403075
xor eax, eax
jmp 0x403099
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x40e180
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x4a7740]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], 0
mov ax, word [0x497438]
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00453b10
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403700
mov edx, dword [ebp - 0x214]
or edx, 1
mov dword [ebp - 0x214], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450ba2
mov esp, ebp
pop ebp
ret

Function at 0x40e2b0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a548
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4a7740]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x238], 0
mov ax, word [0x497438]
mov word [ebp - 0x234], ax
push 0x206
push 0
lea ecx, [ebp - 0x232]
push ecx
call fcn.00453b10
add esp, 0xc
lea edx, [ebp - 0x234]
push edx
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x40e359
push 0x104
lea eax, [ebp - 0x234]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x497484
push 0x104
push 0x5c
lea ecx, [ebp - 0x234]
push ecx
call fcn.00423c60
add esp, 8
push eax
call fcn.00450f46
add esp, 0xc
lea edx, [ebp - 0x234]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00403700
mov dword [ebp - 4], 0
push str.kingsoft
lea ecx, [ebp - 0x2c]
call fcn.004085f0
push 0
lea ecx, [ebp - 0x2c]
call fcn.00403760
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.Kisaas_
lea ecx, [ebp - 0x2c]
call fcn.004085f0
push 0
lea ecx, [ebp - 0x2c]
call fcn.00403760
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00408ea0
mov ecx, dword [ebp - 0x238]
or ecx, 1
mov dword [ebp - 0x238], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403740
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00450ba2
mov esp, ebp
pop ebp
ret
Function at 0x40e440
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.00403760
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x40ecb0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b356
mov eax, dword fs:[0]
push eax
mov eax, 0x1144
call fcn.00461aa0
mov eax, dword [0x4a7740]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x114c], ecx
mov eax, dword [ebp - 0x114c]
add eax, 0x1c
push eax
lea ecx, [ebp - 0x14]
call fcn.00406f10
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x10bc]
call fcn.00449430
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xac]
call fcn.0044c480
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x114c]
add ecx, 0x24
push ecx
lea ecx, [ebp - 0x34]
call fcn.0040e400
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x34]
call fcn.0040e440
movzx edx, al
test edx, edx
jne 0x40eda2
lea eax, [ebp - 0x10bc]
push eax
mov ecx, dword [ebp - 0x114c]
mov ecx, dword [ecx + 4]
call fcn.0047ae90
mov dword [ebp - 0x10c0], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.0040e420
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xac]
call fcn.00401cf0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10bc]
call fcn.00449660
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406f40
mov eax, dword [ebp - 0x10c0]
jmp 0x40eeac
mov dl, byte [0x4974d8]
mov byte [ebp - 0x10ac], dl
push 0xfff
push 0
lea eax, [ebp - 0x10ab]
push eax
call fcn.00453b10
add esp, 0xc
lea ecx, [ebp - 0x34]
call fcn.0040e470
push eax
lea ecx, [ebp - 0x1144]
call fcn.00403530
mov dword [ebp - 0x1150], eax
mov ecx, dword [ebp - 0x1150]
call fcn.0041e8b0
push eax
push 0x1000
lea ecx, [ebp - 0x10ac]
push ecx
push 0x4974d8
push str.status
mov edx, dword [ebp - 0x114c]
mov ecx, dword [edx + 4]
call fcn.0040e620
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x1144]
call fcn.00403560
push 1
lea eax, [ebp - 0x10bc]
push eax
lea ecx, [ebp - 0x10ac]
push ecx
call fcn.00450e60
add esp, 4
lea edx, [ebp + eax - 0x10ac]
push edx
lea eax, [ebp - 0x10ac]
push eax
lea ecx, [ebp - 0xac]
call fcn.0044d7d0
lea ecx, [ebp - 0x10bc]
push ecx
mov edx, dword [ebp - 0x114c]
mov ecx, dword [edx + 4]
call fcn.0047ae90
mov dword [ebp - 0x1148], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.0040e420
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xac]
call fcn.00401cf0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10bc]
call fcn.00449660
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00406f40
mov eax, dword [ebp - 0x1148]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.00450ba2
mov esp, ebp
pop ebp
ret
Function at 0x411780
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x4117a9
jmp 0x41183e
lea ecx, [ebp - 0xc]
push ecx
push 0
lea edx, [ebp - 8]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 8], 1
je 0x4117d8
cmp dword [ebp - 8], 2
je 0x4117d8
jmp 0x41183e
mov ecx, dword [ebp + 0xc]
call fcn.00402b90
mov eax, dword [ebp - 0xc]
shr eax, 1
add eax, 1
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00402c60
mov dword [ebp - 4], eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x41181f
jmp 0x41183e
mov ecx, dword [ebp - 0xc]
shr ecx, 1
mov edx, dword [ebp - 4]
mov word [edx + ecx*2], 0
push 0xffffffffffffffff
mov ecx, dword [ebp + 0xc]
call fcn.00418760
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8

Function at 0x41b6c0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 0xc]
mov dword [ecx], 0
mov edx, dword [ebp + 0x18]
mov byte [edx], 0
mov eax, dword [ebp + 8]
push eax
call sub.WS2_32.dll_gethostbyname
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41b787
mov ecx, dword [ebp - 8]
movsx edx, word [ecx + 8]
cmp edx, 2
jne 0x41b767
mov eax, dword [ebp - 8]
movsx ecx, word [eax + 0xa]
cmp ecx, 4
jne 0x41b767
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 4], eax
jmp 0x41b724
mov ecx, dword [ebp - 4]
add ecx, 4
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp dword [edx], 0
je 0x41b767
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
mov ax, word [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0041b620
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx], 0
jne 0x41b75a
mov eax, 8
jmp 0x41b7cd
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
add ecx, 0x1c
mov dword [ebp - 0xc], ecx
jmp 0x41b71b
push 0x400
mov edx, dword [ebp - 8]
mov eax, dword [edx]
push eax
push 0x401
mov ecx, dword [ebp + 0x18]
push ecx
call fcn.00456bce
add esp, 0x10
xor eax, eax
jmp 0x41b7cd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
sub edx, 0x2af9
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 3
ja case.default.0x41b7a5
mov eax, dword [ebp - 0x10]
jmp dword [eax*4 + 0x41b7d4]
mov eax, 0x2af9
jmp 0x41b7cd
mov eax, 0x2afa
jmp 0x41b7cd
mov eax, 0x2afb
jmp 0x41b7cd
mov eax, 0x2af9
jmp 0x41b7cd
mov eax, 0x2af9
mov esp, ebp
pop ebp
ret 0x18
Function at 0x41c0b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x4a7740]
xor eax, ebp
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], str.getaddrinfo
mov dword [ebp - 0x18], 0x41ba90
mov dword [ebp - 0x14], str.getnameinfo
mov dword [ebp - 0x10], 0x41be10
mov dword [ebp - 0xc], str.freeaddrinfo
mov dword [ebp - 8], fcn.0041ba20
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
cmp dword [0x4ab234], 0
je 0x41c11b
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x4a9a98]
jmp 0x41c2cb
push 0x104
lea ecx, [ebp - 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x41c136
jmp 0x41c22b
lea edx, [ebp - 0x240]
push edx
push 0x10c
lea eax, [ebp - 0x138]
push eax
call fcn.00456949
add esp, 0xc
push str.ws2_32
push 0x10c
lea ecx, [ebp - 0x138]
push ecx
call fcn.00456fb4
add esp, 0xc
lea edx, [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x41c1a9
push str.getaddrinfo
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x41c1a9
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], 0
je 0x41c1b1
jmp 0x41c22b
lea edx, [ebp - 0x240]
push edx
push 0x10c
lea eax, [ebp - 0x138]
push eax
call fcn.00456949
add esp, 0xc
push str.wship6
push 0x10c
lea ecx, [ebp - 0x138]
push ecx
call fcn.00456fb4
add esp, 0xc
lea edx, [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x41c224
push str.getaddrinfo
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x41c224
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x20], 0
jmp 0x41c22b
cmp dword [ebp - 0x20], 0
je 0x41c2b6
mov dword [ebp - 4], 0
jmp 0x41c247
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 3
jge 0x41c285
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + eax*8 - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ebp + ecx*8 - 0x18], eax
mov edx, dword [ebp - 4]
cmp dword [ebp + edx*8 - 0x18], 0
jne 0x41c283
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x20], 0
jmp 0x41c285
jmp 0x41c23e
cmp dword [ebp - 0x20], 0
je 0x41c2b6
mov dword [ebp - 4], 0
jmp 0x41c29d
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 3
jge 0x41c2b6
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + eax*8 - 0x18]
mov dword [edx*8 + 0x4a9a98], ecx
jmp 0x41c294
mov dword [0x4ab234], 1
movzx edx, word [ebp + 8]
mov eax, dword [edx*8 + 0x4a9a98]
mov ecx, dword [ebp - 0x28]
xor ecx, ebp
call fcn.00450ba2
mov esp, ebp
pop ebp
ret 4