joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4079d4
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ecx
push ecx
xor eax, eax
movzx ecx, byte [eax + 0x440a2c]
mov edx, dword [esp + 0xc]
inc eax
cmp eax, 0x40
mov cl, byte [ecx + edx - 1]
mov byte [eax + 0x445747], cl
jl 0x4079d8
push ebx
and dword [esp + 8], 0
push ebp
push esi
push edi
push 8
mov ebp, 0x445708
pop ecx
mov esi, 0x445768
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x10], 0x2d0
mov edx, 0x4456c8
cmp dword [esp + 0x20], 0
mov ebx, dword [esp + 0x10]
jne 0x407a29
mov ebx, dword [esp + 0x14]
push 8
mov esi, ebp
pop ecx
mov edi, edx
rep movsd dword es:[edi], dword [esi]
xor eax, eax
movzx ecx, byte [eax + 0x445788]
mov cl, byte [ecx + 0x445707]
xor cl, byte [ebx + eax + 0x4457c8]
inc eax
cmp eax, 0x30
mov byte [eax + 0x445647], cl
jl 0x407a34
xor edi, edi
mov esi, 0x445689
mov eax, 0x44564d
movzx ecx, byte [eax - 5]
movzx ebx, byte [eax]
add ecx, edi
add eax, 6
lea ecx, [ebx + ecx*2]
movzx ebx, byte [eax - 0xa]
lea ecx, [ebx + ecx*2]
movzx ebx, byte [eax - 9]
lea ecx, [ebx + ecx*2]
movzx ebx, byte [eax - 8]
lea ecx, [ebx + ecx*2]
movzx ebx, byte [eax - 7]
movzx ecx, byte [ebx + ecx*2 + 0x440b54]
mov ebx, ecx
sar ebx, 3
and bl, 1
mov byte [esi - 1], bl
mov ebx, ecx
sar ebx, 2
and bl, 1
mov byte [esi], bl
mov ebx, ecx
sar ebx, 1
and bl, 1
and cl, 1
mov byte [esi + 1], bl
inc edi
mov byte [esi + 2], cl
inc edi
add esi, 4
cmp eax, 0x44567d
jl 0x407a60
xor eax, eax
movzx ecx, byte [eax + 0x440d54]
mov cl, byte [ecx + 0x445687]
xor cl, byte [eax + 0x445748]
inc eax
cmp eax, 0x20
mov byte [eax + 0x445707], cl
jl 0x407ac3
sub dword [esp + 0x10], 0x30
add dword [esp + 0x14], 0x30
cmp dword [esp + 0x10], 0xffffffd0
push 8
pop ecx
mov esi, edx
mov edi, 0x445748
rep movsd dword es:[edi], dword [esi]
jg 0x407a1a
xor eax, eax
movzx edx, byte [eax + 0x445748]
mov bl, byte [eax + 0x445708]
lea ecx, [eax + 0x445748]
lea esi, [eax + 0x445708]
inc eax
cmp eax, 0x20
mov byte [ecx], bl
mov byte [esi], dl
jl 0x407b05
push 8
mov esi, ebp
pop ecx
mov edi, 0x445768
rep movsd dword es:[edi], dword [esi]
xor eax, eax
inc eax
lea ecx, [eax + 0x20]
cmp ecx, 0x40
jl 0x407b36
mov eax, dword [esp + 0x1c]
mov ecx, 0x440a6c
push 0x40
sub ecx, eax
pop esi
movzx edx, byte [ecx + eax]
mov dl, byte [edx + 0x445747]
mov byte [eax], dl
inc eax
dec esi
jne 0x407b4d
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x407c9b
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push esi
push 8
sub ecx, eax
pop esi
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec esi
jne 0x407ca9
pop esi
ret
Function at 0x407f79
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_FindWindowExA]
push edi
xor edi, edi
mov ebx, str.Shell_TrayWnd
push edi
push ebx
push edi
push edi
call esi
cmp eax, edi
je 0x407fb6
push edi
push str.TrayNotifyWnd
push edi
push eax
call esi
cmp eax, edi
je 0x407fb6
push dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x40807a
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x24
push eax
push 5
call dword [sym.imp.SHELL32.dll_SHAppBarMessage]
test eax, eax
je 0x40801c
mov eax, dword [ebp - 0x18]
sub eax, edi
je 0x408000
dec eax
je 0x407fe1
dec eax
je 0x408000
dec eax
jne 0x40807a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 8]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
lea edx, [ecx - 0x64]
add ecx, 0xfffffff0
mov dword [eax], edx
mov dword [eax + 8], ecx
jmp 0x40807a
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
lea edx, [ecx - 0x64]
add ecx, 0xfffffff0
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edx
jmp 0x407ffb
push edi
push ebx
push edi
push edi
call esi
cmp eax, edi
je 0x408059
mov esi, dword [ebp + 8]
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 8]
mov ecx, eax
sub ecx, dword [esi]
cmp ecx, 0x96
jle 0x408047
add eax, 0xffffff6a
mov dword [esi], eax
mov eax, dword [esi + 0xc]
mov ecx, eax
sub ecx, dword [esi + 4]
cmp ecx, 0x1e
jle 0x40807a
add eax, 0xffffffe2
jmp 0x408077
mov esi, dword [ebp + 8]
push edi
push esi
push edi
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [esi + 8]
sub eax, 0x96
mov dword [esi], eax
mov eax, dword [esi + 0xc]
sub eax, 0x1e
mov dword [esi + 4], eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40807f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
call fcn.00408118
test eax, eax
je 0x4080b8
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x10]
push eax
call fcn.00407f79
pop ecx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DrawAnimatedRects]
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
leave
ret
Function at 0x40ad4f
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
mov eax, 0x4307a8
call fcn.00414ae4
sub esp, 0x1b4
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
lea eax, [ebp - 0x1c0]
mov dword [ebp - 0x10], esp
or dword [esi], 0xffffffff
xor ebx, ebx
push eax
push 0x202
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40ad9e
lea eax, [ebp - 0x20]
push 0x43adf8
push eax
mov dword [ebp - 0x20], str.Initialize_socket_library_failed_
call fcn.00415270
push ebx
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x40adc5
lea eax, [ebp - 0x18]
push 0x43adf8
push eax
mov dword [ebp - 0x18], str.Create_socket_failed_
call fcn.00415270
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
mov dword [ebp - 4], ebx
cmp edi, ebx
jne 0x40adef
or dword [ebp - 0x1c], 0xffffffff
lea eax, [ebp - 0x1c]
push 0x439db8
push eax
call fcn.00415270
mov eax, 0x40ae3d
ret
push 0x10
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.00414b10
push dword [ebp + 0xc]
mov word [ebp - 0x30], 2
call fcn.004150d2
add esp, 0x10
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x2e], ax
mov eax, dword [edi + 0xc]
push 0x10
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x30]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x40ae40
mov dword [ebp - 0x14], 1
jmp 0x40ae51
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40ae4e
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [esi], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0xc

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

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
push 1
pop edi
push 0
push esi
push dword [esp + 0x18]
push dword [esp + 0x18]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x40ae9b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40aea7
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40aea1
sub esi, eax
add dword [esp + 0x10], eax
test esi, esi
jle 0x40aea9
jmp 0x40ae6e
xor edi, edi
mov eax, edi
pop edi
pop esi
ret 0xc
Function at 0x40af3e
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
push dword [eax]
mov edi, dword [ebp + 0x10]
xor esi, esi
push esi
push edi
mov dword [ebp - 4], esi
call fcn.00414b10
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov ebx, eax
test ebx, ebx
je 0x40b000
push 0x21
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x40afed
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40afe6
lea eax, [ebp - 0x30]
push eax
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
cmp dword [ebp - 0x30], 0x20
je 0x40afed
push ebx
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
push 0
lea eax, [ebp + 0x17]
push 1
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x40afed
mov al, byte [ebp + 0x17]
mov byte [esi + edi], al
inc esi
cmp esi, 4
jl 0x40af7f
cmp byte [esi + edi - 4], 0xd
jne 0x40af7f
cmp byte [esi + edi - 3], 0xa
jne 0x40af7f
cmp byte [esi + edi - 2], 0xd
jne 0x40af7f
cmp byte [esi + edi - 1], 0xa
jne 0x40af7f
mov dword [ebp - 4], 1
push 0
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x40b4ef
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [ecx + 4]
push ebx
xor ebx, ebx
cmp dword [eax - 8], ebx
jne 0x40b50b
or eax, 0xffffffff
jmp 0x40b5e8
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x403]
mov byte [ebp - 0x404], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x404]
push str.SOFTWAREiPASS_
push eax
mov dword [ebp - 4], ebx
call fcn.00415180
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push eax
call fcn.00415190
add esp, 0x10
lea eax, [ebp - 4]
push ebx
push eax
push ebx
push 0xf003f
push ebx
push ebx
lea eax, [ebp - 0x404]
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, eax
cmp edi, ebx
jne 0x40b5d6
push dword [ebp + 0xc]
call fcn.004154d0
pop ecx
inc eax
push eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0xc]
push 1
push ebx
push str.Version
push dword [ebp - 4]
call esi
mov edi, eax
cmp edi, ebx
jne 0x40b5d6
push dword [ebp + 0x10]
call fcn.004154d0
pop ecx
inc eax
push eax
push dword [ebp + 0x10]
push 1
push ebx
push str.path
push dword [ebp - 4]
call esi
mov edi, eax
cmp edi, ebx
jne 0x40b5d6
push dword [ebp + 0x14]
call fcn.004154d0
pop ecx
inc eax
push eax
push dword [ebp + 0x14]
push 1
push ebx
push str.Description
push dword [ebp - 4]
call esi
mov edi, eax
cmp dword [ebp - 4], ebx
je 0x40b5e4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x41e560
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebx
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x41e571
pop edi
xor eax, eax
pop ebx
pop ecx
ret
lea ecx, [edi*8]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [edi*8]
lea ecx, [edx + edx*2]
shl ecx, 1
sub eax, ecx
sub eax, 2
je 0x41e5a3
sub eax, 2
jne 0x41e5a6
add edx, 2
jmp 0x41e5a6
add edx, 3
mov ebx, dword [esp + 0x14]
lea eax, [edx + 1]
cmp dword [ebx], eax
jge 0x41e5bc
mov dword [ebx], eax
pop edi
mov eax, 0xfffffff0
pop ebx
pop ecx
ret
mov eax, 0x55555556
mov ecx, dword [esp + 0x10]
imul edi
mov eax, edx
push ebp
shr eax, 0x1f
add edx, eax
xor ebp, ebp
push esi
lea eax, [edx + edx*2]
test eax, eax
jle 0x41e67a
lea edx, [eax + 2]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
lea eax, [edx + edx*2]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
xor ebx, ebx
mov bl, byte [eax]
inc eax
mov esi, ebx
xor ebx, ebx
mov bl, byte [eax]
inc eax
mov ebp, ebx
xor ebx, ebx
mov bl, byte [eax]
inc eax
mov edi, ebx
mov ebx, esi
sar ebx, 2
and ebx, 0x3f
inc ecx
shl esi, 4
mov bl, byte [ebx + 0x4374a4]
mov byte [ecx - 1], bl
mov ebx, ebp
sar ebx, 4
add ebx, esi
mov esi, edi
sar esi, 6
and ebx, 0x3f
inc ecx
lea esi, [esi + ebp*4]
and edi, 0x3f
mov bl, byte [ebx + 0x4374a4]
and esi, 0x3f
mov byte [ecx - 1], bl
inc ecx
mov bl, byte [esi + 0x4374a4]
mov byte [ecx - 1], bl
mov bl, byte [edi + 0x4374a4]
mov byte [ecx], bl
inc ecx
dec edx
jne 0x41e5f4
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
cmp ebp, edi
jge 0x41e6c5
xor edx, edx
inc ebp
mov dl, byte [eax]
cmp ebp, edi
mov esi, edx
jge 0x41e680
xor edx, edx
mov dl, byte [eax + 1]
mov eax, edx
jmp 0x41e682
mov eax, dword [esp + 0x20]
jmp 0x41e662
xor eax, eax
mov edx, esi
sar edx, 2
and edx, 0x3f
inc ecx
shl esi, 4
mov dl, byte [edx + 0x4374a4]
mov byte [ecx - 1], dl
mov edx, eax
sar edx, 4
add edx, esi
and edx, 0x3f
inc ecx
cmp ebp, edi
mov dl, byte [edx + 0x4374a4]
mov byte [ecx - 1], dl
jge 0x41e6bd
and eax, 0xf
mov al, byte [eax*4 + 0x4374a4]
mov byte [ecx], al
jmp 0x41e6c0
mov byte [ecx], 0x3d
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov eax, dword [esp + 0x18]
mov edx, ecx
sub edx, eax
pop esi
pop ebp
mov dword [ebx], edx
pop edi
mov byte [ecx], 0
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x41e6e0
Capabilities:
Encode data using base64

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
xor ebp, ebp
xor ecx, ecx
xor edx, edx
test edi, edi
jle 0x41e7fd
mov esi, edi
mov eax, dword [esp + 0x1c]
cmp esi, 2
jl 0x41e70e
cmp byte [edx + eax], 0xd
jne 0x41e70e
cmp byte [edx + eax + 1], 0xa
je 0x41e73b
mov al, byte [edx + eax]
cmp al, 0xa
je 0x41e73b
cmp al, 0x3d
jne 0x41e71f
inc ecx
cmp ecx, 2
jg 0x41e76a
cmp al, 0x7f
ja 0x41e76a
and eax, 0xff
mov al, byte [eax + 0x4374e4]
cmp al, 0x7f
je 0x41e76a
cmp al, 0x40
jae 0x41e73a
test ecx, ecx
jne 0x41e76a
inc ebp
inc edx
dec esi
cmp edx, edi
jl 0x41e6f8
test ebp, ebp
je 0x41e7fd
mov ecx, dword [esp + 0x18]
lea eax, [ebp + ebp*2]
mov esi, dword [ecx]
lea eax, [eax + eax + 7]
sar eax, 3
cmp esi, eax
jge 0x41e774
pop edi
pop esi
mov dword [ecx], eax
pop ebp
mov eax, 0xfffffff0
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 0xffffffee
pop ebx
ret
mov ebx, dword [esp + 0x14]
xor ecx, ecx
xor esi, esi
mov edi, 3
test edx, edx
mov ebp, ebx
jle 0x41e7f5
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x1c]
mov al, byte [edx]
cmp al, 0xd
je 0x41e7e1
cmp al, 0xa
je 0x41e7e1
and eax, 0xff
xor edx, edx
mov al, byte [eax + 0x4374e4]
cmp al, 0x40
sete dl
and eax, 0x3f
sub edi, edx
shl ecx, 6
or eax, ecx
inc esi
cmp esi, 4
mov ecx, eax
jne 0x41e7e1
xor esi, esi
test edi, edi
jle 0x41e7ca
shr eax, 0x10
mov byte [ebp], al
inc ebp
cmp edi, 1
jle 0x41e7d8
mov edx, ecx
shr edx, 8
mov byte [ebp], dl
inc ebp
cmp edi, 2
jle 0x41e7e1
mov byte [ebp], cl
inc ebp
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
inc edx
dec eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
jne 0x41e78b
mov eax, dword [esp + 0x18]
sub ebp, ebx
mov dword [eax], ebp
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x421910
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.00415550
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4219db
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 0x4219db
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42198e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x421999
or bh, 8
and edi, 0x8000000
je 0x4219b4
mov eax, dword [0x44937c]
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 0x4219db
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 0x421db0
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 0x421ddb
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 0x421dff
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 0x421e1a
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 0x424e33
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x424e6b
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.00427994
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0042796c
jmp 0x424e77
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4263b7
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 0x4263f9
call fcn.0042c6f5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4263f9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4263f0
xor eax, eax
jmp 0x426401
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00426407
pop edi
pop esi
pop ebx
ret 4

Function at 0x42cd5e
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 0x42cd8c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42cdaa
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042ccc4
jmp 0x42cdaa
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42cdaa
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0042ccc4
test edi, edi
mov eax, edi
jne 0x42cd94
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x421ac0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48ea5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00482e1c
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x421b42
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00480570
mov eax, dword [eax]
push 0x4d5214
push eax
call fcn.00472754
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004830a7
test bl, bl
je 0x421b42
push 0x4d5214
lea ecx, [esp + 0xc]
call fcn.00483437
push 0x4d8da0
lea ecx, [esp + 0xc]
call fcn.00483437
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x421b7e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004830a7
jmp 0x421c49
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x421c02
lea edx, [esp + 0x7c]
push 0x4d8d9c
push edx
call fcn.00472754
add esp, 8
test eax, eax
je 0x421c02
lea eax, [esp + 0x7c]
push 0x4d8d98
push eax
call fcn.00472754
add esp, 8
test eax, eax
je 0x421c02
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x421b92
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004830a7
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x422440
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4224a2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc