joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f5cbb
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, dword [eax*8 + 0x56ae38]
je 0x4f5cd3
inc eax
cmp eax, 0x12
jb 0x4f5cc4
push esi
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x56ae38]
mov dword [ebp + 8], esi
jne 0x4f5e19
mov eax, dword [0x676968]
cmp eax, 1
push ebx
je 0x4f5de9
test eax, eax
jne 0x4f5d08
cmp dword [0x56a454], 1
je 0x4f5de9
cmp ecx, 0xfc
je 0x4f5e18
push edi
push 6
pop ecx
mov esi, str.Runtime_Error__n_nProgram:
mov edi, 0x676bb0
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x676bca
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x676cce], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4f5d56
push 5
pop ecx
mov esi, str._program_name_unknown_
mov edi, 0x676bca
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4f5d5b
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x4f5d8e
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4f5d6f
sub eax, edx
push 3
lea eax, [eax + 0x676b8f]
push 0x5368fc
push eax
call fcn.004e9320
add esp, 0xc
mov edx, 0x676bb0
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4f5d96
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x56ae3c]
mov esi, 0x5368f8
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4f5db1
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4f5dbd
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.004fb5c9
add esp, 0xc
pop edi
jmp 0x4f5e18
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x4f5e18
mov esi, dword [esi + 0x56ae3c]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x4f5e00
push 0
sub ecx, edx
lea edx, [ebp - 4]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
leave
ret
Function at 0x4f84fc
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 0x4f852a
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 0x4f8531
cmp ebx, dword [eax + 4]
jae 0x4f8531
xor eax, eax
jmp 0x4f8721
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4f8542
xor eax, eax
inc eax
jmp 0x4f8720
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4f8558
cmp ecx, edx
jae 0x4f869d
cmp dword [eax + 4], 0
je 0x4f8561
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4f8549
cmp dword [ebp + 8], 0
je 0x4f8583
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4f869d
cmp eax, esi
jae 0x4f869d
mov eax, dword [0x677008]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4f85a8
cmp dword [esi*4 + 0x677010], edi
je 0x4f86a1
inc esi
cmp esi, eax
jl 0x4f8596
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4f871d
cmp dword [ebp - 8], 0x1000000
jne 0x4f871d
test byte [ebp - 0xc], 0xcc
je 0x4f8626
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4f871d
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4f871d
cmp word [eax + 0x18], 0x10b
jne 0x4f871d
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4f871d
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4f8626
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4f8626
test byte [ecx + 0x27], 0x80
jne 0x4f869d
push 1
push 0x677050
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4f853a
mov ecx, dword [0x677008]
test ecx, ecx
mov edx, ecx
jle 0x4f865a
lea eax, [ecx*4 + 0x67700c]
cmp dword [eax], edi
je 0x4f865a
dec edx
sub eax, 4
test edx, edx
jg 0x4f864e
test edx, edx
jne 0x4f868b
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4f8667
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4f867f
lea eax, [edx*4 + 0x677010]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4f866d
cmp ecx, 0x10
jge 0x4f868b
inc ecx
mov dword [0x677008], ecx
push 0
push 0x677050
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4f853a
xor eax, eax
jmp 0x4f8720
test esi, esi
jle 0x4f853a
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x677050
call ebx
test eax, eax
jne 0x4f853a
cmp dword [esi*4 + 0x677010], edi
je 0x4f86f7
mov eax, dword [0x677008]
lea esi, [eax - 1]
test esi, esi
jl 0x4f86e5
cmp dword [esi*4 + 0x677010], edi
je 0x4f86e1
dec esi
jns 0x4f86d5
test esi, esi
jge 0x4f86f5
cmp eax, 0x10
jge 0x4f86f0
inc eax
mov dword [0x677008], eax
lea esi, [eax - 1]
jmp 0x4f86f7
je 0x4f870f
xor ecx, ecx
test esi, esi
jl 0x4f870f
lea eax, [ecx*4 + 0x677010]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4f86fd
push 0
push 0x677050
call ebx
jmp 0x4f853a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4fb5c9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x6770a8], ebx
push esi
push edi
jne 0x4fb649
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4fb684
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x537cec
push edi
call esi
test eax, eax
mov dword [0x6770a8], eax
je 0x4fb684
push 0x537cdc
push edi
call esi
push 0x537cc8
push edi
mov dword [0x6770ac], eax
call esi
cmp dword [0x67691c], 2
mov dword [0x6770b0], eax
jne 0x4fb649
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x6770b8], eax
je 0x4fb649
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x6770b4], eax
mov eax, dword [0x6770b4]
test eax, eax
je 0x4fb68e
call eax
test eax, eax
je 0x4fb675
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x6770b8]
test eax, eax
je 0x4fb675
test byte [ebp - 8], 1
jne 0x4fb68e
cmp dword [0x676928], 4
jb 0x4fb688
or byte [ebp + 0x12], 0x20
jmp 0x4fb6ad
xor eax, eax
jmp 0x4fb6bd
or byte [ebp + 0x12], 4
jmp 0x4fb6ad
mov eax, dword [0x6770ac]
test eax, eax
je 0x4fb6ad
call eax
mov ebx, eax
test ebx, ebx
je 0x4fb6ad
mov eax, dword [0x6770b0]
test eax, eax
je 0x4fb6ad
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x6770a8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4fbce5
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.004f3308
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x4fbe2a
push 2
push esi
push dword [ebp + 8]
call fcn.004f3308
add esp, 0xc
cmp eax, ebx
je 0x4fbe2a
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4fbdcd
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 0x4fbd5e
call fcn.004ecb75
mov dword [eax], 0xc
or esi, 0xffffffff
jmp 0x4fbe15
push 0x8000
push dword [ebp + 8]
call fcn.004fcd15
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp edi, ebx
mov eax, ebx
jge 0x4fbd78
mov eax, edi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.004efc26
add esp, 0xc
cmp eax, 0xffffffff
je 0x4fbd94
sub edi, eax
test edi, edi
jg 0x4fbd70
jmp 0x4fbdac
call fcn.004ecb88
cmp dword [eax], 5
jne 0x4fbda9
call fcn.004ecb75
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004fcd15
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 0x4fbe15
jge 0x4fbe15
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004f3308
push dword [ebp + 8]
call fcn.004ec8a9
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 0x4fbe15
call fcn.004ecb75
mov dword [eax], 0xd
call fcn.004ecb88
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.004f3308
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4fbe2c
mov eax, ebx
pop esi
pop ebx
leave
ret
Function at 0x4fce18
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x537d88
call fcn.004ef9b8
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x6770dc], edi
jne 0x4fce5c
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4fce47
mov dword [0x6770dc], ebx
jmp 0x4fce5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4fce5c
mov dword [0x6770dc], 2
mov eax, dword [0x6770dc]
cmp eax, ebx
jne 0x4fce7c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x4fcf3e
cmp eax, 2
je 0x4fce85
cmp eax, edi
jne 0x4fcead
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x4fce98
mov eax, dword [0x676ffc]
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 0x4fceb4
xor eax, eax
jmp 0x4fcf3e
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.004e8aa0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4fcee7
cmp esi, edi
jne 0x4fcefc
mov ecx, dword [ebp - 0x20]
call fcn.004f2722
mov esi, eax
cmp esi, edi
je 0x4fcead
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 0x4fcf2f
cmp dword [ebp + 0x14], edi
jne 0x4fcf19
push edi
push edi
jmp 0x4fcf1f
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 0x4fcf3b
push esi
call fcn.004e8e1d
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004ef9f3
ret
Function at 0x4fcf47
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x537d98
call fcn.004ef9b8
xor esi, esi
cmp dword [0x6770e0], esi
jne 0x4fcf8b
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4fcf76
mov dword [0x6770e0], edi
jmp 0x4fcf8b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4fcf8b
mov dword [0x6770e0], 2
mov eax, dword [0x6770e0]
cmp eax, 2
je 0x4fd06a
cmp eax, esi
je 0x4fd06a
cmp eax, 1
jne 0x4fcfd0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x4fcfb9
mov eax, dword [0x676ffc]
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 0x4fcfd7
xor eax, eax
jmp 0x4fd07c
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.004e8aa0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4fd00d
cmp edi, esi
jne 0x4fd026
lea ecx, [ebx + ebx]
call fcn.004f2722
mov edi, eax
cmp edi, esi
je 0x4fcfd0
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 0x4fd059
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x4fd043
push esi
push esi
jmp 0x4fd049
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 0x4fd065
push edi
call fcn.004e8e1d
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x4fd07c
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.004ef9f3
ret
Function at 0x4fd7c1
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 0x4fd829
push 0x3d
push esi
call fcn.004ebb7f
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 8], eax
je 0x4fd829
cmp esi, eax
je 0x4fd829
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x67693c]
sete cl
cmp eax, dword [0x676940]
mov dword [ebp - 4], ecx
jne 0x4fd80f
mov edi, eax
call fcn.004fd762
mov dword [0x67693c], eax
cmp eax, ebx
jne 0x4fd868
cmp dword [ebp + 0xc], ebx
je 0x4fd831
cmp dword [0x676944], ebx
je 0x4fd831
call fcn.004fcb82
test eax, eax
je 0x4fd868
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x4fd96c
push 4
pop ecx
call fcn.004f2722
cmp eax, ebx
mov dword [0x67693c], eax
je 0x4fd829
mov dword [eax], ebx
cmp dword [0x676944], ebx
jne 0x4fd868
push 4
pop ecx
call fcn.004f2722
cmp eax, ebx
mov dword [0x676944], eax
je 0x4fd829
mov dword [eax], ebx
mov edi, dword [ebp - 8]
mov ebx, dword [0x67693c]
sub edi, esi
push esi
call fcn.004fd715
mov edi, eax
test edi, edi
pop ecx
jl 0x4fd8c2
cmp dword [ebx], 0
je 0x4fd8c2
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.004e8e1d
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4fd8a9
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov esi, eax
jmp 0x4fd8f6
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x4fd8a0
mov edx, edi
shl edx, 2
mov ecx, ebx
call fcn.004f2798
test eax, eax
mov esi, dword [ebp + 8]
je 0x4fd8f6
jmp 0x4fd8f1
cmp dword [ebp - 4], 0
jne 0x4fd965
test edi, edi
jge 0x4fd8d2
neg edi
lea edx, [edi*4 + 8]
mov ecx, ebx
call fcn.004f2798
test eax, eax
je 0x4fd829
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x67693c], eax
cmp dword [ebp + 0xc], 0
je 0x4fd950
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4fd901
sub eax, edx
lea ecx, [eax + 2]
call fcn.004f2722
mov edi, eax
test edi, edi
je 0x4fd950
mov ecx, esi
sub eax, esi
mov dl, byte [ecx]
mov byte [eax + ecx], dl
inc ecx
test dl, dl
jne 0x4fd91c
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 0x4fd949
or dword [ebp - 0xc], 0xffffffff
push edi
call fcn.004e8e1d
pop ecx
cmp dword [ebp - 4], 0
je 0x4fd95d
push esi
call fcn.004e8e1d
pop ecx
mov eax, dword [ebp - 0xc]
jmp 0x4fd82c
push esi
call fcn.004e8e1d
pop ecx
xor eax, eax
jmp 0x4fd82c
Function at 0x5018f0
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.004e8aa0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x5019bb
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 0x5019bb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x50196e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x501979
or bh, 8
and edi, 0x8000000
je 0x501994
mov eax, dword [0x67851c]
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 0x5019bb
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 0x501d90
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 0x501dbb
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 0x501ddf
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 0x501dfa
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 0x5081c9
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 0x5081eb
cmp dword [edi + 0x3c], 0
jne 0x5081eb
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00519dd4
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.0050822a
pop edi
pop esi
pop ebx
ret 8

Function at 0x509966
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x50999e
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.0050d308
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0050d2e0
jmp 0x5099aa
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5099ae
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x676270
mov ecx, edi
call fcn.0050cfea
cmp dword [esi + 0x34], 0
push dword [esp + 0xc]
jne 0x509a01
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x509a14
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.0050d308
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0050d2e0
jmp 0x509a14
mov ecx, esi
call fcn.0050c0d4
test eax, eax
je 0x509a14
push edi
mov ecx, eax
call fcn.00509966
mov eax, dword [edi]
pop edi
pop esi
mov eax, dword [eax - 8]
ret 8

Function at 0x50b768
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 0x50b7aa
call fcn.00519dd4
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x50b7aa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x50b7a1
xor eax, eax
jmp 0x50b7b2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0050b7b8
pop edi
pop esi
pop ebx
ret 4
Function at 0x522370
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 0x5223ee
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