joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1037023
Capabilities:
Delete registry value

Disassembly:
mov eax, 0x1040757
call fcn.0103cb58
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
push 0x10063b4
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], ebx
call fcn.01007b57
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x10], ebx
je 0x1037128
cmp dword [esi + 0x3e8], ebx
je 0x103707a
xor edi, edi
cmp dword [ebp + 0xc], ebx
jbe 0x103707a
mov eax, dword [ebp + 8]
push dword [eax + edi*4]
push dword [esi + 0x3e8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x1037062
push 0x10063a8
lea ecx, [ebp + 0xc]
call fcn.01007b57
mov byte [ebp - 4], 1
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.010084dd
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
je 0x10370ae
call fcn.01008084
mov dword [ebp + 0xc], ebx
mov edi, dword [ebp - 0x14]
cmp edi, ebx
je 0x10370b9
mov eax, dword [edi]
jmp 0x10370bb
xor eax, eax
mov esi, dword [esi]
mov ecx, dword [esi]
lea edx, [ebp - 0x10]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push esi
call dword [ecx + 0xc]
test eax, eax
jl 0x103710d
push dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
call fcn.01007b57
mov byte [ebp - 4], 4
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x10370ec
mov ecx, dword [esi]
jmp 0x10370ee
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
push ebx
push ebx
push ebx
push ecx
push eax
call dword [edx + 0x40]
mov byte [ebp - 4], 3
cmp esi, ebx
je 0x103710d
mov ecx, esi
call fcn.01008084
mov dword [ebp + 0xc], ebx
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x10371af
call fcn.01008084
mov dword [ebp - 0x18], ebx
jmp 0x10371af
cmp dword [esi + 0x3e4], ebx
je 0x103714f
xor edi, edi
cmp dword [ebp + 0xc], ebx
jbe 0x103714f
mov eax, dword [ebp + 8]
push dword [eax + edi*4]
push dword [esi + 0x3e4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x1037137
mov edi, dword [ebp - 0x14]
cmp edi, ebx
je 0x103715a
mov eax, dword [edi]
jmp 0x103715c
xor eax, eax
mov esi, dword [esi]
mov ecx, dword [esi]
lea edx, [ebp - 0x10]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push esi
call dword [ecx + 0xc]
cmp eax, ebx
jl 0x10371af
push 0x1006378
lea ecx, [ebp + 0xc]
call fcn.01007b57
mov byte [ebp - 4], 5
mov esi, dword [ebp + 0xc]
cmp esi, ebx
je 0x103718f
mov ecx, dword [esi]
jmp 0x1037191
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
push ebx
push ebx
push ebx
push ecx
push eax
call dword [edx + 0x40]
mov byte [ebp - 4], bl
cmp esi, ebx
je 0x10371af
mov ecx, esi
call fcn.01008084
mov dword [ebp + 0xc], ebx
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x10371bf
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x10], ebx
or dword [ebp - 4], 0xffffffff
cmp edi, ebx
je 0x10371d1
mov ecx, edi
call fcn.01008084
mov dword [ebp - 0x14], ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x4028dc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403c68
test esi, esi
jne 0x402912
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403d58
jmp 0x402930
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004027f0
mov edi, eax
test esi, esi
je 0x402930
cmp dword [ebx], 0
je 0x402930
dec esi
jmp 0x402919
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402eb8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x418020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402f50
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402f30
xor eax, eax
push ebp
push 0x402f29
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 0x402f6c
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 0x402f30
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x418020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x418020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403aec
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x419044], 0
je 0x403b4d
cmp word [0x419218], 0xd7b2
jne 0x403b15
cmp dword [0x419220], 0
jbe 0x403b15
mov eax, 0x419214
call dword [0x419230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x41806c
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 0x403b74
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x418030], 0
jne 0x403b69
push 0
push 0x418064
push 0x41806c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404e40
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405070
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404ec3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405070
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404ec3
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40508c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404f4c
xor eax, eax
push ebp
push 0x404f45
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404c88
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404f2a
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4050ac
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404f2a
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404f4c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x405066
cmp byte [ebp - 0xd], 0
jne 0x404f93
cmp byte [ebp - 0x12], 0
je 0x405066
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404fac
dec ebx
cmp byte [ebx], 0x2e
je 0x404fbb
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404fab
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405066
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404ff8
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405066
cmp byte [ebp - 0xd], 0
je 0x405066
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x405066
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4056fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405762
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403ed8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402aac
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40574c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405769
lea eax, [ebp - 0x10]
call fcn.00403c68
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404104
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x407565
test al, 0x10
jne 0x407569
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40a14c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a185
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403d58
jmp 0x40a18e
mov eax, ebx
mov edx, esi
call fcn.00403cbc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a198
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a1b9
mov al, byte [esp]
jmp 0x40a1bb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a840
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a6b8
mov eax, dword [0x4185bc]
cmp byte [eax], 0
je 0x40a8bc
mov eax, dword [0x4184c0]
call fcn.004029b8
call fcn.0040271c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407818
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40a904
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a8f2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x418498]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x419660]
call fcn.00404c4c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40b5a0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40b604
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403ed8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004071cc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b60b
lea eax, [ebp - 0xc]
call fcn.00403c68
ret

