joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cdd00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x6ae], 0
je 0x4cdd8a
cmp dword [esi + 0x1a8], 0
je 0x4cdd47
push 1
push esi
call fcn.004bf010
push dword [esi + 0x14c]
mov eax, dword [esi + 0x1a8]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
push 0
push esi
call fcn.004bf010
add esp, 0x24
pop esi
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov eax, ecx
sub eax, 0
je 0x4cdd5b
sub eax, 1
je 0x4cdd5b
sub eax, 1
jne 0x4cdd8a
push dword [esi + 0x148]
lea eax, [ecx*2 + 0x6112d8]
push 1
add eax, ecx
push 2
push eax
call fcn.005b76a5
push dword [esi + 0x148]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.005b76a5
add esp, 0x20
pop esi
pop ebp
ret

Function at 0x4ce270
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
mov esi, 0x158
push edi
mov ecx, dword [ebx + 0xc]
mov edx, dword [ecx + 0x134]
cmp dword [ebp + 0xc], edx
sete al
lea eax, [eax*4 + 0x130]
mov eax, dword [eax + ecx]
mov dword [ebp + 8], eax
mov eax, 0x168
cmove esi, eax
mov eax, dword [ecx + 0x280]
add esi, ecx
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x44], 3
je 0x4ce34c
xor eax, eax
cmp dword [ebp + 0xc], edx
sete al
lea eax, [eax*4 + 0x148]
cmp dword [eax + ecx], 0x4cdf90
jne 0x4ce34c
cmp dword [esi], 0
je 0x4ce2e3
test edi, edi
je 0x4ce34c
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004dcf10
add esp, 0x14
cmp eax, 0xffffffff
je 0x4ce34c
test al, 1
je 0x4ce34c
mov ecx, dword [esi]
test ecx, ecx
jne 0x4ce333
mov eax, dword [ebx + 0x4b4]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x68dc1c]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
test ecx, ecx
je 0x4ce387
mov edi, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4ce34c
add dword [esi + 8], eax
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
jne 0x4ce3c8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4ce39c
mov ecx, dword [ebp + 0x18]
xor edi, edi
lea eax, [edi + 0x51]
mov dword [ecx], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x18]
mov eax, 0x1b
pop edi
pop esi
pop ebx
mov dword [ecx], 0xffffffff
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x100]
push eax
push esi
call fcn.004b9790
push eax
push str.Send_failure:__s
push ebx
call fcn.004cdd90
add esp, 0x18
mov dword [ebx + 0x900], esi
mov eax, 0x37
mov ecx, dword [ebp + 0x18]
mov dword [ecx], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cea10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push esi
push 0x80
lea eax, [ebp - 0x84]
mov dword [ebp - 4], 0x80
push 0
push eax
call fcn.005d6d60
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4cea80
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [ebp - 0x184]
push 0x100
push eax
push esi
call fcn.004b9790
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push dword [ebp + 8]
call fcn.004cdd90
add esp, 0x1c
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp + 0x14]
lea eax, [ebp - 0x84]
push dword [ebp + 0x10]
push dword [ebp - 4]
push eax
call fcn.004ce6a0
add esp, 0x10
test al, al
jne 0x4cead1
push edi
call fcn.005b7f69
mov esi, dword [eax]
call fcn.005b7f69
mov edi, eax
lea eax, [ebp - 0x184]
push 0x100
push eax
push esi
call fcn.004b9790
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push dword [ebp + 8]
call fcn.004cdd90
add esp, 0x1c
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4d03a0
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
test byte [ebp + 8], 2
je 0x4d03e5
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4d03dc
mov eax, dword [ebp - 0x190]
cmp al, 2
jne 0x4d03d6
shr eax, 8
cmp al, 2
je 0x4d03e5
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov esp, ebp
pop ebp
ret
push esi
push edi
push 0x602204
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x4d0405
mov dword [0x6a1d64], esi
jmp 0x4d0537
push ebx
push str.LoadLibraryExA
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x601530
push 0x611720
mov ebx, eax
call fcn.005c1f70
add esp, 8
test eax, eax
je 0x4d0452
test ebx, ebx
je 0x4d0440
push 8
push 0
push 0x611720
call ebx
mov esi, eax
jmp 0x4d050f
push 0x611720
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
jmp 0x4d050f
test ebx, ebx
je 0x4d047b
push str.AddDllDirectory
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4d047b
push 0x800
push 0
push 0x611720
call ebx
mov esi, eax
jmp 0x4d050f
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp + 8], eax
test eax, eax
je 0x4d050f
lea ecx, [eax + 0xd]
push ecx
call dword [0x68dc1c]
mov edi, eax
add esp, 4
test edi, edi
je 0x4d0505
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4d0505
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4d04b6
sub ecx, edx
mov eax, 0x5c
mov edx, edi
mov word [ecx + edi], ax
lea ecx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x4d04d0
sub edx, ecx
mov ecx, 0x611720
sub edx, ecx
add edx, edi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4d04e2
test ebx, ebx
je 0x4d04fc
push 8
push 0
push edi
call ebx
jmp 0x4d0503
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push edi
call dword [0x68dc20]
add esp, 4
mov dword [0x6a1d64], esi
pop ebx
test esi, esi
je 0x4d0537
push str.if_nametoindex
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x6a1d60]
test eax, eax
cmovne ecx, eax
mov dword [0x6a1d60], ecx
push 3
push 2
push 0
push 0
push 6
call fcn.004e8b10
add esp, 0x14
test al, al
setne byte [0x6a4908]
push 0x6a4910
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4df8e0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.004d30a0
push dword [ebp + 8]
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x10], xmm0
call fcn.005c113f
push dword [ebp + 0xc]
mov edi, eax
call fcn.005c113f
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x4df967
lea eax, [ebp - 0x20]
push eax
call fcn.004d30a0
movups xmm0, xmmword [ebp - 0x10]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.004d3150
add esp, 0x20
test edx, edx
ja 0x4df98a
jb 0x4df955
cmp eax, 0x3e8
ja 0x4df98a
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push esi
push edi
call ebx
test eax, eax
je 0x4df920
test edi, edi
je 0x4df974
push edi
call fcn.005b78c8
add esp, 4
test esi, esi
je 0x4df981
push esi
call fcn.005b78c8
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4df997
push edi
call fcn.005b78c8
add esp, 4
test esi, esi
je 0x4df9a4
push esi
call fcn.005b78c8
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4dfac0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration
Start tcp server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push 6
push 1
push 2
mov dword [ebp - 4], 0x10
mov dword [ebp - 8], 1
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4dfaef
or eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
xorps xmm0, xmm0
mov eax, 2
push 0x7f000001
movlpd qword [ebp - 0x18], xmm0
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
xor eax, eax
push 4
mov word [ebp - 0x1e], ax
lea eax, [ebp - 8]
push eax
push 4
push 0xffff
push esi
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x4dfc6e
push 0x10
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x4dfc6e
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x4dfc6e
cmp dword [ebp - 4], 0x10
jl 0x4dfc6e
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x4dfc6e
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x4dfc6e
push 0x10
lea ecx, [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4dfc6e
push 1
push esi
call fcn.004e8970
add esp, 8
test eax, eax
js 0x4dfc6e
push 0
push 0x2710
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push 1
push eax
mov dword [ebp - 0xc], 1
call fcn.004dcbf0
add esp, 0x10
push 0
push 0
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x4dfc6e
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x20]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x4dfc6e
cmp dword [ebp - 4], 0x10
jl 0x4dfc6e
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x30]
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_getpeername]
cmp eax, 0xffffffff
je 0x4dfc6e
cmp dword [ebp - 4], 0x10
jl 0x4dfc6e
mov ax, word [ebp - 0x20]
cmp ax, word [ebp - 0x30]
jne 0x4dfc6e
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x2c]
jne 0x4dfc6e
mov ax, word [ebp - 0x1e]
cmp ax, word [ebp - 0x2e]
jne 0x4dfc6e
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
call esi
push dword [edi]
call esi
push dword [edi + 4]
call esi
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4dfcc0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
push edi
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [eax], edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4dfe37
push esi
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x4dfe23
push ebx
nop dword [eax]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4dfd1c
lea edx, [eax + 1]
nop word [eax + eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4dfd10
sub eax, edx
inc eax
jmp 0x4dfd1e
xor eax, eax
cmp dword [esi + 4], 2
mov dword [ebp - 8], eax
jne 0x4dfdc2
cmp dword [esi + 0x18], 0
je 0x4dfdc2
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4dfdc2
cmp ecx, 0x10
jb 0x4dfdc2
add eax, 0x30
push eax
call dword [0x68dc1c]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4dfe15
mov ecx, dword [esi]
lea edx, [ebx + 0x20]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp - 8]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], 0x10
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x18], edx
mov eax, dword [esi + 0x18]
movups xmm0, xmmword [eax]
movups xmmword [edx], xmm0
test ecx, ecx
je 0x4dfdb0
lea eax, [edx + 0x10]
push ecx
mov dword [ebx + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.005d67e0
add esp, 0xc
mov eax, dword [ebp - 0xc]
test edi, edi
cmove edi, ebx
test eax, eax
je 0x4dfdbf
mov dword [eax + 0x1c], ebx
mov dword [ebp - 0xc], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x4dfd00
mov esi, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
pop ebx
test eax, eax
je 0x4dfddf
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x4dfe1f
test edi, edi
je 0x4dfe06
nop word [eax + eax]
mov esi, dword [edi + 0x1c]
push edi
call dword [0x68dc20]
add esp, 4
mov edi, esi
test esi, esi
jne 0x4dfdf0
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 0x14]
xor edi, edi
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov esi, 8
mov dword [ebp - 4], esi
jmp 0x4dfdd0
test edi, edi
jne 0x4dfe2f
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x4e00c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.005b9f5c
add esp, 0x18
test eax, eax
je 0x4e00e2
cmp eax, 0xffffffff
jne 0x4e00e4
xor eax, eax
pop ebp
ret
Function at 0x4e0130
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov ecx, 0x2b
test edi, edi
je 0x4e0217
mov esi, dword [ebp + 0xc]
nop word [eax + eax]
push 4
lea eax, [ebp + 0x10]
mov ebx, 4
push eax
push dword [ebp + 8]
cmp edi, ebx
cmovb ebx, edi
call fcn.004c8a70
add esp, 0xc
cmp eax, 4
jne 0x4e01d4
cmp byte [0x6a1d6c], 0
jne 0x4e01df
push 0xf0000040
push 1
push 0
push 0
lea eax, [ebp - 4]
mov dword [ebp + 0x10], 0
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4e01a7
mov eax, 2
jmp 0x4e01d4
lea eax, [ebp + 0x10]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [ebp - 4]
test eax, eax
jne 0x4e01cc
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
jmp 0x4e01d4
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov ecx, eax
test eax, eax
jne 0x4e0219
mov eax, dword [ebp + 0x10]
jmp 0x4e01fb
imul eax, dword [0x6a1d68], 0x41c64e6d
add eax, 0x3039
mov dword [0x6a1d68], eax
rol eax, 0x10
xor ecx, ecx
mov dword [ebp + 0x10], eax
test ebx, ebx
je 0x4e020f
nop
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x4e0200
mov dword [ebp + 0x10], eax
test edi, edi
jne 0x4e0150
mov eax, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e0220
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, ebx
and eax, 0xfffffffe
cmp eax, 0x100
jae 0x4e0376
test bl, 1
je 0x4e0376
dec ebx
mov ecx, 0x2b
push esi
mov esi, ebx
mov dword [ebp + 0x10], ebx
shr esi, 1
push edi
lea edi, [ebp - 0x88]
je 0x4e032e
push 4
lea eax, [ebp - 4]
mov ebx, 4
push eax
push dword [ebp + 8]
cmp esi, ebx
cmovb ebx, esi
call fcn.004c8a70
add esp, 0xc
cmp eax, 4
jne 0x4e02e5
cmp byte [0x6a1d6c], 0
jne 0x4e02f4
push 0xf0000040
push 1
push 0
push 0
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4e02b8
mov eax, 2
jmp 0x4e02e5
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [ebp - 8]
test eax, eax
jne 0x4e02dd
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
jmp 0x4e02e5
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov ecx, eax
test eax, eax
jne 0x4e036f
mov eax, dword [ebp - 4]
jmp 0x4e0310
imul eax, dword [0x6a1d68], 0x41c64e6d
add eax, 0x3039
mov dword [0x6a1d68], eax
rol eax, 0x10
xor ecx, ecx
mov dword [ebp - 4], eax
test ebx, ebx
je 0x4e0323
mov byte [edi], al
dec esi
inc edi
shr eax, 8
sub ebx, 1
jne 0x4e0314
mov dword [ebp - 4], eax
test esi, esi
jne 0x4e0261
mov ebx, dword [ebp + 0x10]
mov eax, ecx
test eax, eax
jne 0x4e036f
mov edx, dword [ebp + 0xc]
test ebx, ebx
je 0x4e036a
lea esi, [ebp - 0x88]
movzx ecx, byte [esi]
lea esi, [esi + 1]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, byte [eax + 0x61467c]
mov byte [edx], al
movzx eax, byte [ecx + 0x61467c]
mov byte [edx + 1], al
add edx, 2
sub ebx, 2
jne 0x4e0341
mov byte [edx], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0x2b
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e5630
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
lea esi, [ebx + 1]
push esi
push ebx
call dword [0x68dc24]
mov edi, eax
add esp, 8
test edi, edi
je 0x4e568a
nop dword [eax]
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x4e56a6
cmp esi, ebx
je 0x4e56a6
cmp esi, 0x8000
ja 0x4e56a6
cmp esi, ebx
jb 0x4e569d
push esi
push edi
call dword [0x68dc24]
mov edi, eax
add esp, 8
test edi, edi
jne 0x4e5650
mov ebx, dword [ebp - 4]
push ebx
call dword [0x68dc20]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [0x68dc20]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ed0f0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push dword [ebp + 0x10]
call fcn.004d0110
mov esi, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], ebx
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea ecx, [ecx + edx*2]
add ecx, 0xc
push ecx
call dword [0x68dc1c]
mov edi, eax
add esp, 8
test edi, edi
je 0x4ed250
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x4ed16e
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [ebp + 0xc]
push ebx
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp + 0xc], eax
push eax
mov eax, dword [esi + 8]
call eax
mov eax, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [ebp - 4], eax
mov eax, dword [esi]
push ecx
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp - 4]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x4ed1cb
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
nop dword [eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp - 4], 1
jne 0x4ed190
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x4ed1f7
mov eax, dword [esi + 4]
push 1
push 0x616629
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push str.iphlpapi.dll
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x4ed1d0
push dword [ebp + 0x18]
call fcn.004d0110
mov ecx, dword [edi]
push eax
push dword [ebp + 0x14]
push dword [edi + 4]
mov eax, dword [ecx + 4]
call eax
mov esi, dword [ebp + 0x1c]
add esp, 0x10
mov ebx, dword [edi]
test esi, esi
jne 0x4ed21f
mov esi, dword [ebx + 0xc]
add esi, dword [edi + 8]
push dword [edi + 4]
mov eax, dword [ebx + 8]
push esi
call eax
push dword [ebx + 0x14]
mov eax, dword [ebx + 4]
push esi
push dword [edi + 8]
call eax
push dword [edi + 8]
mov eax, dword [ebx + 8]
push esi
call eax
push edi
call dword [0x68dc20]
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x1b
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ed2f0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x6a1d84]
test eax, eax
je 0x4ed306
inc eax
mov dword [0x6a1d84], eax
xor eax, eax
pop ebp
ret
push ebx
mov ebx, dword [ebp + 8]
mov dword [0x6a1d84], 1
push esi
test bl, 1
je 0x4ed3ae
push 0x61662c
mov dword [0x6a1d8c], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x6a1d8c], eax
test eax, eax
jne 0x4ed345
pop esi
mov eax, 0x16
pop ebx
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNetworkParams
push eax
call esi
mov dword [0x6a1d78], eax
test eax, eax
jne 0x4ed371
push dword [0x6a1d8c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop esi
mov eax, 0x17
pop ebx
pop ebp
ret
push str.GetAdaptersAddresses
push dword [0x6a1d8c]
call esi
push str.advapi32.dll
mov dword [0x6a1d80], eax
mov dword [0x6a1d90], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x6a1d90], eax
test eax, eax
je 0x4ed3ae
push str.SystemFunction036
push eax
call esi
mov dword [0x6a1d7c], eax
pop esi
mov dword [0x6a1d88], ebx
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4ede60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esi], 0
call fcn.004f17d0
cmp eax, 3
jne 0x4edf56
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesTcpipParameters
push reloc.WS2_32.dll_bind
mov dword [ebp + 8], 0
mov dword [esi], 0
call ebx
test eax, eax
jne 0x4ee027
push esi
push str.NameServer
push dword [ebp - 4]
call fcn.004ee030
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4edf34
push esi
push str.DhcpNameServer
push dword [ebp - 4]
call fcn.004ee030
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4edf34
lea eax, [ebp + 8]
push eax
push 9
push edi
push str.Interfaces
push dword [ebp - 4]
call ebx
test eax, eax
je 0x4edf0a
push dword [ebp - 4]
mov dword [ebp + 8], edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push str.NameServer
push dword [ebp + 8]
call fcn.004ee0d0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4edf34
push esi
push str.DhcpNameServer
push dword [ebp + 8]
call fcn.004ee0d0
add esp, 0xc
mov edi, eax
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4edf44
push eax
call ebx
push dword [ebp - 4]
call ebx
test edi, edi
je 0x4ee027
jmp 0x4edffd
cmp eax, 2
jne 0x4ee027
lea eax, [ebp + 8]
mov dword [esi], 0
push eax
push 0x20019
push 0
push str.SystemCurrentControlSetServicesVxDMSTCP
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4ee027
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push str.NameServer
push edi
call ebx
test eax, eax
je 0x4edfb8
cmp eax, 0xea
jne 0x4ee01e
mov eax, dword [ebp - 4]
test eax, eax
je 0x4ee01e
inc eax
push eax
call fcn.005b38c6
add esp, 4
mov dword [esi], eax
test eax, eax
je 0x4ee01e
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 8]
push eax
push 0
push str.NameServer
push edi
call ebx
test eax, eax
jne 0x4ee00e
mov ecx, dword [ebp - 4]
cmp ecx, 1
je 0x4ee00e
mov eax, dword [esi]
mov byte [ecx + eax], 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi], 0
je 0x4ee027
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi]
call fcn.005b78c8
add esp, 4
mov dword [esi], 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret