joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433b70
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
push ebp
cmp dword [ebx + 0x7c], 2
mov ebp, dword [ebx]
je 0x433d33
cmp byte [ebx + 0x231], 0
push esi
push edi
jne 0x433ce7
mov esi, dword [esp + 0x11c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x98]
mov dword [esp + 0x14], pe_nt_image_headers32
push eax
push esi
call dword [sym.imp.WSOCK32.DLL_getpeername]
test eax, eax
je 0x433beb
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.00445120
push eax
push esi
push 0x45807c
push ebp
call fcn.004307c0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
push pe_nt_image_headers32
lea eax, [esp + 0x18]
mov dword [esp + 0x14], pe_nt_image_headers32
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.WSOCK32.DLL_getsockname]
test eax, eax
je 0x433c46
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
mov esi, eax
push esi
push ebx
call fcn.00445120
push eax
push esi
push 0x457ff4
push ebp
call fcn.004307c0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
lea eax, [ebx + 0xd8]
push eax
lea esi, [ebx + 0xa8]
lea eax, [esp + 0x98]
push esi
push eax
call fcn.00434220
add esp, 0xc
test al, al
jne 0x433c92
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.00445120
push eax
push esi
push 0x4580a4
push ebp
call fcn.004307c0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
lea edi, [ebx + 0x48]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x10c]
push eax
lea eax, [ebx + 0xdc]
push eax
lea eax, [esp + 0x1c]
movsw word es:[edi], word [esi]
push eax
call fcn.00434220
add esp, 0xc
test al, al
jne 0x433ce7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push ebx
call fcn.00445120
push eax
push esi
push 0x4580d0
push ebp
call fcn.004307c0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
mov edi, dword [ebx]
lea esi, [ebx + 0xa8]
add edi, 0x8654
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
mov ecx, 0xb
movsw word es:[edi], word [esi]
mov edi, dword [ebx]
lea esi, [ebx + 0xdc]
add edi, 0x8688
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, dword [ebx]
mov eax, dword [ebx + 0xd8]
pop edi
pop esi
mov dword [ecx + 0x8684], eax
mov ecx, dword [ebx]
mov eax, dword [ebx + 0x10c]
mov dword [ecx + 0x86b8], eax
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x434590
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
xor eax, eax
push edi
mov edi, dword [esp + 0x20]
push 4
cmp byte [esi + 0x398], al
setne al
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WSOCK32.DLL_setsockopt]
test eax, eax
jns 0x4345da
push edi
push 0x457efc
push esi
call fcn.00430890
add esp, 0xc
pop edi
pop esi
add esp, 0x10
ret
push dword [esi + 0x39c]
mov dword [esp + 0x10], 1
call fcn.0043f290
push dword [esi + 0x3a0]
imul eax, eax, 0x3e8
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], eax
call fcn.0043f290
add esp, 8
imul eax, eax, 0x3e8
push 0
push 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0xc
lea eax, [esp + 0x24]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.DLL_WSAIoctl]
test eax, eax
je 0x434651
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
push eax
push edi
push 0x457f24
push esi
call fcn.00430890
add esp, 0x10
pop edi
pop esi
add esp, 0x10
ret

Function at 0x434660
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 4
mov esi, dword [edi]
movzx eax, byte [esi + 0x29a]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 1
push 6
push dword [esp + 0x20]
call dword [sym.imp.WSOCK32.DLL_setsockopt]
test eax, eax
jns 0x4346ab
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
push eax
push edi
call fcn.00445120
push eax
push 0x458194
push esi
call fcn.00430890
add esp, 0x14
pop edi
pop esi
ret
push 0x4581b4
push esi
call fcn.00430890
add esp, 8
pop edi
pop esi
ret
Function at 0x441320
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x104
push dword [esp + 0x108]
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x441369
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x441369
lea eax, [esp]
push eax
call dword [0x608cb0]
add esp, 4
add esp, 0x104
ret
xor eax, eax
add esp, 0x104
ret
Function at 0x4461b0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebp
xor ebp, ebp
mov dword [esp + 4], ebp
mov dword [eax], ebp
lea eax, [esp + 8]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.DLL_getaddrinfo]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x446343
push ebx
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x44632d
push esi
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x4461ff
lea ebx, [eax + 0xe]
jmp 0x44620b
cmp eax, 0x17
jne 0x4462ba
lea ebx, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x4462ba
mov eax, dword [edi + 0x10]
test eax, eax
je 0x4462ba
cmp eax, ebx
jb 0x4462ba
push 0x20
call dword [0x608ca4]
mov esi, eax
add esp, 4
test esi, esi
je 0x446322
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push ebx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x608ca4]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x446311
push ebx
push dword [edi + 0x18]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [edi + 0x14]
add esp, 0xc
test eax, eax
je 0x4462a5
push eax
call dword [0x608cb0]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x4462f7
test ebp, ebp
jne 0x4462ab
mov ebp, esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4462b6
mov dword [eax + 0x1c], esi
mov dword [esp + 0x10], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x4461f2
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
pop esi
test eax, eax
je 0x4462d9
push eax
call dword [sym.imp.WS2_32.DLL_freeaddrinfo]
test ebx, ebx
je 0x446329
push ebp
call fcn.00446170
mov eax, dword [esp + 0x2c]
add esp, 4
xor ebp, ebp
mov dword [eax], ebp
mov eax, ebx
pop edi
pop ebx
pop ebp
add esp, 0xc
ret
push dword [esi + 0x18]
mov ebx, 8
call dword [0x608ca8]
push esi
call dword [0x608ca8]
add esp, 8
jmp 0x4462c9
push esi
mov ebx, 8
call dword [0x608ca8]
add esp, 4
jmp 0x4462c9
mov ebx, 8
jmp 0x4462c9
test ebp, ebp
jne 0x446339
mov ebx, 0x2af9
push ebx
call dword [sym.imp.WSOCK32.DLL_WSASetLastError]
mov eax, dword [esp + 0x28]
pop edi
mov dword [eax], ebp
mov eax, ebx
pop ebx
pop ebp
add esp, 0xc
ret

Function at 0x446790
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x264], 2
je fcn.00446740
mov al, 1
ret
Function at 0x44c1eb
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor ebp, ebp
mov edi, ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
mov esi, 0x60b034
cmp dword [0x60b030], edi
jne 0x44c21a
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x60b030], 1
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x60b02c]
test esi, esi
je 0x44c275
test edi, edi
jne 0x44c3bc
xor eax, eax
lea ecx, [esi + 0x114]
inc eax
cmp ebx, dword [ecx]
je 0x44c24b
inc eax
add ecx, 4
cmp eax, 0x40
jl 0x44c23c
jmp 0x44c267
push dword [esp + 0x1c]
add eax, 0x84
push dword [esp + 0x1c]
lea eax, [esi + eax*4]
push eax
call fcn.0044c194
xor edi, edi
add esp, 0xc
inc edi
mov esi, dword [esi]
test esi, esi
jne 0x44c22b
test edi, edi
jne 0x44c3bc
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [esp + 0x10]
push ebp
push ebp
push 0x100000
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x44c3bc
mov esi, dword [0x60b02c]
jmp 0x44c2b6
cmp dword [esi + 0xc], 0x3f
jl 0x44c357
mov esi, dword [esi]
test esi, esi
jne 0x44c2aa
push 0x310
push 8
push dword [0x60a750]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
test esi, esi
je 0x44c3b6
push ebp
push 1
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [esi + 8], eax
test eax, eax
je 0x44c3a8
push ebp
push ebp
push esi
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x1c]
push 0x44c3cf
mov dword [esi + 0x114], ebx
lea ebx, [esi + 0x214]
push 0x1000
mov dword [esi + 0x14], eax
mov dword [ebx], ebp
push ebp
mov dword [esi + 0xc], 2
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x44c3a3
push eax
call edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push ebx
call fcn.0044c194
mov eax, dword [0x60b02c]
add esp, 0xc
mov dword [esi + 4], ebp
mov dword [esi], eax
test eax, eax
je 0x44c34f
mov dword [eax + 4], esi
mov dword [0x60b02c], esi
jmp 0x44c3bc
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x10]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
mov dword [esi + ecx*4 + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + eax*4 + 0x110], ebx
mov eax, dword [esi + 0xc]
mov dword [esi + eax*4 + 0x210], ebp
mov eax, dword [esi + 0xc]
add eax, 0x84
lea eax, [esi + eax*4]
push eax
call fcn.0044c194
add esp, 0xc
inc dword [esi + 0xc]
push ebp
push 1
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x44c3bc
push dword [esi + 8]
call edi
push esi
push ebp
push dword [0x60a750]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esp + 0x10]
call edi
push 0x60b034
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x5d122501
Capabilities:
Print debug messages

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x94
cmp dword [ebp + 0x78], 1
jne 0x5d122561
and byte [0x5d12e418], 0
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x5d12253f
cmp dword [ebp - 0x18], 2
jne 0x5d12253f
push str.Slight_Performace_loss_due_to_running_ANSI_version_of_ATL70.DLL_on_Windows_NT_or_Windows_2000_nPlease_install_the_Unicode_version._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x5d12b200
push dword [ebp + 0x74]
mov ecx, 0x5d12e440
push 0x5d12e068
call fcn.5d121f83
push dword [ebp + 0x74]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
jmp 0x5d12257f
cmp dword [ebp + 0x78], 0
jne 0x5d12257f
mov ecx, 0x5d12e440
call fcn.5d121fdf
cmp byte [0x5d12e418], 0
je 0x5d12257f
call fcn.5d1224db
xor eax, eax
inc eax
add ebp, 0x6c
leave
ret 0xc

Function at 0x5d124155
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
call dword [0x5d12e060]
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov edi, eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], ebx
jne 0x5d124178
xor eax, eax
jmp 0x5d12419f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.5d12a5c0
mov eax, esp
push edi
push esi
push dword [ebp + 8]
push eax
call fcn.5d1212c3
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
mov dword [ebp + 8], edi
jne 0x5d1241bb
call fcn.5d12152a
mov esi, eax
jmp 0x5d12422e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebx
je 0x5d1241dc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x5d1241e3
call fcn.5d12152a
jmp 0x5d124223
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
cmp byte [esi + ebx], 0
mov edi, ebx
je 0x5d124217
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.5d12a5c0
mov edi, esp
lea eax, [esi + 1]
push eax
push ebx
push edi
call fcn.5d12a280
add esp, 0xc
and byte [edi + esi], 0
push dword [ebp + 0x14]
lea ecx, [ebp - 8]
push edi
call fcn.5d12423a
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x5d124c90
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x5d124c9b
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x5d124e09
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.5d1249f5
cmp eax, esi
jne 0x5d124e81
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x5d124e4a
lea eax, [ebp - 0x110]
push eax
call fcn.5d124e09
cmp eax, esi
jne 0x5d124e80
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x110]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 0x100
call edi
test eax, eax
lea ecx, [ebp - 4]
je 0x5d124e3a
call fcn.5d1249de
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 4]
mov esi, eax
call fcn.5d1249de
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x5d127feb
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
call dword [0x5d12e060]
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov edi, eax
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], ebx
jne 0x5d12800f
xor eax, eax
jmp 0x5d128036
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.5d12a5c0
mov eax, esp
push edi
push esi
push dword [ebp + 8]
push eax
call fcn.5d1212c3
push ebx
push 1
push 3
push ebx
push ebx
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x5d128058
call fcn.5d12152a
jmp 0x5d1280b0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.5d12a5c0
mov edi, esp
push ebx
lea eax, [ebp - 4]
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5d128091
call fcn.5d12152a
mov esi, eax
cmp esi, ebx
jl 0x5d1280a5
push dword [ebp + 0xc]
mov eax, dword [ebp - 4]
push edi
lea ecx, [ebp - 0xc]
mov byte [eax + edi], bl
call fcn.5d12423a
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x5d129378
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push esi
call sym.ATL70.DLL_AtlAxWinInit
mov esi, dword [esp + 0x14]
or dword [esp + 8], 0xffffffff
push 5
push dword [esp + 0x1c]
push esi
call fcn.5d121bd5
add esp, 0xc
test eax, eax
mov dword [esp + 0xc], eax
je 0x5d129458
push ebx
push ebp
push edi
push 0xf0
push dword [esp + 0x28]
push esi
call fcn.5d121bd5
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [sym.imp.KERNEL32.dll_LockResource]
add esp, 0xc
xor ebp, ebp
test eax, eax
je 0x5d1293d5
push eax
push esi
call edi
push eax
call ebx
mov ebp, eax
push dword [esp + 0x18]
and dword [esp + 0x14], 0
push esi
call edi
test eax, eax
je 0x5d12943a
push eax
call ebx
mov edi, eax
test edi, edi
je 0x5d12943a
push ebp
push edi
call fcn.5d121932
pop ecx
pop ecx
push dword [esp + 0x30]
mov ebx, eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push ebx
push esi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
push eax
mov dword [esp + 0x18], eax
call fcn.5d121be8
test al, al
pop ecx
jne 0x5d129426
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp ebx, edi
je 0x5d129444
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x5d129444
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
pop edi
pop ebp
pop ebx
je 0x5d129458
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 8]
pop esi
add esp, 0xc
ret

