joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b770
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov dword [ebp - 0x48], edx
mov ebx, ecx
mov eax, dword [0x4a0070]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
lea edi, [ebp - 0x28]
mov dword [edi], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], 0
sub esp, 0xc
mov al, byte [ebp - 0x40]
mov byte [esp + 4], al
mov dword [esp + 8], str.SOFTWAREMozillaFirefoxDefault_Browser_Agent
mov dword [esp], 0x2e
mov ecx, edi
call fcn.00453450
mov eax, dword [edi + 0x10]
mov ecx, dword [edi + 0x14]
cmp eax, ecx
jae 0x42b901
lea edx, [eax + 1]
mov dword [ebp - 0x18], edx
cmp ecx, 8
jb 0x42b7dc
mov ecx, dword [ebp - 0x28]
jmp 0x42b7df
lea ecx, [ebp - 0x28]
mov word [ecx + eax*2], 0x5c
mov word [ecx + eax*2 + 2], 0
lea esi, [ebp - 0x40]
mov ecx, ebx
mov edx, esi
push dword [ebp + 8]
call fcn.0042af70
add esp, 4
mov eax, dword [esi + 0x10]
cmp dword [esi + 0x14], 8
jb 0x42b80a
mov esi, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ebx, edx
sub ebx, ecx
cmp ebx, eax
jb 0x42b90e
lea ebx, [ecx + eax]
mov dword [ebp - 0x18], ebx
cmp edx, 8
jb 0x42b82a
mov edi, dword [ebp - 0x28]
lea ecx, [edi + ecx*2]
add eax, eax
push eax
push esi
push ecx
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov word [edi + ebx*2], 0
mov eax, dword [ebp - 0x2c]
cmp eax, 8
mov edi, dword [ebp - 0x48]
jb 0x42b880
mov ecx, dword [ebp - 0x40]
lea esi, [eax + eax]
add esi, 2
cmp esi, 0x1000
jb 0x42b876
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x42b930
add eax, eax
add eax, 0x25
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.0044fa95
add esp, 8
cmp dword [ebp - 0x14], 8
jb 0x42b88b
mov eax, dword [ebp - 0x28]
jmp 0x42b88e
lea eax, [ebp - 0x28]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
mov ecx, eax
and ecx, 0xfffffffd
movzx edx, ax
or edx, 0x80070000
test eax, eax
cmovle edx, eax
test ecx, ecx
cmove edx, ecx
mov dword [edi], edx
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x42b8ed
mov ecx, dword [ebp - 0x28]
lea esi, [eax + eax]
add esi, 2
cmp esi, 0x1000
jb 0x42b8e3
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x42b930
add eax, eax
add eax, 0x25
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.0044fa95
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00450110
mov eax, edi
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [ebp - 0x28]
call fcn.00455ad0
jmp 0x42b7ec
sub esp, 0x10
mov cl, byte [ebp - 0x44]
mov byte [esp + 4], cl
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp], eax
lea ecx, [ebp - 0x28]
call fcn.00453560
jmp 0x42b840
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x439610
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, edx
mov eax, dword [0x4a0070]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor edi, edi
lea ebx, [ebp - 0x14]
mov dword [ebx], edi
push ebx
push 0x20019
push edi
push str.SOFTWAREPoliciesMozillaFirefox
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4396cb
lea eax, [ebp - 0x18]
mov dword [eax], edi
lea ecx, [ebp - 0x1c]
mov dword [ecx], edi
sub esp, 0x30
xorps xmm0, xmm0
movups xmmword [esp + 0x20], xmm0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], edi
mov dword [esp + 4], edi
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, 2
test eax, eax
jne 0x4396c2
lea ecx, [ebp - 0x20]
mov dword [ecx], 0xffffffff
lea eax, [ebp - 0x24]
mov dword [eax], 4
xor edi, edi
push eax
push ecx
push edi
push 0x10
push esi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
xor ecx, ecx
lea edx, [ebp - 0x20]
cmp dword [edx], edi
sete cl
test eax, eax
mov edi, 2
cmove edi, ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4396d0
mov edi, 2
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00450110
mov eax, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x44f2a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x1c
mov eax, dword [0x4a0148]
test eax, eax
je 0x44f3ae
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x44f2ce
cmp dword [eax + 4], 0
mov esi, eax
jne 0x44f3a5
mov eax, dword [0x4a0148]
test eax, eax
je 0x44f3c0
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x44f3a3
mov esi, eax
test eax, eax
jne 0x44f32c
push 4
push 0x20
call fcn.00416350
add esp, 8
test eax, eax
je 0x44f3e4
mov dword [eax + 4], 0
mov dword [eax + 0x1c], 0x4a0148
mov esi, eax
mov eax, dword [0x4a0148]
test eax, eax
je 0x44f3d2
dec eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp + 8]
test eax, eax
je 0x44f365
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [eax + 4], 0
test edx, edx
je 0x44f365
mov edi, dword [eax + 0x18]
movsd xmm0, qword [eax + 8]
movsd xmm1, qword [eax + 0x10]
mov dword [ebp - 0xc], edi
movsd qword [ebp - 0x14], xmm1
movsd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
jmp 0x44f371
lea eax, [ebp - 0x24]
push eax
call fcn.0044f070
add esp, 4
movsd xmm1, qword [ebp - 0x1c]
movsd xmm0, qword [ebp - 0x24]
movsd qword [esi + 8], xmm1
movsd xmm1, qword [ebp - 0x14]
movsd qword [esi + 0x10], xmm1
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x18], eax
cmp dword [esi + 4], 0
movsd qword [esi], xmm0
je 0x44f3a5
lock dec dword [0x4a0700]
jmp 0x44f3a5
xor esi, esi
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebp
ret
push 0x4a0148
call fcn.00451e80
add esp, 4
jmp 0x44f2b6
push 0x4a0148
call fcn.00451e80
add esp, 4
jmp 0x44f2dc
push 0x4a0148
call fcn.00451e80
add esp, 4
jmp 0x44f324
push 4
push 0x20
call fcn.00451ab0
int3
Function at 0x44f3f0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [0x4a0708]
test edi, edi
jne 0x44f4fb
push 0x4750f1
call sub.KERNEL32.dll_GetModuleHandleA
test eax, eax
je 0x44f43f
mov esi, eax
push str.WaitOnAddress
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x44f43f
mov ebx, eax
push str.WakeByAddressSingle
push esi
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x44f43f
xor esi, esi
mov dword [ebp - 0x10], eax
inc esi
jmp 0x44f4ae
push 0x4750ac
call sub.KERNEL32.dll_GetModuleHandleA
test eax, eax
je 0x44f505
mov ebx, eax
push str.NtCreateKeyedEvent
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x44f505
mov edi, eax
push str.NtReleaseKeyedEvent
push ebx
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
mov dword [ebp - 0x10], eax
je 0x44f505
push str.NtWaitForKeyedEvent
push ebx
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x44f505
mov ecx, edi
mov dword [ebp - 0x14], eax
call dword [section..00cfg]
xor esi, esi
lea eax, [ebp - 0x18]
push esi
push esi
push 0xc0000000
push eax
call edi
test eax, eax
jne 0x44f505
mov ebx, dword [ebp - 0x18]
push 4
push 0x10
call fcn.00416350
add esp, 8
test eax, eax
je 0x44f50a
mov dword [eax], esi
mov edi, eax
mov dword [eax + 4], ebx
mov eax, dword [ebp - 0x10]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 0xc], eax
xor eax, eax
lock cmpxchg dword [0x4a0708], edi
je 0x44f4fb
cmp dword [edi], 0
mov esi, eax
jne 0x44f4ec
push dword [edi + 4]
call sub.KERNEL32.dll_CloseHandle
push 4
push 0x10
push edi
call fcn.004163c0
add esp, 0xc
mov edi, esi
mov eax, edi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.0045ca50
push 4
push 0x10
call fcn.00451ab0
int3
Function at 0x451e80
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
mov edi, dword [esp + 0x30]
cmp dword [edi + 4], 0
je 0x451efa
lea ebx, [edi + 0xc]
mov dword [esp + 4], 0
lea eax, [esp + 4]
push 0
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceBeginInitialize]
cmp eax, 1
mov dword [esp], eax
jne 0x451f35
cmp dword [esp + 4], 0
je 0x451f1c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x451f58
mov esi, eax
inc eax
mov dword [edi], eax
mov eax, dword [0x4a0264]
nop word [eax + eax]
mov dword [edi + 8], eax
lock cmpxchg dword [0x4a0264], edi
jne 0x451ee0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
jmp 0x451f2c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x451f9f
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [edi], ecx
jne 0x451f20
mov esi, dword [esp]
jmp 0x451f2c
mov esi, dword [edi]
jmp 0x451f2b
mov esi, eax
push dword [esp]
call dword [sym.imp.KERNEL32.dll_TlsFree]
dec esi
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
ret
mov dword [esp + 0x10], 0
lea eax, [esp + 8]
mov ecx, esp
mov edx, 0x461aec
push 0x461b20
push eax
call fcn.00451ad0
add esp, 8
ud2
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
mov dword [esp + 0x10], 0x461b44
mov dword [esp + 0x14], 1
mov dword [esp + 8], 0
mov dword [esp + 0x18], 0x460570
mov dword [esp + 0x1c], 0
lea eax, [esp + 8]
push 0x461b4c
push eax
call fcn.00451510
add esp, 8
ud2
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0x461b44
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 0x460570
mov dword [esp + 0x1c], 0
call fcn.00451b90
ud2
Function at 0x452610
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x270
mov eax, dword [0x4a0070]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x21a]
push 0x20a
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x452662
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
add esp, 4
add eax, 0xffffff07
cmp eax, 0xfffffefc
jae 0x45267b
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00450110
mov eax, ebx
add esp, 0x270
pop esi
pop edi
pop ebx
pop ebp
ret
push str.control.exe
push edi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor ebx, ebx
test eax, eax
je 0x452664
lea esi, [ebp - 0x220]
mov dword [esi], ebx
mov ecx, esi
call fcn.00452460
mov eax, dword [esi]
mov dword [ebp - 0x278], eax
mov ecx, str.control.exe__name_Microsoft.DefaultPrograms__page_pageDefaultProgrampageAdvancedSettings_pszAppName_s
push eax
push ecx
call fcn.00452550
add esp, 8
lea ecx, [eax + 1]
mov dword [ebp - 0x27c], ecx
lea ecx, [eax + eax]
add ecx, 2
xor esi, esi
dec esi
cmp eax, 0xffffffff
cmovge esi, ecx
push esi
call fcn.0044fa57
add esp, 4
push esi
push ebx
mov esi, eax
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push dword [ebp - 0x278]
mov eax, str.control.exe__name_Microsoft.DefaultPrograms__page_pageDefaultProgrampageAdvancedSettings_pszAppName_s
push eax
push 0xffffffffffffffff
push dword [ebp - 0x27c]
push esi
call fcn.004525b0
add esp, 0x14
xorps xmm0, xmm0
lea eax, [ebp - 0x264]
movups xmmword [eax + 0x24], xmm0
movups xmmword [eax + 0x34], xmm0
movups xmmword [eax + 0x14], xmm0
movups xmmword [eax + 4], xmm0
mov dword [eax], 0x44
mov dword [eax + 0x2c], 1
mov word [eax + 0x30], 0xa
lea ecx, [ebp - 0x274]
movups xmmword [ecx], xmm0
sub esp, 0x28
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], ebx
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne bl
je 0x452775
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x274]
call edi
push dword [ebp - 0x270]
call edi
push esi
call fcn.0044fa60
add esp, 4
mov eax, dword [ebp - 0x278]
test eax, eax
je 0x452664
push eax
call fcn.0044fa60
add esp, 4
jmp 0x452664
Function at 0x455070
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x4a0070]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov bl, 1
cmp dword [ecx + 0x38], 0
je 0x455112
mov esi, ecx
cmp byte [ecx + 0x3d], 0
je 0x455112
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [section..00cfg]
mov ecx, esi
push 0xffffffffffffffff
call edi
cmp eax, 0xffffffff
je 0x455110
mov ebx, dword [esi + 0x38]
lea eax, [esi + 0x40]
mov dword [ebp - 0x38], eax
mov eax, dword [ebx]
mov edi, dword [eax + 0x20]
mov ecx, edi
call dword [section..00cfg]
lea eax, [ebp - 0x34]
lea edx, [ebp - 0x30]
mov ecx, ebx
mov ebx, edx
push eax
lea eax, [ebp - 0x10]
push eax
push edx
push dword [ebp - 0x38]
call edi
cmp eax, 3
je 0x455126
cmp eax, 1
je 0x4550ec
test eax, eax
jne 0x455110
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x34]
sub edi, ebx
je 0x455107
push dword [esi + 0x4c]
push edi
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x455110
cmp byte [esi + 0x3d], 0
sete bl
jmp 0x455112
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00450110
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov byte [esi + 0x3d], 0
mov bl, 1
jmp 0x455112
Function at 0x401029
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x423f20]
and dword [ebp - 8], 0
mov dword [ebp - 0x24], eax
mov eax, dword [0x423f24]
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [ebx + 4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], esi
call fcn.00401022
mov eax, dword [0x423f28]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x18], eax
mov eax, dword [0x423f2c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, dword [0x2443ef4]
mov ecx, esi
shl ecx, 4
add ecx, dword [ebp - 0x18]
cmp eax, 0xfa9
jne 0x40109c
mov dword [0x2443ef0], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010aa
and dword [0x244397c], 0
mov eax, dword [ebp - 0x10]
shr eax, 5
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 8]
add edx, esi
xor eax, edx
xor eax, ecx
sub edi, eax
cmp dword [0x2443ef4], 0xc
mov dword [0x2443eec], 0xf4ea3dee
mov dword [ebp - 4], eax
jne 0x4010f1
lea eax, [ebp - 0x28]
push eax
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push 0
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
mov eax, edi
shr eax, 5
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 0x61c88647
mov eax, edi
shl eax, 4
add eax, dword [ebp - 0x24]
add ecx, edi
xor eax, ecx
xor eax, dword [ebp - 4]
sub esi, eax
dec dword [ebp - 0x14]
mov dword [ebp - 0x10], esi
jne 0x401073
mov dword [ebx + 4], edi
pop edi
mov dword [ebx], esi
pop esi
leave
ret

Function at 0x40112f
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x2443ef4]
mov ecx, dword [0x2443980]
sub esp, 0xc00
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x4011ea
push ebx
push edi
mov ebx, ecx
mov edi, eax
cmp dword [0x2443ef4], 0x959
jne 0x4011d9
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectA]
push esi
push esi
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push str.Mokigehate_xolega_viricuh_mazu_fiboy
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push str.zewaxuwawazuwuyuvivi
push esi
call dword [sym.imp.KERNEL32.dll_FatalAppExitW]
push str.ozofowegad_dinomebaxedidox
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
push esi
lea eax, [ebp - 0xc00]
push eax
push esi
push str.pajebipew
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringW]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call fcn.00401029
add ebx, 8
dec edi
jne 0x401157
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4014a1
Capabilities:
Clear file content
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push esi
xor esi, esi
cmp dword [0x2443ef4], 0x400
push edi
jne 0x4014fe
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_DrawStateW]
push esi
call fcn.004016d6
push esi
push esi
call fcn.0040180c
push esi
call fcn.00401e01
push esi
push esi
call fcn.00401c4c
push esi
call fcn.00401e97
push esi
push esi
call fcn.00401710
add esp, 0x24
xor edi, edi
cmp edi, 0x16d2a
jge 0x401516
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_GetCharABCWidthsI]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp edi, 0x12e82fe
jg 0x40153b
inc edi
cmp edi, 0x3011b
jl 0x401500
mov eax, dword [0x426864]
mov dword [0x2443ef4], eax
call fcn.004011ed
mov edi, 0x2ec37
cmp dword [0x2443ef4], 0x51f
jne 0x401569
push esi
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
dec edi
jne 0x40154f
pop edi
xor eax, eax
pop esi
leave
ret 0x10

Function at 0x406f9a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x423cfc]
jne 0x406fa4
repz ret
jmp fcn.004090f3
Function at 0x4082dd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x423cfc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004053ba
and dword [ebp - 0x14], 0
cmp dword [0x4314b4], 0
mov dword [ebp - 0x18], eax
jne 0x408390
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x408438
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x408438
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4314b4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4314b8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4314bc], eax
call edi
push eax
call esi
mov dword [0x4314c4], eax
test eax, eax
je 0x408390
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4314c0], eax
mov eax, dword [0x4314c0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4083e9
cmp dword [0x4314c4], ecx
je 0x4083e9
push eax
call esi
push dword [0x4314c4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4083e9
test ebx, ebx
je 0x4083e9
call edi
test eax, eax
je 0x4083e0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4083e0
test byte [ebp - 8], 1
jne 0x4083e9
or dword [ebp + 0x10], 0x200000
jmp 0x40841c
mov eax, dword [0x4314b8]
cmp eax, dword [ebp - 0x18]
je 0x40841c
push eax
call esi
test eax, eax
je 0x40841c
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40841c
mov eax, dword [0x4314bc]
cmp eax, dword [ebp - 0x18]
je 0x40841c
push eax
call esi
test eax, eax
je 0x40841c
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4314b4]
call esi
test eax, eax
je 0x408438
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40843a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406f9a
leave
ret
Function at 0x4038c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x41a020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403958
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403938
xor eax, eax
push ebp
push 0x403931
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 0x403990
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403938
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x41a020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x41a020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4047dc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41b04c], 0
je 0x40483d
cmp word [0x41b328], 0xd7b2
jne 0x404805
cmp dword [0x41b330], 0
jbe 0x404805
mov eax, 0x41b324
call dword [0x41b340]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
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 0x404868
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x41a02c], 0
jne 0x404859
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406814
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x408518
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4085c1
test eax, edx
je 0x4085c4
push 0
push 0
cmp word [eax - 0xa], 2
je 0x408541
push edx
mov edx, eax
mov eax, esp
call fcn.00405288
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x408557
push eax
lea eax, [esp + 8]
call fcn.00405288
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x408566
movzx eax, word [eax]
sub eax, ecx
jmp 0x40858d
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4085a7
add ecx, 4
js 0x40857e
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x4085a4
push eax
mov eax, ecx
mov edx, 2
call fcn.004049a8
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40858b
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40858d
xor eax, eax
ret
test eax, eax
je 0x4085d4
test edx, edx
jne 0x408528
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40c33c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40c375
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004051f0
jmp 0x40c37e
mov eax, ebx
mov edx, esi
call fcn.004050b4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c388
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40c3aa
movzx eax, word [esp]
jmp 0x40c3ac
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret