joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403550
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x40357a
add eax, dword [0x472e18]
push edi
push edi
push eax
push dword [0x40b014]
mov dword [0x42f1e4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.004033d2
cmp eax, edi
jl 0x403673
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x40b014]
call ebx
test eax, eax
je 0x40366f
cmp dword [ebp - 4], esi
jne 0x40366f
push dword [ebp + 8]
add dword [0x42f1e4], esi
call fcn.004033d2
mov dword [ebp - 8], eax
cmp eax, edi
jl 0x403672
cmp dword [ebp + 0x10], edi
jne 0x40363e
cmp dword [ebp + 8], edi
jle 0x40366a
mov esi, 0x42f1e8
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x4035ee
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x40b014]
call ebx
test eax, eax
je 0x40366f
cmp edi, dword [ebp - 4]
jne 0x40366f
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40363a
cmp dword [ebp + 0x14], edi
jne 0x40363a
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x42f1e4], eax
cmp dword [ebp + 8], 0
jg 0x4035e1
jmp 0x40366a
push 0xfffffffffffffffe
jmp 0x403671
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403649
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40b014]
call ebx
test eax, eax
je 0x40366f
mov eax, dword [ebp - 4]
add dword [0x42f1e4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403672
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10

Function at 0x405fb0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cli
mov byte [ebp - 0x6ea], 0xd5
mov byte [ebp - 0x6e9], pe_nt_image_headers32
mov byte [ebp - 0x6e8], 0xd9
mov byte [ebp - 0x6e7], 0xbc
call fcn.0040465d
or ebp, edx
inc ebp
xchg edx, eax
lea eax, [ebp - 0x6f4]
push eax
invalid
mov esp, esi
Function at 0x4040d6
Capabilities:
Encode data using base64

Disassembly:
push 0x14
mov eax, 0x4644e1
call fcn.00447270
xor esi, esi
mov dword [ebp - 4], esi
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], esi
call fcn.00403950
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], 1
cmp dword [ebp + 0x10], esi
je 0x404223
mov edi, dword [ebp + 0xc]
mov al, byte [edi]
dec dword [ebp + 0x10]
mov byte [ebp + esi - 0x10], al
mov bl, byte [ebp - 0xf]
inc esi
inc edi
cmp esi, 3
jne 0x40417f
mov al, byte [ebp - 0x10]
shr al, 2
mov byte [ebp - 0x14], al
mov al, byte [ebp - 0x10]
and al, 3
shl al, 4
mov cl, bl
shr cl, 4
add al, cl
mov cl, byte [ebp - 0xe]
mov byte [ebp - 0x13], al
mov al, bl
and al, 0xf
shl al, 2
shr cl, 6
add al, cl
mov byte [ebp - 0x12], al
mov al, byte [ebp - 0xe]
and al, 0x3f
mov byte [ebp - 0x11], al
xor esi, esi
movzx eax, byte [ebp + esi - 0x14]
push eax
mov ecx, 0x48e5d8
call fcn.00403361
mov al, byte [eax]
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 0x1c], al
push dword [ebp - 0x1c]
push 1
call fcn.004039e1
inc esi
cmp esi, 4
jl 0x404155
xor esi, esi
cmp dword [ebp + 0x10], 0
jne 0x40410b
xor edi, edi
cmp esi, edi
je 0x404223
cmp esi, 3
jge 0x4041ab
push 3
pop ecx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x10]
push edi
push eax
call fcn.00448f60
mov bl, byte [ebp - 0xf]
add esp, 0xc
mov al, byte [ebp - 0x10]
mov cl, al
shr cl, 2
mov byte [ebp - 0x14], cl
and al, 3
mov cl, bl
shl al, 4
shr cl, 4
add al, cl
mov byte [ebp - 0x13], al
mov al, byte [ebp - 0xe]
and bl, 0xf
mov cl, al
shl bl, 2
shr cl, 6
add bl, cl
mov byte [ebp - 0x12], bl
and al, 0x3f
lea ebx, [esi + 1]
mov byte [ebp - 0x11], al
test ebx, ebx
jle 0x40420b
movzx eax, byte [ebp + edi - 0x14]
push eax
mov ecx, 0x48e5d8
call fcn.00403361
mov al, byte [eax]
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 0x1c], al
push dword [ebp - 0x1c]
push 1
call fcn.004039e1
inc edi
cmp edi, ebx
jl 0x4041e4
push 3
pop edi
cmp esi, edi
jge 0x404223
sub edi, esi
mov ecx, dword [ebp - 0x18]
push 0x3d
push 1
call fcn.004039e1
dec edi
jne 0x404214
mov eax, dword [ebp - 0x18]
call fcn.00447348
ret
Function at 0x409979
Capabilities:
Download url
Receive data

Disassembly:
push 0x51c
mov eax, 0x4653a8
call fcn.004472d9
xor esi, esi
mov dword [ebp - 4], esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x528], edi
mov dword [ebp - 0x520], esi
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
push 0x46ec7c
mov ecx, 0x48e84c
call fcn.00401b45
mov ecx, edi
call fcn.00407f34
push esi
push esi
lea eax, [ebp - 0x51c]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x520], ebx
push esi
call sub.urlmon.dll_URLOpenBlockingStreamW
mov esi, 0x500
mov eax, dword [ebp - 0x51c]
mov ecx, dword [eax]
lea edx, [ebp - 0x524]
push edx
push esi
lea edx, [ebp - 0x510]
push edx
push eax
call dword [ecx + 0xc]
lea ecx, [ebp - 0x514]
mov dword [ebp - 0x518], eax
call fcn.00407f34
mov byte [ebp - 4], 2
push esi
lea eax, [ebp - 0x510]
push eax
push esi
lea ecx, [ebp - 0x514]
call fcn.004087e7
push eax
call fcn.00449bf0
add esp, 0xc
push esi
lea ecx, [ebp - 0x514]
call fcn.004074c4
push 0x20
lea ecx, [ebp - 0x514]
call fcn.00408771
push 8
lea ecx, [ebp - 0x514]
call fcn.00408771
push 0xa
lea ecx, [ebp - 0x514]
call fcn.00408771
mov eax, dword [ebp - 0x514]
push dword [eax - 0xc]
mov ecx, edi
push eax
call fcn.00408909
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x514]
call fcn.00407f5e
cmp dword [ebp - 0x518], 0
jl 0x409a89
cmp dword [ebp - 0x518], ebx
jne 0x4099d5
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.00407f5e
mov eax, edi
call fcn.0044735c
ret 8
Function at 0x40b7c4
Capabilities:
Create process on windows

Disassembly:
push 0x2b4
mov eax, 0x465ce3
call fcn.0044730f
xor esi, esi
mov dword [ebp - 4], esi
push str.openUrlOnDefaultBrowser
mov ecx, 0x48e84c
call fcn.00401b45
mov byte [ebp - 4], 1
push 1
push esi
push esi
push dword [ebp + 8]
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 4], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00407f5e
call fcn.0044736b
ret 4
Function at 0x41706c
Capabilities:
Write file on windows

Disassembly:
push 0x48
mov eax, 0x4683ae
call fcn.004472d9
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x3c], edi
je 0x41717c
cmp byte [esi + 0x41], 0
je 0x41717c
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x4170a2
xor al, al
jmp 0x41717e
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00408bbb
mov dword [ebp - 4], edi
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00416ad3
mov ecx, eax
call fcn.0040259b
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00416ad3
mov ecx, eax
call fcn.0040259b
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push eax
add edi, ebx
push edi
push dword [ebp - 0x34]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x417116
dec eax
je 0x41711a
dec eax
dec eax
je 0x417178
xor bl, bl
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004016a9
mov al, bl
jmp 0x41717e
mov byte [esi + 0x41], 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00416ad3
mov ecx, eax
call fcn.0040259b
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x41715a
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00416ad3
mov ecx, eax
call fcn.0040259b
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0044b376
add esp, 0x10
cmp edi, eax
jne 0x417100
cmp byte [esi + 0x41], 0
je 0x417178
test edi, edi
jne 0x4170b0
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.004039e1
jmp 0x4170b0
mov bl, 1
jmp 0x417102
mov al, 1
call fcn.0044735c
ret
Function at 0x418891
Capabilities:
Check if file exists
Get file attributes
Query environment variable

Disassembly:
push 0x2fc
mov eax, 0x468a34
call fcn.0044730f
xor edi, edi
mov dword [ebp - 4], edi
push 0x46ec08
mov ecx, 0x48e84c
call fcn.00401b45
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
push 0x104
lea eax, [ebp - 0x21c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x254]
call fcn.00404733
mov byte [ebp - 4], 2
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0x254]
call fcn.00416b3e
mov esi, eax
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x254]
call fcn.00416b1c
push dword [esi + 4]
push dword [esi]
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x238]
call fcn.0041762e
mov byte [ebp - 4], 3
cmp dword [ebp - 0x220], 0x10
mov eax, dword [ebp - 0x234]
jae 0x418939
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41897a
mov byte [ebp - 4], 2
push edi
push ebx
lea ecx, [ebp - 0x238]
call fcn.004016a9
mov byte [ebp - 4], bl
push edi
push ebx
lea ecx, [ebp - 0x254]
call fcn.0040306e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00407f5e
xor al, al
call fcn.0044736b
ret
test al, 0x10
je 0x4189af
mov byte [ebp - 4], 2
push edi
push ebx
lea ecx, [ebp - 0x238]
call fcn.004016a9
mov byte [ebp - 4], bl
push edi
push ebx
lea ecx, [ebp - 0x254]
call fcn.0040306e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00407f5e
mov al, bl
jmp 0x418974
mov byte [ebp - 4], 2
push edi
push ebx
lea ecx, [ebp - 0x238]
call fcn.004016a9
mov byte [ebp - 4], bl
push edi
push ebx
lea ecx, [ebp - 0x254]
call fcn.0040306e
mov dword [ebp - 4], edi
jmp 0x418966
Function at 0x41de78
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xc
mov eax, 0x469695
call fcn.004472a3
mov esi, ecx
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [esi + 0x8c], edi
je 0x41dec3
call fcn.0041d9da
test eax, eax
je 0x41decb
lea eax, [ebp - 0x18]
push eax
push 4
push esi
push 0x41dd21
push edi
push edi
call fcn.0044b904
add esp, 0x18
mov dword [esi + 0xa8], eax
cmp eax, edi
je 0x41dec3
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
call fcn.00447348
ret
mov eax, dword [esi + 0xb0]
cmp eax, edi
je 0x41dec3
mov ecx, dword [eax]
lea edx, [ebp - 0x18]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x1c]
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax]
push edi
mov edx, dword [ebp - 0x14]
neg edx
push edx
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push edi
push dword [esi + 0x68]
push dword [esi + 0x64]
push edi
push edi
push dword [esi + 0x90]
push eax
call dword [ecx + 0x20]
test eax, eax
jne 0x41dec3
push edi
mov ecx, esi
call fcn.0041d2ed
xor eax, eax
inc eax
jmp 0x41dec5

Function at 0x41ea2e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 8
mov eax, 0x469778
call fcn.004472a3
mov dword [ebp - 0x14], ecx
and dword [ebp - 4], 0
call fcn.0043b284
mov eax, dword [eax + 0xc]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41ea9a
call fcn.0043b284
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41ea9a
call fcn.0043b284
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x41eaa4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
call fcn.00447348
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp + 0xc], eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x41eaf1
cmp dword [ebp + 0xc], 0
je 0x41eaf1
push edi
push eax
push dword [ebp + 0xc]
call fcn.00449bf0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push esi
mov ecx, dword [ebp - 0x14]
call fcn.0041e712
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
jmp 0x41ea9c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x41ea93
Function at 0x41f5b9
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0x2c4
mov eax, 0x469abc
call fcn.0044730f
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x22c], ebx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x220], esi
xor edi, edi
mov dword [ebp - 4], edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, edi
jne 0x41f5f0
xor eax, eax
inc eax
jmp 0x41f628
lea eax, [ebp - 0x224]
push eax
push 0x20019
push edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x41f62e
cmp eax, 2
jne 0x41f61b
push str.Key_not_found._n
call fcn.0044b9d3
pop ecx
jmp 0x41f5eb
push str.Error_opening_key._n
call fcn.0044b9d3
pop ecx
xor eax, eax
call fcn.0044736b
ret
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esi + eax*2]
mov dword [ebp - 0x234], esi
cmp word [esi - 2], 0x5c
je 0x41f658
push 0x5c
pop eax
mov word [esi], ax
inc esi
inc esi
mov dword [ebp - 0x234], esi
xor eax, eax
mov word [esi], ax
mov dword [ebp - 0x228], 0x104
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x41f69d
lea eax, [ebp - 0x21c]
push eax
push 0x208
push esi
call fcn.0041eb04
push dword [ebp - 0x220]
push dword [ebp - 0x22c]
call fcn.0041f5b9
pop ecx
pop ecx
test eax, eax
je 0x41f6c2
mov dword [ebp - 0x228], 0x104
lea eax, [ebp - 0x23c]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
push dword [ebp - 0x224]
call ebx
cmp eax, edi
je 0x41f66a
dec esi
dec esi
mov dword [ebp - 0x234], esi
xor eax, eax
mov word [esi], ax
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x220]
push dword [ebp - 0x22c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, edi
je 0x41f5eb
or dword [ebp - 4], 0xffffffff
jmp 0x41f626
Function at 0x41fe67
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x38
mov eax, 0x469c9b
call fcn.004472a3
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00407f34
mov byte [ebp - 4], 3
mov byte [ebp - 4], 4
lea eax, [ebp - 0x20]
push eax
push 0x20019
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41fee8
push 0x46db58
mov ecx, dword [ebp + 8]
call fcn.00401cb5
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00407f5e
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.00407f5e
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x14]
call fcn.00407f5e
mov eax, dword [ebp + 8]
jmp 0x4200b3
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
mov byte [ebp - 4], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call esi
mov dword [ebp - 0x28], eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
call fcn.0040167d
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0x20]
call esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 4
jmp 0x41ff76
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.0041eb6c
mov ecx, dword [ebp + 8]
cmp dword [ebp - 0x28], ebx
je 0x41ffa0
push 0x471044
call fcn.00401bd6
jmp 0x41feb6
lea eax, [ebp - 0x14]
push eax
call fcn.004018d3
jmp 0x41feb6
call fcn.00447348
ret
Function at 0x4201cd
Capabilities:
Set registry value

Disassembly:
push 0x2d0
mov eax, 0x469e6b
call fcn.0044730f
mov dword [ebp - 4], 3
mov byte [ebp - 4], 4
lea ecx, [ebp + 0xc]
call fcn.00407eb9
push eax
push ecx
mov ecx, esp
mov dword [ebp - 0x234], esp
lea eax, [ebp + 8]
push eax
call fcn.004018d3
mov byte [ebp - 4], 5
mov byte [ebp - 4], 4
call fcn.0041ed25
pop ecx
push eax
call fcn.0041fa92
pop ecx
pop ecx
lea eax, [ebp - 0x238]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push ecx
mov ecx, esp
mov dword [ebp - 0x234], esp
lea eax, [ebp + 8]
push eax
call fcn.004018d3
mov byte [ebp - 4], 6
mov byte [ebp - 4], 4
call fcn.0041ed25
pop ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4202c1
lea eax, [ebp - 0x238]
push eax
push dword [ebp + 0xc]
push ecx
mov ecx, esp
mov dword [ebp - 0x234], esp
lea eax, [ebp + 8]
push eax
call fcn.004018d3
mov byte [ebp - 4], 7
mov byte [ebp - 4], 4
call fcn.0041ed25
pop ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x4202c1
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
call fcn.00407f5e
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.00407f5e
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x10]
call fcn.00407f5e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.00407f5e
push 0xfffffffffffffff6
pop eax
jmp 0x42048d
lea ecx, [ebp - 0x230]
call fcn.00403692
mov byte [ebp - 4], 8
push dword [ebp + 0x14]
lea ecx, [ebp - 0x230]
call fcn.004042a3
cmp dword [ebp - 0x218], 8
mov eax, dword [ebp - 0x22c]
jae 0x4202f3
lea eax, [ebp - 0x22c]
mov ecx, dword [ebp - 0x21c]
add ecx, ecx
push ecx
push eax
push 1
push ebx
push dword [ebp + 0x10]
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
push dword [ebp - 0x238]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
lea ecx, [ebp + 0x14]
call fcn.0041eb6c
mov byte [ebp - 4], 4
push ebx
push 1
lea ecx, [ebp - 0x230]
call fcn.0040306e
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
call fcn.00407f5e
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.00407f5e
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x10]
call fcn.00407f5e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call fcn.00407f5e
mov eax, esi
jmp 0x42048d
call fcn.0044736b
ret
Function at 0x4226d8
Capabilities:
Reference wmi statements

Disassembly:
push 8
mov eax, 0x46a48d
call fcn.00447270
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
and dword [ebp - 0x10], 0
push str.Caption
push 0x46d957
push str.SELECT__FROM_Win32_OperatingSystem
push str.ROOTcimv2
push esi
mov dword [ebp - 0x14], esi
call fcn.00421ad0
add esp, 0x14
and dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
mov eax, esi
call fcn.00447348
ret

Function at 0x422722
Capabilities:
Get geographical location

Disassembly:
push 0x4bc
mov eax, 0x46a5f3
call fcn.0044730f
mov esi, dword [ebp + 8]
mov dword [ebp - 0x434], esi
and dword [ebp - 0x430], 0
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
xor eax, eax
mov word [ebp - 0x214], ax
push 0x1fc
push eax
lea eax, [ebp - 0x212]
push eax
call fcn.00448f60
add esp, 0xc
push 0x1fe
lea eax, [ebp - 0x214]
push eax
push 0x59
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea ecx, [ebp - 0x418]
call fcn.00407f34
mov byte [ebp - 4], 2
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x418]
call fcn.00401b45
lea eax, [ebp - 0x418]
push eax
mov ecx, esi
call fcn.004018d3
mov dword [ebp - 0x430], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x418]
call fcn.00407f5e
mov eax, esi
jmp 0x4228d2
call fcn.0044736b
ret

Function at 0x42f5a5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x42f5ec
call fcn.0043b284
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x42f5ec
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x42f608
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0042f11d
mov esi, eax
test edi, edi
je 0x42f606
test ebx, ebx
je 0x42f606
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x42fdab
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x46bf05
call fcn.00447270
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x42fdd0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x42fe16
lea ecx, [ebp - 0x10]
call fcn.00407f34
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042360e
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401109
mov eax, esi
call fcn.00447348
ret 8
Function at 0x4305de
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x430626
call fcn.0043b284
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x430626
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x430669
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x430652
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x430652
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x430666
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4394ca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4394ee
cmp dword [edi + 0x54], 0
jne 0x4394ee
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0043b284
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0043948b
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x43e217
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x43e242
call fcn.0043b284
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x43e265
push eax
push dword [esi + 4]
call fcn.0043e19d
push esi
push eax
mov ecx, 0x4905b8
call fcn.0043de24
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x43ece5
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x46b9f7
call fcn.00447270
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0043eca5
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00407f34
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 4], eax
test eax, eax
jne 0x43ed4b
push eax
push dword [esi + 8]
call fcn.0043e19d
push dword [esi + 0xc]
mov ecx, 0x4905b8
push eax
call fcn.0043de24
mov eax, esi
call fcn.00447348
ret 0x18

Function at 0x447261
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48d188]
jne 0x44726b
repz ret
jmp fcn.004502ec