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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1006084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
push edi
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x210]
push eax
mov edi, 0x20019
push edi
xor ebx, ebx
push ebx
push 0x1001e90
push 0x80000000
call esi
test eax, eax
je 0x1003b17
lea eax, [ebp - 0x210]
push eax
push edi
push ebx
push str.SystemCurrentControlSetControlSession_ManagerMemory_Management
push 0x80000002
call esi
test eax, eax
jne 0x1001e81
push 4
pop esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x220]
push eax
push ebx
push str.TempPageFile
push dword [ebp - 0x210]
mov dword [ebp - 0x218], esi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x1003b36
mov dword [ebp - 0x214], ebx
push dword [ebp - 0x210]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp dword [ebp - 0x214], 1
je 0x1003b47
push dword [ebp - 0x21c]
call fcn.01001a20
call fcn.01001eef
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01001841
leave
ret 4
cmp dword [ebp - 0x218], esi
jne 0x1001e37
jmp 0x1001e3d
mov dword [ebp - 0x214], ebx
jmp 0x1001e49
push dword [ebp - 0x210]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
push ebx
push ebx
push ebx
push ebx
push 0x1003b80
call fcn.01001195
jmp 0x1001de2
cmp dword [ebp - 0x220], esi
je 0x1001e77
jmp 0x1001e37
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x641
push dword [ebp - 0x21c]
call dword [sym.imp.USER32.dll_LoadStringW]
push ebx
push 1
push ebx
push 1
lea eax, [ebp - 0x20c]
push eax
push 0x10045d8
call fcn.0100292f
jmp 0x1001e56

Function at 0x1001eef
Capabilities:
Encrypt data using dpapi

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1006084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor ebx, ebx
xor eax, eax
mov byte [ebp - 0xc], bl
lea edi, [ebp - 0xb]
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 8
stosb byte es:[edi], al
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], eax
pop eax
lea ecx, [ebp - 0x1c]
push ecx
push eax
push ebx
push ebx
push ebx
mov dword [ebp - 0x14], eax
push ebx
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [0x7ffe02d8]
cmp ecx, dword [eax + 0x1d4]
jne 0x1001f64
push esi
push 0x1001f74
push ebx
push 0x100002
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov esi, eax
cmp esi, ebx
jne 0x1003259
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.01001841
leave
ret
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001f63
Function at 0x10022dd
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
push edi
mov dword [ebp - 8], eax
lea eax, [ebp + 0x10]
push eax
mov edi, 0x20019
push edi
push 0
push 0x1002078
push dword [ebp + 8]
call esi
mov ebx, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x100233a
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 4
push dword [ebp + 0x10]
call ebx
push dword [ebp + 0x10]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
lea eax, [ebp + 0x10]
push eax
push edi
push 0
push 0x1001fa8
push dword [ebp + 8]
call esi
test eax, eax
je 0x1003187
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], 4
push dword [ebp + 0x10]
call ebx
push dword [ebp + 0x10]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x1002353

Function at 0x1002362
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push edi
mov edi, 0x10014dc
push edi
call fcn.01002117
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
test eax, eax
je 0x10023db
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call esi
push dword [ebp + 8]
mov ebx, eax
call esi
add ebx, eax
lea ebx, [ebx + ebx + 4]
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x10023d9
push dword [ebp + 8]
shr ebx, 1
push ebx
push esi
call fcn.01002170
push 0x10023e0
push ebx
push esi
call fcn.01002207
mov eax, dword [ebp + 0xc]
push dword [eax]
push ebx
push esi
call fcn.01002207
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
inc eax
pop esi
pop ebx
pop edi
pop ebp
ret 8
Function at 0x1002496
Capabilities:
Get keyboard layout
Identify system language via api
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x1006084]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x100326c
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
call fcn.01001841
leave
ret
push ebx
push esi
xor ebx, ebx
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
cmp ax, si
je 0x10033a7
push edi
push 5
pop ecx
push 7
mov esi, 0x10045c0
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
pop ecx
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x48]
push eax
push ebx
push 0x2001f
push ebx
movsw word es:[edi], word [esi]
push ebx
push ebx
mov esi, 0x1003454
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCreateKeyExW]
push 0x10033f0
mov edi, 0x80000001
push edi
call esi
test eax, eax
jne 0x10033a6
push 0x1c
lea eax, [ebp - 0x40]
push eax
push 1
push ebx
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x48]
mov dword [ebp - 0x58], 0x31
mov dword [ebp - 0x4c], 0x33
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
push dword [ebp - 0x48]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push 0x10033c0
push edi
call esi
test eax, eax
jne 0x10033a6
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
mov esi, 0x10033b0
push esi
push dword [ebp - 0x44]
mov dword [ebp - 0x50], 6
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x100337b
lea ecx, [ebp - 0x4c]
lea eax, [ebp - 0xc]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1003372
cmp dx, bx
je 0x100336e
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1003372
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x100334c
xor eax, eax
jmp 0x1003377
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x100339d
push 4
lea eax, [ebp - 0x58]
push eax
push 1
push ebx
push esi
push dword [ebp - 0x44]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegSetValueExW]
test eax, eax
jne 0x100339d
push ebx
push ebx
push ebx
push 0x5b
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push dword [ebp - 0x44]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
pop edi
pop esi
pop ebx
jmp 0x10024bb
Function at 0x10024cf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp dword [0x1006080], esi
je 0x1002539
lea eax, [ebp - 8]
push eax
push 1
push esi
push 0x1002560
push 0x80000002
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002533
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x1002544
push dword [ebp - 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x1003470
push dword [ebp - 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov dword [0x1006080], esi
mov eax, dword [0x10064a4]
pop esi
leave
ret
cmp dword [ebp - 4], esi
setne al
mov dword [0x10064a4], eax
jmp 0x100252a
Function at 0x1002d57
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0xc], 0
push ebx
push esi
mov esi, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 4]
push eax
mov edi, 0x20019
push edi
push 0
push 0x1002078
push 0x80000001
call esi
mov ebx, dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1002db6
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1002e58
push dword [ebp - 4]
mov dword [ebp - 8], 4
call ebx
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push edi
push 0
push 0x1002078
push 0x80000002
call esi
test eax, eax
jne 0x1002df5
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1002e58
push dword [ebp - 4]
mov dword [ebp - 8], 4
call ebx
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push edi
push 0
push 0x1001fa8
push 0x80000001
call esi
test eax, eax
je 0x100322c
lea eax, [ebp - 4]
push eax
push edi
push 0
push 0x1001fa8
push 0x80000002
call esi
test eax, eax
jne 0x1002e4f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1002e58
push dword [ebp - 4]
mov dword [ebp - 8], 4
call ebx
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1002e58
push dword [ebp - 4]
mov dword [ebp - 8], 4
call ebx
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
jmp 0x1002e10

Function at 0x1002ec9
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x1006084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push dword [eax + 0x1d4]
lea eax, [ebp - 0x9c]
push 0x1002f70
push 0x4b
push eax
xor edi, edi
call fcn.01002ff9
add esp, 0x10
test eax, eax
jl 0x1002f5c
push esi
lea eax, [ebp - 0x9c]
push eax
mov esi, 0x80000001
push esi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegDeleteTreeW]
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xa4]
push eax
push edi
push 2
push 1
push edi
push edi
lea eax, [ebp - 0x9c]
push eax
push esi
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCreateKeyExW]
pop esi
test eax, eax
jne 0x1002f5c
push dword [ebp - 0xa4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
cmp dword [ebp - 0xa0], 1
jne 0x1002f5c
inc edi
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.01001841
leave
ret
Function at 0x100489c
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 1
xor ebx, ebx
push ebx
push 0x1004910
push 0x80000001
mov dword [ebp - 4], ebx
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegOpenKeyExW]
test eax, eax
je 0x10048c8
xor al, al
jmp 0x1004908
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push 0x10045c0
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x10048fc
cmp dword [ebp - 8], 1
jne 0x10048fc
mov eax, dword [ebp + 0xc]
shr eax, 1
xor ecx, ecx
mov word [esi + eax*2 - 2], cx
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov al, bl
pop esi
pop ebx
leave
ret 8

Function at 0x1004bac
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1006084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1004c94
push 0x80000000
call dword [sym.imp.KERNEL32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1004c81
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.KERNEL32.dll_RegQueryValueExA]
test eax, eax
jne 0x1004c70
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x1004c5a
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x1004c70
push eax
push edi
push dword [ebp - 0x110]
call fcn.01004b44
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x1004c83
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01001841
leave
ret 4
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
mov esi, 0x28a75abf
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x32363b98
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x42055f
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x420566
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x420584
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4205e2
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4205c9
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4205d2
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4205dc
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4205be
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
invalid

Function at 0x4206a8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax - 0x3525b], al
inc dword [eax]
mov byte [ebp - 0x352], 0xda
and byte [ebp - 0x351], 0
mov byte [ebp - 0x350], 0x62
mov byte [ebp - 0x34f], 0x40
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
mov byte [ebp - 0x34c], 0x57
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
invalid
invalid
invalid
cld

Function at 0x420b45
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [ebp - 0x3337b], cl
call dword [eax - 1]
jne 0x420b58
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x420b83
push 0xc6fffffc
test dword [edx + edi*8 - 0x7cfe0001], edi
mov ebp, 0xfffffc68
add byte [edi + edx - 0x7d], dh
mov ebp, 0xfffffc68
add byte [edi], cl
test ah, dl
add dword [eax], eax
add byte [ebx + 0xf010c7d], al
test dl, cl
add dword [eax], eax
add byte [ebx + 0xf080c7d], al
test dword [eax - 0x7fffffff], ecx
movsd dword es:[edi], dword [esi]
dec eax
stc
invalid
cmp dword [ebp - 0x398], 0
je 0x420d4d
cmp dword [ebp + 0xc], 1
je 0x420d4d
cmp dword [ebp + 0xc], 8
jne 0x420d15
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
invalid
Function at 0x420dbd
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax]
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
mov eax, dword [ebp - 0x28]
dec eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x550]
movsx eax, byte [ebp + eax - 0x655]
cmp eax, 0x5c
jne 0x420f5b
mov eax, dword [ebp - 0x550]
dec eax
mov dword [ebp - 0x550], eax
and dword [ebp - 0x338], 0
and dword [ebp - 0x3d0], 0
jmp 0x420f78
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x405dd1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405dab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc

Function at 0x409ce1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x409ce1
lcall 0x5de5, 0x8b10c483
jmp loc.0095f1ac
Function at 0x403150
Capabilities:
Initialize winhttp library

Disassembly:
cmp dword [esi + 0x3c], 8
lea eax, [esi + 0x28]
jb 0x40315b
mov eax, dword [eax]
push edi
push 0
push 0
push 0
push 1
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 4], eax
test eax, eax
jne 0x403180
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._HttpSession::Connect__WinHttpOpen_failed.__Error:__d
jmp 0x4031eb
cmp byte [esi + 0x80], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
je 0x4031bc
mov ecx, dword [esi + 0x7c]
mov edx, dword [esi + 0x78]
push ecx
mov ecx, dword [esi + 0x74]
push edx
mov edx, dword [esi + 0x70]
push ecx
push edx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
test eax, eax
jne 0x4031bc
call edi
push eax
push str._HttpSession::Connect__WinHttpSetTimeouts_failed.__Error:__d
push 1
call fcn.005304d0
add esp, 0xc
cmp dword [esi + 0x20], 8
lea eax, [esi + 0xc]
jb 0x4031c7
mov eax, dword [eax]
movzx ecx, word [esi + 0x88]
mov edx, dword [esi + 4]
push 0
push ecx
push eax
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [esi + 8], eax
test eax, eax
jne 0x403221
call edi
push eax
push str._HttpSession::Connect__WinHttpConnect_failed.__Error:__d
push 1
call fcn.005304d0
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
add esp, 0xc
test eax, eax
je 0x40320c
push eax
call edi
mov dword [esi + 8], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40321d
push eax
call edi
mov dword [esi + 4], 0
xor al, al
pop edi
ret
mov al, 1
pop edi
ret
Function at 0x4057d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ab6cb
mov eax, dword fs:[0]
push eax
sub esp, 0x980
mov eax, dword [0x62d12c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 0x11c
lea eax, [ebp - 0x988]
push ebx
push eax
mov dword [ebp - 0x98c], ebx
call fcn.0055aed0
add esp, 0xc
lea ecx, [ebp - 0x988]
push ecx
mov dword [ebp - 0x988], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x405856
push ebx
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push 0x5e3368
mov ecx, esi
mov word [esi], dx
call fcn.00422a20
jmp 0x4059e8
xor eax, eax
mov dword [ebp - 0x858], 7
mov dword [ebp - 0x85c], ebx
mov word [ebp - 0x86c], ax
push 0x20
lea ecx, [ebp - 0x50]
push ecx
push 0x59
mov dword [ebp - 4], ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0x800
call edi
test eax, eax
je 0x4058ff
lea eax, [ebp - 0x50]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x405891
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x50]
push edx
lea ecx, [ebp - 0x86c]
call fcn.00416d10
push 0x20
lea eax, [ebp - 0x50]
push eax
push 0x5a
push 0x800
call edi
test eax, eax
je 0x4058ff
push 1
push 0x5e4894
lea ecx, [ebp - 0x86c]
call fcn.00416d10
lea eax, [ebp - 0x50]
lea edx, [eax + 2]
jmp 0x4058e0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4058e0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x86c]
call fcn.00416d10
mov edi, 8
cmp dword [ebp - 0x85c], ebx
je 0x40595f
mov eax, dword [ebp - 0x86c]
cmp dword [ebp - 0x858], edi
jae 0x405920
lea eax, [ebp - 0x86c]
mov ecx, dword [ebp - 0x980]
push eax
mov eax, dword [ebp - 0x97c]
lea edx, [ebp - 0x974]
push edx
mov edx, dword [ebp - 0x984]
push eax
push ecx
push edx
push str.QNXWebClient_1.0
push 0x5e4898
push 0xffffffffffffffff
lea eax, [ebp - 0x850]
push 0x400
push eax
call fcn.0055abe8
add esp, 0x28
jmp 0x40599b
mov edx, dword [ebp - 0x97c]
mov eax, dword [ebp - 0x980]
lea ecx, [ebp - 0x974]
push ecx
mov ecx, dword [ebp - 0x984]
push edx
push eax
push ecx
push str.QNXWebClient_1.0
push str._s__Microsoft_Windows_NT__d._d._d__s_
push 0xffffffffffffffff
lea edx, [ebp - 0x850]
push 0x400
push edx
call fcn.0055abe8
add esp, 0x24
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
lea eax, [ebp - 0x850]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4059b3
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x850]
push ecx
mov ecx, esi
call fcn.00422a20
cmp dword [ebp - 0x858], edi
jb 0x4059e8
mov edx, dword [ebp - 0x86c]
push edx
call fcn.00558723
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00558b78
mov esp, ebp
pop ebp
ret