Function at 0x4143a4
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004040f4
mov eax, dword [ebp - 8]
call fcn.004040f4
mov eax, dword [ebp - 0xc]
call fcn.004040f4
xor eax, eax
push ebp
push 0x41441b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404104
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404104
push eax
mov eax, dword [ebp - 8]
call fcn.00404104
push eax
call sub.kernel32.dll_GetPrivateProfileIntA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414422
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403c8c
ret
Function at 0x4153c0
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
mov ebx, edx
mov esi, eax
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, 0x415460
lea eax, [ebp - 0x104]
call fcn.004078d4
dec esi
jne 0x415418
lea eax, [ebp - 0x104]
push eax
push 0
push 0x415470
push 0x415478
call sub.kernel32.dll_GetPrivateProfileIntA
xor edx, edx
push edx
push eax
mov eax, ebx
call fcn.00407140
jmp 0x415459
mov eax, ebx
mov edx, 0x104
call fcn.00404234
lea eax, [ebp - 0x104]
push eax
push 0x104
mov eax, ebx
call fcn.0040415c
push eax
push 0
push 0x415480
push 0x41548c
call sub.kernel32.dll_GetPrivateProfileStringA
mov eax, dword [ebx]
call fcn.00404104
mov edx, eax
mov eax, ebx
call fcn.00403e60
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4170ec
Capabilities:
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 4], ecx
mov ebx, edx
mov eax, dword [ebp - 4]
call fcn.004040f4
xor eax, eax
push ebp
push 0x41727b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.00403e60
mov edx, dword [ebp - 0x118]
lea eax, [ebp - 0x114]
call fcn.004078b0
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
lea eax, [ebp - 0x114]
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x417255
push 2
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
mov esi, eax
call fcn.00408ae8
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x11c]
mov eax, 0x417290
call fcn.00409764
push dword [ebp - 0x11c]
push 0x4172ac
push dword [ebp - 4]
push 0x4172b8
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403fc4
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 4]
call fcn.00403f04
push eax
lea eax, [ebp - 4]
call fcn.0040415c
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
cmp esi, 0x500000
jbe 0x417255
call fcn.00408ae8
add esp, 0xfffffff8
fstp qword [esp]
wait
lea ecx, [ebp - 0xa]
lea edx, [ebp - 8]
lea eax, [ebp - 6]
call fcn.00408aa0
push 1
lea eax, [ebp - 0x120]
lea edx, [ebp - 0x114]
mov ecx, 0x104
call fcn.00403ed8
lea eax, [ebp - 0x120]
push eax
lea edx, [ebp - 0x124]
movzx eax, word [ebp - 8]
call fcn.00407054
mov edx, dword [ebp - 0x124]
pop eax
call fcn.00403f0c
mov eax, dword [ebp - 0x120]
call fcn.00404104
push eax
lea eax, [ebp - 0x114]
push eax
call sub.kernel32.dll_MoveFileExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417282
lea eax, [ebp - 0x124]
mov edx, 4
call fcn.00403c8c
lea eax, [ebp - 4]
call fcn.00403c68
ret
Function at 0x417494
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], eax
lea esi, [ebp - 0x1c]
xor eax, eax
push ebp
push 0x41761a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x417628
push 0
push 0
call fcn.00405a40
mov ebx, eax
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
je 0x4174d5
test ebx, ebx
jne 0x4174e8
test ebx, ebx
je 0x4175ff
push ebx
call sub.kernel32.dll_CloseHandle
jmp 0x4175ff
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.004028dc
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.004076b4
mov edx, dword [ebp - 0x20]
mov eax, 0x419c78
call fcn.004078b0
push 0x419c78
call sub.kernel32.dll_SetCurrentDirectoryA
call fcn.00417428
mov dl, 1
mov eax, dword [0x41534c]
call fcn.00415c00
mov edx, dword [0x4184cc]
mov dword [edx], eax
push 0xa
push 0x14
push 0x32
push 0x96
push 0
push 0
mov eax, dword [0x419660]
push eax
push 0
mov edx, 0x417644
mov eax, 0x417664
mov ecx, 0xcf0000
call fcn.00405cf8
mov edx, dword [0x418548]
mov dword [edx], eax
mov eax, dword [0x418580]
xor edx, edx
mov dword [eax], edx
call sub.kernel32.dll_GetTickCount
mov edx, dword [0x4184c8]
mov dword [edx], eax
push 0
push 0xf
push 1
mov eax, dword [0x418548]
mov eax, dword [eax]
push eax
call sub.user32.dll_SetTimer
push 0
push 0x2710
push 2
mov eax, dword [0x418548]
mov eax, dword [eax]
push eax
call sub.user32.dll_SetTimer
jmp 0x4175ba
cmp dword [esi + 4], 0x12
je 0x4175ca
push esi
call sub.user32.dll_TranslateMessage
mov eax, dword [0x418580]
inc dword [eax]
push esi
call sub.user32.dll_DispatchMessageA
push 0
push 0
push 0
push esi
call sub.user32.dll_GetMessageA
test eax, eax
jne 0x4175a1
mov eax, dword [0x418548]
mov eax, dword [eax]
push eax
call sub.user32.dll_DestroyWindow
mov eax, dword [0x419660]
push eax
push 0x417684
call sub.user32.dll_UnregisterClassA
mov eax, dword [0x4184cc]
mov eax, dword [eax]
call fcn.00403018
push ebx
call sub.kernel32.dll_ReleaseMutex
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417621
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00403c8c
ret
Function at 0x10002000
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x10002071
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x10002071
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x1000205a
jmp 0x10002071
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x10008cce
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10008d27
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x10008d27
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x10008d27
xor eax, eax
inc eax
jmp 0x10008d29
xor eax, eax
leave
ret 0x10
Function at 0x1000c043
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x1000c166
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x1000c14a
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x1000c09c
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x1000c07a
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18
Function at 0x1000c422
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, ecx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
push ebx
mov ebx, dword [edx + 0x20]
push esi
mov esi, dword [edx + 0x6c]
imul esi, dword [edx + 0x60]
add esi, ebx
cmp ebx, esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], esi
jae 0x1000c550
mov eax, 0xf81f
push edi
mov edi, dword [edx + 0x60]
mov edx, dword [edx + 0x68]
lea edx, [ebx + edx*2]
add edi, ebx
cmp ebx, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x20], edx
jae 0x1000c530
movzx ecx, word [edi]
movzx edx, word [edi + 2]
movzx esi, word [ebx + 2]
mov dword [ebp - 4], ecx
movzx ecx, word [ebx]
mov ebx, ecx
and bx, ax
mov edi, edx
and di, ax
mov dword [ebp - 0x1c], ecx
and ecx, 0xffff07e0
add edi, ebx
mov ebx, dword [ebp - 4]
and bx, ax
add edi, ebx
mov ebx, esi
and bx, ax
lea edi, [edi + ebx + 0x1002]
mov ebx, edx
and ebx, 0xffff07e0
add ebx, ecx
mov ecx, dword [ebp - 4]
and ecx, 0xffff07e0
add ebx, ecx
mov ecx, esi
and ecx, 0xffff07e0
lea ecx, [ebx + ecx + 0x40]
mov ebx, dword [ebp - 0xc]
shr ecx, 2
shr edi, 2
xor edi, ecx
mov ecx, dword [ebp - 0x1c]
and ecx, eax
and edx, eax
add edx, ecx
mov ecx, dword [ebp - 4]
and ecx, eax
add edx, ecx
and esi, eax
and edi, 0xffff07e0
lea ecx, [edx + esi + 0x1002]
shr ecx, 2
xor edi, ecx
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 2
mov word [ecx], di
mov edi, dword [ebp - 0x10]
add ebx, 4
add edi, 4
cmp ebx, dword [ebp - 0x20]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
jb 0x1000c47b
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov edi, dword [edx + 4]
add ecx, dword [edi + 0x60]
mov edx, dword [edx]
mov edi, dword [edx + 0x60]
lea ebx, [ebx + edi*2]
cmp ebx, esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
jb 0x1000c45c
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret