joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ce3ac
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4ce3da
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4ce3e1
cmp ebx, dword [eax + 4]
jae 0x4ce3e1
xor eax, eax
jmp 0x4ce5d1
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4ce3f2
xor eax, eax
inc eax
jmp 0x4ce5d0
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4ce408
cmp ecx, edx
jae 0x4ce54d
cmp dword [eax + 4], 0
je 0x4ce411
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4ce3f9
cmp dword [ebp + 8], 0
je 0x4ce433
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4ce54d
cmp eax, esi
jae 0x4ce54d
mov eax, dword [0x547990]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4ce458
cmp dword [esi*4 + 0x547998], edi
je 0x4ce551
inc esi
cmp esi, eax
jl 0x4ce446
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4ce5cd
cmp dword [ebp - 8], 0x1000000
jne 0x4ce5cd
test byte [ebp - 0xc], 0xcc
je 0x4ce4d6
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4ce5cd
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4ce5cd
cmp word [eax + 0x18], 0x10b
jne 0x4ce5cd
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4ce5cd
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4ce4d6
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4ce4d6
test byte [ecx + 0x27], 0x80
jne 0x4ce54d
push 1
push 0x5479d8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4ce3ea
mov ecx, dword [0x547990]
test ecx, ecx
mov edx, ecx
jle 0x4ce50a
lea eax, [ecx*4 + 0x547994]
cmp dword [eax], edi
je 0x4ce50a
dec edx
sub eax, 4
test edx, edx
jg 0x4ce4fe
test edx, edx
jne 0x4ce53b
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4ce517
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4ce52f
lea eax, [edx*4 + 0x547998]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4ce51d
cmp ecx, 0x10
jge 0x4ce53b
inc ecx
mov dword [0x547990], ecx
push 0
push 0x5479d8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4ce3ea
xor eax, eax
jmp 0x4ce5d0
test esi, esi
jle 0x4ce3ea
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x5479d8
call ebx
test eax, eax
jne 0x4ce3ea
cmp dword [esi*4 + 0x547998], edi
je 0x4ce5a7
mov eax, dword [0x547990]
lea esi, [eax - 1]
test esi, esi
jl 0x4ce595
cmp dword [esi*4 + 0x547998], edi
je 0x4ce591
dec esi
jns 0x4ce585
test esi, esi
jge 0x4ce5a5
cmp eax, 0x10
jge 0x4ce5a0
inc eax
mov dword [0x547990], eax
lea esi, [eax - 1]
jmp 0x4ce5a7
je 0x4ce5bf
xor ecx, ecx
test esi, esi
jl 0x4ce5bf
lea eax, [ecx*4 + 0x547998]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4ce5ad
push 0
push 0x5479d8
call ebx
jmp 0x4ce3ea
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d13ac
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x547a30], ebx
push esi
push edi
jne 0x4d142c
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4d1467
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x50dc4c
push edi
call esi
test eax, eax
mov dword [0x547a30], eax
je 0x4d1467
push 0x50dc3c
push edi
call esi
push 0x50dc28
push edi
mov dword [0x547a34], eax
call esi
cmp dword [0x5472ac], 2
mov dword [0x547a38], eax
jne 0x4d142c
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x547a40], eax
je 0x4d142c
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x547a3c], eax
mov eax, dword [0x547a3c]
test eax, eax
je 0x4d1471
call eax
test eax, eax
je 0x4d1458
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x547a40]
test eax, eax
je 0x4d1458
test byte [ebp - 8], 1
jne 0x4d1471
cmp dword [0x5472b8], 4
jb 0x4d146b
or byte [ebp + 0x12], 0x20
jmp 0x4d1490
xor eax, eax
jmp 0x4d14a0
or byte [ebp + 0x12], 4
jmp 0x4d1490
mov eax, dword [0x547a34]
test eax, eax
je 0x4d1490
call eax
mov ebx, eax
test ebx, ebx
je 0x4d1490
mov eax, dword [0x547a38]
test eax, eax
je 0x4d1490
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x547a30]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d1cc6
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
call fcn.004c90ba
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x4d1e0b
push 2
push esi
push dword [ebp + 8]
call fcn.004c90ba
add esp, 0xc
cmp eax, ebx
je 0x4d1e0b
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4d1dae
mov ebx, 0x1000
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp - 4], eax
jne 0x4d1d3f
call fcn.004c26f5
mov dword [eax], 0xc
or esi, 0xffffffff
jmp 0x4d1df6
push 0x8000
push dword [ebp + 8]
call fcn.004d2cf6
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp edi, ebx
mov eax, ebx
jge 0x4d1d59
mov eax, edi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004c5a96
add esp, 0xc
cmp eax, 0xffffffff
je 0x4d1d75
sub edi, eax
test edi, edi
jg 0x4d1d51
jmp 0x4d1d8d
call fcn.004c2708
cmp dword [eax], 5
jne 0x4d1d8a
call fcn.004c26f5
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004d2cf6
pop ecx
pop ecx
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4d1df6
jge 0x4d1df6
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004c90ba
push dword [ebp + 8]
call fcn.004c2429
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4d1df6
call fcn.004c26f5
mov dword [eax], 0xd
call fcn.004c2708
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.004c90ba
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4d1e0d
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x4d2df9
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x50dcf8
call fcn.004c5828
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x547a64], edi
jne 0x4d2e3d
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4d2e28
mov dword [0x547a64], ebx
jmp 0x4d2e3d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4d2e3d
mov dword [0x547a64], 2
mov eax, dword [0x547a64]
cmp eax, ebx
jne 0x4d2e5d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x4d2f1f
cmp eax, 2
je 0x4d2e66
cmp eax, edi
jne 0x4d2e8e
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x4d2e79
mov eax, dword [0x547988]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x4d2e95
xor eax, eax
jmp 0x4d2f1f
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.004bedf0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4d2ec8
cmp esi, edi
jne 0x4d2edd
mov ecx, dword [ebp - 0x20]
call fcn.004c8592
mov esi, eax
cmp esi, edi
je 0x4d2e8e
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4d2f10
cmp dword [ebp + 0x14], edi
jne 0x4d2efa
push edi
push edi
jmp 0x4d2f00
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x4d2f1c
push esi
call fcn.004bf16d
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004c5863
ret
Function at 0x4d2f28
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x50dd08
call fcn.004c5828
xor esi, esi
cmp dword [0x547a68], esi
jne 0x4d2f6c
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4d2f57
mov dword [0x547a68], edi
jmp 0x4d2f6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4d2f6c
mov dword [0x547a68], 2
mov eax, dword [0x547a68]
cmp eax, 2
je 0x4d304b
cmp eax, esi
je 0x4d304b
cmp eax, 1
jne 0x4d2fb1
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x4d2f9a
mov eax, dword [0x547988]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x4d2fb8
xor eax, eax
jmp 0x4d305d
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.004bedf0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4d2fee
cmp edi, esi
jne 0x4d3007
lea ecx, [ebx + ebx]
call fcn.004c8592
mov edi, eax
cmp edi, esi
je 0x4d2fb1
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4d303a
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x4d3024
push esi
push esi
jmp 0x4d302a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x4d3046
push edi
call fcn.004bf16d
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x4d305d
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.004c5863
ret
Function at 0x4d37a1
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [ebp - 0xc], ebx
je 0x4d3809
push 0x3d
push esi
call fcn.004c16ff
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x4d3809
cmp esi, eax
je 0x4d3809
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x5472cc]
sete cl
cmp eax, dword [0x5472d0]
mov dword [ebp - 4], ecx
jne 0x4d37ef
mov edi, eax
call fcn.004d3742
mov dword [0x5472cc], eax
cmp eax, ebx
jne 0x4d3848
cmp dword [ebp + 0xc], ebx
je 0x4d3811
cmp dword [0x5472d4], ebx
je 0x4d3811
call fcn.004d2b63
test eax, eax
je 0x4d3848
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x4d394c
push 4
pop ecx
call fcn.004c8592
cmp eax, ebx
mov dword [0x5472cc], eax
je 0x4d3809
mov dword [eax], ebx
cmp dword [0x5472d4], ebx
jne 0x4d3848
push 4
pop ecx
call fcn.004c8592
cmp eax, ebx
mov dword [0x5472d4], eax
je 0x4d3809
mov dword [eax], ebx
mov edi, dword [ebp - 8]
mov ebx, dword [0x5472cc]
sub edi, esi
push esi
call fcn.004d36f5
mov edi, eax
test edi, edi
pop ecx
jl 0x4d38a2
cmp dword [ebx], 0
je 0x4d38a2
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.004bf16d
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4d3889
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov esi, eax
jmp 0x4d38d6
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x4d3880
mov edx, edi
shl edx, 2
mov ecx, ebx
call fcn.004c8608
test eax, eax
mov esi, dword [ebp + 8]
je 0x4d38d6
jmp 0x4d38d1
cmp dword [ebp - 4], 0
jne 0x4d3945
test edi, edi
jge 0x4d38b2
neg edi
lea edx, [edi*4 + 8]
mov ecx, ebx
call fcn.004c8608
test eax, eax
je 0x4d3809
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x5472cc], eax
cmp dword [ebp + 0xc], 0
je 0x4d3930
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d38e1
sub eax, edx
lea ecx, [eax + 2]
call fcn.004c8592
mov edi, eax
test edi, edi
je 0x4d3930
mov ecx, esi
sub eax, esi
mov dl, byte [ecx]
mov byte [eax + ecx], dl
inc ecx
test dl, dl
jne 0x4d38fc
mov ecx, dword [ebp - 8]
add eax, ecx
mov ecx, dword [ebp - 4]
mov byte [eax], dl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4d3929
or dword [ebp - 0xc], 0xffffffff
push edi
call fcn.004bf16d
pop ecx
cmp dword [ebp - 4], 0
je 0x4d393d
push esi
call fcn.004bf16d
pop ecx
mov eax, dword [ebp - 0xc]
jmp 0x4d380c
push esi
call fcn.004bf16d
pop ecx
xor eax, eax
jmp 0x4d380c
Function at 0x4d78b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004bedf0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4d797b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4d797b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4d792e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4d7939
or bh, 8
and edi, 0x8000000
je 0x4d7954
mov eax, dword [0x548e9c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4d797b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d7d50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4d7d7b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4d7d9f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4d7dba
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x4de189
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4de1ab
cmp dword [edi + 0x3c], 0
jne 0x4de1ab
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004efcb7
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004de1ea
pop edi
pop esi
pop ebx
ret 8

Function at 0x4df926
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4df95e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004e32c8
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004e32a0
jmp 0x4df96a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4df96e
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x546bf8
mov ecx, edi
call fcn.004e2faa
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x4df9c1
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x4df9d4
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.004e32c8
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.004e32a0
jmp 0x4df9d4
mov ecx, esi
call fcn.004e2094
test eax, eax
je 0x4df9d4
push edi
mov ecx, eax
call fcn.004df926
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x4e1728
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4e176a
call fcn.004efcb7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4e176a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4e1761
xor eax, eax
jmp 0x4e1772
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004e1778
pop edi
pop esi
pop ebx
ret 4
Function at 0x4f8330
Capabilities:
Receive data
Receive data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_recv
ret 0xc

Function at 0x4f83ae
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_send
ret 0xc
Function at 0x40c610
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x14], 0
jmp 0x40c628
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp + 0xc]
jge 0x40c78a
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x28
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
sub edx, 1
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0x13
ja case.0x40c660.2
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax + 0x40c7ac]
jmp dword [ecx*4 + 0x40c790]
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x28
mov dword [ebp - 0x1c], edx
fild dword [ebp - 0x1c]
mov ecx, dword [ebp + 0x10]
fstp qword [ecx + eax + 8]
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x28
mov dword [ebp - 0x20], edx
fild dword [ebp - 0x20]
mov ecx, dword [ebp + 0x10]
fstp qword [ecx + eax + 0x10]
jmp 0x40c785
push 0x4306a4
push 8
push 0x81
push 0x4306b0
call fcn.0040b010
add esp, 0x10
or eax, 0xffffffff
jmp 0x40c78c
mov edx, dword [0x43b958]
push edx
mov eax, dword [0x43b954]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x28
mov ecx, dword [ebp + 0x10]
mov edx, dword [0x43b954]
mov dword [ecx + eax + 8], edx
jmp 0x40c785
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push ecx
push 0x4306c8
mov edx, dword [0x43b954]
push edx
call dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0xc
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x28
mov ecx, dword [ebp + 0x10]
mov edx, dword [0x43b954]
mov dword [ecx + eax + 8], edx
jmp 0x40c785
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x28
mov eax, dword [ebp + 0x10]
mov ecx, dword [ecx]
mov dword [eax + edx + 8], ecx
jmp 0x40c785
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x28
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x14]
mov dword [eax + edx + 8], ecx
jmp 0x40c785
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x28
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx]
push ecx
push 1
push 0x92
push str..wsmswin32gbutton.c
call fcn.0040b010
add esp, 0x10
or eax, 0xffffffff
jmp 0x40c78c
jmp 0x40c61f
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x410ce0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.00411370
add esp, 0x10
mov ecx, dword [ebp + 0xc]
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx ecx, ax
mov dword [ebp - 0x14], ecx
push 4
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
movsx edx, ax
mov dword [ebp - 0x1c], edx
push 2
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cwde
mov dword [ebp - 0x18], eax
xor ecx, ecx
cmp dword [ebp - 0x14], 0
setl cl
xor edx, edx
cmp dword [ebp - 0x1c], 0
setl dl
add ecx, edx
xor eax, eax
cmp dword [ebp - 0x18], 0
setl al
add ecx, eax
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret