joyce8/EMBER2024-capa huggingface dataset:
Function at 0x488634
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a2d90]
jne 0x48863e
repz ret
jmp fcn.0048cf67

Function at 0x48afb4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a2d90]
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.00485652
and dword [ebp - 0x14], 0
cmp dword [0x4a54b4], 0
mov dword [ebp - 0x18], eax
jne 0x48b067
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x48b10f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x48b10f
mov esi, dword [fcn.00481320]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4a54b4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4a54b8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4a54bc], eax
call edi
push eax
call esi
mov dword [0x4a54c4], eax
test eax, eax
je 0x48b067
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4a54c0], eax
mov eax, dword [0x4a54c0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00481324]
cmp eax, ecx
je 0x48b0c0
cmp dword [0x4a54c4], ecx
je 0x48b0c0
push eax
call esi
push dword [0x4a54c4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x48b0c0
test ebx, ebx
je 0x48b0c0
call edi
test eax, eax
je 0x48b0b7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x48b0b7
test byte [ebp - 8], 1
jne 0x48b0c0
or dword [ebp + 0x10], 0x200000
jmp 0x48b0f3
mov eax, dword [0x4a54b8]
cmp eax, dword [ebp - 0x18]
je 0x48b0f3
push eax
call esi
test eax, eax
je 0x48b0f3
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x48b0f3
mov eax, dword [0x4a54bc]
cmp eax, dword [ebp - 0x18]
je 0x48b0f3
push eax
call esi
test eax, eax
je 0x48b0f3
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4a54b4]
call esi
test eax, eax
je 0x48b10f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x48b111
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00488634
leave
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
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x59e16238
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x547b5be8
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x406650
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x406692
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x4066b2
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0040ac78
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x406908
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00409c60
test esi, esi
jne 0x40693e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00409de8
jmp 0x40695c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004067ec
mov edi, eax
test esi, esi
je 0x40695c
cmp dword [ebx], 0
je 0x40695c
dec esi
jmp 0x406945
add esp, 0x20c
pop edi
pop esi
pop ebx
ret
Function at 0x4088c8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00408ca0
mov byte [esp], al
cmp byte [esp], 0
jne 0x408a48
test edi, edi
je 0x408a48
mov byte [esp + 1], 0
test ebp, ebp
jle 0x408988
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x408963
cmp edi, 0xffffffff
je 0x408927
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408927
mov byte [esp], 0
jmp 0x408a48
mov ebx, dword [esi]
cmp ebx, 1
jg 0x408963
test ebx, ebx
jne 0x408959
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x408959
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408a48
call 0x408dc0
dec ebp
test ebp, ebp
jg 0x40890c
cmp edi, 0xffffffff
je 0x408988
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408986
mov byte [esp], 0
jmp 0x408a48
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4088d6
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408988
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408ab4
mov edx, eax
mov ebx, dword [reloc.gdi32.dll_PatBlt]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4089ec
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4089ea
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4089ec
xor edi, edi
cmp byte [esp], 0
je 0x408a12
mov ebx, dword [esi]
test bl, 1
jne 0x408a28
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4089f2
mov byte [esp + 1], 1
jmp 0x408a28
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x408a12
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40899f
cmp byte [esp], 0
je 0x408a48
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4098c0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x719058], 0
je 0x409927
cmp word [0x719344], 0xd7b2
jne 0x4098e9
cmp dword [reloc.user32.dll_InsertMenuW], 0
jbe 0x4098e9
mov eax, 0x719340
call dword [0x71935c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
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
mov eax, 0x409954
call fcn.0040a6b0
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x70a032], 0
jne 0x409943
push 0
push 0x70a9ea
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409b20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x70a034], 0
je 0x409b4b
mov edx, edi
mov eax, esi
call dword [0x70a034]
mov ebx, eax
jmp 0x409b5c
mov eax, 8
call fcn.0040647c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x719059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409ae8
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x409b8c
mov eax, ebx
call fcn.00406498
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc

Function at 0x40c734
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40c899
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409c60
cmp si, word [0x70aa28]
jb 0x40c7cc
cmp si, word [0x70ac28]
ja 0x40c7cc
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c7cc
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x70aa28]
jae 0x40c7a6
mov edi, ebx
dec edi
jmp 0x40c7c7
cmp si, word [ebx*8 + 0x70aa28]
jbe 0x40c7b6
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c7c7
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x70aa2c]
call fcn.0040c654
jmp 0x40c7cc
cmp edi, dword [ebp - 8]
jae 0x40c790
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c87b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c87b
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040ac78
push dword [ebp - 0x160]
push 0x40c8b4
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040ac78
push dword [ebp - 0x164]
push 0x40c8c4
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040ac78
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040aeb0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c8a0
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409cc0
ret
Function at 0x40ca4c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cb4f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x71bb88
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x71bba0]
jne 0x40ca98
mov eax, esi
mov edx, 0x71bba2
mov ecx, 0x55
call fcn.0040ac78
push 0x71bb88
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40cb39
push 0x71bb88
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409c60
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40cb07
cmp byte [0x71bb84], 0
je 0x40cacc
mov edx, esi
mov eax, ebx
call fcn.0040c930
jmp 0x40cb07
mov edx, esi
mov eax, ebx
call fcn.0040c734
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40cb07
cmp dword [esi], 0
je 0x40caf0
mov eax, esi
mov edx, 0x40cb68
call fcn.0040add0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c734
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040add0
push 0x71bb88
call sub.kernel32.dll_EnterCriticalSection
mov word [0x71bba0], bx
push 0xaa
mov eax, dword [esi]
call fcn.0040abbc
push eax
push 0x71bba2
call sub.kernel32.dll_lstrcpynW
push 0x71bb88
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cb56
lea eax, [ebp - 4]
call fcn.00409c60
ret
Function at 0x40cd84
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409d44
xor eax, eax
push ebp
push 0x40cfa9
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40cdc4
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40cdde
push 0x105
mov eax, dword [ebp - 4]
call fcn.0040abbc
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x40cf93
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cfb8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cead
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cfb8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cead
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cff4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cead
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40cff4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cead
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d028
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40cead
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40d05c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40cf93
xor eax, eax
push ebp
push 0x40cf8c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040cb90
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40cf1c
mov eax, dword [ebp - 0x10]
call fcn.0040647c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040ac24
jmp 0x40cf67
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40d09c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40cf67
mov eax, dword [ebp - 0x10]
call fcn.0040647c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40d09c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040ac24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cf93
cmp dword [ebp - 8], 0
je 0x40cf82
mov eax, dword [ebp - 8]
call fcn.00406498
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cfb0
lea eax, [ebp - 4]
call fcn.00409c60
ret
Function at 0x40d298
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00409d44
xor eax, eax
push ebp
push 0x40d358
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040ac78
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ae28
mov eax, dword [ebx]
call fcn.0040d160
test al, al
jne 0x40d335
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040ac78
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ae28
mov eax, dword [ebx]
call fcn.0040d160
test al, al
jne 0x40d335
mov eax, ebx
call fcn.00409c60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d35f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00409cc0
lea eax, [ebp - 4]
call fcn.00409c60
ret

Function at 0x41622c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebp, eax
test ebp, ebp
je 0x4162cc
test ebp, ebp
setl byte [esp]
mov eax, edi
xor ecx, ecx
mov edx, 0xb
call fcn.0040a7e4
mov esi, 0xb
mov eax, ebp
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebx, eax
mov ecx, 0xa
mov eax, ebp
cdq
idiv ecx
mov ebp, eax
mov eax, edi
call fcn.0040a220
add bl, 0x30
mov byte [eax + esi - 1], bl
dec esi
test ebp, ebp
jne 0x416256
cmp byte [esp], 0
je 0x41629b
mov eax, edi
call fcn.0040a220
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x4162d8
mov eax, edi
call fcn.0040a220
push eax
mov eax, edi
call fcn.0040a220
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.004066ec
mov edx, ebx
mov eax, edi
xor ecx, ecx
call fcn.0040a7e4
jmp 0x4162d8
mov eax, edi
mov edx, 0x4162ec
call fcn.0040a0dc
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4162f0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x416393
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.0040ad50
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov ecx, 0xa
mov eax, ebx
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.0040a218
add bp, 0x30
mov word [eax + esi*2 - 2], bp
dec esi
test ebx, ebx
jne 0x416318
cmp byte [esp], 0
je 0x416361
mov eax, edi
call fcn.0040a218
mov word [eax + esi*2 - 2], 0x2d
dec esi
test esi, esi
jle 0x41639f
mov eax, edi
call fcn.0040a218
push eax
mov eax, edi
call fcn.0040a218
lea eax, [eax + esi*2]
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
add ecx, ecx
pop edx
call fcn.004066ec
mov edx, ebx
mov eax, edi
call fcn.0040ad50
jmp 0x41639f
mov eax, edi
mov edx, 0x4163b4
call fcn.0040a040
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x417398
Capabilities:
Get geographical location

Disassembly:
push ecx
cmp word [0x70af8c], 0
jne 0x4173d0
push 2
lea eax, [esp + 4]
push eax
push 0xe
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4173c7
movzx eax, word [esp]
mov word [0x70af8c], ax
jmp 0x4173d0
mov word [0x70af8c], 0x2c
movzx eax, word [0x70af8c]
pop edx
ret

Function at 0x417bdc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.0040a0dc
mov eax, ebx
call fcn.0040a230
mov eax, dword [ebx]
call fcn.0040a15c
test eax, eax
jle 0x417c0d
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x417c02
pop esi
pop ebx
ret

Function at 0x418f9c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41909d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x30]
call fcn.0040be58
mov esi, eax
lea eax, [esi + 1]
push eax
lea eax, [ebx + 0x30]
mov ecx, 1
mov edx, dword [0x4187a8]
call fcn.0040c074
add esp, 4
lea eax, [esi + esi*2]
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x38]
mov dword [edx + eax*8], ecx
mov ecx, dword [ebx + 0x3c]
mov dword [edx + eax*8 + 4], ecx
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebp + 8]
mov dword [edx + eax*8 + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [edx + eax*8 + 0xc], ecx
test edi, edi
jne 0x41901e
test esi, esi
jle 0x41901e
lea edi, [esi + esi*2]
mov eax, dword [ebx + 0x30]
lea eax, [eax + edi*8 + 0x10]
mov edx, dword [ebx + 0x30]
mov edx, dword [edx + edi*8 - 8]
call fcn.0040a040
jmp 0x41902f
lea eax, [esi + esi*2]
mov edx, dword [ebx + 0x30]
lea eax, [edx + eax*8 + 0x10]
mov edx, edi
call fcn.0040a040
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add dword [ebx + 0x38], eax
adc dword [ebx + 0x3c], edx
test esi, esi
jne 0x419087
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x419062
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x10]
call fcn.0040abbc
push eax
mov eax, dword [ebx + 0x28]
push eax
call sub.user32.dll_SetWindowTextW
jmp 0x419087
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x30]
mov edx, dword [edx + 0x10]
mov ecx, 0
call fcn.0040a85c
mov eax, dword [ebp - 4]
call fcn.0040a6b0
push eax
mov eax, dword [ebx + 0x28]
push eax
call sub.user32.dll_SetWindowTextA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4190a4
lea eax, [ebp - 4]
call fcn.00409c84
ret
Function at 0x41bd6c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
push 0x40
push 0x1000
push 0x11
push 0
call sub.kernel32.dll_VirtualAlloc
mov ebx, eax
mov dword [ebp - 4], ebx
mov eax, ebx
mov byte [eax], 0x58
mov byte [eax + 1], 0x68
mov dword [eax + 2], esi
mov byte [eax + 6], 0x50
mov byte [eax + 7], 0xff
mov byte [eax + 8], 0x25
lea edx, [eax + 0xd]
mov dword [eax + 9], edx
mov dword [eax + 0xd], edi
lea eax, [ebp - 8]
push eax
push 0x20
push 0x11
push 0
call sub.kernel32.dll_VirtualProtect
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x41c914
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x41c960
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 2
mov edi, esi
mov eax, edi
call fcn.0041d8c0
test al, al
jne 0x41c956
cmp word [edi], 0x5a4d
jne 0x41c956
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x41c956
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41c96c
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41cb04
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
cmp byte [0x70b02c], 0
jne 0x41cbe5
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x41cb57
push 0x10000
push 0x40
call sub.kernel32.dll_LocalAlloc
mov ebx, eax
push 0x8000
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameW
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileW
mov esi, eax
jmp 0x41cb88
push 0x105
push 0x40
call sub.kernel32.dll_LocalAlloc
mov ebx, eax
push 0x104
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileA
mov esi, eax
push ebx
call sub.kernel32.dll_LocalFree
cmp esi, 0xffffffff
je 0x41cbe5
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x41cbb3
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x41cbc5
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x41cbdf
push 0
push 0
push 0
push 4
push ebx
call sub.kernel32.dll_MapViewOfFile
mov edi, eax
push ebx
call sub.kernel32.dll_CloseHandle
push esi
call sub.kernel32.dll_CloseHandle
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x41d108
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x41d222
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00409c84
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x41d151
push ebx
mov eax, edi
call fcn.0040abbc
push eax
push esi
call sub.kernel32.dll_FindResourceW
mov ebx, eax
jmp 0x41d1be
movzx eax, bl
cmp ebx, eax
jne 0x41d17b
push ebx
lea eax, [ebp - 4]
mov edx, edi
mov ecx, 0
call fcn.0040a85c
mov eax, dword [ebp - 4]
call fcn.0040a6b0
push eax
push esi
call sub.kernel32.dll_FindResourceA
mov ebx, eax
jmp 0x41d1be
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.0040ac24
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov ecx, 0
call fcn.0040a85c
mov eax, dword [ebp - 8]
call fcn.0040a6b0
push eax
lea eax, [ebp - 0x10]
mov edx, edi
mov ecx, 0
call fcn.0040a85c
mov eax, dword [ebp - 0x10]
call fcn.0040a6b0
push eax
push esi
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x41d1f7
push ebx
push esi
call sub.kernel32.dll_LoadResource
mov edi, eax
test edi, edi
je 0x41d1f7
push 0
push ebx
push esi
call sub.kernel32.dll_SizeofResource
push eax
push edi
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, dword [ebp + 8]
pop ecx
call fcn.00409e3c
mov eax, edi
call fcn.00413eb4
push edi
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d229
lea eax, [ebp - 0x10]
call fcn.00409c84
lea eax, [ebp - 0xc]
call fcn.00409c60
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409cf0
ret