joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ea0
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Reference http user-agent string
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x40f484]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push 0x3ff
lea ecx, [ebp - 0x403]
push edi
push ecx
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x40c], edi
mov dword [ebp - 0x408], edi
mov dword [ebp - 0x418], edi
mov byte [ebp - 0x404], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push edi
push edi
push edi
push edi
push str.Mozilla_5.0__Windows_NT_6.3__
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
mov dword [ebp - 0x414], ebx
cmp ebx, edi
je 0x401fd7
push edi
push 0x80000000
push edi
push edi
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
cmp esi, edi
je 0x401fd0
mov edx, dword [ebp - 0x410]
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x401fc3
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea eax, [ebp - 0x408]
push eax
push 0x400
lea ecx, [ebp - 0x404]
push ecx
push esi
call ebx
test eax, eax
je 0x401fac
mov edi, edi
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x401fac
push 0
lea edx, [ebp - 0x418]
push edx
push eax
lea eax, [ebp - 0x404]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x408]
push ecx
push 0x400
lea edx, [ebp - 0x404]
push edx
push esi
call ebx
test eax, eax
jne 0x401f70
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x414]
mov dword [ebp - 0x40c], 1
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, dword [ebp - 0x40c]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409086
mov esp, ebp
pop ebp
ret
Function at 0x401ff0
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x40f484]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 0x108]
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x402042
push str.An_error_is_occured_when_trying_to_get_the_full_path_of_the_DLL._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409086
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402078
push str.An_error_is_occured_when_trying_to_open_the_target_process._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
pop ebx
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409086
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.MSVCR100.dll_printf]
push edi
push str._PROCESS_INJECTION__n
call esi
push str.Process_opened_successfully._n
call esi
add esp, 8
push 0x40
push 0x3000
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
jne 0x4020d2
push str.An_error_is_occured_when_trying_to_allocate_memory_in_the_target_process._n
call esi
add esp, 4
pop edi
pop ebx
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00409086
mov esp, ebp
pop ebp
ret
push edi
push str.Memory_allocate_at_0x_X_n
call esi
add esp, 8
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea ecx, [ebp - 0x108]
push ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x402108
push str.An_error_is_occured_when_trying_to_write_the_DLL_path_in_the_target_process._n
jmp 0x4020ba
push str.DLL_path_writen_successfully._n
call esi
add esp, 4
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, 0xffffffff
je 0x4020bf
test eax, eax
je 0x4020bf
push str.LoadLibraryA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10c], eax
test eax, eax
jne 0x402146
push str.An_error_is_occured_when_trying_to_get__LoadLibraryA__address._n
jmp 0x4020ba
push eax
push str.LoadLibraryA_address_at_0x_X_n
call esi
mov edx, dword [ebp - 0x10c]
add esp, 8
push 0
push 0
push edi
push edx
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp eax, 0xffffffff
jne 0x402177
push str.An_error_is_occured_when_trying_to_create_the_thread_in_the_target_process._n
jmp 0x4020ba
push str.DLL_Injected___n
call esi
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.00409086
mov esp, ebp
pop ebp
ret
Function at 0x4039e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409b58
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x40f484]
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
mov edi, ecx
cmp dword [edi + 0x44], 0
je 0x403b07
cmp byte [edi + 0x49], 0
je 0x403b07
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x403afb
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x403a56
lea eax, [ebp - 0x2c]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
lea ebx, [edi + 0x4c]
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
mov ecx, eax
cmp edx, 0x10
jae 0x403a76
lea ecx, [ebp - 0x2c]
mov eax, ecx
add ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
push edx
push ecx
mov ecx, dword [edi + 0x44]
push eax
push ebx
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x403a9b
dec eax
je 0x403a9f
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x403af6
jmp 0x403b02
mov byte [edi + 0x49], 0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp edx, 0x10
jae 0x403aaf
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x403ad9
cmp edx, 0x10
jae 0x403abe
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x403af3
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x403aff
test esi, esi
jne 0x403a6a
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00401550
jmp 0x403a64
lea ecx, [ebp - 0x2c]
call fcn.00401430
xor al, al
jmp 0x403b09
lea ecx, [ebp - 0x2c]
call fcn.00401430
mov al, 1
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.00409086
mov esp, ebp
pop ebp
ret
Function at 0x405c00
Capabilities:
Create process on windows
Delete file
Get disk information
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409f5b
mov eax, dword fs:[0]
push eax
sub esp, 0x618
mov eax, dword [0x40f484]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.C:HWID.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, 0xff
mov dword [ebp - 0x618], eax
mov dword [ebp - 0x61c], eax
lea eax, [ebp - 0x618]
push eax
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x405d7c
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x620]
push edx
push 0
push 0
push 0x40b3f0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x405d7c
lea eax, [ebp - 0x61c]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x405d7c
lea edx, [ebp - 0x110]
push edx
call fcn.00401e20
mov esi, eax
lea eax, [ebp - 0x210]
push eax
call fcn.00401e20
mov ecx, dword [ebp - 0x620]
add eax, esi
lea eax, [eax + ecx + 0x1f3a7]
push eax
lea edx, [ebp - 0x5f8]
push 0x40ba10
push edx
call dword [sym.imp.MSVCR100.dll_sprintf]
sub esp, 8
mov ecx, esp
lea eax, [ebp - 0x5f8]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov dword [ebp - 0x624], esp
mov byte [ecx], 0
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405d07
sub eax, esi
push eax
lea eax, [ebp - 0x5f8]
push eax
call fcn.00401600
lea ecx, [ebp - 0x614]
push ecx
call fcn.00407720
add esp, 0x20
mov esi, 0x10
mov dword [ebp - 4], 0
cmp dword [eax + 0x14], esi
jb 0x405d3f
mov eax, dword [eax]
push eax
push str.Connection_Failure..._nTelah_terjadi_kesalahan___Mungkin_:_n___Server_down_n___Cheat_disuspend_n___Anda_belum_terdaftar._n___Durasi_Anda_telah_habis._n___Hubungi_Seller_Anda_untuk_info_lebih_lanjut___n___Terima_Kasih____n_n_nYour_HWID_:__s
call fcn.00405010
add esp, 8
cmp dword [ebp - 0x600], esi
jb 0x405d64
mov edx, dword [ebp - 0x614]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
push 1
push 0
push 0
push str.C:HWID.txt
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409086
mov esp, ebp
pop ebp
ret
Function at 0x407720
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a208
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x40f484]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x80], eax
cmp dword [ebp + 0x20], 0x10
mov dword [ebp - 4], eax
mov byte [ebp - 0x7c], al
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
jae 0x407785
lea eax, [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
push ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.004074c0
lea ecx, [ebp - 0x7c]
call fcn.00407570
push esi
lea ecx, [ebp - 0x7c]
call fcn.00407650
cmp dword [ebp + 0x20], 0x10
jb 0x4077b5
mov edx, dword [ebp + 0xc]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00409086
mov esp, ebp
pop ebp
ret

Function at 0x409086
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f484]
jne 0x409090
repz ret
jmp fcn.00409528
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x396168dc
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x34565ed6
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x40101e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x4ee098
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [0x526bc4]
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
lea ebx, [esi + 0x10]
mov dword [esi + 0xc], edi
mov dword [esi + 0x14], eax
mov dword [esp + 0x14], edi
mov dword [ebx], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], edi
call fcn.00401120
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
and ecx, 0xffff
push 2
push ecx
push eax
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
mov dword [esp + 0x14], eax
je 0x401091
mov edx, dword [esp + 0x18]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
mov dword [esp + 0x1c], eax
je 0x401091
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x20], eax
jmp 0x401095
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], eax
mov cx, word [eax + 0xe]
cmp cx, 8
jbe 0x4010c1
mov edx, dword [eax + 0x10]
xor ecx, ecx
cmp edx, 3
mov edx, dword [eax + 0x20]
setne cl
dec ecx
and ecx, 3
add ecx, edx
lea eax, [eax + ecx*4 + 0x28]
jmp 0x4010d3
mov edx, dword [eax + 0x20]
cmp edx, edi
jne 0x4010cf
mov edx, 1
shl edx, cl
lea eax, [eax + edx*4 + 0x28]
push ebx
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], eax
call fcn.004af550
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x4010f1
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x401100
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x402730
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x15c
mov dword [0x526f3c], eax
push ebx
push ebp
push esi
push edi
push 0x409
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
push 0
mov ecx, 0x526cd0
call fcn.00404ef0
xor ebp, ebp
mov bl, al
mov edx, dword [esp + 0x178]
test edx, edx
je case.0x40279c.69
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jb case.0x40279c.69
mov al, byte [edx]
cmp al, 0x5c
je 0x402788
cmp al, 0x2d
je 0x402788
cmp al, 0x2f
jne case.0x40279c.69
movsx eax, byte [edx + 1]
add eax, 0xffffffbd
cmp eax, 0x2f
ja case.0x40279c.69
xor ecx, ecx
mov cl, byte [eax + 0x40293c]
jmp dword [ecx*4 + 0x402930]
mov ebp, 2
jmp case.0x40279c.69
mov ebp, 1
mov ecx, 0x526cd0
call fcn.004053a0
test bl, bl
mov byte [esp + 0x13], 0
je 0x402887
mov edi, dword [0x526bc0]
mov esi, dword [0x526be4]
mov eax, ebp
mov dword [0x526ef8], 3
dec eax
je 0x402856
dec eax
je 0x402846
mov edx, dword [str.Diamond_Drop_Window]
mov eax, dword [str.DiamondDropWindowClass]
push edx
push eax
call edi
test eax, eax
je 0x402808
push 0
push 0xf120
push 0x112
push eax
call esi
jmp 0x40285b
mov ecx, 0x526cd0
call fcn.004043d0
test al, al
je 0x402830
push 0x64
mov ecx, 0x526cd0
call fcn.00404640
test al, al
je 0x402830
mov ecx, 0x526cd0
call fcn.00404420
mov ecx, 0x526cd0
call fcn.00404410
mov ecx, 0x526cd0
call fcn.00404c20
jmp 0x40285b
call fcn.00403740
test al, al
je 0x40285b
mov byte [esp + 0x13], 1
jmp 0x40285b
call fcn.00403600
mov eax, dword [0x526ef8]
sub eax, 0
je 0x402924
dec eax
je 0x402875
dec eax
je 0x4027d2
jmp 0x402887
call fcn.00403740
test al, al
je 0x4027d2
mov byte [esp + 0x13], 1
mov ecx, 0x526cd0
call fcn.00405670
mov ecx, 0x526cd0
call fcn.00404fd0
mov al, byte [esp + 0x13]
test al, al
je 0x402915
xor ecx, ecx
lea edx, [esp + 0x68]
mov dword [esp + 0x14], ecx
xor eax, eax
mov dword [esp + 0x18], ecx
lea edi, [esp + 0x24]
mov dword [esp + 0x1c], ecx
push 0x104
mov dword [esp + 0x24], ecx
mov ecx, 0x11
push edx
push eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x30], 0x44
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
lea edx, [esp + 0x88]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x14]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x15c
ret 0x10
call fcn.00403600
jmp 0x4027d2
Function at 0x405670
Capabilities:
Encode data using xor
Set registry value

