joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e6a60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [esp + 0x1c]
mov byte [esp + 7], 0
call fcn.00439080
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 0xc]
push eax
push ecx
push edx
lea ecx, [esp + 0x14]
call fcn.004e5e20
mov eax, dword [esp + 8]
test eax, eax
je 0x4e6bf1
mov eax, dword [esi + 0xc]
test eax, eax
push ebp
push edi
je 0x4e6b4e
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x4e6b4e
mov ebp, dword [esp + 0x20]
test ebp, ebp
mov dword [esp + 0x1c], 0
je 0x4e6ac8
mov ecx, ebp
call fcn.00438f10
jmp 0x4e6aca
xor eax, eax
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [ecx + 0x1c]
test eax, eax
jne 0x4e6be0
mov ecx, dword [esp + 0x1c]
shr ecx, 1
lea edx, [ecx + ecx + 2]
push edx
call fcn.0043f080
mov edi, eax
add esp, 4
test edi, edi
je 0x4e6be0
test ebp, ebp
je 0x4e6b13
mov ecx, ebp
call fcn.00438f10
jmp 0x4e6b15
xor eax, eax
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x1c]
push edx
push edi
lea edx, [esp + 0x28]
push edx
push 0
push eax
mov eax, dword [esp + 0x24]
push eax
call dword [ecx + 0x1c]
test eax, eax
jne 0x4e6b48
cmp dword [esp + 0x20], 1
jne 0x4e6b48
mov ecx, dword [esp + 0x24]
push edi
call fcn.00438e90
mov byte [esp + 0xf], 1
push edi
jmp 0x4e6bd8
mov edi, dword [esp + 0x20]
test edi, edi
mov dword [esp + 0x1c], 0
je 0x4e6b67
mov ecx, edi
call fcn.004391e0
jmp 0x4e6b69
xor eax, eax
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
push eax
push edx
call ebp
test eax, eax
jne 0x4e6be0
mov eax, dword [esp + 0x1c]
push eax
call fcn.0043f080
mov esi, eax
add esp, 4
test esi, esi
je 0x4e6be0
test edi, edi
je 0x4e6ba6
mov ecx, edi
call fcn.004391e0
jmp 0x4e6ba8
xor eax, eax
lea ecx, [esp + 0x1c]
push ecx
push esi
lea edx, [esp + 0x28]
push edx
push 0
push eax
mov eax, dword [esp + 0x24]
push eax
call ebp
test eax, eax
jne 0x4e6bd7
cmp dword [esp + 0x20], 1
jne 0x4e6bd7
mov ecx, dword [esp + 0x24]
push esi
call fcn.00438df0
mov byte [esp + 0xf], 1
push esi
call fcn.0043f0a0
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
pop edi
pop ebp
je 0x4e6bf1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [esp + 7]
pop esi
add esp, 8
ret 0x10
Function at 0x4e6c00
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
push edi
mov edi, ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0xc]
push eax
push ecx
xor bl, bl
push edx
lea ecx, [esp + 0x20]
mov byte [esp + 0x17], bl
call fcn.004e5eb0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4e6ce5
mov eax, dword [edi + 0xc]
test eax, eax
push ebp
push esi
je 0x4e6c84
mov ecx, dword [eax + 0x20]
test ecx, ecx
je 0x4e6c84
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x4e6c4f
call fcn.00438f10
mov ebp, eax
jmp 0x4e6c51
xor ebp, ebp
mov ebx, dword [edi + 0xc]
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov ecx, edi
call fcn.00438f10
push eax
call fcn.004226c0
add esp, 4
lea eax, [eax + eax + 2]
push eax
mov ecx, edi
call fcn.00438f10
push eax
push 1
push 0
push ebp
push esi
call dword [ebx + 0x20]
jmp 0x4e6cca
mov ebx, dword [esp + 0x24]
mov ecx, ebx
call fcn.004391e0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4e6c92
mov ecx, dword [esp + 0x20]
sub eax, edx
test ecx, ecx
mov ebp, eax
je 0x4e6cae
call fcn.004391e0
mov edi, eax
jmp 0x4e6cb0
xor edi, edi
mov esi, dword [esp + 0x1c]
inc ebp
push ebp
mov ecx, ebx
call fcn.004391e0
push eax
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
pop ebp
mov bl, 1
je 0x4e6cd6
mov bl, byte [esp + 0xb]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4e6ce5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop ebx
pop ecx
ret 0x10

Function at 0x4e6cf0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, ecx
mov ecx, dword [esp + 0x10]
push eax
mov dword [edi], 0
mov edx, dword [esi + 0xc]
push ecx
push edx
lea ecx, [esp + 0x28]
xor bl, bl
call fcn.004e5e20
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4e6dc9
mov eax, dword [esi + 0xc]
test eax, eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 4
je 0x4e6d72
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x4e6d72
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4e6d51
call fcn.00438f10
jmp 0x4e6d53
xor eax, eax
mov ecx, dword [esi + 0xc]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x20]
push edx
push 0
push eax
mov eax, dword [esp + 0x30]
push eax
call dword [ecx + 0x1c]
jmp 0x4e6da0
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4e6d81
call fcn.004391e0
jmp 0x4e6d83
xor eax, eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x20]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4e6dba
cmp dword [esp + 0x18], 4
jne 0x4e6dba
cmp dword [esp + 0x14], 4
jne 0x4e6dba
mov eax, dword [esp + 0x10]
mov dword [edi], eax
mov bl, 1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4e6dc9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, bl
pop ebx
ret 0x10
Function at 0x4e6ed0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x410
push esi
mov esi, ecx
mov eax, dword [esi + 0x54]
test eax, eax
je 0x4e6f2e
mov ecx, dword [esi + 0x58]
test ecx, ecx
je 0x4e6f2e
lea ecx, [esp + 0x20c]
push ecx
push 0x104
call eax
test eax, eax
jbe 0x4e6f77
lea edx, [esp + 4]
push edx
push 0
push str.flash
lea eax, [esp + 0x218]
push eax
call dword [esi + 0x58]
test eax, eax
jbe 0x4e6f77
push 0x5daafc
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.004e4370
pop esi
add esp, 0x410
ret
lea edx, [esp + 4]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jbe 0x4e6f77
lea eax, [esp + 0x20c]
push eax
push 0
push 0x5e3cf8
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jbe 0x4e6f77
lea edx, [esp + 0x20c]
push edx
mov ecx, esi
call fcn.004e4800
pop esi
add esp, 0x410
ret
xor eax, eax
pop esi
add esp, 0x410
ret

Function at 0x4e6ed6
Capabilities:
Get common file path

Disassembly:
sub esp, 0x410
push esi
mov esi, ecx
mov eax, dword [esi + 0x54]
test eax, eax
je 0x4e6f2e
mov ecx, dword [esi + 0x58]
test ecx, ecx
je 0x4e6f2e
lea ecx, [esp + 0x20c]
push ecx
push 0x104
call eax
test eax, eax
jbe 0x4e6f77
lea edx, [esp + 4]
push edx
push 0
push str.flash
lea eax, [esp + 0x218]
push eax
call dword [esi + 0x58]
test eax, eax
jbe 0x4e6f77
push 0x5daafc
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.004e4370
pop esi
add esp, 0x410
ret
lea edx, [esp + 4]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jbe 0x4e6f77
lea eax, [esp + 0x20c]
push eax
push 0
push 0x5e3cf8
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jbe 0x4e6f77
lea edx, [esp + 0x20c]
push edx
mov ecx, esi
call fcn.004e4800
pop esi
add esp, 0x410
ret
xor eax, eax
pop esi
add esp, 0x410
ret
Function at 0x4e7de0
Capabilities:
Check os version

Disassembly:
sub esp, 0x9c
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x18], 2
jne 0x4e7e63
mov eax, dword [esp + 0xc]
cmp eax, 5
ja 0x4e7e12
jne 0x4e7e63
cmp dword [esp + 0x10], 1
jb 0x4e7e63
push esi
mov esi, dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x4a
call esi
test eax, eax
je 0x4e7e59
cmp dword [esp + 8], 1
jne 0x4e7e59
push 0
lea edx, [esp + 8]
push edx
push 0
push 0x200a
call esi
test eax, eax
je 0x4e7e59
cmp dword [esp + 4], 2
jne 0x4e7e59
mov eax, 1
pop esi
add esp, 0x9c
ret
xor eax, eax
pop esi
add esp, 0x9c
ret
xor al, al
add esp, 0x9c
ret
Function at 0x4e9f40
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
push ebx
push esi
push edi
mov ebx, ecx
push 0xd8
mov dword [0x635dac], ebx
call fcn.0043f080
add esp, 4
test eax, eax
je 0x4ea078
push 0
mov ecx, eax
call fcn.004e73e0
mov esi, eax
test esi, esi
je 0x4ea078
push esi
call fcn.004ec100
add esp, 4
lea ecx, [esp + 0x30]
call fcn.00438f50
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call fcn.004e6870
test al, al
je 0x4ea015
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x24]
call fcn.00438d50
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x14]
call fcn.00438d50
push str.Macromed
lea ecx, [esp + 0x14]
call fcn.004395b0
push str.Flash
lea ecx, [esp + 0x14]
call fcn.004395b0
lea eax, [esp + 0x10]
push eax
push esi
mov ecx, ebx
call fcn.0041dba0
test al, al
jne 0x4e9ff7
lea ecx, [esp + 0x20]
push ecx
push esi
mov ecx, ebx
call fcn.0041dba0
lea edx, [esp + 0x10]
push edx
mov ecx, ebx
call fcn.0041ddb0
lea ecx, [esp + 0x10]
call fcn.00438ca0
lea ecx, [esp + 0x20]
call fcn.00438ca0
xor eax, eax
mov ecx, 0x27
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x44], 0x9c
call edi
test eax, eax
jne 0x4ea04e
lea ecx, [esp + 0x40]
push ecx
mov dword [esp + 0x44], 0x94
call edi
test eax, eax
je 0x4ea067
mov eax, dword [esp + 0x50]
cmp eax, 2
jb 0x4ea067
jne 0x4ea060
cmp dword [esp + 0x44], 5
jb 0x4ea067
mov byte [ebx + 0x8bd], 1
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea ecx, [esp + 0x30]
call fcn.00438ca0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ea170
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push ebx
push esi
push edi
call fcn.00519ab0
mov esi, dword [ebp + 8]
xor eax, eax
mov ecx, 0x238
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, esi
mov dword [esi + 0x8d8], eax
call fcn.0041d1d0
xor eax, eax
mov ecx, 0x25
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ebx, [esi + 0x8b4]
push eax
mov dword [ebx], 0
mov dword [esi + 0x8b8], 0
mov byte [esi + 0x8b0], 0
mov byte [esi + 0x8bc], 0
mov dword [esp + 0x14], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x14], 5
ja 0x4ea235
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x4ea235
push ebx
push 0x5f35c0
push 3
push 0
push 0x5f35b0
mov byte [esi + 0x8bc], 1
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, dword [ebx]
test ebx, ebx
je 0x4ea235
mov ecx, dword [ebx]
lea edi, [esi + 0x8b8]
push edi
push 0x5e3e58
push ebx
call dword [ecx]
cmp dword [edi], 0
je 0x4ea235
mov byte [esi + 0x8b0], 1
lea edx, [esi + 0x8c0]
push edx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push esi
mov dword [esi + 0x8dc], 0
call fcn.004f0eb0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ea380
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push 2
push eax
mov esi, ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov ebx, eax
test ebx, ebx
jl 0x4ea3ed
cmp ebx, 0xff
jg 0x4ea3ed
cmp ebx, 0x7f
jg 0x4ea3e6
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
test al, 1
mov al, byte [esi + 9]
je 0x4ea3d6
test al, al
je 0x4ea3e6
push ebx
call fcn.0041d1b0
add esp, 4
test al, al
jne 0x4ea3da
push ebx
mov ecx, esi
call fcn.004ea260
movzx ebx, al
pop esi
mov al, bl
pop ebx
ret 4
test al, al
jne 0x4ea3c4
movzx eax, bl
movzx ebx, byte [eax + 0x5da198]
xor ebx, eax
pop esi
mov al, bl
pop ebx
ret 4
mov al, byte [esp + 0xc]
pop esi
pop ebx
ret 4
Function at 0x4eaec0
Capabilities:
Check mutex on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], ebx
je 0x4eaee1
mov dword [esi], 0x5e3f18
mov dword [esi + 0x20], 0x5da830
push ebx
mov ecx, esi
call fcn.00441800
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov dword [esi + ecx], 0x5e3e8c
mov edx, dword [esi]
mov eax, dword [edx + 4]
push str.MacromediaMutexOmega
lea ecx, [eax - 0x20]
mov dword [eax + esi - 4], ecx
push 1
push ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x14], eax
je 0x4eaf35
call edi
cmp eax, 0xb7
jne 0x4eaf35
mov cl, 1
jmp 0x4eaf37
xor cl, cl
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x4eafc5
cmp cl, bl
je 0x4eaf53
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4eafc5
push str.MacromediaFMOmega
push 0xfc10
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0x18], eax
call edi
mov edi, eax
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x4eafbb
push 0xfc10
push ebx
push ebx
push 0xf001f
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [esi + 8], eax
je 0x4eafbb
cmp edi, 0xb7
setne dl
mov ecx, esi
push edx
push eax
call fcn.004410d0
mov ecx, esi
call fcn.00441110
test al, al
jne 0x4eafbb
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 8], ebx
mov ecx, dword [esi + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [esi + 8], ebx
jne 0x4eafea
mov eax, dword [esi + 0x18]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4eafdd
push eax
call edi
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x4eafea
push eax
call edi
mov dword [esi + 0x14], ebx
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret 4

Function at 0x4ecea0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, dword [ecx + 0xd64]
xor bl, bl
call dword [sym.imp.USER32.dll_GetFocus]
cmp esi, eax
jne 0x4ececa
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
pop esi
setl al
pop ebx
ret 4
pop esi
mov al, bl
pop ebx
ret 4

Function at 0x4ee540
Capabilities:
Initialize winsock library

Disassembly:
mov eax, dword [0x6365ec]
sub esp, 0x190
cmp eax, 1
je 0x4ee57d
cmp eax, 2
je 0x4ee598
lea eax, [esp]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
jne 0x4ee58e
mov ax, word [esp]
cmp al, 1
jne 0x4ee589
cmp ah, al
jne 0x4ee589
mov dword [0x6365ec], 1
mov eax, 1
add esp, 0x190
ret
call sub.WSOCK32.dll_WSACleanup
mov dword [0x6365ec], 2
xor eax, eax
add esp, 0x190
ret
Function at 0x4ee770
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0xffffffff
jne 0x4ee795
cmp dword [0x6365ec], 1
je 0x4ee787
or eax, 0xffffffff
jmp 0x4ee792
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x4ee7b6
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push ecx
push eax
call sub.WSOCK32.dll_WSAAsyncSelect
test eax, eax
je 0x4ee7bf
mov eax, 1
pop esi
ret 0x10
mov eax, dword [esp + 8]
mov ecx, dword [eax + 0x14]
mov edx, dword [esi + 4]
push ecx
add eax, 4
push eax
push edx
call sub.WSOCK32.dll_connect
test eax, eax
je 0x4ee7ed
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x4ee7ed
mov eax, 2
pop esi
ret 0x10
xor eax, eax
pop esi
ret 0x10

Function at 0x4eea40
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
push esi
push edi
xor esi, esi
mov dword [esp + 0xc], esi
push eax
mov dword [esp + 0x14], esi
mov word [esp + 0x10], 2
call sub.WSOCK32.dll_inet_addr
mov ecx, dword [esp + 0x24]
push ecx
mov edi, eax
call sub.WSOCK32.dll_htons
mov ecx, dword [esp + 0x28]
mov word [esp + 0xe], ax
lea eax, [ecx + 4]
xor edx, edx
mov ebx, eax
mov dword [ebx], edx
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edx
mov dword [ecx + 0x14], edx
mov edx, dword [esp + 0xc]
mov dword [eax], edx
mov dword [eax + 4], edi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
xor eax, eax
cmp edi, 0xffffffff
pop edi
pop esi
mov dword [ecx + 0x14], 0x10
setne al
pop ebx
add esp, 0x10
ret

Function at 0x4eeab0
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, ecx
mov dword [esi], 0x5e4188
mov dword [esi + 4], 0xffffffff
call fcn.004ee540
cmp dword [0x6365ec], 1
je 0x4eead8
or eax, 0xffffffff
mov dword [esi + 4], eax
mov eax, esi
pop esi
ret
push 0
push 2
push 2
call sub.WSOCK32.dll_socket
mov dword [esi + 4], eax
mov eax, esi
pop esi
ret
Function at 0x4eef60
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x30
push edi
lea eax, [esp + 0x44]
mov edi, ecx
mov ecx, dword [esp + 0x44]
push eax
push ecx
call fcn.00454de0
add esp, 8
test al, al
je 0x4ef10a
mov edx, dword [esp + 0x38]
push ebx
push ebp
mov ebp, dword [esp + 0x48]
push esi
push 1
push ebp
push edx
call fcn.00454e60
mov esi, eax
xor ebx, ebx
add esp, 0xc
cmp esi, ebx
jne 0x4eefb6
mov eax, dword [esp + 0x48]
push ebp
push eax
mov ecx, edi
call fcn.004eeec0
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x30
ret 0x10
mov ecx, dword [edi + 0x48]
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.GDI32.dll_SaveDC]
xor ecx, ecx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x50]
mov ch, al
movzx edx, ah
movzx eax, byte [esp + 0x52]
or ecx, edx
shl ecx, 8
or ecx, eax
push ecx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ecx, dword [edi + 0x48]
mov edx, dword [ecx + 0x24]
mov ebp, eax
push ebp
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x4c], eax
mov eax, dword [edi + 0x48]
mov ecx, dword [eax + 0x24]
push 1
push ecx
call dword [sym.imp.GDI32.dll_SelectClipPath]
mov dword [esp + 0x10], 0x28
mov edx, dword [esi + 0x10]
mov dword [esp + 0x14], edx
mov eax, dword [esi + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov eax, 1
mov word [esp + 0x1c], ax
mov word [esp + 0x1e], ax
mov eax, dword [esi + 8]
mov ecx, 2
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov cl, byte [eax + 6]
mov byte [esp + 0x3a], cl
mov dl, byte [eax + 5]
mov byte [esp + 0x39], dl
mov cl, byte [eax + 4]
mov byte [esp + 0x38], cl
mov byte [esp + 0x3b], bl
mov dl, byte [eax + 0xa]
mov byte [esp + 0x3e], dl
mov cl, byte [eax + 9]
mov byte [esp + 0x3d], cl
mov dl, byte [eax + 8]
mov ecx, esi
mov byte [esp + 0x3c], dl
mov byte [esp + 0x3f], bl
call fcn.0046b960
mov eax, dword [esp + 0x48]
mov ecx, dword [eax + 8]
mov edx, dword [eax]
push 0xb8074a
push ebx
lea ebx, [esp + 0x18]
push ebx
mov ebx, dword [esi + 4]
push ebx
mov ebx, dword [esi + 0x14]
push ebx
mov ebx, dword [esi + 0x10]
push ebx
mov ebx, dword [eax + 0xc]
mov eax, dword [eax + 4]
push 0
push 0
sub ebx, ecx
push ebx
sub eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x48]
push edx
mov edx, dword [ecx + 0x24]
push edx
call dword [sym.imp.GDI32.dll_StretchDIBits]
mov ecx, esi
call fcn.0046b980
mov ecx, esi
call fcn.0046bad0
push esi
call fcn.0043f0a0
mov eax, dword [esp + 0x50]
mov ecx, dword [edi + 0x48]
mov edx, dword [ecx + 0x24]
add esp, 4
push eax
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x44]
mov ecx, dword [edi + 0x48]
mov edx, dword [ecx + 0x24]
push eax
push edx
call dword [sym.imp.GDI32.dll_RestoreDC]
pop esi
pop ebp
pop ebx
pop edi
add esp, 0x30
ret 0x10
Function at 0x4efeb0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
call fcn.004ef7a0
mov eax, dword [0x63662c]
test eax, eax
je 0x4efee0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x63662c]
push eax
call fcn.0043f0a0
add esp, 4
mov dword [0x63662c], 0
test byte [esp + 8], 1
je 0x4efef0
push esi
call fcn.0043f0a0
add esp, 4
mov eax, esi
pop esi
ret 4

Function at 0x4f0110
Capabilities:
Delete file

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi]
test esi, esi
je 0x4f013c
mov eax, dword [esi]
test eax, eax
je 0x4f012d
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi], 0
push esi
call fcn.0043f0a0
add esp, 4
mov dword [edi], 0
mov esi, dword [edi + 4]
test esi, esi
je 0x4f0182
mov ecx, esi
call fcn.004ef7a0
mov eax, dword [0x63662c]
test eax, eax
je 0x4f0172
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x63662c]
push eax
call fcn.0043f0a0
add esp, 4
mov dword [0x63662c], 0
push esi
call fcn.0043f0a0
add esp, 4
mov dword [edi + 4], 0
pop edi
pop esi
ret
Function at 0x4f0af0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x9c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
push eax
mov byte [esi + 0x24], 0
mov dword [esi], 0
mov dword [esi + 8], 0
mov dword [esp + 0x10], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4f0b6d
cmp dword [esp + 0x1c], 2
jne 0x4f0b6d
cmp dword [esp + 0x10], 4
mov eax, str.Security.dll
je 0x4f0b39
mov eax, str.Secur32.dll
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call ebp
test eax, eax
mov dword [esi], eax
je 0x4f0b6c
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InitSecurityInterfaceA
push eax
call edi
test eax, eax
jne 0x4f0b77
mov ecx, dword [esi]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi], 0
pop edi
pop ebp
mov eax, esi
pop esi
add esp, 0x9c
ret
call eax
test eax, eax
mov dword [esi + 4], eax
jne 0x4f0b85
mov edx, dword [esi]
push edx
jmp 0x4f0b5f
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
call dword [eax + 4]
test eax, eax
jne 0x4f0ba1
mov ecx, dword [esp + 0xc]
mov eax, dword [esi + 4]
push ecx
call dword [eax + 0x40]
push str.crypt32.dll
call ebp
test eax, eax
mov dword [esi + 8], eax
je 0x4f0b80
push str.CertGetCertificateChain
push eax
call edi
test eax, eax
mov dword [esi + 0xc], eax
je 0x4f0c1c
mov eax, dword [esi + 8]
push str.CertVerifyCertificateChainPolicy
push eax
call edi
test eax, eax
mov dword [esi + 0x10], eax
je 0x4f0c1c
mov ecx, dword [esi + 8]
push str.CertFreeCertificateChain
push ecx
call edi
test eax, eax
mov dword [esi + 0x14], eax
je 0x4f0c1c
mov edx, dword [esi + 8]
push 0x5e4414
push edx
call edi
test eax, eax
mov dword [esi + 0x18], eax
je 0x4f0c1c
mov eax, dword [esi + 8]
push str.CertOpenSystemStoreW
push eax
call edi
test eax, eax
mov dword [esi + 0x1c], eax
je 0x4f0c1c
mov ecx, dword [esi + 8]
push 0x5e43ec
push ecx
call edi
test eax, eax
mov dword [esi + 0x20], eax
jne 0x4f0b6b
mov edx, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edx
call edi
mov eax, dword [esi]
push eax
mov dword [esi + 8], 0
call edi
pop edi
pop ebp
mov dword [esi], 0
mov eax, esi
pop esi
add esp, 0x9c
ret
Function at 0x4f1230
Capabilities:
Get socket status

Disassembly:
sub esp, 0x208
push esi
push edi
mov esi, ecx
lea edi, [esi + 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [esi + 8]
call fcn.004ee750
cmp eax, 0xffffffff
jne 0x4f125e
pop edi
xor al, al
pop esi
add esp, 0x208
ret 8
mov cl, byte [esp + 0x214]
push ebx
xor edx, edx
mov ebx, 1
test bl, cl
mov dword [esp + 0x110], edx
mov dword [esp + 0xc], edx
je 0x4f128a
mov dword [esp + 0x114], eax
mov dword [esp + 0x110], ebx
test cl, 2
je 0x4f1297
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
push edx
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x11c]
push ecx
push ebx
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
jne 0x4f12b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov al, byte [esp + 0x21c]
test al, al
jne 0x4f12d8
mov ecx, esi
call fcn.004f0ee0
cmp dword [esi + 4], 3
jmp 0x4f12dc
cmp dword [esi + 4], 2
je 0x4f12e0
xor bl, bl
mov al, bl
pop ebx
pop edi
pop esi
add esp, 0x208
ret 8