joyce8/EMBER2024-capa huggingface dataset:
Function at 0x9cbb4c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x9f0274]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x9edd3c
push esi
call fcn.009c3f93
pop ecx
pop ecx
test eax, eax
jne 0x9cbb7a
xor al, al
jmp 0x9cbbf7
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.009cb881
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x9cbbb4
push dword [ebp - 0x210]
call fcn.009b2212
xor al, al
jmp 0x9cbbf5
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x9cbbba
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x9cbbda
push edx
call fcn.009cba83
pop ecx
test al, al
je 0x9cbba5
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x9cbbe8
mov bl, 1
push dword [ebp - 0x210]
call fcn.009b2212
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.009aeb72
leave
ret

Function at 0x9cc6dc
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x9f0274]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x9cc71f
call fcn.009bc207
mov dword [eax], 0xf
call fcn.009bc21a
mov dword [eax], 0xd
call fcn.009bfae4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009aeb72
leave
ret
test eax, eax
jne 0x9cc726
inc eax
jmp 0x9cc713
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x9cc711
xor eax, eax
cmp ecx, 1
setne al
jmp 0x9cc713
Function at 0x4015e8
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x4032a0
call fcn.004018f4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x404734
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x4013a9
cmp eax, esi
jne 0x40139c
xor esi, esi
inc esi
mov ebx, esi
jmp 0x4013ac
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401383
xor esi, esi
inc esi
mov eax, dword [0x404730]
cmp eax, esi
jne 0x4013bf
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x4013ee
mov eax, dword [0x404730]
test eax, eax
jne 0x4013e8
mov dword [0x404730], esi
push 0x4030f4
push 0x4030e8
call fcn.004012f2
pop ecx
pop ecx
test eax, eax
je 0x4013ee
jmp 0x401516
mov dword [0x404394], esi
mov eax, dword [0x404730]
cmp eax, esi
jne 0x401412
push 0x4030e4
push 0x4030dc
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x404730], 2
test ebx, ebx
jne 0x40141e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x404738], 0
je 0x401442
push 0x404738
call fcn.00401834
pop ecx
test eax, eax
je 0x401442
push 0
push 2
push 0
call dword [0x404738]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x40149e
test al, al
je 0x40145c
cmp dword [ebp - 0x1c], 0
jne 0x40149e
mov al, byte [esi]
test al, al
je 0x40146c
cmp al, 0x20
ja 0x40146c
inc esi
mov dword [ebp - 0x20], esi
jmp 0x40145c
test byte [ebp - 0x3c], 1
je 0x401478
movzx eax, word [ebp - 0x38]
jmp 0x40147b
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call main
mov dword [0x404390], eax
cmp dword [0x404384], 0
jne 0x4014f2
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x4014ad
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x4014c0
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x401449
cmp dword [0x404394], 0
jne 0x401501
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x404390]
jmp 0x401522
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00401939
ret
call fcn.00401a23
jmp 0x401349

Function at 0x402b20
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.00402a60
add esp, 4
cmp word [eax], 0x5a4d
jne 0x402b4f
push esi
call fcn.00402a70
mov ecx, dword [eax]
add esp, 4
cmp ecx, 0x4550
jne 0x402b4f
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x402dd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push 0x4031bc
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
mov esi, eax
call dword [sym.imp.msvcrt.dll_malloc]
push ebx
mov edi, eax
push esi
push edi
call sub.msvcrt.dll_memcpy
push 0
push 0
push ebx
push edi
mov byte [edi], 0x4d
call fcn.00402a40
add esp, 0x20
pop edi
pop esi
pop ebx
ret 0x10

Function at 0x4019ac
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov eax, dword [esp + 8]
mov dword [0x4040c0], eax
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
dec ecx
jne 0x4019bf
push esp
mov dword [ebp - 0x24], 0x401711
mov eax, dword [0x4040c0]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], str.zeenty
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x4040c0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.upsent
push str.zeenty
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4040c8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401a5e
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call esi
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401a3f
pop ebp
ret 0x10
Function at 0x401290
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebx
push esi
push edi
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [eax + 8]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40131c
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40131c
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [esp + 0x18]
push 0x4040a0
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x40131c
push esi
push ebx
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
mov eax, 1
pop edi
pop esi
pop ebx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x401770
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
sub esp, 0xc
mov dword [eax], 0
mov dword [ecx], 0
test eax, eax
push esi
je 0x4018a8
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4018a8
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x4018a8
push ebx
xor ebx, ebx
push edi
push ebx
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
je 0x40189f
push ebx
push 0x4000002
push ebx
push ebx
push esi
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
je 0x401898
push ebp
push 0x801
call sub.MFC42.DLL_operatornew
add esp, 4
lea edx, [esp + 0x20]
mov ebx, eax
push edx
push 0x400
push ebx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ebp, dword [esp + 0x20]
lea eax, [esp + 0x20]
lea ecx, [ebx + ebp]
push eax
push 0x400
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, dword [esp + 0x20]
test ecx, ecx
jbe 0x40187b
test eax, eax
je 0x40187b
test ebx, ebx
je 0x401877
lea edx, [ecx + ebp + 0x401]
mov esi, ebx
push edx
mov dword [esp + 0x14], esi
call sub.MFC42.DLL_operatornew
mov ebx, eax
mov eax, dword [esp + 0x24]
mov edi, ebx
lea ecx, [eax + ebp]
mov eax, dword [esp + 0x14]
mov edx, ecx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x28]
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
add esp, 8
add ebp, ecx
jmp 0x40180d
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push esi
mov dword [ecx], ebx
mov byte [ebx + ebp], 0
mov dword [edx], ebp
mov ebx, 1
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop ebp
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, ebx
pop edi
pop ebx
pop esi
add esp, 0xc
ret
xor eax, eax
pop esi
add esp, 0xc
ret
Function at 0x401a40
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
lea eax, [esp + 8]
push esi
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov dword [esp + 0x24], 0
push 0x80000001
mov dword [esp + 0x28], 0x80
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ecx, dword [esp + 8]
lea edx, [esp + 4]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push str.Desktop
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x94]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov eax, esi
pop esi
add esp, 0x8c
ret

Function at 0x401ad0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
sub esp, 0x104
lea edx, [esp + 4]
push esi
push edi
push eax
push ecx
push str._InternetShortcut__r_nURL_s_r_nIconIndex0_r_nIconFile_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x120]
add esp, 0x10
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 8]
push 0
mov esi, eax
push ecx
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x104
ret
Function at 0x401b50
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push ebx
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
mov dword [esp + 0x10], pe_nt_image_headers32
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
push 0
push 0
push str.Favorites
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, 0x4040a4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x124]
mov ecx, ebx
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x124]
lea edx, [esp + 0x1c]
push ecx
push edx
call fcn.00401ad0
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x40a100
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
jmp 0x40a11a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40a121
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40a110
mov eax, 1
add ebx, ebx
jne 0x40a133
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40a128
jne 0x40a144
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40a128
xor ecx, ecx
sub eax, 3
jb 0x40a158
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40a1ca
mov ebp, eax
add ebx, ebx
jne 0x40a163
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40a170
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40a194
inc ecx
add ebx, ebx
jne 0x40a180
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40a175
jne 0x40a191
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40a175
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40a1b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40a1a5
jmp 0x40a116
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40a1b4
add edi, ecx
jmp 0x40a116
pop esi
mov edi, esi
mov ecx, 0xe6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40a1d2
cmp byte [edi], 6
jne 0x40a1d2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40a1d7
lea edi, [esi + 0x8000]
mov eax, dword [edi]
or eax, eax
je 0x40a24f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa03c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40a204
mov ecx, edi
jns 0x40a233
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa044]
or eax, eax
je 0x40a249
mov dword [ebx], eax
add ebx, 4
jmp 0x40a221
call dword [esi + 0xa040]
mov ebp, dword [esi + 0xa048]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40a283
sub esp, 0xffffff80
jmp 0x401945
Function at 0x52f8e2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5f1a90]
jne 0x52f8ec
repz ret
jmp fcn.00536a2c

Function at 0x53b96a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0052e624
and dword [ebp - 4], 0
cmp dword [0x5f32cc], 0
mov ebx, eax
jne 0x53ba1b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x53bacc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x53bacc
push eax
call fcn.0052e5b2
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5f32cc], eax
call esi
push eax
call fcn.0052e5b2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5f32d0], eax
call esi
push eax
call fcn.0052e5b2
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5f32d4], eax
call esi
push eax
call fcn.0052e5b2
pop ecx
mov dword [0x5f32dc], eax
test eax, eax
je 0x53ba1b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0052e5b2
pop ecx
mov dword [0x5f32d8], eax
mov eax, dword [0x5f32d8]
cmp eax, ebx
je 0x53ba73
cmp dword [0x5f32dc], ebx
je 0x53ba73
push eax
call fcn.0052e62d
push dword [0x5f32dc]
mov esi, eax
call fcn.0052e62d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x53ba73
test edi, edi
je 0x53ba73
call esi
test eax, eax
je 0x53ba6a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x53ba6a
test byte [ebp - 0xc], 1
jne 0x53ba73
or dword [ebp + 0x10], 0x200000
jmp 0x53baac
mov eax, dword [0x5f32d0]
cmp eax, ebx
je 0x53baac
push eax
call fcn.0052e62d
pop ecx
test eax, eax
je 0x53baac
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x53baac
mov eax, dword [0x5f32d4]
cmp eax, ebx
je 0x53baac
push eax
call fcn.0052e62d
pop ecx
test eax, eax
je 0x53baac
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5f32cc]
call fcn.0052e62d
pop ecx
test eax, eax
je 0x53bacc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x53bace
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x53ffc0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x5f12e8], 0
mov byte [0x5f12ec], 0
mov dword [0x5f12dc], 0xde7
mov dword [0x5f12e0], 0x22fd
mov dword [0x5f12e4], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x540027
mov dword [0x5f12dc], 0xbd0
mov dword [0x5f12e4], 0
jmp 0x54004f
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x5f12e4]
add eax, 1
mov dword [0x5f12e4], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x540027
jmp 0x540011
mov dword [0x5f12f0], 0
mov dword [0x5f12e0], 0x1bb5
mov eax, dword [0x5f12e8]
mov ecx, dword [0x5f12e4]
mov edx, dword [ebp - 0x18]
movzx esi, byte [edx + ecx]
add esi, eax
mov eax, ecx
xor edx, edx
mov ecx, dword [ebp - 0x10]
div ecx
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x5f12f0], esi
mov dword [0x5f12e0], 0x938
mov dword [ebp - 0x20], esi
mov eax, 0x100
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, ecx
cdq
mov esi, dword [ebp - 0x24]
idiv esi
mov dword [0x5f12e8], edx
mov edi, dword [0x5f12e4]
mov ebx, dword [ebp - 0x18]
mov cl, byte [ebx + edi]
mov byte [0x5f12ec], cl
mov cl, byte [ebx + edx]
mov byte [ebx + edi], cl
mov cl, byte [0x5f12ec]
mov edx, dword [0x5f12e8]
mov byte [ebx + edx], cl
mov dword [0x5f12e0], 0x42e
mov dword [0x5f12dc], 0x178b
mov edx, dword [0x5f12e4]
add edx, 1
mov dword [0x5f12e4], edx
cmp edx, 0x100
jl 0x54004f
mov dword [0x5f12dc], 0xa6
mov dword [0x5f12e0], 0x1ca3
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x540700
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [fcn.00540700]
mov dword [0x5f12dc], 0x2505
mov dword [ebp - 4], eax
jmp 0x54072c
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
je 0x54073b
jmp 0x540743
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
mov dword [ebp - 8], eax
je 0x54071b
jmp 0x540743
mov eax, dword [ebp - 8]
add esp, 8
pop ebp
ret
mov eax, dword [ebp - 8]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [0x5f12e0], 0x1296
mov dword [ebp - 4], eax
jmp 0x54072c