joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40147d
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
lea eax, [ebp - 0x11c]
mov dword [esp + 8], 1
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x116]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x10c]
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [ebp - 0x11c], 0xa
mov byte [ebp - 0x10c], 0
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
movsx eax, byte [ebp - 0x116]
sub esp, 0x14
leave
sub eax, 0x41
ret

Function at 0x4014d9
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xa0
mov dword [ebp - 0x88], 0
call fcn.0040147d
mov dword [esp], 0x4015b0
mov dword [ebp - 0x8c], 0
mov ebx, eax
lea eax, [ebp - 0x8c]
mov dword [esp + 0xc], eax
mov eax, ebx
or eax, 0x40
mov dword [esp + 8], eax
mov eax, 0x402012
sub eax, 0x4015b0
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x40157a
mov dword [esp], ebx
lea esi, [ebp - 0x88]
call fcn.004013a1
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.00401404
lea eax, [ebx + 0x1b800]
test ebx, ebx
lea edx, [eax + eax]
mov ecx, 0x40300c
mov dword [esp + 8], esi
cmovne eax, edx
sar ebx, cl
sub ecx, ebx
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00401d15
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret

Function at 0x433002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x1a4d7ce5
nop
nop
nop
nop
test eax, eax
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x234348f7
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x10033c6d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x10033c7c
pop dword [ebp - 0x44]
mov eax, 0x84736f04
add eax, 0x8b8fcd78
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x64b6c4f0
add dword [ebp - 0x54], 0xe99b805b
mov dword [ebp - 0x50], 0xe74bce54
add dword [ebp - 0x50], 0x4ae77df1
mov dword [ebp - 0x4c], 0x832e5ab8
add dword [ebp - 0x4c], 0xc91de976
mov dword [ebp - 0x48], 0x41edb4d3
sub dword [ebp - 0x48], 0x41edb4d3
lea eax, [ebp - 0x54]
push eax
mov eax, 0xe65fc3
add eax, 0xf1f3149
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x70f372b3
sub dword [ebp - 0x54], 0xfc81095d
mov dword [ebp - 0x50], 0x1072f0d2
sub dword [ebp - 0x50], 0xcf068f5d
mov dword [ebp - 0x4c], 0xb870ec55
add dword [ebp - 0x4c], 0xaafe8017
mov dword [ebp - 0x48], 0x8de27549
sub dword [ebp - 0x48], 0x8de27549
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0x2bc0f0c7
sub eax, 0x1bbb6087
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x5d729
push 0
call eax
mov ecx, 0x4756
mov edi, eax
mov edx, 0x10069400
add edx, dword [ebp - 0x44]
mov esi, 0x16a40c71
sub esi, 0xdfca4894
add dword [ebp - 0x40], esi
mov ebx, dword [edx]
add dword [ebp - 0x20], ebx
xor ebx, esi
xor dword [ebp - 0x28], edx
mov dword [edi], ebx
xor dword [ebp - 0x30], 0x4fdfbf6f
add edi, 0xdb4bb7af
add edi, 0x24b44855
add edx, 0x5e41f58a
sub edx, 0x5e41f586
loop 0x10033d92
add eax, 0x90e4c591
sub eax, 0x90e3b566
xor ebx, ebx
add ebx, eax
add eax, 0x5384db5e
sub eax, 0x5384db59
mov ecx, 0xbb2e02fe
sub ecx, 0xab2e02fe
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x4077a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x4077c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4077c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4077b8
mov eax, 1
add ebx, ebx
jne 0x4077db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4077d0
jne 0x4077ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4077d0
xor ecx, ecx
sub eax, 3
jb 0x407800
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x407872
mov ebp, eax
add ebx, ebx
jne 0x40780b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407818
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40783c
inc ecx
add ebx, ebx
jne 0x407828
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40781d
jne 0x407839
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40781d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40785c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40784d
jmp 0x4077be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40785c
add edi, ecx
jmp 0x4077be
pop esi
mov edi, esi
mov ecx, 3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40787a
cmp byte [edi], 0
jne 0x40787a
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 0x40787f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4078ee
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x71c4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7228]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4078ac
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7230]
or eax, eax
je 0x4078e8
mov dword [ebx], eax
add ebx, 4
jmp 0x4078c9
call dword [esi + 0x722c]
mov ebp, dword [esi + 0x7234]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
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 0x407922
sub esp, 0xffffff80
jmp 0x401020
Function at 0x6e8480d0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.6e848c40
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.6e848c40
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x6e848130
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x70218068]
test esi, esi
jle 0x6e848250
mov eax, dword [0x7021806c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x6e848164
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x6e8481e7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x6e848150
mov dword [esp], ebx
call fcn.6e848920
mov edi, eax
test eax, eax
je 0x6e848277
mov eax, dword [0x7021806c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.6e848a60
mov edx, dword [0x7021806c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6e848257
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x6e8481e0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x6e8481f0
add dword [0x70218068], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x7021806c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x6e8481e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6e8480d0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x6e84816e
mov eax, dword [0x7021806c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.6e8480d0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6e8480d0
lea esi, [esi]
nop
Function at 0x6e848590
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x70218078
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x70218070]
sub esp, 4
test ebx, ebx
je 0x6e8485e5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6e8485de
test esi, esi
je 0x6e8485de
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6e8485c0
mov dword [esp], 0x70218078
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x6e848920
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x6e740000], 0x5a4d
jne 0x6e848945
mov ecx, dword [0x6e74003c]
cmp dword [ecx + 0x6e740000], 0x4550
lea edx, [ecx + 0x6e740000]
je 0x6e848950
ret
cmp word [ecx + 0x6e740018], 0x10b
jne 0x6e848945
push esi
movzx eax, word [ecx + 0x6e740014]
push ebx
movzx esi, word [ecx + 0x6e740006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x6e740000
test si, si
je 0x6e848998
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6e84898e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x6e84899a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x6e848980
xor eax, eax
pop ebx
pop esi
ret

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
mov ecx, 0x1a0771be
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x482f3c79
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x40143f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get file size
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x828
push ebx
push esi
push edi
sub eax, eax
mov word [ebp - 0x828], ax
push 0x400
xor edi, edi
lea eax, [ebp - 0x828]
push eax
push edi
pop ebx
push edi
pop esi
push edi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x828]
push edi
push 0x8000000
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
pop edi
cmp edi, 0xffffffff
je 0x4014e0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
pop ebx
mov ecx, ebx
mov dword [ebp - 0x14], eax
call fcn.00401720
push eax
pop esi
push 0
lea eax, [ebp - 0x20]
push eax
push ebx
push esi
push edi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4014c8
cmp dword [ebp - 0x20], ebx
je 0x4014d9
push esi
pop ecx
call fcn.00401790
xor esi, esi
sub ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, esi
call fcn.00401271
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
jmp 0x483100
Function at 0x405710
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x10
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40572e
or eax, eax
pop esi
add esp, 0x10
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
push ecx
mov dword [esp + 0xc], eax
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 4]
push 0x10
push edx
push esi
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40576f
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 0x10
ret
mov eax, esi
pop esi
add esp, 0x10
ret

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..retplne
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x37970dc9
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..reloc
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x24a1372c
nop
nop
nop
nop
test eax, eax
je 0x433084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x40160d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48a07c]
jne 0x401617
repz ret
jmp fcn.00401fa0

Function at 0x406bcc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x48a07c]
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.0040454b
and dword [ebp - 0x14], 0
cmp dword [0x48ca58], 0
mov dword [ebp - 0x18], eax
jne 0x406c7f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406d27
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x406d27
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x48ca58], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x48ca5c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x48ca60], eax
call edi
push eax
call esi
mov dword [0x48ca68], eax
test eax, eax
je 0x406c7f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x48ca64], eax
mov eax, dword [0x48ca64]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x406cd8
cmp dword [0x48ca68], ecx
je 0x406cd8
push eax
call esi
push dword [0x48ca68]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x406cd8
test ebx, ebx
je 0x406cd8
call edi
test eax, eax
je 0x406ccf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406ccf
test byte [ebp - 8], 1
jne 0x406cd8
or dword [ebp + 0x10], 0x200000
jmp 0x406d0b
mov eax, dword [0x48ca5c]
cmp eax, dword [ebp - 0x18]
je 0x406d0b
push eax
call esi
test eax, eax
je 0x406d0b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x406d0b
mov eax, dword [0x48ca60]
cmp eax, dword [ebp - 0x18]
je 0x406d0b
push eax
call esi
test eax, eax
je 0x406d0b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x48ca58]
call esi
test eax, eax
je 0x406d27
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406d29
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040160d
leave
ret
Function at 0x1000226a
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, 0x10016879
call fcn.10016539
mov edi, dword [ebp + 8]
lea eax, [edi - 0x80]
neg edi
sbb edi, edi
and edi, eax
and dword [ebp - 4], 0
mov ecx, dword [edi + 0x1c]
test ecx, ecx
jne 0x10002296
cmp dword [ebp + 0x14], ecx
jne 0x100022ea
mov bl, 1
jmp 0x100022ec
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x100022ea
and dword [ebp + 0x14], 0
lea edx, [ebp + 0x14]
and dword [ebp + 8], 0
mov ebx, 0x100194dc
mov eax, dword [ecx]
push edx
push ebx
push ecx
call dword [eax]
mov eax, dword [esi]
lea ecx, [ebp + 8]
push ecx
push ebx
push esi
call dword [eax]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
cmp eax, ecx
sete bl
mov byte [ebp - 4], 1
test ecx, ecx
je 0x100022da
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp + 0x14]
mov byte [ebp - 4], 2
test eax, eax
je 0x100022ec
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x100022ec
xor bl, bl
or dword [ebp - 4], 0xffffffff
test bl, bl
jne 0x100022fe
mov eax, 0x8000ffff
jmp case.default.0x1000232f
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x1000231e
push dword [ebp + 0x1c]
push ecx
lea ecx, [edi + 0x80]
call fcn.10002d27
mov eax, 0x40180
jmp case.default.0x1000232f
add ecx, 7
mov eax, 0x80004001
cmp ecx, 7
ja case.default.0x1000232f
jmp dword [ecx*4 + 0x100023d3]
push dword [ebp + 0x1c]
push ecx
lea ecx, [edi + 0x80]
call fcn.10002d27
jmp case.default.0x1000232f
push ecx
lea ecx, [edi + 0x80]
neg ecx
push 0xffffffffffffffff
sbb ecx, ecx
and ecx, edi
add ecx, 0xc
call fcn.10005903
xor ecx, ecx
test eax, eax
cmovns eax, ecx
jmp case.default.0x1000232f
push ecx
push ecx
lea ecx, [edi + 0x80]
call fcn.10002cfa
jmp case.default.0x1000232f
lea ecx, [edi + 0x80]
neg ecx
sbb ecx, ecx
xor eax, eax
and ecx, edi
test byte [ecx + 0x50], 8
jne case.default.0x1000232f
push ecx
push 0xfffffffffffffffc
jmp 0x10002359
lea esi, [edi + 0x80]
neg esi
sbb esi, esi
and esi, edi
lea eax, [esi + 0x8c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
cmp dword [esi + 0x58], 0
je case.0x1000232f.6
push 0
push dword [esi + 0x58]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
jmp case.default.0x1000232f
push dword [ebp + 0x1c]
push ecx
lea ecx, [edi + 0xc]
call fcn.10006355
call fcn.1001650a
ret 0x1c

Function at 0x10007ccd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x10007cdc
pop dword [ebp - 0x2c]
mov eax, 0x97d69767
add eax, 0x7829e575
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x3af6b
push 0
mov eax, 0x3284ab66
sub eax, 0x22832a16
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x4e07
mov ebx, eax
mov esi, 0x1002b600
add esi, dword [ebp - 0x2c]
mov edi, 0x8078dcbd
add dword [ebp - 0x18], 0x3dd81690
mov edx, dword [esi]
add dword [ebp - 0x10], edi
xor edx, edi
sub dword [ebp - 0x28], esi
mov dword [ebx], edx
sub dword [ebp - 0x10], esi
add ebx, 0xd6af075b
add ebx, 0x2950f8a9
add esi, 0xb1be73c7
add esi, 0x4e418c3d
loop 0x10007d29
add eax, 0x12aef
xor ebx, ebx
add ebx, eax
add eax, 0x5f493a4a
add eax, 0xa0b6c5bb
mov ecx, 0x10000000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x401069
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x825030]
jne 0x401073
repz ret
jmp fcn.00402061

Function at 0x408d0b
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.00404f5a
and dword [ebp - 4], 0
cmp dword [0x827b68], 0
mov ebx, eax
jne 0x408dbc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408e6d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408e6d
push eax
call fcn.00404ee8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x827b68], eax
call esi
push eax
call fcn.00404ee8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x827b6c], eax
call esi
push eax
call fcn.00404ee8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x827b70], eax
call esi
push eax
call fcn.00404ee8
pop ecx
mov dword [0x827b78], eax
test eax, eax
je 0x408dbc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404ee8
pop ecx
mov dword [0x827b74], eax
mov eax, dword [0x827b74]
cmp eax, ebx
je 0x408e14
cmp dword [0x827b78], ebx
je 0x408e14
push eax
call fcn.00404f63
push dword [0x827b78]
mov esi, eax
call fcn.00404f63
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408e14
test edi, edi
je 0x408e14
call esi
test eax, eax
je 0x408e0b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408e0b
test byte [ebp - 0xc], 1
jne 0x408e14
or dword [ebp + 0x10], 0x200000
jmp 0x408e4d
mov eax, dword [0x827b6c]
cmp eax, ebx
je 0x408e4d
push eax
call fcn.00404f63
pop ecx
test eax, eax
je 0x408e4d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408e4d
mov eax, dword [0x827b70]
cmp eax, ebx
je 0x408e4d
push eax
call fcn.00404f63
pop ecx
test eax, eax
je 0x408e4d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x827b68]
call fcn.00404f63
pop ecx
test eax, eax
je 0x408e6d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408e6f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40110e
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
push ebx
push esi
xor ebx, ebx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x264]
mov esi, 0x12c
push eax
push esi
mov byte [ebp - 0x264], bl
mov byte [ebp - 0x138], bl
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, esi
jae 0x40116f
cmp eax, ebx
jbe 0x40116f
cmp byte [ebp - 0x264], bl
je 0x40116f
lea eax, [ebp - 0x138]
push eax
push ebx
lea eax, [ebp - 0x264]
push 0x4063b4
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov esi, dword [ebp + 8]
cmp dword [esi], ebx
je 0x401278
mov eax, esi
add esi, 0x10
cmp dword [eax + 4], ebx
je 0x401278
movzx eax, word [esi - 0xc]
push ebx
push ebx
push ebx
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_LoadImageA]
cmp eax, ebx
mov dword [esi], eax
jne 0x401269
cmp byte [ebp - 0x138], bl
je 0x401269
movzx eax, word [esi - 0xc]
push str.TEMP
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x401269
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
jbe 0x401269
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x401269
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x401269
lea eax, [ebp - 0x138]
push 0x20
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
push 0x80
push 2
push ebx
push ebx
lea eax, [ebp - 0x138]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x401269
lea ecx, [ebp + 8]
push ebx
push ecx
push edi
push dword [ebp - 0xc]
mov dword [ebp + 8], ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], edi
jne 0x401269
push 0x10
push ebx
push ebx
lea eax, [ebp - 0x138]
push ebx
push eax
push ebx
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [esi], eax
add esi, 0x14
cmp dword [esi - 0x10], ebx
lea eax, [esi - 0x10]
jne 0x40117f
cmp byte [ebp - 0x138], bl
pop edi
pop esi
pop ebx
je 0x401290
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, 1
leave
ret