joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4772c0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x4077c4]
call fcn.004053cc
xor eax, eax
push ebp
push 0x477461
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x487200], 0
jne 0x47731b
mov ecx, dword [0x5409e0]
mov dl, 1
mov eax, dword [0x407b8c]
call fcn.0040c63c
call fcn.0040435c
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x10
call fcn.00403424
mov eax, ebx
call fcn.0040529c
mov dword [ebp - 0x24], eax
mov esi, 0x477470
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x38]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.00406474
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
call fcn.004052ac
test eax, eax
jle 0x477404
mov dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4773f0
lea eax, [ebp - 0x4c]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00404ba0
mov edi, dword [ebp - 0x4c]
test edi, edi
je 0x477396
sub edi, 4
mov edi, dword [edi]
lea eax, [ebp - 0x50]
mov edx, ebx
call fcn.00404bb8
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x4773ac
sub esi, 4
mov esi, dword [esi]
push esi
lea eax, [ebp - 0x54]
mov edx, ebx
call fcn.00404bb8
mov eax, dword [ebp - 0x54]
call fcn.00404df4
push eax
push edi
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x48]
mov ecx, 0x10
call fcn.00404ba0
mov eax, dword [ebp - 0x58]
call fcn.00404df4
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
jmp 0x4773f2
xor eax, eax
test al, al
je 0x4773fd
mov ebx, 0x15
jmp 0x477409
mov ebx, 0x10
jmp 0x477409
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push ebx
push 0
mov eax, dword [ebp - 0x10]
push eax
call dword [0x487200]
call fcn.00477144
mov eax, dword [ebp - 4]
call fcn.00477144
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.0040648c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477468
lea eax, [ebp - 0x58]
mov edx, 4
call fcn.00404954
lea eax, [ebp - 0xc]
mov edx, dword [0x4077c4]
call fcn.0040549c
ret
Function at 0x47da98
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404de4
mov eax, dword [ebp - 8]
call fcn.00404de4
xor eax, eax
push ebp
push 0x47db5c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404df4
mov edx, eax
lea eax, [ebp - 0x14]
call fcn.00404b28
mov eax, dword [ebp - 0x14]
mov edx, 0x8000
call fcn.0040e35c
test eax, eax
mov eax, dword [ebp - 4]
call fcn.00404df4
push eax
call sub.kernel32.dll_GetModuleHandleA_2
mov dword [0x5445e8], eax
mov eax, dword [ebp - 8]
call fcn.00404df4
push eax
mov eax, dword [0x5445e8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
push 0x40
push 0x26259fc
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_VirtualProtect
lea edx, [ebp - 0x10]
mov eax, 0x407500
mov ecx, 4
call fcn.0047da88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47db63
lea eax, [ebp - 0x14]
call fcn.00404930
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404954
ret

Function at 0x47db6c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404de4
mov eax, dword [ebp - 8]
call fcn.00404de4
xor eax, eax
push ebp
push 0x47dc30
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404df4
push eax
call sub.kernel32.dll_LoadLibraryExA_1
test eax, eax
mov eax, dword [ebp - 4]
call fcn.00404df4
push eax
call sub.kernel32.dll_GetModuleHandleA_2
mov dword [0x5445e8], eax
cmp dword [0x5445e8], 0
je 0x47dc0a
mov eax, dword [ebp - 8]
call fcn.00404df4
push eax
mov eax, dword [0x5445e8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x5445ec], eax
push 0x5445fc
push 0x40
push 0x26259fc
push 0x5445ec
call sub.kernel32.dll_VirtualProtect
mov edx, 0x5445ec
mov eax, sub.user32.dll_GetTopWindow
mov ecx, 4
call fcn.0047da88
mov eax, dword [0x5445e8]
push eax
call sub.kernel32.dll_FreeLibrary_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47dc37
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404954
ret
Function at 0x40a3b1
Capabilities:
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
cmp dword [0xb32a60], 0x60b
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [eax]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov ebx, 0xc6ef3720
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
jne 0x40a41d
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
push 0
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
mov dword [ebp - 4], 0x20
mov ecx, edi
shl ecx, 4
cmp dword [0xb32a60], 5
mov dword [ebp - 8], ecx
jne 0x40a447
push 0
push 0
push 0x4013a0
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
mov ecx, dword [ebp - 8]
mov eax, edi
shr eax, 5
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x14]
add dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x18]
and dword [0xb2d924], 0
add ecx, eax
lea eax, [ebx + edi]
xor ecx, eax
xor dword [ebp + 0xc], ecx
mov eax, dword [ebp + 0xc]
add dword [0xb2d924], eax
sub esi, dword [ebp + 0xc]
or dword [0xb2d92c], 0xffffffff
mov ecx, esi
shl ecx, 4
add ecx, dword [ebp - 0x10]
mov eax, esi
shr eax, 5
add eax, dword [ebp - 0xc]
lea edx, [ebx + esi]
xor ecx, edx
xor ecx, eax
sub edi, ecx
cmp dword [0xb32a60], 0x93
mov dword [0xb2d928], 0xff6b3619
mov dword [ebp + 0xc], eax
jne 0x40a4c2
push 0x4013bc
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x40a4c8
add ebx, 0x61c88647
dec dword [ebp - 4]
jne 0x40a424
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [eax + 4], esi
pop esi
pop ebx
leave
ret 8
Function at 0x40a4e0
Capabilities:
Copy file
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x304
push esi
xor esi, esi
cmp dword [0xb32a60], 0x516
jne 0x40a500
push esi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualUnlock]
mov eax, dword [ebp + 0xc]
shr eax, 3
cmp eax, esi
jbe 0x40a5c7
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [ebp + 8], eax
cmp dword [0xb32a60], 0x29
jne 0x40a53b
push esi
lea eax, [ebp - 0x20]
push eax
push 0x4013d8
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileExA]
cmp dword [0xb32a60], 0xe1b
jne 0x40a555
lea eax, [ebp - 0x304]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp dword [0xb32a60], 0x1c
jne 0x40a589
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
lea eax, [ebp - 0xb4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push dword [ebp + 0x10]
push ebx
call fcn.0040a3b1
cmp dword [0xb32a60], 0x4fa
jne 0x40a5b9
xor eax, eax
mov word [ebp + 0xc], ax
lea edi, [ebp + 0xe]
stosw word es:[edi], ax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
add ebx, 8
dec dword [ebp + 8]
jne 0x40a516
pop edi
pop ebx
pop esi
leave
ret 0xc
Function at 0x40a5cc
Capabilities:
Get common file path
Get disk information
Manipulate console buffer
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10d8
call fcn.0040bbe0
cmp dword [0xb32a60], 0x37
jne 0x40a6e0
push esi
push edi
xor eax, eax
xor esi, esi
mov dword [ebp - 0x20], esi
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0x4013e8
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
push 0x401418
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push esi
lea eax, [ebp - 0x4d8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x401448
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
push 0x4014fc
push esi
call dword [sym.imp.KERNEL32.dll_SetComputerNameExW]
push esi
lea eax, [ebp - 0x8d8]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleA]
lea eax, [ebp - 8]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetWriteWatch]
push 0x401518
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
lea eax, [ebp - 0x10d8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
lea eax, [ebp - 0xc]
push eax
push 0x401548
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationW]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetProcessPriorityBoost]
push esi
push esi
push esi
lea eax, [ebp - 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
push 0x401554
push 0x40156c
push 0x401590
call dword [sym.imp.KERNEL32.dll_WriteProfileStringA]
pop edi
pop esi
mov eax, dword [0xb32a64]
mov dword [ebp - 4], eax
mov eax, 0x38d6
add dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov cl, byte [ecx + eax]
mov edx, dword [0xb2d920]
mov byte [edx + eax], cl
leave
ret 4
Function at 0x40d3c0
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40d3df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40d3e6
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x40d3fd
mov ecx, dword [ebp - 4]
push ecx
call fcn.00411980
add esp, 4
or eax, 0xffffffff
jmp 0x40d3ff
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x410a00
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x444164]
jne 0x410a0a
repz ret
jmp fcn.004207b0
Function at 0x4042a0
Capabilities:
Hide graphical window
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringA]
push 0x64
push 0x40ddf0
push 0x69
push esi
call edi
push 0x64
push 0x40dd88
push 0x67
push esi
call edi
push str.Riched32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.USER32.dll_LoadIconA]
push 0x6b
push esi
mov dword [ebp - 0x54], 0x30
mov dword [ebp - 0x4c], 0x406710
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x50], 3
call edi
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 8], 8
mov dword [ebp - 4], 0x4000
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0x6c
push esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x30], 0x69
mov dword [ebp - 0x2c], str.Langoback
call edi
lea ecx, [ebp - 0x54]
push ecx
mov dword [ebp - 0x28], eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push esi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.Lobster
push str.Langoback
push 0
mov dword [0x40a651], esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
je 0x4043dd
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
push 0
lea edx, [ebp - 0x24]
push edx
call esi
test eax, eax
je 0x4043d2
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x24]
push eax
call edi
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
push 0
lea edx, [ebp - 0x24]
push edx
call esi
test eax, eax
jne 0x4043b2
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40652b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040396c
xor ebx, ebx
cmp dword [0x40e498], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x406600
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40656b
xor eax, eax
jmp 0x4066c4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x406564
push eax
call fcn.00401c19
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40e498], eax
call esi
push eax
call fcn.00401c19
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40e49c], eax
call esi
push eax
call fcn.00401c19
mov dword [0x40e4a0], eax
lea eax, [ebp - 8]
push eax
call fcn.00401380
test eax, eax
pop ecx
pop ecx
je 0x4065ce
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407dcd
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x406600
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00401c19
cmp eax, ebx
pop ecx
mov dword [0x40e4a8], eax
je 0x406600
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00401c19
pop ecx
mov dword [0x40e4a4], eax
mov eax, dword [0x40e4a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x406679
cmp dword [0x40e4a8], esi
je 0x406679
push eax
call fcn.00406b2c
pop ecx
call eax
cmp eax, ebx
je 0x406646
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x40e4a8]
call fcn.00406b2c
pop ecx
call eax
test eax, eax
je 0x406646
test byte [ebp - 0x18], 1
jne 0x406679
lea eax, [ebp - 0xc]
push eax
call fcn.0040317e
test eax, eax
pop ecx
je 0x406661
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407dcd
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x406670
or dword [ebp + 0x10], 0x200000
jmp 0x4066aa
or dword [ebp + 0x10], 0x40000
jmp 0x4066aa
mov eax, dword [0x40e49c]
cmp eax, esi
je 0x4066aa
push eax
call fcn.00406b2c
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4066aa
mov eax, dword [0x40e4a0]
cmp eax, esi
je 0x4066aa
push dword [ebp - 4]
push eax
call fcn.00406b2c
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x40e498]
call fcn.00406b2c
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x408733
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b1c8]
jne 0x40873d
repz ret
jmp fcn.00406bed
Function at 0x402a84
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.004045a0
test esi, esi
jne 0x402aba
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.00404690
jmp 0x402ad8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402998
mov edi, eax
test esi, esi
je 0x402ad8
cmp dword [ebx], 0
je 0x402ad8
dec esi
jmp 0x402ac1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4036c0
Capabilities:
Query or enumerate registry value

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

Function at 0x404424
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4b104c], 0
je 0x404485
cmp word [0x4b1220], 0xd7b2
jne 0x40444d
cmp dword [0x4b1228], 0
jbe 0x40444d
mov eax, 0x4b121c
call dword [0x4b1238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4af070
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 0x4044ac
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4af030], 0
jne 0x4044a1
push 0
push 0x4af068
push 0x4af070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405c6c
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 0x405e9c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405cef
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405e9c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405cef
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405eb8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405d78
xor eax, eax
push ebp
push 0x405d71
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405ab4
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 0x405d56
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405ed8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405d56
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 0x405d78
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 0x405e92
cmp byte [ebp - 0xd], 0
jne 0x405dbf
cmp byte [ebp - 0x12], 0
je 0x405e92
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405dd8
dec ebx
cmp byte [ebx], 0x2e
je 0x405de7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405dd7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405e92
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405e24
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 0x405e92
cmp byte [ebp - 0xd], 0
je 0x405e92
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 0x405e92
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 0x406580
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 0x4065e6
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.00404810
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004030bc
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4065d0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4065ed
lea eax, [ebp - 0x10]
call fcn.004045a0
ret

Function at 0x4093a4
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404a60
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x40bf64
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 0x40bf9d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404690
jmp 0x40bfa6
mov eax, ebx
mov edx, esi
call fcn.004045f4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bfb0
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 0x40bfd1
mov al, byte [esp]
jmp 0x40bfd3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c658
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c4d0
mov eax, dword [0x4b0ad8]
cmp byte [eax], 0
je 0x40c6d4
mov eax, dword [0x4b089c]
call fcn.00402ee0
call fcn.004028c4
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.00409688
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 0x40c71c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c70a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4b083c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4b1668]
call fcn.00405a78
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