Function at 0x5d129461
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push esi
call sym.ATL70.DLL_AtlAxWinInit
mov esi, dword [esp + 0x14]
or dword [esp + 8], 0xffffffff
push 5
push dword [esp + 0x1c]
push esi
call fcn.5d121bc2
add esp, 0xc
test eax, eax
mov dword [esp + 0xc], eax
je 0x5d129541
push ebx
push ebp
push edi
push 0xf0
push dword [esp + 0x28]
push esi
call fcn.5d121bc2
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [sym.imp.KERNEL32.dll_LockResource]
add esp, 0xc
xor ebp, ebp
test eax, eax
je 0x5d1294be
push eax
push esi
call edi
push eax
call ebx
mov ebp, eax
push dword [esp + 0x18]
and dword [esp + 0x14], 0
push esi
call edi
test eax, eax
je 0x5d129523
push eax
call ebx
mov edi, eax
test edi, edi
je 0x5d129523
push ebp
push edi
call fcn.5d121932
pop ecx
pop ecx
push dword [esp + 0x30]
mov ebx, eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push ebx
push esi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
push eax
mov dword [esp + 0x18], eax
call fcn.5d121be8
test al, al
pop ecx
jne 0x5d12950f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp ebx, edi
je 0x5d12952d
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x5d12952d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
pop edi
pop ebp
pop ebx
je 0x5d129541
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 8]
pop esi
add esp, 0xc
ret
Function at 0x5d12954a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push ebp
push esi
call sym.ATL70.DLL_AtlAxWinInit
mov esi, dword [esp + 0x18]
push 5
push dword [esp + 0x20]
xor ebp, ebp
push esi
mov dword [esp + 0x18], ebp
call fcn.5d121bd5
add esp, 0xc
cmp eax, ebp
mov dword [esp + 0x10], eax
je 0x5d129621
push ebx
push edi
push 0xf0
push dword [esp + 0x28]
push esi
call fcn.5d121bd5
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [sym.imp.KERNEL32.dll_LockResource]
add esp, 0xc
cmp eax, ebp
je 0x5d1295a6
push eax
push esi
call edi
push eax
call ebx
mov ebp, eax
push dword [esp + 0x18]
and dword [esp + 0x14], 0
push esi
call edi
test eax, eax
je 0x5d129604
push eax
call ebx
mov edi, eax
test edi, edi
je 0x5d129604
push ebp
push edi
call fcn.5d121932
pop ecx
pop ecx
push dword [esp + 0x30]
mov ebx, eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x5d1295f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp ebx, edi
je 0x5d12960e
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x5d12960e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
pop edi
pop ebx
je 0x5d129621
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0xc]
pop esi
pop ebp
add esp, 0xc
ret

Function at 0x5d12962b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push ebp
push esi
call sym.ATL70.DLL_AtlAxWinInit
mov esi, dword [esp + 0x18]
push 5
push dword [esp + 0x20]
xor ebp, ebp
push esi
mov dword [esp + 0x18], ebp
call fcn.5d121bc2
add esp, 0xc
cmp eax, ebp
mov dword [esp + 0x10], eax
je 0x5d129702
push ebx
push edi
push 0xf0
push dword [esp + 0x28]
push esi
call fcn.5d121bc2
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [sym.imp.KERNEL32.dll_LockResource]
add esp, 0xc
cmp eax, ebp
je 0x5d129687
push eax
push esi
call edi
push eax
call ebx
mov ebp, eax
push dword [esp + 0x18]
and dword [esp + 0x14], 0
push esi
call edi
test eax, eax
je 0x5d1296e5
push eax
call ebx
mov edi, eax
test edi, edi
je 0x5d1296e5
push ebp
push edi
call fcn.5d121932
pop ecx
pop ecx
push dword [esp + 0x30]
mov ebx, eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x5d1296d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp ebx, edi
je 0x5d1296ef
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x5d1296ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
pop edi
pop ebx
je 0x5d129702
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0xc]
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x5d129e51
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push esi
mov esi, ecx
call fcn.5d129e43
and byte [esi + 0xc], 0
mov eax, sym.ATL70.DLL_Ordinal_16
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x1c]
push 0
push eax
mov dword [esi], 0x3c
call fcn.5d12a600
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xc], 2
jne 0x5d129eab
cmp dword [ebp - 0x18], 5
jb 0x5d129ec3
jmp 0x5d129ebf
cmp dword [ebp - 0xc], 1
jne 0x5d129ec3
cmp dword [ebp - 0x18], 4
ja 0x5d129ebf
jne 0x5d129ec3
cmp dword [ebp - 0x14], 0
jbe 0x5d129ec3
mov byte [esi + 0xc], 1
lea eax, [esi + 0x18]
push eax
mov dword [esi + 0x10], 0x700
mov dword [esi + 0x14], 0x5d12e1e8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
add ebp, 0x78
leave
ret
Function at 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
je 0x42e072
nop
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x27eb6e55
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x55e170db
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219