joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f050
Capabilities:
Get socket status

Disassembly:
sub esp, 0x210
lea eax, [esp]
push esi
mov esi, dword [esp + 0x218]
lea ecx, [esp + 0x110]
push eax
push ecx
lea edx, [esp + 0x14]
push 0
push edx
push 0x40
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0xa
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], 1
mov dword [esp + 0x128], esi
mov dword [esp + 0x124], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x43f0b4
pop esi
add esp, 0x210
ret
lea eax, [esp + 0xc]
push eax
push esi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x43f0d0
mov eax, 1
pop esi
add esp, 0x210
ret
lea ecx, [esp + 0x110]
push ecx
push esi
call sub.WS2_32.dll___WSAFDIsSet
or eax, 0xffffffff
pop esi
add esp, 0x210
ret

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

Disassembly:
mov edx, dword [esp + 8]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0xc]
not ecx
dec ecx
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
ret
Function at 0x43fe10
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
ret
Function at 0x440840
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
mov eax, 0x3414
call fcn.00458680
push ebx
push ebp
push esi
push edi
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WININET.dll_InternetOpenA]
push 0
push 0
push 3
push 0
push 0
mov ebx, eax
push 0x50
push str.127.0.0.1
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dl, byte [0x494b70]
mov esi, eax
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x2421]
mov byte [esp + 0x2420], dl
rep stosd dword es:[edi], eax
mov ecx, 0x400
lea edi, [esp + 0x419]
mov byte [esp + 0x418], dl
mov byte [esp + 0x141c], dl
rep stosd dword es:[edi], eax
mov ecx, 0x400
lea edi, [esp + 0x141d]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x3430]
mov ecx, dword [esp + 0x342c]
push eax
push ecx
lea edx, [esp + 0x420]
push str.cc__s__s_1.0
push edx
mov dword [esp + 0x24], esi
call fcn.004585a3
lea edi, [esp + 0x428]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x428]
push ecx
lea ecx, [esp + 0x1430]
push eax
push ecx
call fcn.00412f30
lea edx, [esp + 0x1438]
lea eax, [esp + 0x243c]
push edx
push 0x491aa0
push eax
call fcn.004585a3
add esp, 0x28
lea ecx, [esp + 0x2420]
push 0
push 0x28f500
push 0
push 0
push 0
push ecx
push 0x4901e0
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
push 0
push 0
mov ebp, eax
push 0
push 0
push ebp
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x440a5e
mov dl, byte [0x494b70]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], dl
mov dword [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push 0x400
push ecx
push ebp
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x440a5e
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x141c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x141c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
sub edx, 2
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x141c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0x418], al
mov byte [ecx + edx], al
lea eax, [esp + 0x141c]
lea ecx, [esp + 0x418]
push eax
push ecx
call fcn.00413050
mov byte [esp + eax + 0x420], 0
lea edi, [esp + 0x420]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x342c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
push ebx
call esi
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x3414
ret
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
call edi
push esi
call edi
push ebx
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3414
ret
Function at 0x441630
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esp + 8]
lea ecx, [esp + 8]
push ecx
push 0
push esi
push 0x441620
push 0
push 0
mov dword [esi], 1
mov dword [esi + 4], eax
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
mov eax, 1
pop esi
ret 4

Function at 0x4416f0
Capabilities:
Check for time delay via gettickcount
Resolve dns

Disassembly:
mov eax, 0x1010
call fcn.00458680
push ebx
mov ebx, ecx
push ebp
xor ebp, ebp
mov edx, dword [ebx + 4]
push edi
cmp dword [edx + 0xc74], ebp
je 0x441746
mov al, byte [0x494b70]
mov ecx, 0x400
mov byte [esp + 0x18], al
xor eax, eax
lea edi, [esp + 0x19]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
lea eax, [edx + 0x868]
push ecx
lea ecx, [edx + 0x468]
push eax
push ecx
add edx, 0x68
push 0x494b70
push edx
call fcn.00419720
add esp, 0x14
mov eax, dword [ebx]
or edi, 0xffffffff
cmp eax, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], ebp
je 0x4418dd
push esi
cmp dword [esp + 0x10], ebp
jne 0x44177d
call fcn.00440a80
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], 1
call esi
mov dword [esp + 0x14], eax
jmp 0x441783
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [esp + 0x14]
cmp eax, 0xa4cb80
jbe 0x4417ab
cmp dword [esp + 0x10], 5
jae 0x4417ab
call fcn.00440a80
call esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
inc eax
mov dword [esp + 0x10], eax
cmp edi, 0x1770
jae 0x4417c1
push 0xa
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4418c3
push ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x441801
mov edx, dword [eax + 0xc]
xor ecx, ecx
cmp dword [edx], 0
je 0x4417f6
cmp ecx, 0xa
jge 0x4417f6
mov edx, dword [edx + ecx*4]
inc ecx
inc ebp
mov edx, dword [edx]
mov dword [ecx*4 + 0x542170], edx
mov edx, dword [eax + 0xc]
cmp dword [edx + ecx*4], 0
jne 0x4417da
mov dword [ecx*4 + 0x542174], 0xffffffff
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 0xa9bc]
test ecx, ecx
je 0x441849
mov esi, dword [eax + 0x241dc]
mov ecx, ebx
call fcn.00441930
mov ecx, dword [ebx + 4]
cmp esi, 1
mov dword [ecx + 0x241dc], eax
jne 0x4418af
mov edx, dword [ebx + 4]
mov eax, dword [edx + 0x241dc]
test eax, eax
jne 0x4418af
push str.Internet_Disconnect
call fcn.00430d10
add esp, 4
jmp 0x4418af
mov dword [eax + 0x241dc], 1
mov eax, dword [0x542174]
cmp eax, 0xffffffff
je 0x44189b
mov esi, 0x542174
cmp esi, 0x54219c
jge 0x44189b
mov edi, dword [ebx + 4]
xor ecx, ecx
lea eax, [edi + 0xa990]
mov edx, dword [eax]
test edx, edx
je 0x441888
cmp edx, dword [esi]
je 0x441890
inc ecx
add eax, 4
cmp ecx, 0xa
jl 0x441875
mov eax, dword [esi]
mov dword [edi + 0xa98c], eax
mov eax, dword [esi + 4]
add esi, 4
cmp eax, 0xffffffff
jne 0x441862
cmp ebp, 1
jne 0x4418af
mov ecx, dword [ebx + 4]
mov edx, dword [0x542174]
mov dword [ecx + 0xa98c], edx
mov ecx, dword [ebx + 4]
add ecx, 0x36510
call fcn.00442a10
mov edi, dword [esp + 0x18]
xor ebp, ebp
cmp dword [ebx], ebp
jne 0x44175c
pop esi
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1010
ret 0x138
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1010
ret 0x138
Function at 0x441930
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Resolve dns

Disassembly:
mov eax, 0x2034
call fcn.00458680
push ebx
push ebp
push esi
mov esi, ecx
push edi
push 0x48e23c
mov eax, dword [esi + 4]
lea ecx, [esp + 0x3c]
add eax, 0xa9c0
mov dword [esp + 0x14], esi
push eax
call fcn.00443360
lea ecx, [esp + 0x38]
call fcn.00443420
test eax, eax
je 0x441a02
mov ebx, dword [sym.imp.WS2_32.dll_socket]
mov ebp, dword [sym.imp.WS2_32.dll_htons]
cmp dword [esi], 0
je 0x441a02
push 0
push 1
push 2
call ebx
lea ecx, [esp + 0x38]
mov edi, eax
mov dword [esp + 0x14], 0x10
call fcn.004433c0
push 0x50
mov esi, eax
mov word [esp + 0x1c], 2
call ebp
push esi
mov word [esp + 0x1e], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
jne 0x4419d4
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4419ed
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x18]
push 0x10
push ecx
push edi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x441a1c
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
lea ecx, [esp + 0x38]
call fcn.00443420
mov esi, dword [esp + 0x10]
test eax, eax
jne 0x441978
mov ecx, dword [esi + 4]
pop edi
pop esi
pop ebp
mov dword [ecx + 0xa98c], 0
xor eax, eax
pop ebx
add esp, 0x2034
ret
lea edx, [esp + 0x14]
lea eax, [esp + 0x28]
push edx
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
push edi
mov edx, dword [ecx + 4]
mov dword [edx + 0xa98c], eax
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2034
ret

Function at 0x441a80
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor eax, eax
mov dword [ecx], eax
inc eax
add ecx, 0x138
cmp eax, 0x5dc
jb 0x441a88
mov eax, dword [esp + 0x14]
mov dword [edi + 0x76a70], 0xa
mov dword [edi + 0x76a74], eax
mov dword [edi + 0x76a78], 1
xor ebx, ebx
lea ebp, [edi + 0x72420]
lea esi, [edi + 0x73b90]
lea ecx, [esp + 0x14]
mov dword [esi], edi
push ecx
push 0
push esi
push 0x441a60
push 0
push 0
mov dword [esp + 0x2c], 0
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp], eax
mov eax, dword [edi + 0x76a70]
inc ebx
add ebp, 4
add esi, 8
cmp ebx, eax
jl 0x441ac4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
Function at 0x441b10
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x76a78]
push edi
test eax, eax
je 0x441c07
lea eax, [ebx + 0x76a84]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x76a70]
xor ebp, ebp
test eax, eax
mov dword [esp + 0x10], ebp
jle 0x441b67
mov edx, dword [ebx + 0x76a78]
lea ecx, [ebx + 0x1c]
test edx, edx
je 0x441b67
cmp dword [ecx], 0
je 0x441c12
inc ebp
add ecx, 0x138
cmp ebp, eax
mov dword [esp + 0x10], ebp
jl 0x441b4b
cmp ebp, eax
jne 0x441be2
cmp eax, 0x5dc
jge 0x441be2
add eax, 0xa
cmp eax, 0x5dc
mov dword [ebx + 0x76a70], eax
jle 0x441b8c
mov dword [ebx + 0x76a70], 0x5dc
mov eax, dword [ebx + 0x76a70]
mov edi, ebp
cmp ebp, eax
jge 0x441be2
mov eax, dword [esp + 0x10]
lea ebp, [ebx + ebp*4 + 0x72420]
lea esi, [ebx + eax*8 + 0x73b90]
lea ecx, [esp + 0x10]
mov dword [esi], ebx
push ecx
push 0
push esi
push 0x441a60
push 0
push 0
mov dword [esp + 0x28], 0
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp], eax
mov eax, dword [ebx + 0x76a70]
inc edi
add ebp, 4
add esi, 8
cmp edi, eax
jl 0x441baa
mov edx, dword [ebx + 0x76a7c]
lea ecx, [ebx + 0x76a7c]
call dword [edx + 0x14]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebx + 0x76a78]
test eax, eax
jne 0x441b25
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret 0x138
lea eax, [ebp + ebp*4]
mov ecx, 0x4e
shl eax, 3
sub eax, ebp
lea esi, [esp + 0x18]
lea eax, [ebx + eax*8]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x76a7c]
mov dword [eax], ebp
mov dword [eax + 0x1c], 2
mov edx, dword [ecx]
call dword [edx + 0x14]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
pop ecx
ret 0x138
Function at 0x448780
Capabilities:
Delete registry value
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0xc]
push eax
push 0xf003f
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4487b8
lea ecx, [esp + 0x10]
push ecx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x4487b8
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x18]
test edx, edx
je 0x4487e3
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov edx, dword [esp + 0x1c]
push 1
push eax
mov eax, dword [esp + 0x20]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x4487f3
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
mov eax, dword [esp + 0x10]
neg esi
sbb esi, esi
push eax
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
ret
Function at 0x461549
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x494550
cmp edx, dword [eax]
je 0x46156b
add eax, 8
inc ecx
cmp eax, 0x4945e0
jl 0x46155c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x494550]
jne 0x461699
mov eax, dword [0x544640]
cmp eax, 1
je 0x461673
test eax, eax
jne 0x46159c
cmp dword [0x493ab4], 1
je 0x461673
cmp edx, 0xfc
je 0x461699
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4615d3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0045f720
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0045de80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x461616
lea eax, [ebp - 0x1a4]
push eax
call fcn.0045de80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x483a40
push edi
call fcn.00459160
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0045f720
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0045f730
lea eax, [ebp - 0xa0]
push 0x483a20
push eax
call fcn.0045f730
push dword [esi + 0x494554]
lea eax, [ebp - 0xa0]
push eax
call fcn.0045f730
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00463ac0
add esp, 0x2c
pop edi
jmp 0x461699
lea eax, [ebp + 8]
lea esi, [esi + 0x494554]
push 0
push eax
push dword [esi]
call fcn.0045de80
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x467e10
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.00458680
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x467edb
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 0x467edb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x467e8e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x467e99
or bh, 8
and edi, 0x8000000
je 0x467eb4
mov eax, dword [0x545dfc]
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 0x467edb
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 0x4682b0
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 0x4682db
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 0x4682ff
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 0x46831a
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 0x46c268
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46c2a0
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.0046ef59
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046ef31
jmp 0x46c2ac
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x46d8c1
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 0x46d903
call fcn.00474e29
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46d903
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46d8fa
xor eax, eax
jmp 0x46d90b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046d911
pop edi
pop esi
pop ebx
ret 4

Function at 0x475e63
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x475e91
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x475eaf
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00475dc9
jmp 0x475eaf
mov eax, dword [esi + 0x14]
test eax, eax
je 0x475eaf
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00475dc9
test edi, edi
mov eax, edi
jne 0x475e99
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x476386
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x476436
mov ecx, 0x5445a8
call fcn.00475f50
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, eax
cmp word [esi + 8], 0
jne 0x476414
push str.COMCTL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x4763f2
mov ecx, dword [ebp + 0x10]
push 5
neg ecx
sbb ecx, ecx
and ecx, 0xe
add ecx, 0x3ee
movzx ecx, cx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4763f2
push ebx
push edi
push eax
call fcn.0046fc47
add esp, 0xc
mov eax, dword [edi]
mov eax, dword [eax - 8]
inc eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 4], eax
push dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ax, word [ebx]
mov word [esi + 8], ax
push dword [esi + 4]
mov ecx, edi
call fcn.0046ec3b
mov si, word [esi + 8]
xor eax, eax
mov word [ebx], si
cmp si, 0xffff
pop edi
pop esi
setne al
pop ebx
pop ebp
ret 0xc