Disassembly:
sub esp, 0x54
push esi
mov esi, ecx
push edi
mov edi, dword [str.SOFTWAREOXXOgamesDiamondDrop]
lea ecx, [esp + 8]
mov dword [esp + 8], 0
call fcn.00405650
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push 0x80000001
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x405784
mov ecx, dword [esp + 8]
lea edx, [esi + 0x1d1]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0xf
push edx
push 3
push eax
mov eax, dword [str.Game]
push eax
push ecx
call edi
mov eax, dword [0x4ef348]
mov ecx, dword [esp + 8]
lea edx, [esi + 0x1cc]
push 3
push edx
push 3
push 0
push eax
push ecx
call edi
mov eax, dword [0x4ef344]
mov ecx, dword [esp + 8]
lea edx, [esi + 0x1cf]
push 2
push edx
push 3
push 0
push eax
push ecx
call edi
lea eax, [esi + 0x1e0]
mov ecx, 0x716384a4
lea esi, [eax + 0x48]
cmp esi, eax
jbe 0x40573c
push ebp
lea ebp, [esp + 0x18]
sub ebp, eax
mov dl, byte [eax]
xor dl, cl
mov byte [eax + ebp], dl
inc eax
rol ecx, 1
cmp eax, esi
jb 0x40572d
pop ebp
xor eax, eax
lea ecx, [esp + 0x14]
xor edx, edx
mov dl, byte [ecx]
xor eax, edx
mov edx, eax
shl edx, 6
xor edx, eax
shl edx, 2
xor edx, eax
shl edx, 2
xor edx, eax
shl edx, 3
xor eax, edx
inc ecx
lea edx, [esp + 0x5c]
cmp ecx, edx
jb 0x405742
mov ecx, dword [str.Score]
mov edx, dword [esp + 8]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push 0x4c
push eax
push 3
push 0
push ecx
push edx
call edi
mov eax, dword [esp + 8]
pop edi
test eax, eax
pop esi
je 0x405795
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x54
ret
Function at 0x4131b0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [ebp + 8], eax
mov dword [ebp + 0xdc], 0
mov esi, 0x4f0c98
mov ecx, ebp
call dword [esi]
add esi, 0x38
cmp esi, 0x4f0d08
jb 0x4131cc
mov ebx, dword [esp + 0x14]
mov esi, 0x4f0c98
mov al, byte [esp + 0x1c]
test al, al
jne 0x4131f2
test byte [esi + 0x34], 1
jne 0x413212
mov ecx, 0x31
xor eax, eax
lea edi, [ebp + 0xc]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x18]
push ecx
push ebx
mov ecx, ebp
call dword [esi + 4]
test al, al
jne 0x413226
mov ecx, ebp
call dword [esi + 8]
add esi, 0x38
cmp esi, 0x4f0d08
jb 0x4131e4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0xc
sub esi, 0x4f0c98
mov eax, 0x92492493
imul esi
add edx, esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov al, 1
mov dword [ebp + 0xd0], edx
lea ecx, [edx*8]
sub ecx, edx
mov edx, dword [ecx*8 + 0x4f0ca4]
test edx, edx
je 0x413299
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
setne bl
test bl, bl
mov dword [ebp + 4], eax
je 0x413297
lea edx, [esp + 0x1c]
push edx
push 0
push ebp
push 0x413320
push 0
push 0
call fcn.004bc1a2
add esp, 0x18
mov dword [ebp], eax
test eax, eax
mov al, 1
jne 0x413299
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x4132a0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x4132ee
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi]
push 0x3e8
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4132d0
mov edx, dword [esi]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esi + 4]
mov dword [esi], 0
push ecx
call edi
mov dword [esi + 4], 0
mov eax, dword [esi + 0xd0]
cmp eax, 2
jae 0x41331d
lea edx, [eax*8]
mov ecx, esi
sub edx, eax
call dword [edx*8 + 0x4f0ca0]
mov ecx, 0x31
xor eax, eax
lea edi, [esi + 0xc]
rep stosd dword es:[edi], eax
mov dword [esi + 0xd0], eax
pop edi
pop esi
ret
Function at 0x41c160
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x41c200
push ebx
push ebp
push esi
mov esi, dword [ecx]
push edi
xor eax, eax
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov edi, dword [ecx + 4]
xor esi, esi
cmp edi, edx
jle 0x41c1b2
mov ebp, dword [ecx]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x507910]
xor eax, edx
inc esi
cmp esi, edi
jl 0x41c193
xor edx, edx
mov edi, dword [ecx + 0xc]
xor esi, esi
cmp edi, edx
jle 0x41c1db
mov ebp, dword [ecx + 8]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x507910]
xor eax, edx
inc esi
cmp esi, edi
jl 0x41c1be
mov edx, dword [ecx]
pop edi
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
shr eax, 0x18
pop esi
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret