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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x494b80]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebx, ebx
push 0x4424e0
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ebx
xor esi, esi
call edi
push 0x4424c4
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x438156
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x1c], ecx
call esi
push dword [ebp - 0x1c]
mov dword [ebp - 0x3c], eax
call esi
push 0x4424a8
push dword [ebp - 0x20]
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x34], eax
call esi
mov dword [ebp - 0x30], eax
push 4
xor ebx, ebx
jmp 0x438258
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x438206
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push ebx
push 0x442480
push SysReAllocStringLen
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x438259
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4381fb
cmp dword [ebp - 0x24], 1
jne 0x4381fb
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push 0x44247c
push eax
call fcn.0041f672
add esp, 0xc
cmp eax, 1
jne 0x4381fb
mov eax, dword [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x18], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
push 2
mov dword [ebp - 0x38], eax
pop esi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x438259
push 0x442470
call edi
cmp eax, ebx
je 0x438259
lea ecx, [ebp - 0x18]
push ecx
push 0x43809e
push 1
push 0x10
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesA]
cmp word [ebp - 0x18], bx
je 0x438259
movzx eax, word [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x3c], eax
call esi
mov dword [ebp - 0x38], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x3c], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x43827f
push dword [ebp + edi*4 - 0x3c]
push dword [ebp + 8]
call fcn.0043801f
cmp eax, ebx
pop ecx
pop ecx
jne 0x438281
inc edi
cmp edi, esi
jl 0x438268
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0041cd5e
leave
ret 4
Function at 0x438290
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [0x493f24], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x493f24
je 0x43834c
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x438334
mov esi, dword [ebx + 4]
jmp 0x43832e
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x43831e
cmp dword [ebp - 0xc], 4
jne 0x43831e
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x438316
or dword [eax + 0x9c], ecx
jmp 0x43831e
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x4382e2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x4382c5
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x43873a
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x43c8c5
call fcn.0041f0a0
sub esp, 0x11c
mov eax, dword [0x494b80]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x124]
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, eax
test esi, esi
jne 0x438833
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x438807
and dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x120]
call fcn.00401a10
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x124]
mov byte [ebp - 4], 1
call fcn.0043873a
mov ecx, dword [ebp - 0x120]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.004012b0
test bl, bl
jne 0x438807
or dword [ebp - 4], 0xffffffff
jmp 0x438778
cmp esi, 0x103
je 0x438817
cmp esi, 0x3f2
jne 0x438827
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
mov eax, esi
call fcn.0041cd5e
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x43936a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x43939f
cmp edi, dword [esi + 0xc]
jge 0x43939f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43939f
cmp edi, dword [eax + 8]
jge 0x43939f
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x4393a1
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x4394a5
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x4394d9
jmp fcn.0042ba11
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x43954a
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x439643
cmp eax, dword [edi + 0xc]
jge 0x439643
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x43959b
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x43962c
cmp dword [ebp + 0xc], ebx
je 0x43962c
jmp 0x4395c5
push 0x10
call fcn.00439236
cmp eax, ebx
je 0x4395b1
mov ecx, eax
call fcn.0043949c
mov esi, eax
jmp 0x4395b3
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x4395dc
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x4395ec
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x4395fe
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0042ba11
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.0041f040
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x43963e
cmp ecx, dword [esi + 8]
jge 0x43963e
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x439644
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x45a8cc
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0045a94b
jae 0x45a8d8
xor ecx, ecx
call fcn.0045a94b
jae 0x45a902
xor eax, eax
call fcn.0045a94b
jae 0x45a913
mov al, 0x10
call fcn.0045a94b
adc al, al
jae 0x45a8f4
jne 0x45a940
stosb byte es:[edi], al
jmp 0x45a8d9
call fcn.0045a957
dec ecx
loop 0x45a91f
mov eax, ebp
call fcn.0045a955
jmp 0x45a941
lodsb al, byte [esi]
shr eax, 1
je 0x45a967
adc ecx, 2
mov ebp, eax
jmp 0x45a941
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0045a955
cmp eax, 0x7d00
jae 0x45a93f
cmp eax, 0x500
jae 0x45a940
cmp eax, 0x7f
ja 0x45a941
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x45a8d9
pop ebp
ret 8
Function at 0x4018a0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43eb0b
mov eax, dword fs:[0]
push eax
mov eax, 0xafe4
call fcn.00416ff0
mov eax, dword [0x451130]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
mov dword [ebp - 0xafe4], edi
mov dword [ebp - 0xafec], edi
mov dword [ebp - 0xafe8], eax
test ecx, ecx
je 0x4018fe
push str.GetProcessImageFileNameW
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xafe8], eax
lea eax, [ebp - 0xafec]
push eax
push 0x9c40
lea eax, [ebp - 0xafd8]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
mov ecx, dword [ebp - 0xafec]
shr ecx, 2
mov dword [ebp - 0xaff0], ecx
test eax, eax
je 0x401aa9
xor esi, esi
mov dword [ebp - 0xafdc], esi
test ecx, ecx
je 0x401aa9
mov edi, edi
push dword [ebp + esi*4 - 0xafd8]
push 1
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x401a90
mov eax, dword [ebp - 0xafe8]
test eax, eax
je 0x40197d
push 0x9c4
lea ecx, [ebp - 0x1398]
push ecx
push ebx
call eax
mov edi, eax
test edi, edi
jne 0x40199c
push 0x9c4
lea eax, [ebp - 0x1398]
push eax
push 0
push ebx
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
mov edi, eax
test edi, edi
je 0x401a89
mov eax, dword [0x451ff0]
push 2
push edi
mov ecx, 0x451ff0
call dword [eax]
test eax, eax
je 0x401ad1
lea esi, [eax + 0x10]
mov dword [ebp - 0xafe0], esi
test edi, edi
js 0x401ac7
cmp edi, dword [esi - 8]
jg 0x401ac7
lea eax, [edi + edi]
xor ecx, ecx
mov dword [esi - 0xc], edi
push eax
mov word [eax + esi], cx
lea ecx, [ebp - 0x1398]
push ecx
push eax
push esi
call fcn.0040be20
add esp, 0x10
mov dword [ebp - 4], 0
mov edi, dword [esi - 0xc]
test edi, edi
js 0x401ac7
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x401a20
push edi
lea ecx, [ebp - 0xafe0]
call fcn.00402eb0
mov esi, dword [ebp - 0xafe0]
lea eax, [edi + 1]
push eax
push esi
call fcn.0040b9d9
add esp, 8
cmp edi, dword [esi - 8]
jg 0x401ac7
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
cmp dword [esi - 0xc], eax
jl 0x401a62
push str.iexplore.exe
push esi
call fcn.0040bb5a
add esp, 8
test eax, eax
je 0x401a62
sub eax, esi
sar eax, 1
js 0x401a62
inc dword [ebp - 0xafe4]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x401a83
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0xafdc]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
mov dword [ebp - 0xafdc], esi
cmp esi, dword [ebp - 0xaff0]
jb 0x401940
mov edi, dword [ebp - 0xafe4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040aeb1
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401010
call fcn.00402d20
int3
Function at 0x404160
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x404175
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x404180
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x404180
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4041b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x4041c9
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4041d5
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x4041d0
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x404830
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43ee26
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x451130]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x4048dc
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x4048dc
call fcn.00403e70
mov esi, eax
jmp 0x4049cc
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4048ff
call fcn.00403e70
jmp 0x4049bf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
test ebx, ebx
jne 0x40491d
call fcn.00403e70
jmp 0x4049bf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x420], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x40493e
mov esi, 0x8007000e
jmp 0x4049c1
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00406a90
jmp 0x404968
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x40497f
mov esi, 0x8007000e
jmp 0x4049c1
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40499f
call fcn.00403e70
jmp 0x4049bf
mov eax, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.00405550
mov esi, eax
test edi, edi
je 0x4049cc
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4049f0
lea ecx, [ebp - 0x418]
call fcn.00407100
jmp 0x4049f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040aeb1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41357a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x451130]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0040d88a
mov dword [ebp - 0x14], eax
cmp dword [0x45460c], edi
jne 0x41366b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4135f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41374b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x41374b
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41374b
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x45460c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x454610], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x454614], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45461c], eax
test eax, eax
je 0x413668
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x454618], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x413690
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x413683
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4136a5
push 4
pop eax
jmp 0x41374d
cmp dword [ebp - 0x14], edi
je 0x4136a5
push dword [0x45460c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41368a
mov eax, dword [0x454618]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x413703
cmp dword [0x45461c], esi
je 0x413703
push eax
call ebx
push dword [0x45461c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x413703
test eax, eax
je 0x413703
call ecx
test eax, eax
je 0x4136f8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4136f8
test byte [ebp - 8], 1
jne 0x413703
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x413733
mov eax, dword [0x454610]
cmp eax, esi
je 0x413730
push eax
call ebx
test eax, eax
je 0x413730
call eax
mov edi, eax
test edi, edi
je 0x413730
mov eax, dword [0x454614]
cmp eax, esi
je 0x413730
push eax
call ebx
test eax, eax
je 0x413730
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x45460c]
call ebx
test eax, eax
je 0x41374b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x41374d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040aeb1
leave
ret
Function at 0x4199c9
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0040cc78
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 0x419a01
xor eax, eax
jmp 0x419a2d
cmp esi, dword [ebp - 4]
je 0x419a2a
cmp dword [ebp + 0xc], 0
je 0x419a2a
push dword [edi + 0x9c]
call fcn.004195d7
push dword [edi + 0x9c]
mov esi, eax
call fcn.00413561
pop ecx
pop ecx
cmp esi, eax
je 0x4199fd
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x436550
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e918
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x244
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x14]
call fcn.004367e0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x4365b7
jmp 0x436683
mov dword [ebp - 0x18], pe_nt_image_headers32
mov dword [ebp - 0x10], 0
jmp 0x4365d0
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0x1c]
jae 0x436683
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x250]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x436677
lea edx, [ebp - 0x250]
push edx
lea ecx, [ebp - 0x50]
call fcn.004099b0
mov dword [ebp - 4], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push 0
push 0
lea ecx, [ebp - 0x38]
call fcn.00402d30
mov byte [ebp - 4], 1
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x50]
push ecx
call fcn.00426c90
add esp, 8
lea edx, [ebp - 0x38]
push edx
mov ecx, dword [ebp + 8]
call fcn.00437820
mov byte [ebp - 4], 0
push 0
push 1
lea ecx, [ebp - 0x38]
call fcn.00402d30
mov dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x50]
call fcn.0040a570
mov dword [ebp - 0x18], pe_nt_image_headers32
jmp 0x4365c7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x403354
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x472020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4033ec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4033cc
xor eax, eax
push ebp
push 0x4033c5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403408
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4033cc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x472020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x472020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4040d0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x474048], 0
je 0x404131
cmp word [0x47421c], 0xd7b2
jne 0x4040f9
cmp dword [0x474224], 0
jbe 0x4040f9
mov eax, 0x474218
call dword [0x474234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47206c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404158
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x472030], 0
jne 0x40414d
push 0
push 0x472064
push 0x47206c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40428c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402a48
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x474049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404254
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc