joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5217a1
Capabilities:
Get process image filename

Disassembly:
push 0x228
mov eax, 0x58706e
call fcn.0055ddbc
mov ebx, ecx
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x21c], 0xf
mov dword [ebp - 0x220], eax
mov byte [ebp - 0x230], al
push 0x58d430
mov dword [ebp - 4], eax
call fcn.0040695b
pop ecx
push eax
push 0x58d430
lea ecx, [ebp - 0x230]
call fcn.004067b5
push esi
push 0
push 0x400
mov byte [ebp - 0x114], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x52186f
push 0x104
lea eax, [ebp - 0x218]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameA
test eax, eax
jne 0x52182f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x52186f
lea eax, [ebp - 0x114]
mov ecx, ebx
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00520f86
push esi
test eax, eax
je 0x521827
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x114]
push eax
call fcn.0040695b
pop ecx
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x230]
call fcn.004067b5
xor ebx, ebx
mov dword [edi + 0x14], 0xf
lea eax, [ebp - 0x230]
mov dword [edi + 0x10], ebx
push eax
mov ecx, edi
mov byte [edi], bl
call fcn.00415493
push ebx
push 1
lea ecx, [ebp - 0x230]
call fcn.004066dd
mov eax, edi
call fcn.0055dd7a
ret 8

Function at 0x521c34
Capabilities:
Create directory

Disassembly:
push 0x38
mov eax, 0x58715e
call fcn.0055ddbc
xor ebx, ebx
push 0xf
pop eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x40], bl
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
push dword [ebp + 0x18]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00522539
mov edx, dword [ebp + 0x1c]
lea esi, [ebp + 8]
mov edi, dword [ebp + 8]
cmp edx, 0x10
cmovae esi, edi
mov eax, dword [ebp + 0x18]
lea ecx, [ebp + 8]
cmp edx, 0x10
cmovae ecx, edi
add eax, ecx
cmp esi, eax
je 0x521d17
mov bl, byte [esi]
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x44], bl
push dword [ebp - 0x44]
call fcn.00522514
cmp bl, 0x5c
je 0x521cbc
mov edx, dword [ebp + 0x1c]
lea ecx, [ebp + 8]
mov edi, dword [ebp + 8]
cmp edx, 0x10
mov eax, dword [ebp + 0x18]
cmovae ecx, edi
dec eax
add eax, ecx
cmp esi, eax
jne 0x521d11
push 0xffffffffffffffff
xor ebx, ebx
lea eax, [ebp - 0x28]
push ebx
push eax
lea ecx, [ebp - 0x40]
call fcn.00422f3a
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push ebx
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.0056562a
pop ecx
pop ecx
test eax, eax
je 0x521cfb
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call fcn.005655e8
pop ecx
test eax, eax
jne 0x521d19
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
cmovae eax, dword [ebp - 0x28]
mov byte [eax], bl
mov edx, dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
inc esi
jmp 0x521c78
mov bl, 1
xor esi, esi
lea ecx, [ebp - 0x28]
push esi
push 1
call fcn.004066dd
push esi
push 1
lea ecx, [ebp - 0x40]
call fcn.004066dd
push esi
push 1
lea ecx, [ebp + 8]
call fcn.004066dd
mov al, bl
call fcn.0055dd7a
ret 0x18
Function at 0x522695
Capabilities:
Connect socket
Create thread
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x66c240]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0xffffffffffffffff
push dword [0x6b23f4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movzx eax, word [esi + 0x18]
push 2
pop ebx
push eax
mov word [ebp - 0x14], bx
call sub.WSOCK32.dll_htons
cmp dword [esi + 0x14], 0x10
mov word [ebp - 0x12], ax
jb 0x5226d8
mov esi, dword [esi]
push esi
call sub.WSOCK32.dll_inet_addr
push 6
push 1
push ebx
mov dword [ebp - 0x10], eax
call sub.WSOCK32.dll_socket
push 0x10
lea ecx, [ebp - 0x14]
mov dword [0x6b23f0], eax
push ecx
push eax
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x522705
xor al, al
jmp 0x52276b
push 0x129
call fcn.0055d518
mov esi, eax
lea eax, [edi + 0x10]
push eax
push 0x104
lea eax, [esi + 0x10]
push eax
call fcn.00564c33
lea eax, [edi + 0x114]
push eax
lea eax, [esi + 0x114]
push 0x10
push eax
call fcn.00564c33
mov eax, dword [edi + 0x124]
xor ecx, ecx
push ecx
push ecx
push esi
push 0x5227a5
mov dword [esi + 0x124], eax
mov al, byte [edi + 0x128]
push ecx
push ecx
mov byte [esi + 0x128], al
call fcn.005653bb
mov dword [0x6b23f4], eax
add esp, 0x34
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055dcf4
mov esp, ebp
pop ebp
ret 4

Function at 0x522a7a
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x66c240]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x5a3178
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [edi], eax
test eax, eax
je 0x522acc
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.IcmpCreateFile
push eax
call esi
push str.IcmpSendEcho
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.IcmpCloseHandle
push dword [edi]
mov dword [edi + 8], eax
call esi
mov dword [edi + 0xc], eax
pop esi
lea eax, [ebp - 0x194]
push eax
push 0x201
call sub.WSOCK32.dll_WSAStartup
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0055dcf4
mov esp, ebp
pop ebp
ret
Function at 0x522b02
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], ecx
or esi, 0xffffffff
call sub.WSOCK32.dll_inet_addr
mov ebx, eax
mov dword [ebp - 8], ebx
cmp ebx, esi
jne 0x522b44
push dword [ebp + 8]
call sub.WSOCK32.dll_gethostbyname
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
je 0x522bfc
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 8], eax
push 0x20
call fcn.0055cb9e
mov edi, eax
pop ecx
test edi, edi
je 0x522bfc
push 0x3c
call fcn.0055cb9e
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x522b70
push edi
call fcn.0055ecb8
pop ecx
jmp 0x522bfc
mov eax, dword [ebp - 4]
call dword [eax + 4]
mov ecx, eax
mov dword [ebp - 0xc], ecx
cmp ecx, esi
jne 0x522b8e
push edi
call fcn.0055ecb8
push ebx
call fcn.0055ecb8
pop ecx
jmp 0x522b6a
mov eax, dword [ebp + 0xc]
movzx eax, ax
mov dword [ebp + 0xc], eax
test eax, eax
jle 0x522bd1
mov dword [ebp + 8], eax
push dword [ebp + 0x10]
mov eax, dword [ebp - 4]
push 0x3c
push ebx
push 0
push 0x20
push edi
push dword [ebp - 8]
push ecx
call dword [eax + 8]
cmp dword [ebx + 4], 0
jne 0x522bc9
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebx + 8]
add dword [ecx], eax
jne 0x522bc8
xor eax, eax
inc eax
mov dword [ecx], eax
inc esi
dec dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
jne 0x522b9e
mov ecx, dword [ebp + 0x14]
xor edx, edx
push 1
mov eax, dword [ecx]
div dword [ebp + 0xc]
pop edx
test eax, eax
push ebx
cmove eax, edx
mov dword [ecx], eax
call fcn.0055ecb8
push edi
call fcn.0055ecb8
mov eax, dword [ebp - 4]
pop ecx
pop ecx
push dword [ebp - 0xc]
call dword [eax + 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5543e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x66c240]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
push edi
push 0x80
push 3
push edi
push edi
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x55449d
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push esi
call edi
test eax, eax
jne 0x55443c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x55449d
cmp dword [ebp - 0x18], 0x6060801
jne 0x554433
push 0
lea eax, [ebp - 0x14]
push eax
push 0xa
lea eax, [ebp - 0x10]
push eax
push esi
call edi
push esi
test eax, eax
je 0x554434
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
cmp dword [ebx + 0x19], esi
je 0x55449d
mov ecx, dword [0x6b1014]
test ecx, ecx
je 0x55449d
push dword [ebp - 0xe]
call fcn.004a0a62
push dword [ebp - 0x10]
mov ecx, dword [0x6b1014]
call fcn.004a0a45
movss xmm0, dword [ebp - 0xa]
push esi
push ecx
movss dword [esp], xmm0
mov ecx, 0x6a7ab0
push esi
call fcn.004efd07
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055dcf4
mov esp, ebp
pop ebp
ret 4
Function at 0x5549a1
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x66c240]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
push edi
mov edi, ecx
je 0x554a9e
push 0
mov ecx, 0x69b980
call fcn.0046c0f1
push eax
lea eax, [ebp - 0x108]
push str._sdata
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x108]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [edi + 0x15]
mov ecx, 0x69b980
push 0
call fcn.0046c0f1
push eax
lea eax, [ebp - 0x108]
push str._sdata_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x108]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test byte [ebp + 8], 1
je 0x554a62
push dword [edi + 0x15]
mov ecx, 0x69b980
push dword [edi + 0x15]
push 0
call fcn.0046c0f1
push eax
lea eax, [ebp - 0x108]
push str._sdata_d_d.uii
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x108]
mov ecx, edi
push eax
call fcn.005544b0
test byte [ebp + 8], 2
je 0x554a9e
push dword [edi + 0x15]
mov ecx, 0x69b980
push dword [edi + 0x15]
push 0
call fcn.0046c0f1
push eax
lea eax, [ebp - 0x108]
push str._sdata_d_d.uis
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x108]
mov ecx, edi
push eax
call fcn.00554aaf
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0055dcf4
mov esp, ebp
pop ebp
ret 4

Function at 0x554aaf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x66c240]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x6b1014]
push esi
mov esi, dword [ebp + 8]
test ecx, ecx
je 0x554b45
push ebx
push edi
call fcn.0049f823
movss xmm0, dword [0x6a7af0]
xor ebx, ebx
push ebx
push 0x80
push 2
mov dword [ebp - 0xe], eax
mov eax, dword [0x6b1014]
push ebx
push ebx
push 0x40000000
mov ax, word [eax + 0x682]
push esi
mov word [ebp - 0x10], ax
movss dword [ebp - 0xa], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x554b43
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x14]
push ebx
push eax
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x6060801
push eax
push edi
call esi
push ebx
lea eax, [ebp - 0x14]
push eax
push 0xa
lea eax, [ebp - 0x10]
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0055dcf4
mov esp, ebp
pop ebp
ret 4
Function at 0x554d3c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x66c240]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
push edi
mov eax, dword [edi]
call dword [eax + 0x20]
test eax, eax
je 0x554d81
mov esi, 0x697e20
push 0x8db
mov ecx, esi
call fcn.0045e819
push eax
push 0x17
push esi
call fcn.0045e193
add esp, 0xc
xor eax, eax
jmp 0x554ec0
mov eax, dword [0x6a3ea4]
push ebx
xor ebx, ebx
mov dword [ebp - 0x210], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
lea edx, [ebp - 0x210]
push edx
push 0x5a5828
mov ecx, dword [eax]
push eax
call dword [ecx + 0x134]
test eax, eax
je 0x554eb8
cmp dword [edi + 0xc], ebx
jne 0x554de7
push str.bdcap32.dll
mov ecx, edi
call fcn.00554f0c
test eax, eax
jns 0x554dce
push 0x8dc
jmp 0x554e3c
mov eax, dword [edi]
push str.e5b68af6
push str.EYA_LUNAPLUS_20100218
push edi
call dword [eax + 0xc]
cmp dword [edi + 0xc], ebx
je 0x554ebc
mov eax, dword [edi]
push 0x3c
push 0x1e
push edi
call dword [eax + 0x40]
mov ecx, edi
call fcn.0055529b
push ebx
mov ecx, 0x69b980
call fcn.0046c0f1
push eax
lea eax, [ebp - 0x108]
push str._sScreenShot
push eax
call fcn.0055f31c
add esp, 0xc
lea eax, [ebp - 0x108]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x554e56
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x554e56
push 0x8de
mov esi, 0x697e20
mov ecx, esi
call fcn.0045e819
push eax
push 0x17
push esi
call fcn.0045e193
add esp, 0xc
jmp 0x554eb8
push 0x104
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
push 0x5a5950
push str.Capture
lea eax, [ebp - 0x108]
push eax
call fcn.005551e6
lea eax, [ebp - 0x20c]
mov esi, 0x697e20
push eax
push 0x8df
mov ecx, esi
call fcn.0045e819
push eax
push 0x17
push esi
call fcn.0045e193
add esp, 0x10
lea eax, [ebp - 0x20c]
push dword [ebp - 0x210]
push 4
push ebx
push eax
push edi
call fcn.0055539f
test eax, eax
jns 0x554ebc
xor eax, eax
jmp 0x554ebf
xor eax, eax
inc eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0055dcf4
mov esp, ebp
pop ebp
ret
Function at 0x57472c
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x66c240]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00567bb8
mov dword [ebp - 0x14], eax
cmp dword [0x6bfda0], esi
jne 0x57481f
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x5747ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5748ff
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x5748ff
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5748ff
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x6bfda0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x6bfda4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x6bfda8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x6bfdb0], eax
test eax, eax
je 0x57481c
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x6bfdac], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x574844
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x574837
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x574859
push 4
pop eax
jmp 0x574901
cmp dword [ebp - 0x14], esi
je 0x574859
push dword [0x6bfda0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x57483e
mov eax, dword [0x6bfdac]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x5748b7
cmp dword [0x6bfdb0], edi
je 0x5748b7
push eax
call ebx
push dword [0x6bfdb0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5748b7
test eax, eax
je 0x5748b7
call ecx
test eax, eax
je 0x5748ac
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 0x5748ac
test byte [ebp - 8], 1
jne 0x5748b7
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x5748e7
mov eax, dword [0x6bfda4]
cmp eax, edi
je 0x5748e4
push eax
call ebx
test eax, eax
je 0x5748e4
call eax
mov esi, eax
test esi, esi
je 0x5748e4
mov eax, dword [0x6bfda8]
cmp eax, edi
je 0x5748e4
push eax
call ebx
test eax, eax
je 0x5748e4
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x6bfda0]
call ebx
test eax, eax
je 0x5748ff
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x574901
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055dcf4
mov esp, ebp
pop ebp
ret
Function at 0x10002990
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
test edx, edx
je 0x10002a58
mov byte [ebp + 0xf], 0
xor ecx, ecx
lea esp, [esp]
mov al, byte [ebp + 0xf]
mov byte [ecx + edx], al
inc ecx
cmp ecx, 0x20
jb 0x100029b0
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 2]
mov dword [edx], eax
mov esi, dword [ecx + 2]
test esi, esi
je 0x10002a58
mov esi, dword [esi + 0x3c]
mov ebx, eax
add esi, ebx
mov dword [edx + 4], esi
jne 0x100029e2
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi + 0x14]
sub eax, 0x7d01
je 0x10002a58
mov eax, dword [esi + 0xa0]
add eax, ebx
mov dword [edx + 8], eax
jne 0x10002a08
mov edi, dword [ecx + 2]
test edi, edi
jne 0x10002a08
mov eax, dword [ecx + 0xe]
add eax, edi
jne 0x100029db
mov eax, dword [esi + 0xa4]
mov dword [edx + 0xc], eax
mov eax, dword [esi + 0x80]
add eax, ebx
mov dword [edx + 0x10], eax
jne 0x10002a2c
mov edi, dword [ecx + 2]
test edi, edi
jne 0x10002a2c
mov eax, dword [ecx + 0xe]
add eax, edi
jne 0x100029db
mov eax, dword [esi + 0x84]
mov dword [edx + 0x14], eax
mov eax, dword [esi + 0x78]
add eax, ebx
mov dword [edx + 0x18], eax
jne 0x10002a4d
mov edi, dword [ecx + 2]
test edi, edi
jne 0x10002a4d
mov eax, dword [ecx + 0xe]
add eax, edi
jne 0x100029db
mov eax, dword [esi + 0x7c]
mov dword [edx + 0x1c], eax
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10003380
Capabilities:
Allocate or change rwx memory
Check for software breakpoints
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 4
push 0x3000
push 0x12
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
xor eax, eax
test edi, edi
je 0x100034a7
mov ecx, dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
mov word [edi], ax
test ecx, ecx
je 0x100033c6
nop
cmp byte [ecx + eax], 0xcc
je 0x100033be
inc eax
cmp eax, 6
jb 0x100033b0
jmp 0x100033c6
mov eax, 1
mov word [edi], ax
mov eax, dword [ebp + 0x10]
push ebx
push esi
test eax, eax
je 0x10003434
cmp dword [ebp + 0x14], 0
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push eax
push esi
je 0x100033e5
call dword [sym.imp.KERNEL32.dll_FindResourceW]
jmp 0x100033eb
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x1000341d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x1000341d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x1000341d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x1000343f
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov esi, dword [0x10267dc0]
mov ebx, 0x100100d0
push 0x40000000
push 0x40
push 0x3000
push esi
call fcn.10002a60
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x10003486
push eax
push 0x40
push 0x3000
push esi
call fcn.10002a60
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x10003486
push 0x40
push 0x3000
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
test edx, edx
je 0x1000341d
test esi, esi
je 0x1000349b
mov ecx, edx
sub ebx, edx
mov edi, edi
mov al, byte [ebx + ecx]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec esi
jne 0x10003490
push edx
push edi
call fcn.10002c00
add esp, 8
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10004060
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
cmp byte [edi], 0
je 0x1000417d
inc esi
cmp byte [esi + edi], 0
jne 0x10004076
test esi, esi
je 0x1000417d
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
xor edx, edx
div esi
and ecx, 0xffffff
movsx eax, byte [edx + edi]
shl eax, 0x18
or ecx, eax
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
xor edx, edx
div esi
movsx eax, byte [edx + edi]
shl eax, 0x10
xor eax, ecx
and eax, 0xff0000
xor ecx, eax
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
xor edx, edx
div esi
movsx eax, byte [edx + edi]
shl eax, 8
xor eax, ecx
and eax, 0xff00
xor ecx, eax
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
xor edx, edx
div esi
movsx eax, byte [edx + edi]
mov edx, dword [ebp - 4]
xor eax, ecx
and eax, 0xff
xor ecx, eax
mov eax, dword [ebp + 0xc]
xor dword [ebx + edx*4], ecx
inc edx
inc eax
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], edx
cmp edx, 0x12
jb 0x10004094
mov dword [ebp - 4], 0
mov dword [ebp + 0xc], 0
xor esi, esi
jmp 0x10004120
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
push ebx
call fcn.10003880
mov eax, dword [ebp + 0xc]
mov dword [ebx + esi*4], eax
mov eax, dword [ebp - 4]
mov dword [ebx + esi*4 + 4], eax
add esi, 2
add esp, 0xc
cmp esi, 0x12
jb 0x10004120
lea esi, [ebx + 0x4c]
mov dword [ebp - 8], 4
mov edi, 0x80
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
push ebx
call fcn.10003880
mov eax, dword [ebp + 0xc]
mov dword [esi - 4], eax
mov eax, dword [ebp - 4]
mov dword [esi], eax
add esp, 0xc
add esi, 8
dec edi
jne 0x10004155
dec dword [ebp - 8]
jne 0x10004150
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100041e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10004239
push esi
mov esi, 0x1000f080
mov ecx, edi
sub esi, edi
mov edx, 0x12
lea ebx, [ebx]
mov eax, dword [esi + ecx]
xor eax, 0x25
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x10004200
lea eax, [edi + 0x48]
mov edx, 0x1000f0c8
mov edi, 4
jmp 0x10004220
mov esi, 0x100
mov ecx, dword [edx]
xor ecx, 0x25
mov dword [eax], ecx
add edx, 4
add eax, 4
dec esi
jne 0x10004225
dec edi
jne 0x10004220
pop esi
pop edi
pop ebp
ret

Function at 0x1000474d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10267e1c]
jne 0x10004757
repz ret
jmp fcn.100062cc
Function at 0x1000a3fa
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.10005c4c
and dword [ebp - 4], 0
cmp dword [0x10269530], 0
mov ebx, eax
jne 0x1000a4ab
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000a55c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1000a55c
push eax
call fcn.10005bda
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10269530], eax
call esi
push eax
call fcn.10005bda
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10269534], eax
call esi
push eax
call fcn.10005bda
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10269538], eax
call esi
push eax
call fcn.10005bda
pop ecx
mov dword [0x10269540], eax
test eax, eax
je 0x1000a4ab
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10005bda
pop ecx
mov dword [0x1026953c], eax
mov eax, dword [0x1026953c]
cmp eax, ebx
je 0x1000a503
cmp dword [0x10269540], ebx
je 0x1000a503
push eax
call fcn.10005c55
push dword [0x10269540]
mov esi, eax
call fcn.10005c55
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1000a503
test edi, edi
je 0x1000a503
call esi
test eax, eax
je 0x1000a4fa
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000a4fa
test byte [ebp - 0xc], 1
jne 0x1000a503
or dword [ebp + 0x10], 0x200000
jmp 0x1000a53c
mov eax, dword [0x10269534]
cmp eax, ebx
je 0x1000a53c
push eax
call fcn.10005c55
pop ecx
test eax, eax
je 0x1000a53c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1000a53c
mov eax, dword [0x10269538]
cmp eax, ebx
je 0x1000a53c
push eax
call fcn.10005c55
pop ecx
test eax, eax
je 0x1000a53c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10269530]
call fcn.10005c55
pop ecx
test eax, eax
je 0x1000a55c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000a55e
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret