joyce8/EMBER2024-capa huggingface dataset:
Function at 0x448ad0
Capabilities:
Capture webcam image

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
push 0xf0
mov ebx, ecx
push 0x453
push ebx
call edi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call esi
push 0
push 0
push 0xf0
push 0x419
cmp eax, 1
push ebx
sete byte [0x493130]
call edi
push eax
call esi
push 0
push 0
push 0xf0
push 0x44e
cmp eax, 1
push ebx
sete byte [0x493138]
call edi
push eax
call esi
push 0
push 0
push 0xf0
push 0x491
cmp eax, 1
push ebx
sete byte [0x493139]
call edi
push eax
call esi
pop edi
cmp eax, 1
pop esi
sete byte [0x49313a]
pop ebx
ret

Function at 0x448b60
Capabilities:
Capture webcam image
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, ecx
test edx, edx
jne 0x448c24
push 0x488b44
push 2
push ebx
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
push 0x48b
push ebx
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
push 0
push 0x3f2
push ebx
call edi
push eax
call esi
push 1
push 0x482
push ebx
call edi
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call esi
push 1
push 0x483
push ebx
call edi
push eax
call esi
push 2
push 0xffffffffffffffff
push 0x100c
push 0x483
push ebx
call edi
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
test eax, eax
setns cl
push ecx
push 1
push ebx
call edi
push eax
call esi
push 1
push 0x419
push ebx
call edi
push eax
call esi
push 1
push 0x453
push ebx
call edi
push eax
call esi
push 1
push 0x44e
push ebx
call edi
push eax
call esi
push 1
push 0x491
push ebx
call edi
push eax
call esi
pop edi
pop esi
pop ebx
ret
push 0x488c20
push 2
push ebx
call edi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 5
push 0x48b
push ebx
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
push 5
push 0x3f2
push ebx
call edi
push eax
call esi
push 0xc80000
push 0
push 0x401
push 0x3f2
push ebx
call edi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call esi
push 0
push 0
push 0x402
push 0x3f2
push ebx
call edi
push eax
call esi
push 0
push 0x482
push ebx
call edi
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push eax
call esi
push 0
push 0x483
push ebx
call edi
push eax
call esi
push 0
push 1
push ebx
call edi
push eax
call esi
push 0
push 0x419
push ebx
call edi
push eax
call esi
push 0
push 0x453
push ebx
call edi
push eax
call esi
push 0
push 0x44e
push ebx
call edi
push eax
call esi
push 0
push 0x491
push ebx
call edi
push eax
call esi
pop edi
pop esi
pop ebx
ret
Function at 0x44fb10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x44fb3d
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
je 0x44fb72
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esi + 4], 0
mov ecx, dword [esi]
add ecx, 8
xor al, al
xchg byte [ecx], al
mov edx, dword [esi]
xor eax, eax
lea ecx, [edx + 0xc]
xchg dword [ecx], eax
push 0
push 0
mov dword [edx + 0x18], 0
push dword [esi]
mov byte [esi + 8], 0
push dword [ebp + 8]
push 0
push 0
call fcn.0045237c
add esp, 0x18
mov dword [esi + 4], eax
pop esi
pop ebp
ret 4
Function at 0x45c1ef
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4920c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00456bb1
mov dword [ebp - 0x14], eax
cmp dword [0x494508], edi
jne 0x45c2e0
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x45c26d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x57
jne 0x45c3c0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x45c3c0
push 0x46af24
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x45c3c0
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x494508], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x49450c], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x494510], eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
mov dword [0x494518], eax
test eax, eax
je 0x45c2dd
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push eax
call ebx
mov dword [0x494514], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_IsDebuggerPresent]
test eax, eax
je 0x45c305
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x45c2f8
push eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x45c31a
push 4
pop eax
jmp 0x45c3c2
cmp dword [ebp - 0x14], edi
je 0x45c31a
push dword [0x494508]
call dword [sym.imp.KERNEL32.DLL_DecodePointer]
push 3
jmp 0x45c2ff
mov eax, dword [0x494514]
mov ebx, dword [sym.imp.KERNEL32.DLL_DecodePointer]
cmp eax, esi
je 0x45c378
cmp dword [0x494518], esi
je 0x45c378
push eax
call ebx
push dword [0x494518]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x45c378
test eax, eax
je 0x45c378
call ecx
test eax, eax
je 0x45c36d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x45c36d
test byte [ebp - 8], 1
jne 0x45c378
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x45c3a8
mov eax, dword [0x49450c]
cmp eax, esi
je 0x45c3a5
push eax
call ebx
test eax, eax
je 0x45c3a5
call eax
mov edi, eax
test edi, edi
je 0x45c3a5
mov eax, dword [0x494510]
cmp eax, esi
je 0x45c3a5
push eax
call ebx
test eax, eax
je 0x45c3a5
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x494508]
call ebx
test eax, eax
je 0x45c3c0
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x45c3c2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044fdac
leave
ret
Function at 0x402820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x545014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4028b8
push reloc.OLEAUT32.dll_SysReAllocString
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x402898
xor eax, eax
push ebp
push 0x402891
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 0x4028d4
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 0x402898
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegCloseKey
ret
mov ax, word [0x545014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x545014], ax
mov esp, ebp
pop ebp
ret

Function at 0x4033ac
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x54703c], 0
je 0x40340d
cmp word [0x547210], 0xd7b2
jne 0x4033d5
cmp dword [0x547218], 0
jbe 0x4033d5
mov eax, 0x54720c
call dword [0x547228]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x54505c
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 0x403434
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
pop edx
ret
cmp byte [0x545020], 0
jne 0x403429
push 0
push 0x545054
push 0x54505c
push 0
call sub.USER32.dll_MessageBoxA
pop edx
ret

Function at 0x4047f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404856
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403750
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402714
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404840
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40485d
lea eax, [ebp - 0x10]
call fcn.00403528
ret

Function at 0x4063f0
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 0x40648e
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.00403a68
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 eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.004039d4
mov edx, ebp
add dl, 0x30
mov byte [eax + esi - 1], dl
dec esi
test ebx, ebx
jne 0x406418
cmp byte [esp], 0
je 0x40645f
mov eax, edi
call fcn.004039d4
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x40649a
mov eax, edi
call fcn.004039d4
push eax
mov eax, edi
call fcn.004039d4
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.004025ec
mov edx, ebx
mov eax, edi
call fcn.00403a68
jmp 0x40649a
mov eax, edi
mov edx, 0x4064a8
call fcn.0040357c
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406d08
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.0040357c
mov eax, ebx
call fcn.004039cc
mov eax, dword [ebx]
call fcn.0040377c
test eax, eax
jle 0x406d39
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x406d2e
pop esi
pop ebx
ret

Function at 0x407018
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 0x407064
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 2
mov edi, esi
mov eax, edi
call fcn.00407f4c
test al, al
jne 0x40705a
cmp word [edi], 0x5a4d
jne 0x40705a
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x40705a
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x407070
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407200
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
cmp byte [0x545230], 0
jne 0x4072e1
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x407253
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 SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileW
mov esi, eax
jmp 0x407284
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 SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
push ebx
call sub.KERNEL32.dll_LocalFree
cmp esi, 0xffffffff
je 0x4072e1
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x4072af
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x4072c1
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x4072db
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 0x40ddb8
Capabilities:
Hash data using sha1

Disassembly:
push 0xcc
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov edx, eax
mov eax, edx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov eax, edx
ret

Function at 0x4121dc
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x412293
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0xc]
mov eax, dword [0x545d84]
call fcn.00406d08
push dword [ebp - 0xc]
push 0x4122ac
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
mov cl, byte [ebp - 1]
mov eax, dword [0x545d88]
call fcn.004120cc
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 3
call fcn.0040383c
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
call fcn.0040397c
push eax
call fcn.00411ee0
mov esi, eax
test esi, esi
je 0x412278
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
test eax, eax
je 0x412272
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov ecx, dword [eax]
mov dword [edx], ecx
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
mov bl, 1
push esi
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41229a
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040354c
ret

Function at 0x4124e4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
mov ebx, eax
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
je 0x412504
push 0x40
push 0x1000
push ebx
push 0
call sub.KERNEL32.dll_VirtualAlloc
pop ebx
ret
push 0
push ebx
call fcn.0040c024
pop ebx
ret

Function at 0x4127d4
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
pushfd
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], 0
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [0x545e58]
cmp eax, 0x1c
jne 0x41284f
cmp dword [ebp - 0xc], 0x1000
jne 0x41284a
cmp dword [ebp - 0x18], 0
je 0x41284a
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x20], eax
je 0x41284a
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0
jne 0x412829
mov eax, dword [ebp - 0x18]
cmp eax, 0x80000000
jae 0x41284f
push 2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [0x545e2c]
cmp eax, 0
je 0x41284a
push edi
push esi
mov eax, dword [ebp - 0x18]
push eax
call dword [0x545eac]
add ebx, dword [ebp - 0x10]
jmp 0x4127eb
popfd
popal
add esp, 0x20
pop ebp
ret 0xc
Function at 0x4165c4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4167b3
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor edx, edx
mov eax, dword [0x545ce0]
call fcn.0040aa7c
mov dword [0x5476e0], eax
xor edx, edx
mov eax, dword [0x545ce4]
call fcn.0040aa7c
mov dword [0x5476e4], eax
lea eax, [ebp - 4]
mov edx, 5
call fcn.00403a68
lea eax, [ebp - 4]
call fcn.004039d4
mov byte [eax], 0x72
lea eax, [ebp - 4]
call fcn.004039d4
mov byte [eax + 1], 0x64
lea eax, [ebp - 4]
call fcn.004039d4
mov byte [eax + 2], 0x65
lea eax, [ebp - 4]
call fcn.004039d4
mov byte [eax + 3], 0x63
lea eax, [ebp - 4]
call fcn.004039d4
mov byte [eax + 4], 0x20
lea edx, [ebp - 0xc]
mov eax, dword [0x545d6c]
call fcn.00406d08
push dword [ebp - 0xc]
push 0x4167cc
push dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
call sub.KERNEL32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.004068b4
push dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040383c
mov eax, dword [ebp - 4]
call fcn.0040397c
push eax
push 0
push 0
call fcn.00404c68
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x416790
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
mov dword [0x5476d4], esi
mov dword [0x5476d8], edi
cmp dword [0x5476e0], 0
je 0x4166e0
cmp dword [0x5476e4], 0
jne 0x416762
mov dl, 1
mov eax, dword [0x545c78]
call fcn.0040ab88
mov esi, eax
cmp dword [esi], 0x4244c8b
jne 0x416774
lea eax, [esi + 4]
mov eax, dword [eax]
and eax, 0xffffff
cmp eax, 0x241c8b
jne 0x416774
lea eax, [esi + 7]
cmp byte [eax], 0x51
jne 0x416774
lea eax, [esi + 8]
cmp byte [eax], 0x53
jne 0x416774
lea eax, [esi + 9]
cmp byte [eax], 0xe8
jne 0x416774
lea eax, [ebp - 8]
push eax
push 0x40
push 4
lea eax, [esi + 0xa]
push eax
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x416774
lea edx, [esi + 0xe]
lea eax, [esi + 0xa]
add edx, dword [eax]
mov dword [0x5476dc], edx
mov edx, 0x416574
sub edx, esi
sub edx, 0xe
mov dword [eax], edx
lea edx, [ebp - 8]
push edx
mov edx, dword [ebp - 8]
push edx
push 4
push eax
call sub.KERNEL32.dll_VirtualProtect
mov bl, 1
jmp 0x416774
push 0x416520
push 0xffffffffffffffff
call dword [0x5476e0]
test eax, eax
setne bl
test bl, bl
jne 0x416790
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4167ba
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0040354c
lea eax, [ebp - 4]
call fcn.00403528
ret
Function at 0x4167d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
cmp dword [0x5476e0], 0
je 0x4167e8
cmp dword [0x5476e4], 0
jne 0x416829
mov dl, 1
mov eax, dword [0x545c78]
call fcn.0040ab88
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
lea esi, [ebx + 0xa]
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x416834
mov eax, dword [0x5476dc]
sub eax, ebx
sub eax, 0xe
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
push 4
push esi
call sub.KERNEL32.dll_VirtualProtect
jmp 0x416834
push 0x416520
call dword [0x5476e4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x41af90
Capabilities:
Check os version
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd70
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x28c], edx
mov dword [ebp - 0x290], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41b119
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
je 0x41b0e3
mov edi, 1
mov bl, 1
lea edx, [ebp - 0x28c]
mov eax, dword [0x545db8]
call fcn.00406d08
mov eax, dword [ebp - 0x28c]
push eax
lea eax, [ebp - 0x290]
mov edx, edi
add dl, 0x30
call fcn.00403710
mov ecx, dword [ebp - 0x290]
lea eax, [ebp - 0x14]
pop edx
call fcn.004037c8
mov eax, dword [ebp - 0x14]
call fcn.0040397c
push eax
push 0
push 4
call sub.KERNEL32.dll_OpenFileMappingA
mov esi, eax
test esi, esi
je 0x41b0d4
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x41b0ce
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 4]
mov eax, dword [eax]
cmp edx, dword [esp + 4]
jne 0x41b061
cmp eax, dword [esp]
pop edx
pop eax
jne 0x41b0c5
xor ebx, ebx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x41b0c5
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0
imul eax, dword [ebp - 8], 0x4e
mov edx, dword [ebp - 0x10]
push esi
push edi
lea esi, [edx + eax*8 + 0xc]
lea edi, [ebp - 0x288]
mov ecx, 0x9c
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
cmp byte [ebp - 0x288], 0
jne 0x41b0a6
mov bl, 1
jmp 0x41b0c5
lea eax, [ebp - 0x288]
push eax
call sub.KERNEL32.dll_GetModuleHandleA
cmp eax, dword [ebp - 4]
jne 0x41b0bd
mov byte [ebp - 9], 1
jmp 0x41b0c5
inc dword [ebp - 8]
dec dword [ebp - 0x18]
jne 0x41b07d
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
push esi
call sub.KERNEL32.dll_CloseHandle
or bl, byte [ebp - 9]
jne 0x41b0e3
inc edi
cmp edi, 0xa
jne 0x41afd7
cmp byte [ebp - 9], 0
jne 0x41b0f3
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0041ae40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41b120
lea eax, [ebp - 0x290]
mov edx, 2
call fcn.0040354c
lea eax, [ebp - 0x14]
call fcn.00403528
ret
Function at 0x41bc80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffce4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov bl, 1
push ebp
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.0041b9c4
pop ecx
test al, al
jne 0x41bda8
push 0x104
lea eax, [ebp - 0x111]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x104
lea eax, [ebp - 0x31c]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
mov cl, 1
call fcn.0041b9c4
pop ecx
test al, al
jne 0x41bda8
push 0x104
lea eax, [ebp - 0x111]
push eax
mov eax, dword [0x547658]
push eax
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x104
lea eax, [ebp - 0x31c]
push eax
mov eax, dword [0x547658]
push eax
call sub.KERNEL32.dll_GetModuleFileNameW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
mov cl, 1
call fcn.0041b9c4
pop ecx
test al, al
jne 0x41bda8
lea eax, [ebp - 0x111]
push eax
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryA
lea eax, [ebp - 0x31c]
push eax
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
xor ecx, ecx
call fcn.0041b9c4
pop ecx
test al, al
jne 0x41bda8
push 0x104
lea eax, [ebp - 0x111]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryA
push 0x104
lea eax, [ebp - 0x31c]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
xor ecx, ecx
call fcn.0041b9c4
pop ecx
mov ebx, eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41c674
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov edi, dword [ebp + 0xc]
cmp byte [ebp + 8], 0
je 0x41c69f
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
push ebx
call sub.KERNEL32.dll_VirtualProtectEx
test eax, eax
je 0x41c6b3
lea eax, [ebp - 8]
push eax
push edi
mov eax, dword [ebp - 4]
push eax
push esi
push ebx
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
jne 0x41c6b7
xor eax, eax
jmp 0x41c6b9
mov al, 1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8