joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f5bc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45f6ea
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x681d68
call sub.KERNEL32.DLL_EnterCriticalSection
mov eax, dword [0x681d80]
call fcn.004085c8
test eax, eax
jl 0x45f6bb
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
add eax, eax
mov edx, dword [0x681d80]
lea ebx, [edx + eax*8]
xor eax, eax
push ebp
push 0x45f6a5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 8]
call fcn.00406204
mov edx, eax
mov eax, dword [ebx]
call fcn.0041bca8
test al, al
jne 0x45f69b
push 0
mov eax, dword [ebx + 8]
call fcn.00406204
mov ecx, eax
mov edx, dword [ebx]
lea eax, [ebp - 4]
call fcn.00405fa8
mov eax, dword [ebp - 4]
mov edx, dword [ebx + 8]
call fcn.00406514
jne 0x45f69b
lea eax, [ebp - 0xc]
push eax
push 0x40
mov eax, dword [ebx + 4]
call fcn.00406204
push eax
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_VirtualProtect
test eax, eax
je 0x45f69b
mov eax, dword [ebx + 4]
call fcn.00406204
mov ecx, eax
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
call fcn.00403424
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebx + 4]
call fcn.00406204
push eax
mov eax, dword [ebx]
push eax
call sub.KERNEL32.DLL_VirtualProtect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45f6af
inc dword [ebp - 8]
dec dword [ebp - 0x10]
jne 0x45f5ff
push 0x681d68
call sub.KERNEL32.DLL_LeaveCriticalSection
push 0
push 0
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.KERNEL32.DLL_FlushInstructionCache
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f6f1
lea eax, [ebp - 4]
call fcn.00405e70
ret
Function at 0x462db0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
call sub.KERNEL32.DLL_GetCurrentThreadId_1
cmp esi, eax
je 0x462dda
push edi
call sub.KERNEL32.DLL_SuspendThread
mov esi, eax
cmp esi, 0xffffffff
je 0x462dda
push edi
call sub.KERNEL32.DLL_ResumeThread
test esi, esi
setg bl
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x4676e8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x4677f8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [edi], 0
jne 0x4677d8
mov eax, ebx
call fcn.0040652c
push eax
call sub.KERNEL32.DLL_GetModuleHandleA
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.0041af4c
mov dword [edi], eax
test esi, esi
je 0x467746
cmp word [esi], 0x25ff
jne 0x467746
mov eax, esi
add eax, 2
mov eax, dword [eax]
mov ebx, dword [eax]
jmp 0x467748
xor ebx, ebx
cmp byte [ebp + 8], 0
jne 0x467766
push 0
call sub.KERNEL32.DLL_GetModuleHandleW_2
cmp eax, dword [0x66b6ac]
je 0x467766
cmp byte [0x66b6b8], 0
je 0x46777d
lea eax, [ebp - 0x10]
call fcn.00436a10
mov eax, dword [ebp - 0x10]
mov edx, dword [edi]
mov ecx, dword [ebp + 0xc]
call fcn.00436e64
jmp 0x46778c
mov edx, dword [edi]
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x66b6ac]
call fcn.00436dac
test ebx, ebx
je 0x46779b
mov eax, esi
add eax, 2
mov eax, dword [eax]
cmp ebx, dword [eax]
je 0x46779f
xor eax, eax
jmp 0x4677a1
mov al, 1
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
je 0x4677dc
add esi, 2
mov ebx, dword [esi]
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push ebx
call sub.KERNEL32.DLL_VirtualProtect
test eax, eax
je 0x4677dc
mov eax, dword [ebp + 0xc]
mov dword [ebx], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 4
push ebx
call sub.KERNEL32.DLL_VirtualProtect
jmp 0x4677dc
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4677ff
lea eax, [ebp - 0x10]
mov edx, dword [0x4369e4]
call fcn.004088a8
ret

Function at 0x46780c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4678e7
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
je 0x4678cb
test esi, esi
je 0x46784d
cmp word [esi], 0x25ff
jne 0x46784d
mov eax, esi
add eax, 2
mov eax, dword [eax]
mov ebx, dword [eax]
jmp 0x46784f
xor ebx, ebx
cmp byte [ebp + 8], 0
jne 0x46786d
push 0
call sub.KERNEL32.DLL_GetModuleHandleW_2
cmp eax, dword [0x66b6ac]
je 0x46786d
cmp byte [0x66b6b8], 0
je 0x467884
lea eax, [ebp - 0xc]
call fcn.00436a10
mov eax, dword [ebp - 0xc]
mov ecx, edi
mov edx, dword [ebp - 4]
call fcn.00436e64
jmp 0x467893
mov ecx, edi
mov edx, dword [ebp - 4]
mov eax, dword [0x66b6ac]
call fcn.00436dac
test ebx, ebx
je 0x4678cb
mov eax, esi
add eax, 2
mov eax, dword [eax]
cmp ebx, dword [eax]
jne 0x4678cb
add esi, 2
mov ebx, dword [esi]
lea eax, [ebp - 8]
push eax
push 0x40
push 4
push ebx
call sub.KERNEL32.DLL_VirtualProtect
test eax, eax
je 0x4678cb
mov dword [ebx], edi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
push 4
push ebx
call sub.KERNEL32.DLL_VirtualProtect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4678ee
lea eax, [ebp - 0xc]
mov edx, dword [0x4369e4]
call fcn.004088a8
ret
Function at 0x468104
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
push ebx
push esi
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], edx
mov ebx, eax
lea eax, [ebp - 0x40]
mov edx, dword [0x41ca60]
call fcn.004078ec
xor eax, eax
push ebp
push 0x468274
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x49], 0
mov eax, dword [ebp + 0x14]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
lea edx, [ebp - 0x40]
mov eax, ebx
call fcn.00421e68
cmp byte [ebp - 0x40], 0
je 0x468258
mov eax, dword [ebp - 0x20]
call fcn.004085c8
test eax, eax
jl 0x468258
inc eax
xor esi, esi
mov edx, esi
add edx, edx
add edx, edx
add edx, edx
sub edx, esi
mov ecx, dword [ebp - 0x20]
lea ebx, [ecx + edx*4]
mov ecx, dword [ebx + 0xc]
cmp ecx, dword [ebp - 0x44]
jne 0x468250
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + edx*4 + 4]
cmp byte [eax], 0xe8
jne 0x4681f2
lea eax, [ebp - 0x50]
push eax
push 0x40
push 4
mov eax, dword [ebx + 0x14]
push eax
call sub.KERNEL32.DLL_VirtualProtect
test eax, eax
je 0x468258
mov edx, dword [ebp + 0x14]
mov eax, dword [ebx + 0x14]
mov dword [edx], eax
mov edx, dword [ebp + 0x14]
mov edx, dword [edx]
mov edx, dword [edx]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], edx
mov edx, dword [ebp - 0x48]
sub edx, dword [ebx + 8]
mov dword [eax], edx
lea edx, [ebp - 0x50]
push edx
mov edx, dword [ebp - 0x50]
push edx
push 4
push eax
call sub.KERNEL32.DLL_VirtualProtect
mov eax, dword [ebp + 0x18]
mov edx, dword [ebx + 0xc]
mov dword [eax], edx
mov byte [ebp - 0x49], 1
jmp 0x468258
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + edx*4 + 4]
cmp word [eax], 0x15ff
jne 0x468258
lea eax, [ebp - 0x50]
push eax
push 0x40
push 4
mov eax, dword [ebx + 0x18]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_VirtualProtect
test eax, eax
je 0x468258
mov eax, dword [ebx + 0x18]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
mov edx, dword [edx]
mov ecx, dword [ebp + 8]
mov dword [ecx], edx
mov edx, dword [ebp - 0x48]
mov dword [eax], edx
lea edx, [ebp - 0x50]
push edx
mov edx, dword [ebp - 0x50]
push edx
push 4
push eax
call sub.KERNEL32.DLL_VirtualProtect
mov eax, dword [ebp + 0x18]
mov edx, dword [ebx + 0xc]
mov dword [eax], edx
mov byte [ebp - 0x49], 1
jmp 0x468258
inc esi
dec eax
jne 0x468177
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46827b
lea eax, [ebp - 0x40]
mov edx, dword [0x41ca60]
call fcn.004079c4
ret
Function at 0x4684e4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov byte [0x66c054], 0
cmp dword [0x66c058], 0
je 0x46852b
push esp
push 0x40
push 4
mov eax, dword [0x66c058]
push eax
call sub.KERNEL32.DLL_VirtualProtect
test eax, eax
je 0x468581
mov eax, dword [0x66c058]
mov edx, dword [0x66c05c]
mov dword [eax], edx
push esp
mov eax, dword [esp + 4]
push eax
push 4
mov eax, dword [0x66c058]
push eax
call sub.KERNEL32.DLL_VirtualProtect
jmp 0x468581
cmp dword [0x66c060], 0
je 0x46856a
push esp
push 0x40
push 4
mov eax, dword [0x66c060]
push eax
call sub.KERNEL32.DLL_VirtualProtect
test eax, eax
je 0x468581
mov eax, dword [0x66c060]
mov edx, dword [0x66c064]
mov dword [eax], edx
push esp
mov eax, dword [esp + 4]
push eax
push 4
mov eax, dword [0x66c060]
push eax
call sub.KERNEL32.DLL_VirtualProtect
jmp 0x468581
push 0
mov ecx, 0x467e1c
mov eax, sub.KERNEL32.DLL_CreateThread_1
mov edx, dword [0x66c04c]
call fcn.0046780c
push 0
mov ecx, 0x4680d8
mov edx, dword [0x66c050]
xor eax, eax
call fcn.0046780c
push 0
push 0
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.KERNEL32.DLL_FlushInstructionCache
pop edx
ret

