joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4021b0
Capabilities:
Get common file path
Move file
Timestomp file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
push edi
mov eax, dword [0x404024]
add eax, 0x600
mov dword [ebp - 0x320], eax
mov byte [ebp - 0x210], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x20f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x318]
push ecx
push 0x104
call fcn.00401cb0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea edx, [ebp - 0x318]
push edx
push str._s_d.txt
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x31c], eax
cmp dword [ebp - 0x31c], 0
jne 0x40224f
xor eax, eax
jmp 0x40234c
push 0
lea edx, [ebp - 0x214]
push edx
mov eax, dword [0x404024]
mov ecx, dword [eax + 0x5fc]
push ecx
mov edx, dword [ebp - 0x320]
push edx
mov eax, dword [ebp - 0x31c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x104
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.kernel32.dll
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x328]
push eax
push 0
lea ecx, [ebp - 0x10c]
push ecx
push 0
push 0x10000000
push 3
push 0
push 1
push 0x80000000
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [ebp - 0x328]
push eax
push 0
lea ecx, [ebp - 0x10c]
push ecx
mov edx, dword [ebp - 0x31c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov eax, dword [ebp - 0x31c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
test edx, edx
je 0x40232e
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov dword [ebp - 0x32c], eax
lea edx, [ebp - 0x104]
push edx
call fcn.00401f80
add esp, 4
jmp 0x402347
lea eax, [ebp - 0x104]
push eax
push 0x42c594
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x402db0
Capabilities:
Accept command line arguments
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push edi
mov dword [ebp - 0x128], 0
mov byte [ebp - 0x120], 0
mov ecx, 0x43
xor eax, eax
lea edi, [ebp - 0x11f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x42cb48
call fcn.004018f0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0xc], 0x62
mov byte [ebp - 0xb], 0x61
mov byte [ebp - 0xa], 0x69
mov byte [ebp - 9], 0x6a
mov byte [ebp - 8], 0x69
mov byte [ebp - 7], 0x6e
mov byte [ebp - 6], 0x55
mov byte [ebp - 5], 0x50
mov byte [ebp - 4], 0x64
mov byte [ebp - 3], 0x61
mov byte [ebp - 2], 0x74
mov byte [ebp - 1], 0x65
push 0xc
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00401d80
add esp, 0x10
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x124]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x124], 0
jl 0x402e8e
mov byte [0x42d140], 1
push 0x20
mov ecx, dword [ebp - 0x10]
push ecx
call sub.MSVCRT.dll_strchr
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x402e8e
push 0xf
mov edx, dword [ebp - 0x10]
add edx, 1
push edx
push 0x42d144
call sub.MSVCRT.dll_strncpy
add esp, 0xc
push 0x401b10
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
xor eax, eax
mov al, byte [0x42d076]
cmp eax, 0xa
jl 0x402ec7
call fcn.00401b00
push 0x42cf72
push 0x42cf0e
push 0x42ceaa
call fcn.00402740
add esp, 0xc
mov dword [ebp - 0x128], eax
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42fe83
Capabilities:
Manipulate console buffer
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x52c
push esi
shr edx, 3
xor esi, esi
cmp edx, esi
jbe 0x42ff29
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
cmp dword [0x90fac4], 0x5d
jne 0x42ff13
push esi
call ebx
xor eax, eax
mov word [ebp - 0xc], ax
lea edi, [ebp - 0xa]
stosw word es:[edi], ax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x52c]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
push esi
call ebx
push esi
push 0x401298
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
lea eax, [ebp - 0x12c]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCPInfoExA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.0042fc8f
add dword [ebp - 4], 8
dec dword [ebp - 8]
jne 0x42fea8
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x4350c2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44ba28]
jne 0x4350cc
repz ret
jmp fcn.004381e9

Function at 0x435ffa
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x44ba28]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00432a1b
and dword [ebp - 0x14], 0
cmp dword [0x910500], 0
mov dword [ebp - 0x18], eax
jne 0x4360ad
push 0x402318
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x436155
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40230c
push ebx
call edi
test eax, eax
je 0x436155
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4022fc
push ebx
mov dword [0x910500], eax
call edi
push eax
call esi
push 0x4022e8
push ebx
mov dword [0x910504], eax
call edi
push eax
call esi
push 0x4022cc
push ebx
mov dword [0x910508], eax
call edi
push eax
call esi
mov dword [0x910510], eax
test eax, eax
je 0x4360ad
push 0x4022b4
push ebx
call edi
push eax
call esi
mov dword [0x91050c], eax
mov eax, dword [0x91050c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x436106
cmp dword [0x910510], ecx
je 0x436106
push eax
call esi
push dword [0x910510]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x436106
test ebx, ebx
je 0x436106
call edi
test eax, eax
je 0x4360fd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4360fd
test byte [ebp - 8], 1
jne 0x436106
or dword [ebp + 0x10], 0x200000
jmp 0x436139
mov eax, dword [0x910504]
cmp eax, dword [ebp - 0x18]
je 0x436139
push eax
call esi
test eax, eax
je 0x436139
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x436139
mov eax, dword [0x910508]
cmp eax, dword [ebp - 0x18]
je 0x436139
push eax
call esi
test eax, eax
je 0x436139
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x910500]
call esi
test eax, eax
je 0x436155
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x436157
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004350c2
leave
ret
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 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, 0xfcf7367
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x4d2d6af1
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x4030d4
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.00404da4
test esi, esi
jne 0x40310a
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.00404e94
jmp 0x403128
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402fd8
mov edi, eax
test esi, esi
je 0x403128
cmp dword [ebx], 0
je 0x403128
dec esi
jmp 0x403111
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40315c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x468008], 0x8088405
inc edx
mov dword [ebx + 0x468008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403758
Capabilities:
Read file on windows

Disassembly:
push ebx
xor ecx, ecx
mov ebx, eax
mov cx, word [eax + 4]
sub ecx, 0xd7b1
je 0x40376e
sub ecx, 2
jne 0x403790
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_ReadFile
pop edx
dec eax
jne 0x403797
cmp edx, dword [ebx + 8]
je 0x4037a1
mov eax, 0x64
jmp 0x40379c
mov eax, 0x67
jmp 0x40379c
call sub.kernel32.dll_GetLastError
call fcn.00402e58
pop ebx
ret

Function at 0x4038fc
Capabilities:
Clear file content

Disassembly:
movzx edx, word [eax + 4]
sub edx, 0xd7b1
cmp edx, 2
ja 0x40391a
push dword [eax]
call sub.kernel32.dll_SetEndOfFile
dec eax
je 0x403924
jmp fcn.00402e68
mov eax, 0x67
jmp fcn.00402e58
ret

Function at 0x4039fc
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, eax
movzx eax, word [eax + 4]
sub eax, 0xd7b2
cmp eax, 1
ja 0x403a2f
push 0
mov eax, esp
push 0
push eax
push dword [ebx + 8]
push edx
push dword [ebx]
call sub.kernel32.dll_WriteFile
pop edx
dec eax
jne 0x403a36
cmp edx, dword [ebx + 8]
je 0x403a40
mov eax, 0x65
jmp 0x403a3b
mov eax, 5
jmp 0x403a3b
call sub.kernel32.dll_GetLastError
call fcn.00402e58
mov eax, ebx
pop ebx
ret

Function at 0x403d98
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x468024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403e30
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403e10
xor eax, eax
push ebp
push 0x403e09
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 0x403e4c
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 0x403e10
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x468024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x468024], ax
mov esp, ebp
pop ebp
ret
Function at 0x404c24
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x473048], 0
je 0x404c85
cmp word [0x47321c], 0xd7b2
jne 0x404c4d
cmp dword [0x473224], 0
jbe 0x404c4d
mov eax, 0x473218
call dword [0x473234]
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 0x404cac
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x468030], 0
jne 0x404ca1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40622c
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 0x40645c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4062af
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40645c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4062af
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406478
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406338
xor eax, eax
push ebp
push 0x406331
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406068
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 0x406316
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406498
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406316
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 0x406338
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 0x406452
cmp byte [ebp - 0xd], 0
jne 0x40637f
cmp byte [ebp - 0x12], 0
je 0x406452
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406398
dec ebx
cmp byte [ebx], 0x2e
je 0x4063a7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406397
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406452
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4063e4
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 0x406452
cmp byte [ebp - 0xd], 0
je 0x406452
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 0x406452
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 0x408848
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x4088d8
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x4088d8
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x40888b
test edx, 3
jne 0x40887a
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408885
jmp 0x40888b
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x40888b
cmp dword [ecx - 8], 1
je 0x408895
mov edx, ebx
or edx, 3
call fcn.004054f0
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4088a7
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404da4

Function at 0x4088e4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408974
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408974
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408927
test edx, 3
jne 0x408916
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408921
jmp 0x408927
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408927
cmp dword [ecx - 8], 1
je 0x408931
mov edx, ebx
or edx, 3
call fcn.004054f0
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x408943
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404da4

Function at 0x40be90
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 0x40bec9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404e94
jmp 0x40bed2
mov eax, ebx
mov edx, esi
call fcn.00404df8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bedc
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 0x40befe
movzx eax, byte [esp]
jmp 0x40bf00
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40c590
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c408
mov eax, dword [0x472b9c]
cmp byte [eax], 0
je 0x40c60c
mov eax, dword [0x472990]
call fcn.004034c0
call fcn.00402e38
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.00409504
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 0x40c654
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c642
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x472934]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4757f4]
call fcn.00406010
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 0x40cea0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cf76
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404e3c
lea eax, [ebp - 4]
call fcn.004052b8
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405268
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cf60
mov eax, ebx
call fcn.00402cdc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cf59
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405268
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cf43
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cf88
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cf43
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cf60
mov eax, dword [ebp - 0x10]
call fcn.00402cf8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cf7d
lea eax, [ebp - 4]
call fcn.00404da4
ret
Function at 0x41c818
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x476300
cmp dword [edi], 0
jne 0x41c894
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4762fc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x468b7c
mov ecx, 2
call fcn.00402ed8
mov edx, 0x41c7f0
lea eax, [esi + 5]
call fcn.0041c810
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041c810
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41c869
mov dword [0x4762fc], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x41ffb8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00405268
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x420010
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x472ccc]
mov dl, 1
mov eax, dword [0x41fadc]
call fcn.0040c750
call fcn.004047ec
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041fbe4
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x420e6c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x420e72
ret