joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b6d0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push 0
mov ebx, ecx
push 0
push 0x1009
push dword [ebx + 0xdc]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xffffffffffffffff
push 0x28
push 2
push 0x5f92ec
lea esi, [ebx + 0xbc]
push 0
mov ecx, esi
call fcn.004701cc
push 0xffffffffffffffff
push 0x3c
push 2
push 0x5f9520
push 1
mov ecx, esi
call fcn.004701cc
push 0xffffffffffffffff
push 0x64
push 2
push 0x5f952c
push 2
mov ecx, esi
call fcn.004701cc
push 0xffffffffffffffff
push 0x64
push 2
push str.:d
push 3
mov ecx, esi
call fcn.004701cc
push 0xffffffffffffffff
push 0x64
push 2
push 0x5f931c
push 4
mov ecx, esi
call fcn.004701cc
push 0xffffffffffffffff
push 0x8c
push 2
push 0x5f9538
push 5
mov ecx, esi
call fcn.004701cc
push 0xffffffffffffffff
push 0x64
push 2
push 0x5fa6d0
push 6
mov ecx, esi
call fcn.004701cc
push 0xffffffffffffffff
push 0x50
push 2
push 0x600bd4
push 7
mov ecx, esi
call fcn.004701cc
push 0xffffffffffffffff
push 0x50
push 2
push 0x600bdc
push 8
mov ecx, esi
call fcn.004701cc
push 0xffffffffffffffff
push 0x50
push 2
push 0x600be4
push 9
mov ecx, esi
call fcn.004701cc
push 0xffffffffffffffff
push 0x50
push 2
push 0x600bec
push 0xa
mov ecx, esi
call fcn.004701cc
push 0xffffffffffffffff
push 0x50
push 2
push 0x600bf4
push 0xb
mov ecx, esi
call fcn.004701cc
push 0xffffffffffffffff
push 0x50
push 2
push 0x600bfc
push 0xc
mov ecx, esi
call fcn.004701cc
push 0xffffffffffffffff
push 0x50
push 2
push 0x600c04
push 0xd
mov ecx, esi
call fcn.004701cc
push 0xffffffffffffffff
push 0x50
push 2
push 0x600c0c
push 0xe
mov ecx, esi
call fcn.004701cc
push 0xffffffffffffffff
push 0x50
push 2
push 0x600c14
push 0xf
mov ecx, esi
call fcn.004701cc
push 0xffffffffffffffff
push 0x50
push 2
push 0x600c1c
push 0x10
mov ecx, esi
call fcn.004701cc
push 0xffffffffffffffff
push 0x50
push 2
push 0x600c24
push 0x11
mov ecx, esi
call fcn.004701cc
push 0xffffffffffffffff
push 0x50
push 2
push 0x600c2c
push 0x12
mov ecx, esi
call fcn.004701cc
push 0xfffffffffffffff0
push dword [ebx + 0xdc]
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xfffffdfc
or eax, 0x89
push eax
push 0xfffffffffffffff0
push dword [ebx + 0xdc]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x21
push 0x21
push 0x1036
push dword [ebx + 0xdc]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x5f9568
push 0x1931
mov ecx, ebx
call fcn.00477984
push 1
push 0
push dword [ebx + 0xdc]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop esi
pop ebx
ret
Function at 0x452980
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b4e3e
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x628040]
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 dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x110]
push 3
cmovae eax, dword [ebp + 8]
mov dword [ebp - 0x114], ecx
lea ecx, [ebp - 0x114]
push eax
call fcn.00417530
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x118]
push dword [ebp - 0x114]
call fcn.00417f20
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x110]
mov eax, dword [ebp - 0x114]
cmp eax, ecx
je 0x452a0c
push eax
call fcn.005955f3
add esp, 4
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x452ac4
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x452ac4
mov eax, dword [ebp - 0x118]
mov eax, dword [eax - 0xc]
lea edi, [eax*2 + 2]
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x452abe
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp - 0x118]
mov ebx, eax
add ecx, 0xfffffff0
cmp dword [ecx + 0xc], 1
jle 0x452a78
push dword [ecx + 4]
lea ecx, [ebp - 0x118]
call fcn.004180e0
mov ecx, dword [ebp - 0x118]
add ecx, 0xfffffff0
dec dword [ecx + 0xc]
jne 0x452a84
mov dword [ecx + 0xc], 0xffffffff
push edi
push dword [ebp - 0x118]
push edi
push ebx
call fcn.00595574
mov ecx, dword [ebp - 0x118]
add esp, 0x10
mov eax, dword [ecx - 4]
test eax, eax
jns 0x452aae
inc eax
mov edx, 1
cmove eax, edx
mov dword [ecx - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov byte [ebp - 4], 0
or ecx, 0xffffffff
mov edx, dword [ebp - 0x118]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x452ae8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp + 0x1c], 0x10
jb 0x452af9
push dword [ebp + 8]
call fcn.0046f580
add esp, 4
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.00594e67
mov esp, ebp
pop ebp
ret 0x18

Function at 0x4579e0
Capabilities:
Create tcp socket

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0xffffffff
je 0x4579ed
mov al, 2
pop esi
ret
cmp byte [esi + 0x4018], 0
je 0x4579e9
cmp byte [esi + 6], 0
jne 0x4579e9
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x4579e9
push ebx
lea ecx, [esi - 0x74]
call fcn.00458410
push dword [esi + 8]
mov bl, al
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, bl
mov dword [esi + 8], 0xffffffff
pop ebx
pop esi
ret
Function at 0x458350
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [ebp + 0xc]
mov edx, eax
mov eax, 0x10624dd3
mul edx
shr edx, 6
cmp byte [ebx + 0x24154], 0
mov dword [ebx + 0x24164], edx
jne 0x4583c7
mov edi, edi
cmp si, di
jae 0x4583b2
movzx ecx, si
push 0
movzx eax, di
sub eax, ecx
push eax
mov eax, dword [ebp + 8]
add eax, ecx
push eax
push dword [ebx + 0x7c]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4583d1
add esi, eax
cmp byte [ebx + 0x24154], 0
je 0x458380
cmp si, di
jbe 0x4583c7
mov eax, edi
mov ecx, ebx
sub eax, esi
push eax
movzx eax, si
add eax, dword [ebp + 8]
push eax
call fcn.00458230
mov ax, di
pop edi
pop esi
pop ebx
pop ebp
ret 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4583fb
mov ecx, edi
sub ecx, esi
push ecx
movzx ecx, si
add ecx, dword [ebp + 8]
push ecx
mov ecx, ebx
call fcn.00458230
mov ax, di
pop edi
pop esi
pop ebx
pop ebp
ret 8
push 4
mov ecx, ebx
call fcn.00458120
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
Function at 0x458eb0
Capabilities:
Encrypt data using rc4 prga
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x628040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor edx, edx
push edi
mov edi, dword [ebp + 8]
lea eax, [esi + 2]
lea ecx, [ecx]
movzx ecx, byte [eax - 2]
lea eax, [eax + 4]
mov byte [ebp + edx - 0xc], cl
movzx ecx, byte [eax - 5]
mov byte [ebp + edx - 0xb], cl
movzx ecx, byte [eax - 4]
mov byte [ebp + edx - 0xa], cl
movzx ecx, byte [eax - 3]
mov byte [ebp + edx - 9], cl
add edx, 4
cmp edx, 8
jb 0x458ed0
mov eax, dword [esi]
mov ecx, 0x38
shr eax, 3
and eax, 0x3f
cmp eax, 0x38
jb 0x458f12
mov ecx, 0x78
sub ecx, eax
lea ebx, [esi + 0x58]
push ecx
push ebx
mov ecx, esi
call fcn.00458de0
push 8
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.00458de0
lea ecx, [edi + 1]
mov edi, 4
lea edx, [esi + 0xa]
jmp 0x458f40
movzx eax, byte [edx - 2]
lea edx, [edx + 4]
mov byte [ecx - 1], al
lea ecx, [ecx + 4]
movzx eax, byte [edx - 5]
mov byte [ecx - 4], al
movzx eax, byte [edx - 4]
mov byte [ecx - 3], al
movzx eax, byte [edx - 3]
mov byte [ecx - 2], al
dec edi
jne 0x458f40
mov ecx, dword [ebp - 4]
xorps xmm0, xmm0
movdqu xmmword [esi], xmm0
xor ecx, ebp
movdqu xmmword [esi + 0x10], xmm0
movdqu xmmword [esi + 0x20], xmm0
movdqu xmmword [esi + 0x30], xmm0
movdqu xmmword [esi + 0x40], xmm0
movdqu xmmword [esi + 0x50], xmm0
movdqu xmmword [esi + 0x60], xmm0
movdqu xmmword [esi + 0x70], xmm0
movdqu xmmword [esi + 0x80], xmm0
movq qword [esi + 0x90], xmm0
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], 0x67452301
mov dword [esi + 0xc], 0xefcdab89
mov dword [esi + 0x10], 0x98badcfe
mov dword [esi + 0x14], 0x10325476
movdqu xmmword [ebx], xmm0
pop edi
movdqu xmmword [ebx + 0x10], xmm0
pop esi
movdqu xmmword [ebx + 0x20], xmm0
movdqu xmmword [ebx + 0x30], xmm0
mov byte [ebx], 0x80
pop ebx
call fcn.00594e67
mov esp, ebp
pop ebp
ret 4
Function at 0x459700
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x628040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xorps xmm0, xmm0
mov dword [ebp - 0xb0], 0
push 3
lea eax, [ebp - 0x134]
mov dword [ebp - 0xac], 0
push ecx
movdqu xmmword [ebp - 0x58], xmm0
lea ecx, [ebp - 0x138]
mov dword [ebp - 0xa8], 0x67452301
mov edi, edx
mov dword [ebp - 0xa4], 0xefcdab89
mov dword [ebp - 0xa0], 0x98badcfe
mov dword [ebp - 0x9c], 0x10325476
movdqu xmmword [ebp - 0x48], xmm0
mov byte [ebp - 0x58], 0x80
movdqu xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x138], eax
movdqu xmmword [ebp - 0x28], xmm0
call fcn.00452e50
mov esi, dword [ebp - 0x138]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
lea ecx, [ebp - 0xb0]
call fcn.00458de0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0xb0]
call fcn.00458eb0
xor eax, eax
xor esi, esi
mov word [edi], ax
jmp 0x4597c0
movzx eax, byte [ebp + esi - 0x14]
push eax
push 0x602540
push edi
call fcn.00597169
inc esi
add esp, 0xc
add edi, 4
cmp esi, 0x10
jl 0x4597c0
mov eax, dword [ebp - 0x138]
lea ecx, [ebp - 0x134]
cmp eax, ecx
je 0x4597f6
push eax
call fcn.005955f3
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00594e67
mov esp, ebp
pop ebp
ret

Function at 0x459840
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x628040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x84]
push esi
push 3
mov dword [ebp - 0x88], ecx
lea ecx, [ebp - 0x88]
push eax
call fcn.00452e50
push dword [ebp - 0x88]
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, eax
cmp esi, 0xffffffff
jne 0x45989b
push dword [ebp - 0x88]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x45989b
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x84]
cmp eax, ecx
je 0x4598b4
push eax
call fcn.005955f3
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00594e67
mov esp, ebp
pop ebp
ret 4

Function at 0x4598d0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x628040]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x44]
push 0x40
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edx, dword [eax + 0xc]
xor eax, eax
mov ecx, dword [edx]
test ecx, ecx
je 0x459924
push esi
mov esi, dword [ebp + 0xc]
lea esp, [esp]
cmp eax, esi
jae 0x459923
mov ecx, dword [ecx]
add edx, 4
mov dword [edi + eax*4], ecx
inc eax
mov ecx, dword [edx]
test ecx, ecx
jne 0x459910
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00594e67
mov esp, ebp
pop ebp
ret 8
Function at 0x459a90
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x628040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xorps xmm0, xmm0
mov dword [ebp - 0x30], ecx
push esi
xor eax, eax
movq qword [ebp - 0xe], xmm0
push edi
lea ecx, [ebp - 0x20]
mov word [ebp - 0x20], ax
movdqu xmmword [ebp - 0x1e], xmm0
call fcn.00459b40
movzx eax, al
add eax, 3
mov dword [ebp - 0x2c], 0x6025a8
shr eax, 2
movzx ecx, ax
mov dword [ebp - 0x28], 0x6025b8
mov dword [ebp - 0x24], 0x6025b0
cmp ecx, 3
jae 0x459b1e
mov eax, ecx
lea esi, [ebp - 0x20]
lea edi, [ebp - 0x2c]
lea esi, [esi + eax*4]
mov eax, 3
sub eax, ecx
movzx ebx, ax
lea esp, [esp]
push 0
push 0
push 0
push 0
push esi
push 0
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
add esi, 4
lea edi, [edi + 4]
dec ebx
jne 0x459b00
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x20]
call fcn.00459700
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00594e67
mov esp, ebp
pop ebp
ret
Function at 0x462870
Capabilities:
Access peb ldr_data
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b52b5
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x628040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
lea ebx, [edi + 4]
mov dword [ebx], vtable.IServerListDataSink.0
mov dword [edi], vtable.XToolLogic.1.0
mov dword [ebx], vtable.XToolLogic.0
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [ebp - 0x1a8], edi
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
call fcn.004656f0
mov dword [edi + 0x14], eax
mov dword [ebp - 4], 0
call fcn.00479db4
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x462901
push 0x80004005
call fcn.00418260
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x1c], eax
mov byte [ebp - 4], 1
call fcn.00479db4
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x46292c
push 0x80004005
call fcn.00418260
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x24], eax
mov byte [ebp - 4], 2
call fcn.00479db4
mov ecx, eax
xor eax, eax
test ecx, ecx
setne al
test eax, eax
jne 0x462957
push 0x80004005
call fcn.00418260
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi + 0x28], eax
mov byte [ebp - 4], 3
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.00465720
mov dword [edi + 0x2c], eax
mov eax, dword [0x634c44]
lea esi, [edi + 0x38]
test eax, eax
mov dword [esi], vtable.CGlobalUserInfo.0
push 0x2630
cmove eax, esi
mov dword [0x634c44], eax
lea eax, [esi + 8]
push 0
push eax
call fcn.00597c10
push 0x408
lea eax, [esi + 0x2638]
push 0
push eax
call fcn.00597c10
add esp, 0x18
lea ecx, [edi + 0x2a78]
mov byte [ebp - 4], 5
call fcn.00444c70
lea eax, [ebp - 0x1a4]
mov byte [ebp - 4], 6
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0xe
push str.38.55.197.64
lea ecx, [edi + 0x1c]
mov dword [edi + 8], 0
call fcn.00417dd0
mov dword [edi + 0x20], 0x271b
mov eax, edi
mov dword [edi + 0x2b00], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00594e67
mov esp, ebp
pop ebp
ret 4
Function at 0x4631c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b53e8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x628040]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x10]
call fcn.00462700
mov dword [esp + 0x28], 0
push dword [eax]
push str.__s__OnSocketCloseEvent_Begin_n
call fcn.004625b0
mov dword [esp + 0x30], 0xffffffff
or esi, 0xffffffff
mov edx, dword [esp + 0x18]
add esp, 8
add edx, 0xfffffff0
mov eax, esi
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x463235
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.Socket_Close_n
call fcn.004625b0
add esp, 4
lea ecx, [esp + 0x14]
call fcn.00462700
mov dword [esp + 0x28], 1
push dword [eax]
push str.__s__OnSocketCloseEvent_End_n
call fcn.004625b0
mov dword [esp + 0x30], 0xffffffff
add esp, 8
mov edx, dword [esp + 0x14]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x463285
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp + 0xc], 1
je 0x4632da
mov ecx, dword [edi + 0xc]
push 2
mov eax, dword [ecx]
call dword [eax + 0x1c]
mov eax, dword [edi + 0x28]
push ecx
sub eax, 0x10
mov dword [esp + 0x14], esp
mov esi, esp
push eax
call fcn.00426cb0
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x30], 2
mov esi, esp
mov eax, dword [edi + 0x24]
sub eax, 0x10
push eax
call fcn.00426cb0
add esp, 4
add eax, 0x10
mov dword [esi], eax
mov ecx, edi
mov dword [esp + 0x30], 0xffffffff
call fcn.004633d0
mov al, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x472984
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x4729c9
call fcn.0048225c
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4729c9
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4729e5
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0047bbd7
mov ebx, eax
test edi, edi
je 0x4729e3
test esi, esi
je 0x4729e3
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x478402
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0048225c
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x478439
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.0047845a
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x47bd5f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0047714e
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x47bd9b
call fcn.0047bfc6
mov dword [esi + 0xc], 1
jmp 0x47bda0
call fcn.0047bfc6
cmp dword [esi], 0
je 0x47bde9
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x47bdc3
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0046ff0a
jmp 0x47bdd4
push 0xff
mov ecx, esi
call fcn.00418220
push pe_nt_image_headers32
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00470376
jmp 0x47be0d
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x47be0d
push dword [esi]
push dword [ebp - 4]
call fcn.004849f2
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x47bed3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.0047bfc6
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x47bf1b
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0046ff0a
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00470376
jmp 0x47bf26
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004849f2
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4d5d60
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0056c3ac
call fcn.004822b0
cmp dword [eax + 0x14], 0
jne 0x4d5d7b
mov ecx, esi
pop esi
jmp fcn.004d5166
pop esi
ret

Function at 0x51d282
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00417a10
call fcn.004822b0
cmp dword [eax + 0x14], 0
jne 0x51d29d
mov ecx, esi
pop esi
jmp fcn.0051cb6b
pop esi
ret
Function at 0x5aba98
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x628040]
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.0059d643
mov dword [ebp - 0x14], eax
cmp dword [0x634b88], esi
jne 0x5abb8b
push 0x800
push esi
push 0x5f39a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x5abb18
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5abc6b
push esi
push esi
push 0x5f39a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x5abc6b
push 0x5f39b8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5abc6b
push eax
call ebx
push 0x5f39c4
push edi
mov dword [0x634b88], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5f39d4
push edi
mov dword [0x634b8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x634b90], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x634b98], eax
test eax, eax
je 0x5abb88
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x634b94], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x5abbb0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x5abba3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x5abbc5
push 4
pop eax
jmp 0x5abc6d
cmp dword [ebp - 0x14], esi
je 0x5abbc5
push dword [0x634b88]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x5abbaa
mov eax, dword [0x634b94]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x5abc23
cmp dword [0x634b98], edi
je 0x5abc23
push eax
call ebx
push dword [0x634b98]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x5abc23
test eax, eax
je 0x5abc23
call ecx
test eax, eax
je 0x5abc18
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 0x5abc18
test byte [ebp - 8], 1
jne 0x5abc23
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x5abc53
mov eax, dword [0x634b8c]
cmp eax, edi
je 0x5abc50
push eax
call ebx
test eax, eax
je 0x5abc50
call eax
mov esi, eax
test esi, esi
je 0x5abc50
mov eax, dword [0x634b90]
cmp eax, edi
je 0x5abc50
push eax
call ebx
test eax, eax
je 0x5abc50
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x634b88]
call ebx
test eax, eax
je 0x5abc6b
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x5abc6d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00594e67
mov esp, ebp
pop ebp
ret
Function at 0x54846e
Capabilities:
Encode data using xor

Disassembly:
call fcn.00549414
call fcn.00542c4a
stosd dword es:[edi], eax
xor al, byte [ecx + 0x37]
daa
ror byte [edx + edi*2], 1
cmp al, 0xd5
invalid