joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45eb1c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
xor edx, edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45ec36
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x6614fc], 0
jne 0x45eb71
push 0x45ec44
call fcn.0040db28
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x6614fc], eax
push 0x45ec44
call fcn.0040db28
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x661500], eax
mov eax, dword [0x45ec5c]
mov dword [ebp - 0xb], eax
mov ax, word [0x45ec60]
mov word [ebp - 7], ax
mov al, byte [0x45ec62]
mov byte [ebp - 5], al
push 6
lea eax, [ebp - 0xb]
push eax
push 0x1004
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 4]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040529c
call sub.kernel32.dll_GetACP_1
mov edx, eax
test edx, edx
jns 0x45ebc3
call fcn.00403edc
mov eax, dword [ebp - 4]
call fcn.00428718
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x10]
mov ecx, 2
call fcn.0045eafc
mov eax, dword [ebp - 0x30]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x34]
call fcn.0042865c
push dword [ebp - 0x34]
push 0x45ec6c
mov eax, dword [ebp - 0x2c]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x38]
call fcn.0042865c
push dword [ebp - 0x38]
mov eax, ebx
mov edx, 3
call fcn.004053cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ec3d
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00405050
lea eax, [ebp - 4]
call fcn.0040502c
ret

Function at 0x45ecb0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov byte [ebp - 1], 0
push 0x45ed6c
call fcn.0040daf4
push eax
call sub.kernel32.dll_GetProcAddress_1
mov ebx, eax
test ebx, ebx
je 0x45ed2d
lea eax, [ebp - 0x41]
xor ecx, ecx
mov edx, 0x40
call fcn.004038b8
mov dword [ebp - 0x41], 0x40
lea eax, [ebp - 0x41]
push eax
call ebx
test eax, eax
je 0x45ed2d
mov eax, dword [ebp - 0x39]
mov dword [edi], eax
mov eax, dword [ebp - 0x35]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x31]
mov dword [esi], eax
mov eax, dword [ebp - 0x2d]
mov dword [esi + 4], eax
mov byte [ebp - 1], 1
jmp 0x45ed60
lea eax, [ebp - 0x64]
xor ecx, ecx
mov edx, 0x20
call fcn.004038b8
mov dword [ebp - 0x64], 0x20
lea eax, [ebp - 0x64]
push eax
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [ebp - 0x5c]
xor edx, edx
mov dword [edi], eax
mov dword [edi + 4], edx
mov eax, dword [ebp - 0x58]
xor edx, edx
mov dword [esi], eax
mov dword [esi + 4], edx
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45fa9c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45fc02
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040502c
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, ebx
call fcn.0040550c
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x45fbdf
mov eax, dword [ebp - 8]
call fcn.0040309c
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x45fbd8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push edi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x45fbbf
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x45fc10
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x45fbbf
push 0x45fc34
lea ecx, [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
mov edx, 4
call fcn.00428684
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 2]
mov edx, 4
call fcn.00428684
push dword [ebp - 0x20]
push 0x45fc50
lea eax, [ebp - 4]
mov edx, 4
call fcn.004053cc
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.0040550c
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x45fbbf
cmp dword [ebp - 0x10], 1
jbe 0x45fbbf
mov ebx, dword [ebp - 0x18]
mov eax, ebx
call fcn.004290f0
mov ecx, eax
mov eax, esi
mov edx, ebx
call fcn.0040511c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fbdf
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x14]
call fcn.004030b8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fc09
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00405050
lea eax, [ebp - 4]
call fcn.0040502c
ret
Function at 0x45fc98
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.004054fc
xor eax, eax
push ebp
push 0x45fd99
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040502c
cmp dword [ebp - 4], 0
je 0x45fcff
mov eax, 1
mov edx, dword [ebp - 4]
dec eax
test edx, edx
je 0x45fce0
cmp eax, dword [edx - 4]
jb 0x45fce5
call fcn.00403edc
inc eax
cmp byte [edx + eax - 1], 0x5c
jne 0x45fcff
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.004055ac
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.0040550c
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45fd83
mov eax, ebx
mov edx, 0x400
call fcn.00405794
mov eax, dword [ebx]
call fcn.00405308
test eax, eax
jns 0x45fd39
call fcn.00403edc
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebx]
call fcn.0040550c
push eax
test edi, edi
jns 0x45fd59
call fcn.00403edc
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegEnumKeyExA
test eax, eax
jne 0x45fd73
mov eax, ebx
mov edx, dword [ebp - 0xc]
call fcn.00405794
jmp 0x45fd7a
mov eax, ebx
call fcn.0040502c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fda0
lea eax, [ebp - 4]
call fcn.0040502c
ret

Function at 0x45fdac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004054fc
mov eax, dword [ebp - 8]
call fcn.004054fc
xor eax, eax
push ebp
push 0x45fe99
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x45fe15
mov eax, 1
mov edx, dword [ebp - 4]
dec eax
test edx, edx
je 0x45fdf6
cmp eax, dword [edx - 4]
jb 0x45fdfb
call fcn.00403edc
inc eax
cmp byte [edx + eax - 1], 0x5c
jne 0x45fe15
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.004055ac
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.0040550c
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45fe7e
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.0040550c
mov ebx, eax
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45fe75
cmp dword [ebp - 0x14], 4
jne 0x45fe75
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45fea0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405050
ret
Function at 0x460724
Capabilities:
Check for sandbox and av modules

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
push 0x4607b8
call sub.kernel32.dll_GetModuleHandleA_2
test eax, eax
je 0x460747
mov eax, ebx
mov edx, 0x4607cc
call fcn.00405080
pop ebx
pop ebp
ret
push 0
push ebx
mov ecx, 0x4607e0
mov edx, 0x4607f4
mov eax, 0x80000002
call fcn.00466970
mov eax, dword [ebx]
mov edx, 0x460828
call fcn.00405458
jne 0x460778
mov eax, ebx
mov edx, 0x460848
call fcn.00405080
mov eax, dword [ebx]
mov edx, 0x460858
call fcn.00405458
jne 0x460792
mov eax, ebx
mov edx, 0x460878
call fcn.00405080
mov eax, dword [ebx]
mov edx, 0x46088c
call fcn.00405458
jne 0x4607ae
mov eax, ebx
mov edx, 0x4608ac
call fcn.00405080
jmp 0x4607b5
mov eax, ebx
call fcn.0040502c
pop ebx
pop ebp
ret

Function at 0x460c5c
Capabilities:
Reference processor manufacturer constants

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
call fcn.004608f4
test al, al
jne 0x460c6f
xor eax, eax
jmp 0x460ca9
mov dword [ebp - 4], 0x40000000
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
lea eax, [ebp - 4]
call fcn.004608b4
cmp dword [ebp - 8], 0x61774d56
jne 0x460ca3
cmp dword [ebp - 0xc], 0x4d566572
jne 0x460ca3
cmp dword [ebp - 0x10], 0x65726177
je 0x460ca7
xor eax, eax
jmp 0x460ca9
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x460ea0
Capabilities:
Reference processor manufacturer constants

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 4], 0x40000000
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
lea eax, [ebp - 4]
call fcn.004608b4
cmp dword [ebp - 8], 0x7263694d
jne 0x460eda
cmp dword [ebp - 0xc], 0x666f736f
jne 0x460eda
cmp dword [ebp - 0x10], 0x76482074
je 0x460ede
xor eax, eax
jmp 0x460ee0
mov al, 1
test al, al
je 0x460f07
mov dword [ebp - 4], 0x40000001
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
lea edx, [ebp - 8]
lea eax, [ebp - 4]
call fcn.004608b4
cmp dword [ebp - 4], 0x31237648
sete al
mov esp, ebp
pop ebp
ret
Function at 0x461218
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x46133c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x556880], 0xff
je 0x461246
movzx ebx, byte [0x556880]
jmp 0x461321
xor ebx, ebx
call fcn.0040ecdc
test al, al
jne 0x461321
mov eax, dword [0x55c798]
cmp dword [eax], 0
je 0x461321
push 4
lea eax, [ebp - 4]
push eax
push 0x46134c
call sub.kernel32.dll_GetEnvironmentVariableA
test eax, eax
ja 0x461321
push 4
lea eax, [ebp - 4]
push eax
push 0x461364
call sub.kernel32.dll_GetEnvironmentVariableA
test eax, eax
ja 0x461321
call fcn.00403544
mov esi, eax
test esi, esi
jle 0x4612d0
mov dword [ebp - 4], 1
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004035a4
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.00427bf4
mov eax, dword [ebp - 8]
mov edx, 0x461380
call fcn.00405458
je 0x461321
inc dword [ebp - 4]
dec esi
jne 0x4612a5
xor eax, eax
call fcn.00446ea0
test al, al
je 0x461315
xor edx, edx
xor eax, eax
call fcn.00446eac
xor eax, eax
push ebp
push 0x46130e
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004610f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46131a
mov dl, 1
xor eax, eax
call fcn.00446eac
ret
call fcn.004610f4
movzx ebx, byte [0x556880]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461343
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00405050
ret
Function at 0x461558
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x46172c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040502c
lea eax, [ebp - 0xc]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x461709
xor eax, eax
push ebp
push 0x461702
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 3
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_GetTokenInformation
mov eax, dword [ebp - 0x10]
call fcn.0040309c
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4616e4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
push 3
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
je 0x4616ce
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
dec edi
test edi, edi
jns 0x461604
call fcn.00403edc
test edi, edi
jl 0x4616ce
inc edi
xor ebx, ebx
cmp ebx, 0x400
jbe 0x46161c
call fcn.00403edc
lea eax, [ebx + ebx*2]
mov edx, dword [ebp - 0x14]
add edx, 4
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x20], ecx
mov ecx, dword [edx + eax*4 + 4]
mov dword [ebp - 0x1c], ecx
cmp ebx, 0x400
jbe 0x46163f
call fcn.00403edc
lea eax, [ebx + ebx*2]
mov edx, dword [ebp - 0x14]
add edx, 4
mov eax, dword [edx + eax*4 + 8]
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x20]
push eax
push 0
call sub.advapi32.dll_LookupPrivilegeNameA
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00405794
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.0040550c
push eax
lea eax, [ebp - 0x20]
push eax
push 0
call sub.advapi32.dll_LookupPrivilegeNameA
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.00405794
push dword [esi]
lea ecx, [ebp - 0x24]
mov edx, 0x1f
mov eax, dword [ebp - 8]
call fcn.00461514
push dword [ebp - 0x24]
push ebp
lea eax, [ebp - 0x28]
call fcn.00461448
pop ecx
push dword [ebp - 0x28]
push 0x461744
mov eax, esi
mov edx, 4
call fcn.004053cc
inc ebx
dec edi
jne 0x46160f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4616eb
mov eax, dword [ebp - 0x14]
call fcn.004030b8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461733
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00405050
lea eax, [ebp - 8]
call fcn.0040502c
ret
Function at 0x461e74
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
call fcn.0046306c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004626dc
test al, al
jne 0x461f2a
xor eax, eax
mov dword [ebp - 4], eax
push 0x461f5c
push 0
push 4
call sub.kernel32.dll_OpenFileMappingA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x461f2a
xor eax, eax
push ebp
push 0x461f23
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
push 0
push 0
push 4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x461f0c
xor eax, eax
push ebp
push 0x461f05
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461f0c
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461f2a
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
cmp dword [ebp - 4], 0
je 0x461f53
push 0x461f80
push 0x461f9c
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
mov ebx, esi
test esi, esi
je 0x461f53
mov eax, dword [ebp - 4]
push eax
call ebx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x461fa8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe78
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x188], ecx
mov dword [ebp - 4], ecx
mov esi, edx
lea edi, [ebp - 0x184]
mov ecx, 0x5e
rep movsd dword es:[edi], dword [esi]
mov esi, eax
xor eax, eax
push ebp
push 0x4620a6
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00461e74
mov ebx, eax
push 0x4620c0
push esi
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x188]
call fcn.0042865c
push dword [ebp - 0x188]
lea eax, [ebp - 4]
mov edx, 3
call fcn.004053cc
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.0040550c
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x462083
xor eax, eax
push ebp
push 0x462078
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0xc]
push eax
push 0x178
lea eax, [ebp - 0x184]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46207f
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4620ad
lea eax, [ebp - 0x188]
call fcn.0040502c
lea eax, [ebp - 4]
call fcn.0040502c
ret
Function at 0x4620d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7c0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x840], ecx
mov dword [ebp - 4], ecx
mov esi, edx
lea edi, [ebp - 0x83c]
mov ecx, 0x20c
rep movsd dword es:[edi], dword [esi]
mov esi, eax
xor eax, eax
push ebp
push 0x4621d3
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00461e74
mov ebx, eax
push 0x4621ec
push esi
push 0x462204
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x840]
call fcn.0042865c
push dword [ebp - 0x840]
lea eax, [ebp - 4]
mov edx, 4
call fcn.004053cc
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.0040550c
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4621b0
xor eax, eax
push ebp
push 0x4621a5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0xc]
push eax
push 0x830
lea eax, [ebp - 0x83c]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_WriteFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4621ac
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4621da
lea eax, [ebp - 0x840]
call fcn.0040502c
lea eax, [ebp - 4]
call fcn.0040502c
ret

Function at 0x4626dc
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor edx, edx
test eax, eax
je 0x462701
mov dword [ebp - 5], eax
mov byte [ebp - 1], 0
lea eax, [ebp - 5]
push eax
push 0x462644
call sub.user32.dll_EnumWindows
movzx edx, byte [ebp - 1]
mov eax, edx
pop ecx
pop ecx
pop ebp
ret

Function at 0x462fe8
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 0x14], eax
push 0x80000001
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x80000001
mov edx, 0x7fffffff
mov eax, 0x7fffffff
call fcn.00439d3c
lea esi, [ebp - 0x24]
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
test eax, eax
jns 0x463029
call fcn.00403edc
push eax
push 0x462f68
call sub.user32.dll_EnumWindows
test eax, eax
je 0x463041
mov edi, ebx
lea esi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [ebx], 0x7fffffff
jne 0x463057
push 0
push ebx
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00439d3c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x465b04
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
mov eax, 0x465b30
call fcn.00465aec
test al, al
je 0x465b21
mov dword [ebx], 1
pop ebx
pop ebp
ret
xor eax, eax
mov dword [ebx], eax
pop ebx
pop ebp
ret

Function at 0x465b44
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
cmp dword [eax], 0
je 0x465b5a
xor edx, edx
mov dword [eax], edx
mov eax, 0x465b64
call fcn.00465af8
pop ebp
ret
Function at 0x466d70
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x466e92
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, edi
call fcn.004050c4
cmp dword [ebp - 4], 0
je 0x466dd7
mov eax, 1
mov edx, dword [ebp - 4]
dec eax
test edx, edx
je 0x466db8
cmp eax, dword [edx - 4]
jb 0x466dbd
call fcn.00403edc
inc eax
cmp byte [edx + eax - 1], 0x5c
jne 0x466dd7
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.004055ac
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0x20006
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040550c
push eax
push esi
call sub.advapi32.dll_RegCreateKeyExA
push eax
call sub.kernel32.dll_SetLastError
call sub.kernel32.dll_GetLastError_1
test eax, eax
jne 0x466e77
xor eax, eax
push ebp
push 0x466e70
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00405308
test eax, eax
jns 0x466e26
call fcn.00403edc
push eax
mov eax, ebx
call fcn.0040550c
push eax
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.0040550c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
push eax
call sub.kernel32.dll_SetLastError
call sub.kernel32.dll_GetLastError_1
test eax, eax
je 0x466e59
call fcn.0042ddc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466e7c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
call fcn.0042ddc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466e99
lea eax, [ebp - 4]
call fcn.0040502c
ret
Function at 0x466f28
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x467082
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x466f64
mov ecx, 0x40b
mov edx, 0x46709c
mov eax, 0x4670c4
call fcn.00404f58
test edi, edi
jne 0x466f7c
mov ecx, 0x40c
mov edx, 0x46709c
mov eax, 0x4670c4
call fcn.00404f58
mov edx, ebx
mov eax, 0x4670e0
call fcn.00405650
test eax, eax
je 0x466fa0
mov ecx, 0x40d
mov edx, 0x46709c
mov eax, 0x4670c4
call fcn.00404f58
mov edx, ebx
mov eax, 0x4670ec
call fcn.00405650
test eax, eax
je 0x466fc4
mov ecx, 0x40e
mov edx, 0x46709c
mov eax, 0x4670c4
call fcn.00404f58
cmp byte [0x66153c], 0
je 0x466ffc
mov eax, dword [ebp - 4]
push eax
push esi
push dword [0x661540]
push 0x4670e0
push ebx
lea eax, [ebp - 8]
mov edx, 3
call fcn.004053cc
mov edx, dword [ebp - 8]
mov ecx, edi
mov eax, 0x80000001
call fcn.00466970
jmp 0x467067
mov eax, esi
mov edx, 0x2800
call fcn.00405794
mov eax, dword [0x661540]
call fcn.0040550c
push eax
mov eax, dword [esi]
call fcn.00405308
test eax, eax
jns 0x467023
call fcn.00403edc
push eax
mov eax, dword [esi]
call fcn.0040550c
push eax
mov eax, dword [ebp - 4]
call fcn.0040550c
push eax
mov eax, edi
call fcn.0040550c
push eax
mov eax, ebx
call fcn.0040550c
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
mov edx, eax
mov eax, esi
call fcn.00405794
lea edx, [ebp - 0xc]
mov eax, dword [esi]
call fcn.00466724
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.00405080
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x467089
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00405050
ret