joyce8/EMBER2024-capa huggingface dataset:
Function at 0xd6c000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xd6c131
push esi
call fcn.00d6f145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00d5e080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xd6c131
push 0
push ebp
call fcn.00d5e3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00d5e260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xd6c08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00d5e2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xd6c121
push 0xd84918
push edi
call fcn.00d6d3f0
push eax
push ebx
push esi
call fcn.00d6bf60
push 0xd848f8
push edi
call fcn.00d6d3f0
push eax
push ebx
push esi
call fcn.00d6bf60
push 0xd848d8
push edi
call fcn.00d6d3f0
push eax
push ebx
push esi
call fcn.00d6bf60
push 0xd848c0
push edi
call fcn.00d6d3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00d6bf60
push 0xd848a0
push edi
call fcn.00d6d3f0
push eax
push ebx
push esi
call fcn.00d6bf60
push 0xd84888
push edi
call fcn.00d6d3f0
push eax
push ebx
push esi
call fcn.00d6bf60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xd6d1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00d6d140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00d6d140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00d6d140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00d6d140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xd6dbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xd6dc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xd7f87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xd6dc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xd6dc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x22deca7
Capabilities:
Encode data using xor

Disassembly:
mov byte [esp], 0x49
lea esp, [esp + 0x30]
ja 0x22d3a63
Function at 0x41085b
Capabilities:
Access peb ldr_data
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff78
mov eax, dword fs:[0x30]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x427000
mov dword [ebp - 0x48], 0x4d746547
mov dword [ebp - 0x44], 0x6c75646f
mov dword [ebp - 0x40], 0x6e614865
mov dword [ebp - 0x3c], 0x57656c64
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x58], 0x50746547
mov dword [ebp - 0x54], 0x41636f72
mov dword [ebp - 0x50], 0x65726464
mov dword [ebp - 0x4c], 0x7373
mov dword [ebp - 0x68], 0x74726956
mov dword [ebp - 0x64], 0x416c6175
mov dword [ebp - 0x60], 0x636f6c6c
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x78], 0x74726956
mov dword [ebp - 0x74], 0x506c6175
mov dword [ebp - 0x70], 0x65746f72
mov dword [ebp - 0x6c], 0x7463
mov dword [ebp - 0x88], 0x74726956
mov dword [ebp - 0x84], 0x516c6175
mov dword [ebp - 0x80], 0x79726575
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x68]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x88]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push 5
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 4]
call fcn.00410493
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 8]
call fcn.00410746
mov dword [ebp - 0xc], eax
mov eax, dword fs:[0]
mov ebx, dword [eax]
cmp ebx, 0xffffffff
je 0x410986
mov eax, ebx
jmp 0x41097b
mov dword fs:[0], eax
mov ebx, dword fs:[0x30]
mov eax, dword [ebp - 0xc]
mov dword [ebx + 8], eax
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0xc]
cmp eax, 0
je 0x4109b8
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp - 4]
jne 0x4109b4
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x18], ecx
jmp 0x4109b8
mov eax, dword [eax]
jmp 0x41099f
wait
fninit
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
add eax, dword [ebp - 0xc]
mov edx, eax
xor ecx, ecx
mov ebx, dword fs:[0x30]
call edx
leave
ret

Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
jl 0x432030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x41a0e0
Capabilities:
Get common file path

Disassembly:
push ebp
push esi
push edi
xor edi, edi
test ebx, ebx
je 0x41a15b
mov ebp, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edi
push edi
call ebp
push ebx
mov esi, eax
call fcn.005b4535
add eax, esi
add esp, 4
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x41a117
pop edi
pop esi
pop ebp
ret
push esi
push edi
call ebp
mov ebp, eax
cmp word [edi + ebp*2 - 2], 0x5c
je 0x41a12e
mov word [edi + ebp*2], 0x5c
add ebp, 1
push ebx
xor esi, esi
call fcn.005b4535
add esp, 4
test eax, eax
jbe 0x41a15b
lea ebp, [edi + ebp*2]
mov cx, word [ebx + esi*2]
mov word [ebp], cx
push ebx
add esi, 1
add ebp, 2
call fcn.005b4535
add esp, 4
cmp esi, eax
jb 0x41a140
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x41b00e
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x654d20]
test eax, eax
push esi
jne 0x41b005
push eax
push str.crypt32.dll
call fcn.0041acb0
add esp, 8
test eax, eax
mov dword [0x654d20], eax
je 0x41b1f0
cmp dword [0x654d90], 0
jne 0x41b02f
push 0
push str.wintrust.dll
call fcn.0041acb0
add esp, 8
test eax, eax
mov dword [0x654d90], eax
je 0x41b1f0
mov eax, dword [0x654d20]
cmp dword [0x654d3c], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x41b058
push str.CertGetNameStringA
push eax
call esi
test eax, eax
mov dword [0x654d3c], eax
je 0x41b1f0
mov eax, dword [0x654d20]
cmp dword [0x654d40], 0
jne 0x41b07b
push str.CryptDecodeObjectEx
push eax
call esi
test eax, eax
mov dword [0x654d40], eax
je 0x41b1f0
mov eax, dword [0x654d20]
cmp dword [0x654d2c], 0
jne 0x41b09e
push str.CertFreeCertificateContext
push eax
call esi
test eax, eax
mov dword [0x654d2c], eax
je 0x41b1f0
mov eax, dword [0x654d20]
cmp dword [0x654d30], 0
jne 0x41b0c1
push str.CertFindCertificateInStore
push eax
call esi
test eax, eax
mov dword [0x654d30], eax
je 0x41b1f0
mov eax, dword [0x654d20]
cmp dword [0x654d44], 0
jne 0x41b0e4
push str.CertGetIssuerCertificateFromStore
push eax
call esi
test eax, eax
mov dword [0x654d44], eax
je 0x41b1f0
mov eax, dword [0x654d20]
cmp dword [0x654d34], 0
jne 0x41b107
push str.CryptMsgGetParam
push eax
call esi
test eax, eax
mov dword [0x654d34], eax
je 0x41b1f0
mov eax, dword [0x654d20]
cmp dword [0x654d38], 0
jne 0x41b12a
push str.CryptQueryObject
push eax
call esi
test eax, eax
mov dword [0x654d38], eax
je 0x41b1f0
mov eax, dword [0x654d20]
cmp dword [0x654d24], 0
jne 0x41b14d
push str.CryptMsgClose
push eax
call esi
test eax, eax
mov dword [0x654d24], eax
je 0x41b1f0
mov eax, dword [0x654d20]
cmp dword [0x654d28], 0
jne 0x41b16b
push str.CertCloseStore
push eax
call esi
test eax, eax
mov dword [0x654d28], eax
je 0x41b1f0
cmp dword [0x654d94], 0
jne 0x41b18a
mov eax, dword [0x654d90]
push str.WinVerifyTrust
push eax
call esi
test eax, eax
mov dword [0x654d94], eax
je 0x41b1f0
cmp dword [0x654d98], 0
jne 0x41b1aa
mov ecx, dword [0x654d90]
push str.WTHelperProvDataFromStateData
push ecx
call esi
test eax, eax
mov dword [0x654d98], eax
je 0x41b1f0
cmp dword [0x654da0], 0
jne 0x41b1ca
mov edx, dword [0x654d90]
push str.WTHelperGetProvCertFromChain
push edx
call esi
test eax, eax
mov dword [0x654da0], eax
je 0x41b1f0
cmp dword [0x654d9c], 0
jne 0x41b1e9
mov eax, dword [0x654d90]
push str.WTHelperGetProvSignerFromChain
push eax
call esi
test eax, eax
mov dword [0x654d9c], eax
je 0x41b1f0
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x41b590
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x654cf8]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
xor ebx, ebx
test eax, eax
push esi
jne 0x41b5bd
push eax
push str.Setupapi.dll
call fcn.0041acb0
add esp, 8
test eax, eax
mov dword [0x654cf8], eax
je 0x41b6f6
cmp dword [0x654cfc], 0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
jne 0x41b5e6
push 0x5fb954
push eax
call esi
test eax, eax
mov dword [0x654cfc], eax
je 0x41b6f6
mov eax, dword [0x654cf8]
cmp dword [0x654d00], 0
jne 0x41b609
push 0x5fb93c
push eax
call esi
test eax, eax
mov dword [0x654d00], eax
je 0x41b6f6
mov eax, dword [0x654cf8]
cmp dword [0x654d08], 0
jne 0x41b62c
push 0x5fb918
push eax
call esi
test eax, eax
mov dword [0x654d08], eax
je 0x41b6f6
mov eax, dword [0x654cf8]
cmp dword [0x654d04], 0
jne 0x41b64f
push str.SetupDiGetDeviceInterfaceDetailW
push eax
call esi
test eax, eax
mov dword [0x654d04], eax
je 0x41b6f6
mov eax, dword [0x654cf8]
cmp dword [0x654d10], 0
jne 0x41b66d
push 0x5fb8d4
push eax
call esi
test eax, eax
mov dword [0x654d10], eax
je 0x41b6f6
push 6
push 0
push 0
push 0
call dword [0x654cfc]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
je 0x41b6f8
mov ecx, edi
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
push edi
push eax
mov dword [ecx + 0x18], eax
push esi
mov dword [edi], 0x1c
call dword [0x654d00]
test eax, eax
je 0x41b6ef
lea ecx, [ecx]
push esi
push ebp
mov eax, edi
call fcn.0041a7a0
add esp, 8
cmp eax, 1
je 0x41b6fc
xor edx, edx
mov eax, edi
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
push edi
add ebx, 1
mov dword [eax + 0x14], edx
push ebx
mov dword [eax + 0x18], edx
push esi
mov dword [edi], 0x1c
call dword [0x654d00]
test eax, eax
jne 0x41b6b0
push esi
call dword [0x654d10]
xor eax, eax
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x14]
mov dword [ecx], esi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x41bf30
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x14
push ebp
mov ebp, dword [esp + 0x1c]
push esi
xor esi, esi
cmp dword [0x654dd0], esi
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0x24
mov dword [esp + 0x14], 0x26
mov dword [esp + 0x18], 0x2a
jne 0x41bfc6
push 3
push 0x20
push 3
push 1
push 3
push 2
push esi
push esi
call fcn.00565486
push edx
push eax
call fcn.00565486
push edx
push eax
call fcn.00565486
push edx
push eax
push 0x23
push 0x654dd0
mov dword [0x654dd0], 0x11c
mov dword [0x654dd4], 6
mov dword [0x654dd8], 1
mov word [0x654ee4], si
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
neg eax
sbb eax, eax
add eax, 1
mov dword [0x64d008], eax
jmp 0x41bfcb
mov eax, dword [0x64d008]
cmp eax, esi
je 0x41bfda
pop esi
mov eax, 1
pop ebp
add esp, 0x14
ret
cmp ebp, esi
je 0x41c0fa
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push edi
push esi
push esi
push esi
push ebp
call ebx
mov edi, eax
test edi, edi
je 0x41c0f8
lea eax, [edi + edi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [esp + 0x10], eax
je 0x41c0f8
push 0
mov ecx, eax
push ecx
push edi
push ebp
call ebx
cmp edi, eax
jbe 0x41c0f8
mov ebp, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ebx, ebx
jmp 0x41c030
mov eax, dword [esp + ebx*4 + 0x18]
cmp eax, 0x26
jne 0x41c0af
push 0
push 0
push str._ProgramW6432_
call ebp
mov edi, eax
test edi, edi
je 0x41c0f8
lea edx, [edi + edi + 2]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x41c0f8
push edi
push esi
push str._ProgramW6432_
call ebp
cmp edi, eax
jne 0x41c0f8
push esi
push str._ProgramW6432_
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x41c096
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x5fb574
push 0x26
jmp 0x41c0b5
cmp word [esi + edi*2 - 4], 0x5c
je 0x41c0c3
push 0x5fb9ac
add edi, 1
push edi
push esi
call fcn.0041bda0
jmp 0x41c0c3
push 0x5fb574
push eax
call fcn.0041be40
mov esi, eax
add esp, 8
test esi, esi
je 0x41c0f8
push esi
call fcn.005b4535
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
call int.005b5e02
add esp, 0x10
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x14], eax
jne 0x41c0f8
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
add ebx, 1
xor esi, esi
cmp ebx, 3
jl 0x41c030
pop edi
pop ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov eax, dword [esp + 0xc]
pop esi
pop ebp
add esp, 0x14
ret

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

Disassembly:
push esi
push eax
mov eax, dword [esp + 0xc]
call fcn.0041f710
mov esi, eax
add esp, 4
test esi, esi
je 0x41f8c2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41f8a4
test al, 0x50
je 0x41f8c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x41f8b7
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop esi
ret
mov eax, esi
pop esi
ret
Function at 0x45fe30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ecx + 8]
mov eax, edx
push edi
mov edi, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 4], eax
test edi, edi
jle 0x45fe64
push ebx
mov ebx, dword [ecx]
mov al, byte [edx + eax]
xor byte [ebx + esi], al
lea eax, [esi + 1]
xor esi, esi
cmp eax, dword [ecx + 4]
cmovl esi, eax
mov eax, dword [ebp - 4]
inc edx
cmp edx, edi
jl 0x45fe4a
pop ebx
add dword [ecx + 0xc], edi
pop edi
mov dword [ecx + 8], esi
pop esi
leave
ret

Function at 0x4634f8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, dword [edi + 0x88]
test esi, esi
je 0x46352c
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, dword [esi + 0x10]
mov dword [edi + 0x88], eax
mov eax, dword [esi + 8]
and dword [esi + 0x10], 0
and dword [eax], 0
and dword [eax + 4], 0
jmp 0x46358d
movzx eax, word [edi + 0x8c]
cdq
add eax, 0x28
adc edx, 0
push edx
push eax
call fcn.0045a0db
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov dword [ecx], esi
test esi, esi
jne 0x463576
mov ecx, dword [ebp - 4]
mov eax, dword [edi + 0x98]
dec ecx
push esi
cdq
push ecx
push edx
push eax
call fcn.0050bf50
mov ecx, dword [edi + 0x3c]
push edx
mov edx, dword [ebp + 8]
push eax
call fcn.004596bd
pop ecx
pop ecx
push 7
pop eax
jmp 0x46359e
lea eax, [esi + 0x28]
mov dword [esi + 0x14], edi
mov dword [esi + 8], eax
push 0x20
pop eax
mov word [esi + 0x1c], ax
xor eax, eax
inc eax
mov word [esi + 0x1e], ax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [esi + 4], eax
mov dword [esi + 0x18], ecx
inc dword [edi + 0x78]
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4dcda7
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x101e09e0
mov edx, 0x811c9dc5
cmp dword [eax], 0
cmovne ecx, dword [eax]
jmp 0x4dcdcb
movsx eax, al
xor eax, edx
imul edx, eax, 0x1000193
inc ecx
mov al, byte [ecx]
test al, al
jne 0x4dcdbf
mov eax, edx
pop ebp
ret 4
Function at 0x5d1871
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.005c0962
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5d18e0
cmp esi, dword [ebp - 4]
je 0x5d18db
cmp dword [ebp + 0xc], 0
je 0x5d18db
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x5d18b8
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.005d13c3
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x5d18e2
xor eax, eax
inc eax
jmp 0x5d18e2
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x5d9e23
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x64d048]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
push edi
test esi, esi
jne 0x5d9e56
mov esi, 0x6568d4
xor edx, edx
xor ebx, ebx
inc edx
test eax, eax
jne 0x5d9e70
mov eax, edx
mov edi, 0x60e8e7
mov dword [ebp + 0x10], eax
mov eax, ebx
mov dword [ebp - 0x18], eax
jmp 0x5d9e82
mov edi, eax
cmp dword [ebp + 0x10], ebx
jne 0x5d9e7f
push 0xfffffffffffffffe
pop eax
jmp 0x5d9fc5
mov eax, dword [ebp - 0x18]
cmp word [esi + 6], bx
jne 0x5d9ee4
mov bl, byte [edi]
inc edi
test bl, bl
js 0x5d9ea7
test eax, eax
je 0x5d9e9b
mov ecx, dword [ebp - 0x18]
movzx eax, bl
mov dword [ecx], eax
xor eax, eax
test bl, bl
setne al
jmp 0x5d9fc5
mov al, bl
and al, 0xe0
cmp al, 0xc0
jne 0x5d9eb3
mov bh, 2
jmp 0x5d9ecd
mov al, bl
and al, 0xf0
cmp al, 0xe0
jne 0x5d9ebf
mov bh, 3
jmp 0x5d9ecd
mov al, bl
and al, 0xf8
cmp al, 0xf0
jne 0x5d9fbc
mov bh, 4
push 7
movzx eax, bh
pop ecx
sub ecx, eax
mov byte [ebp - 0x11], bh
shl edx, cl
movzx eax, bl
dec edx
and edx, eax
mov bl, bh
jmp 0x5d9f0c
mov bh, byte [esi + 4]
mov bl, byte [esi + 6]
mov al, bh
mov edx, dword [esi]
sub al, 2
mov byte [ebp - 0x11], bl
cmp al, 2
ja 0x5d9fbc
cmp bl, 1
jb 0x5d9fbc
cmp bl, bh
jae 0x5d9fbc
mov ecx, dword [ebp + 0x10]
movzx eax, bl
mov dword [ebp - 0x24], eax
cmp eax, ecx
jae 0x5d9f1b
mov ecx, eax
mov eax, edi
sub eax, dword [ebp - 0x20]
jmp 0x5d9f47
mov bl, byte [edi]
inc edi
inc eax
mov byte [ebp - 0x12], bl
mov dword [ebp - 0x20], eax
mov ah, bl
mov bl, byte [ebp - 0x11]
mov al, ah
and al, 0xc0
cmp al, 0x80
jne 0x5d9f69
movzx eax, ah
and eax, 0x3f
shl edx, 6
or edx, eax
mov eax, dword [ebp - 0x20]
cmp eax, ecx
jb 0x5d9f22
mov edi, dword [ebp - 0x24]
cmp ecx, edi
jae 0x5d9f6e
movzx eax, bh
sub bl, cl
mov word [esi + 4], ax
movzx eax, bl
mov dword [esi], edx
mov word [esi + 6], ax
jmp 0x5d9e77
push dword [ebp - 0x1c]
jmp 0x5d9fbd
cmp edx, 0xd800
jb 0x5d9f7e
cmp edx, 0xdfff
jbe 0x5d9f69
cmp edx, 0x10ffff
ja 0x5d9f69
movzx eax, bh
mov dword [ebp - 0x10], 0x80
mov dword [ebp - 0xc], 0x800
mov dword [ebp - 8], 0x10000
cmp edx, dword [ebp + eax*4 - 0x18]
jb 0x5d9f69
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x5d9fad
mov dword [ecx], edx
neg edx
push esi
sbb edx, edx
and edx, edi
push edx
call fcn.005d9ded
jmp 0x5d9fc3
push ecx
push esi
call fcn.005d9e01
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005814be
leave
ret
Function at 0x433001
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x425c04f8
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x7bc83cf6
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x43534b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042708b
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x435383
xor eax, eax
jmp 0x4353af
cmp esi, dword [ebp - 4]
je 0x4353ac
cmp dword [ebp + 0xc], 0
je 0x4353ac
push dword [edi + 0x9c]
call fcn.00434f59
push dword [edi + 0x9c]
mov esi, eax
call fcn.00424fcd
pop ecx
pop ecx
cmp esi, eax
je 0x43537f
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x1001185
Capabilities:
Get hostname
Initialize winsock library
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
xor esi, esi
inc esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push ebx
call dword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
push 0x1002380
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, ebx
je 0x10011d1
push eax
push 0x2713
call fcn.01001a09
cmp dword [ebp + 8], esi
jle 0x100120b
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov cl, byte [eax]
cmp cl, 0x2f
je 0x10011e8
cmp cl, 0x2d
jne 0x1001202
cmp byte [eax + 1], 0x3f
jne 0x1001202
push 0x2710
push esi
call fcn.01001979
pop ecx
pop ecx
push esi
call dword [sym.imp.msvcrt.dll_exit]
push 0x2714
push 2
jmp 0x10011f4
push 0x400
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jge 0x1001234
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x2712
call fcn.01001a09
jmp 0x10011fb
lea eax, [ebp - 0x404]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100123d
sub eax, edx
push eax
lea eax, [ebp - 0x404]
push eax
push eax
call dword [sym.imp.USER32.dll_CharToOemBuffA]
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.msvcrt.dll_puts]
pop ecx
push ebx
jmp 0x10011fc
Function at 0x401830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
or eax, 0xffffffff
xor esi, esi
test edi, edi
jle 0x401866
push ebx
mov ebx, dword [ebp + 8]
movzx edx, byte [esi + ebx]
mov ecx, eax
shr ecx, 0x18
inc esi
xor edx, ecx
shl eax, 8
and edx, 0xff
xor eax, dword [edx*4 + section..data]
cmp esi, edi
jl 0x401845
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x401870
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
or eax, 0xffffffff
xor esi, esi
test edi, edi
je 0x40189e
push ebx
mov ebx, dword [ebp + 8]
movzx edx, byte [esi + ebx]
inc esi
movzx ecx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x48a400]
cmp esi, edi
jb 0x401885
pop ebx
pop edi
not eax
pop esi
pop ebp
ret