Function at 0x468b74
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov esi, eax
lea eax, [ebp - 8]
mov edx, dword [0x468a44]
call fcn.004078ec
xor eax, eax
push ebp
push 0x468c53
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x468c60
call sub.user32.dll_FindWindowA
mov ebx, eax
test ebx, ebx
je 0x468c2a
lea eax, [ebp - 0xc]
push eax
push 0
push ebx
call sub.user32.dll_GetWindowThreadProcessId
mov cl, 0x30
mov edx, 1
call fcn.0040e108
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov edx, 0x468c78
call fcn.004062b4
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.0040f6c8
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.00405f20
lea eax, [ebp - 4]
mov edx, 0x468ca0
call fcn.00406238
mov eax, dword [ebp - 4]
call fcn.00406204
cmp eax, 0x104
jge 0x468c1c
lea eax, [ebp - 4]
xor ecx, ecx
mov edx, 0x104
call fcn.00406810
lea eax, [ebp - 8]
push eax
push 0x468a7c
call sub.user32.dll_EnumWindows
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x468c5a
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00405e94
lea eax, [ebp - 8]
mov edx, dword [0x468a44]
call fcn.004079c4
ret
Function at 0x46956c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x469641
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
call sub.KERNEL32.DLL_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.0040e108
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
mov edx, 0x46965c
call fcn.004062b4
mov eax, dword [ebp - 4]
call fcn.0040652c
push eax
push 0
push 4
call sub.KERNEL32.DLL_OpenFileMappingA
mov ebx, eax
test ebx, ebx
je 0x469626
mov byte [0x66b5ec], 1
push 0
push 0
push 0
push 4
push ebx
call sub.KERNEL32.DLL_MapViewOfFile
mov esi, eax
test esi, esi
je 0x469620
mov eax, dword [esi + 4]
push eax
call sub.KERNEL32.DLL_CloseHandle_1
mov eax, dword [esi]
push eax
push 0
push 0x100000
call sub.KERNEL32.DLL_OpenProcess
mov edi, eax
test edi, edi
je 0x469608
push 0xffffffffffffffff
push edi
call sub.KERNEL32.DLL_WaitForSingleObject
push edi
call sub.KERNEL32.DLL_CloseHandle_1
mov edx, 0x66b70c
lea eax, [esi + 8]
mov ecx, 0x50
call fcn.00403424
push esi
call sub.KERNEL32.DLL_UnmapViewOfFile
push ebx
call sub.KERNEL32.DLL_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469648
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405e94
ret
Function at 0x469b78
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x469d0c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov edx, 0x469d1c
mov ecx, 0x469d30
mov eax, ebx
call fcn.0041b468
lea eax, [ebp - 4]
xor edx, edx
call fcn.00406080
call fcn.00406204
cmp eax, 0x14
jne 0x469cf6
cmp ebx, dword [0x66b6ac]
sete al
mov edx, dword [ebp - 4]
test byte [edx + 3], 0x80
sete dl
cmp al, dl
jne 0x469cf6
mov eax, ebx
call fcn.0041ac74
mov esi, eax
cmp word [esi + 0x18], 0x20b
jne 0x469c5e
lea eax, [ebp - 8]
push eax
push 0x40
push 0xf0
lea eax, [esi + 0x18]
push eax
call sub.KERNEL32.DLL_VirtualProtect
cmp ebx, dword [0x66b6ac]
jne 0x469c1b
mov eax, 0x435368
mov edx, dword [ebp - 4]
sub eax, dword [edx]
sub eax, ebx
mov dword [esi + 0x2c], eax
jmp 0x469c28
mov eax, dword [ebp - 4]
mov eax, dword [eax]
and eax, 0x7fffffff
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov dword [esi + 0x24], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
push 0xf0
lea eax, [esi + 0x18]
push eax
call sub.KERNEL32.DLL_VirtualProtect
jmp 0x469ce7
lea eax, [ebp - 8]
push eax
push 0x40
push 0xe0
lea eax, [esi + 0x18]
push eax
call sub.KERNEL32.DLL_VirtualProtect
cmp ebx, dword [0x66b6ac]
jne 0x469c9b
mov eax, 0x435368
mov edx, dword [ebp - 4]
sub eax, dword [edx]
sub eax, ebx
mov dword [esi + 0x2c], eax
mov eax, 0x66b61c
mov edx, dword [ebp - 4]
sub eax, dword [edx + 4]
sub eax, ebx
mov dword [esi + 0x30], eax
jmp 0x469cb6
mov eax, dword [ebp - 4]
mov eax, dword [eax]
and eax, 0x7fffffff
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
and eax, 0x7fffffff
mov dword [esi + 0x30], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov dword [esi + 0x24], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
push eax
push 0xe0
lea eax, [esi + 0x18]
push eax
call sub.KERNEL32.DLL_VirtualProtect
push 0
push 0
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.KERNEL32.DLL_FlushInstructionCache
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469d13
lea eax, [ebp - 4]
call fcn.00405e70
ret
Function at 0x469e34
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46a013
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x46a030
call fcn.00405f20
mov eax, dword [ebp - 4]
call fcn.0040652c
push eax
call sub.KERNEL32.DLL_GetModuleHandleA
test eax, eax
jne 0x469ffd
xor eax, eax
push ebp
push 0x469ff3
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor esi, esi
jmp 0x469fd4
cmp dword [ebp - 0x1c], 0x1000
jne 0x469fcc
cmp dword [ebp - 0x18], 1
je 0x469fcc
cmp esi, dword [ebp - 0x28]
je 0x469fcc
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x2c]
jne 0x469fcc
push 0x104
lea eax, [ebp - 0x236]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameW_1
test eax, eax
jbe 0x469fcc
mov eax, dword [ebp - 0x28]
call fcn.0043a890
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x469fcc
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.KERNEL32.DLL_LoadResource
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x469fcc
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_LockResource
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x469fcc
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.KERNEL32.DLL_SizeofResource
sub eax, 0x10
push eax
push 0
push 0
push 0x7fffffff
mov esi, dword [0x67ce8c]
mov esi, dword [esi]
mov eax, 0x46a040
mov ecx, 0xe
mov edx, dword [ebp - 0x10]
call esi
test eax, eax
jl 0x469f8d
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.KERNEL32.DLL_SizeofResource
sub eax, 0x10
push eax
push 0
push 0
push 0x7fffffff
mov esi, dword [0x67ce8c]
mov esi, dword [esi]
mov eax, 0x46a050
mov ecx, 0x10
mov edx, dword [ebp - 0x10]
call esi
inc eax
sete dl
mov eax, dword [ebp - 0x28]
call fcn.00469524
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.KERNEL32.DLL_SizeofResource
sub eax, 0x10
push eax
push 0
push 0
push 0x7fffffff
mov esi, dword [0x67ce8c]
mov esi, dword [esi]
mov eax, 0x46a064
mov ecx, 0xc
mov edx, dword [ebp - 0x10]
call esi
test eax, eax
jl 0x469fcc
xor edx, edx
mov eax, dword [ebp - 0x28]
call fcn.00469340
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x20]
add ebx, eax
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push ebx
call sub.KERNEL32.DLL_VirtualQuery_1
cmp eax, 0x1c
je 0x469e8d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x469ffd
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46a01a
lea eax, [ebp - 4]
call fcn.00405e70
ret
Function at 0x46c148
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, ebx
call fcn.00405e70
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, edi
call fcn.0040652c
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x46c20d
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040652c
mov edi, eax
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
cmp dword [ebp - 0xc], 0
je 0x46c204
mov eax, dword [ebp - 0xc]
add eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
push 0x40
call sub.KERNEL32.DLL_LocalAlloc_1
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x46c1fe
cmp dword [ebp - 0x10], 1
jne 0x46c1f0
mov eax, ebx
mov edx, esi
mov ecx, 0
call fcn.00406124
jmp 0x46c1fe
push 0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov edx, esi
call fcn.00405fa8
push esi
call sub.KERNEL32.DLL_LocalFree
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x46e690
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x681da8
push 0xa
push 0x46e724
mov eax, dword [0x680b20]
push eax
call sub.KERNEL32.DLL_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x46e6b4
call fcn.0047adc0
push ebx
mov eax, dword [0x680b20]
push eax
call sub.KERNEL32.DLL_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x46e6cb
call fcn.0047adc0
push ebx
call sub.KERNEL32.DLL_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x46e6dd
call fcn.0047adc0
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x681dac], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x681db0], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x681db4], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x681db8], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x681dbc], ecx
add edx, dword [eax + 0x14]
mov dword [0x681dc0], edx
pop esi
pop ebx
ret

Function at 0x470270
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x470319
test eax, edx
je 0x47031c
push 0
push 0
cmp word [eax - 0xa], 2
je 0x470299
push edx
mov edx, eax
mov eax, esp
call fcn.004070f8
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x4702af
push eax
lea eax, [esp + 8]
call fcn.004070f8
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4702be
movzx eax, word [eax]
sub eax, ecx
jmp 0x4702e5
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4702ff
add ecx, 4
js 0x4702d6
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x4702fc
push eax
mov eax, ecx
mov edx, 2
call fcn.00405e94
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4702e3
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4702e5
xor eax, eax
ret
test eax, eax
je 0x47032c
test edx, edx
jne 0x470280
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x471794
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406f68
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4717b2
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.KERNEL32.DLL_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x4717d3
cmp ebx, 3
je 0x4717d3
cmp ebx, 0x7b
je 0x4717d3
mov eax, esi
call fcn.00471754
test al, al
jne 0x4717d7
xor eax, eax
jmp 0x4717d9
mov al, 1
pop esi
pop ebx
ret

Function at 0x4717dc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406f68
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4717f5
test al, 0x10
jne 0x4717f9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x471914
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00406f68
push eax
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
jne 0x471936
call sub.KERNEL32.DLL_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x477f14
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW_1
test eax, eax
jle 0x477f4d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407018
jmp 0x477f56
mov eax, ebx
mov edx, esi
call fcn.00406edc
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x477f60
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW_1
test eax, eax
jle 0x477f82
movzx eax, word [esp]
jmp 0x477f84
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x478834
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffff004
push eax
add esp, 0xffffff7c
push 0x800
lea ecx, [esp + 0x88]
call fcn.0047866c
mov eax, dword [0x67d388]
cmp byte [eax], 0
je 0x4788c6
mov eax, dword [0x67cda4]
call fcn.00403b3c
call fcn.004033c8
lea eax, [esp + 0x884]
push eax
lea eax, [esp + 0x88]
push eax
call sub.user32.dll_CharToOemW
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x88c]
call fcn.00472148
push eax
lea eax, [esp + 0x890]
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 0x478914
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
jmp 0x4788ff
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x67ccc8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x680b20]
call fcn.00408990
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x8c]
push eax
push 0
call sub.user32.dll_MessageBoxW
add esp, 0x1084
ret