joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467f9b
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, 0x50cbc8
call fcn.00509d88
sub esp, 0x10
push ebx
push esi
mov esi, ecx
xor ebx, ebx
call fcn.00407a3f
cmp eax, 0xc
jne 0x468080
lea eax, [ebp - 0x14]
push edi
push eax
call fcn.0046742b
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x14]
mov dword [esp], str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar_
push eax
call fcn.00405fe3
mov eax, dword [0x559aac]
mov ecx, 0x559aac
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
push dword [esi]
lea eax, [ebp - 0x18]
push dword [ebp - 0x14]
push str._s_s.lnk
call fcn.00406296
add esp, 0xc
lea edi, [esi + 0x1c]
lea eax, [ebp - 0x18]
call fcn.00404ebe
mov edi, dword [ebp - 0x18]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x10]
push eax
call fcn.00467512
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.004675b0
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x468061
push dword [esi]
lea ecx, [ebp - 0x10]
push str._s.lnk
call fcn.00427e57
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x10]
call fcn.00467f61
add esp, 0x10
push dword [ebp - 0x10]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004058cb
lea eax, [edi - 0x10]
call fcn.004058cb
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004058cb
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x468250
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x55309c]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4682a0
mov ax, word [esp]
cmp al, 2
jne 0x46829a
cmp ah, al
jne 0x46829a
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004f2261
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.004f2261
add esp, 0x194
ret
Function at 0x471fb0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x471fe2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0x39
add eax, 0xffffffff
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x472140
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x140]
test ecx, ecx
je 0x47215b
mov edx, dword [esi + 0xe4]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x47218f
cmp eax, 2
jg 0x47218f
mov ecx, dword [esi + 0xe0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x510d90]
push 2
push edx
call fcn.004eea94
mov eax, dword [esi + 0xe0]
push eax
push 1
push edi
push ebx
call fcn.004eea94
add esp, 0x20
xor eax, eax
ret

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

Disassembly:
mov eax, dword [edi + eax*4 + 0xd4]
push esi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp esi, 0xffffffff
jne 0x472405
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4723eb
xor eax, eax
pop esi
ret
push eax
push edi
call fcn.0047ca10
push eax
mov eax, dword [edi]
push str.Send_failure:__s
push eax
call fcn.00472320
add esp, 0x14
mov eax, esi
pop esi
ret
Function at 0x472a70
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [edi]
movzx eax, byte [esi + 0x286]
push 4
lea ecx, [esp + 8]
push ecx
push 1
push 6
push edx
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x472ab4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0047ca10
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00472290
add esp, 0x14
pop esi
pop ecx
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00472290
add esp, 8
pop esi
pop ecx
ret
Function at 0x472f00
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x458]
cmp eax, 0xffffffff
je 0x472f66
mov ecx, dword [ecx + 0x44c]
mov edx, dword [ecx]
cmp dword [edx + eax*4], 0
lea eax, [edx + eax*4]
je 0x472f66
mov ecx, dword [esp + 0xc]
test ecx, ecx
mov eax, dword [eax]
je 0x472f2c
mov dword [ecx], eax
mov ecx, dword [eax + 0xd4]
push esi
mov esi, dword [esp + 0xc]
mov dword [esi], ecx
cmp byte [eax + 0xdc], 0
jne 0x472f5c
mov eax, dword [eax + 0xd4]
push 2
push 1
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x472f62
mov dword [esi], 0xffffffff
pop esi
xor eax, eax
ret
mov ecx, dword [esp + 8]
mov dword [ecx], 0xffffffff
xor eax, eax
ret
Function at 0x4749c0
Capabilities:
Create thread

Disassembly:
sub esp, 0xc
push ebx
push esi
push 1
push 0x24
call dword [0x552010]
xor ebx, ebx
mov esi, eax
add esp, 8
cmp esi, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
jne 0x4749f2
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
mov eax, dword [edi + 0x2bc]
push ebp
lea ebp, [edi + 0x2bc]
push eax
mov dword [esp + 0x10], ebp
call fcn.004694e0
mov ecx, dword [esp + 0x20]
push ecx
call dword [0x55200c]
add esp, 8
cmp eax, ebx
mov dword [ebp], eax
jne 0x474a39
push esi
call dword [0x552004]
add esp, 4
push 0xc
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
mov edx, dword [esp + 0x20]
push ebx
push 1
mov dword [edi + 0x2c0], edx
mov byte [edi + 0x2c8], bl
mov dword [edi + 0x2cc], ebx
mov dword [edi + 0x2c4], ebx
mov dword [edi + 0x2d0], esi
push ebx
mov dword [esi + 0xc], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
mov dword [esi + 0x10], eax
jne 0x474a76
push ebp
jmp 0x474ac9
mov ebp, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push 1
push ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x14], eax
je 0x474ac4
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
cmp eax, ebx
mov dword [esi + 0x1c], eax
jne 0x474aa1
mov ecx, dword [esp + 0xc]
push ecx
jmp 0x474ac9
push ebx
push ebx
push 1
push ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x20], eax
jne 0x474ab6
mov edx, dword [esp + 0xc]
push edx
jmp 0x474ac9
push ebx
push ebx
push 1
push ebx
call ebp
cmp eax, ebx
mov dword [esi + 0x18], eax
jne 0x474ae2
mov eax, dword [esp + 0xc]
push eax
call fcn.004748e0
add esp, 4
push 0xb
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
lea ecx, [esi + 4]
push ecx
push ebx
push edi
push 0x474810
push ebx
push ebx
call fcn.004efc47
add esp, 0x18
cmp eax, ebx
mov dword [esi], eax
jne 0x474b21
call fcn.004f33b0
mov edx, dword [eax]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0xc]
push eax
call fcn.004748e0
add esp, 4
pop ebp
pop esi
xor al, al
pop ebx
add esp, 0xc
ret
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 0x18]
push edx
push 2
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push ebx
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
pop ebp
mov dword [esi + 0xc], eax
pop esi
mov al, 1
pop ebx
add esp, 0xc
ret
Function at 0x474b60
Capabilities:
Terminate thread

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov ecx, dword [edi]
mov eax, dword [ecx + 0x174]
test eax, eax
mov esi, dword [edi + 0x2d0]
mov dword [esp + 0x14], ecx
jne 0x474b8d
mov eax, dword [ecx + 0x170]
test eax, eax
jne 0x474b8d
mov eax, 0x493e0
push eax
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x10]
push ecx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov edx, dword [esi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
mov eax, dword [esi + 0x14]
push eax
mov dword [esi + 0x10], 0
call ebx
test ebp, ebp
mov dword [esi + 0x14], 0
mov bl, 1
jne 0x474be9
mov ecx, dword [esi]
push 0x1388
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x474c3f
mov edx, dword [esi]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
lea ebp, [esi + 8]
mov byte [edi + 0x2c8], bl
mov dword [ebp], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x474c09
mov edx, dword [edi + 0x2c4]
mov dword [eax], edx
xor esi, esi
cmp dword [edi + 0x2c4], esi
jne 0x474cf0
mov ebp, dword [ebp]
cmp ebp, 0x1b
jne 0x474c5b
push ebp
mov esi, ebp
call fcn.0047c0d0
push eax
mov eax, dword [esp + 0x1c]
push str.Could_not_resolve_host:__s
push eax
call fcn.00472320
add esp, 0x10
jmp 0x474cf0
mov eax, dword [edi + 0x2cc]
push eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esi]
lea ebp, [esi + 8]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
jmp 0x474bf9
cmp byte [edi + 0x2c8], 0
je 0x474cc1
cmp byte [edi + 0x12b], 0
mov ecx, dword [edi + 0x2cc]
push ecx
push edi
je 0x474c9b
call fcn.0047ca10
mov edx, dword [edi + 0xa0]
push eax
mov eax, dword [esp + 0x20]
push edx
push str.Could_not_resolve_proxy:__s___s
push eax
call fcn.00472320
add esp, 0x18
mov esi, 5
jmp 0x474cf0
call fcn.0047ca10
mov edx, dword [edi + 0x8c]
push eax
mov eax, dword [esp + 0x20]
push edx
push str.Could_not_resolve_host:__s___s
push eax
call fcn.00472320
add esp, 0x18
mov esi, 6
jmp 0x474cf0
cmp ebp, 0xffffffff
je 0x474cd2
cmp dword [edi + 0x2cc], 0x2afc
jne 0x474ceb
mov ecx, dword [edi + 0x8c]
mov edx, dword [esp + 0x14]
push ecx
push str.Resolving_host_timed_out:__s
push edx
call fcn.00472320
add esp, 0xc
mov esi, 0x1c
lea eax, [edi + 0x2bc]
push eax
call fcn.004748e0
add esp, 4
cmp dword [edi + 0x2c4], 0
mov eax, esi
jne 0x474d10
mov byte [edi + 0x128], bl
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x474dc0
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 0x10]
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
mov ebx, dword [edi]
lea ecx, [esp + 0x10]
push ecx
push esi
push 2
mov dword [eax], 0
call fcn.0047cc30
add esp, 0xc
test eax, eax
jle 0x474e04
mov edx, dword [esp + 0x18]
push edx
push esi
lea eax, [esp + 0x18]
push eax
push 2
call fcn.00474630
add esp, 0x10
pop edi
pop esi
pop ebx
ret
push ebp
mov ebp, dword [esp + 0x1c]
push ebp
push esi
call fcn.004749c0
add esp, 8
test al, al
je 0x474e28
mov ecx, dword [esp + 0x20]
pop ebp
pop edi
pop esi
mov dword [ecx], 1
xor eax, eax
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
call fcn.0047ca10
push eax
push esi
push str.init_resolve_thread___failed_for__s___s_n
push ebx
call fcn.00472290
add esp, 0x18
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x474e75
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0047ca10
push eax
push ebp
push esi
push str.gethostbyname_2__failed_for__s:_d___s_n
push ebx
call fcn.00472290
add esp, 0x1c
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
ret
push ebp
push eax
call fcn.00474500
add esp, 8
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x478080
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
sub esp, 0x31c
push ebx
mov ebx, dword [esp + 0x324]
push ebp
mov ebp, dword [esp + 0x32c]
push esi
xor esi, esi
cmp ebx, 0xffffffff
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
jne 0x4780c0
cmp ebp, ebx
jne 0x4780c0
mov eax, dword [esp + 0x334]
call fcn.00478060
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
push edi
mov edi, dword [esp + 0x338]
cmp edi, esi
jle 0x4780db
mov esi, edi
call fcn.00479840
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
xor eax, eax
xor ecx, ecx
or edx, 0xffffffff
cmp ebx, 0xffffffff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x124], eax
je 0x47810f
mov ecx, 1
mov dword [esp + 0x128], ebx
mov dword [esp + 0x124], ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ecx
mov edx, ebx
cmp ebp, 0xffffffff
mov dword [esp + 0x228], eax
je 0x478156
test ecx, ecx
mov dword [esp + 0x22c], ebp
mov dword [esp + 0x228], 1
jbe 0x47813e
cmp dword [esp + eax*4 + 0x24], ebp
je 0x47813e
add eax, 1
cmp eax, ecx
jb 0x478131
cmp eax, ecx
jne 0x478150
cmp ecx, 0x40
jae 0x478150
mov dword [esp + eax*4 + 0x24], ebp
add dword [esp + 0x20], 1
cmp ebp, edx
jbe 0x478156
mov edx, ebp
xor ebx, ebx
test edi, edi
setl bl
lea eax, [esp + 0x18]
lea ebp, [edx + 1]
sub ebx, 1
and ebx, eax
lea esp, [esp]
xor eax, eax
cmp edi, eax
jle 0x4781a1
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
imul eax, eax, 0x3e8
mov ecx, esi
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [esp + 0x1c], ecx
jmp 0x4781ab
jne 0x4781ab
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push ebx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x130]
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x478215
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4781de
cmp eax, 0x2714
jne 0x478219
test edi, edi
jle 0x478170
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.00479840
push edx
push eax
call fcn.00479870
mov esi, edi
sub esi, eax
add esp, 0x10
test esi, esi
jg 0x478170
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
test eax, eax
jge 0x478227
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x31c
ret
jne 0x478236
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x31c
ret
mov edi, dword [esp + 0x330]
xor esi, esi
cmp edi, 0xffffffff
je 0x47826d
lea ecx, [esp + 0x124]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47825b
mov esi, 1
lea edx, [esp + 0x20]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47826d
or esi, 4
mov edi, dword [esp + 0x334]
cmp edi, 0xffffffff
je 0x4782a0
lea eax, [esp + 0x228]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x47828e
or esi, 2
lea ecx, [esp + 0x20]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4782a0
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
Function at 0x478cd0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov dword [eax], 0
call fcn.00479840
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0xd0]
push ecx
mov ecx, dword [esi + 0xcc]
push ecx
push edx
push eax
call fcn.00479870
mov ebx, dword [esp + 0x40]
add esp, 0x10
cmp eax, ebx
jg 0x478d85
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
lea ebx, [ebx]
mov edx, ebx
sub edx, eax
mov eax, dword [esp + 0x20]
push edx
push 0xffffffffffffffff
push eax
call fcn.00478080
add esp, 0xc
test eax, eax
jle 0x478d85
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edi
push ebp
push edx
call fcn.00471fb0
add esp, 0x10
test eax, eax
jne 0x478d88
mov eax, dword [esp + 0x14]
cmp edi, eax
je 0x478d90
test eax, eax
je 0x478d85
add dword [esp + 0x10], eax
sub edi, eax
add ebp, eax
call fcn.00479840
mov ecx, dword [esi + 0xd0]
push ecx
mov ecx, dword [esi + 0xcc]
push ecx
push edx
push eax
call fcn.00479870
add esp, 0x10
cmp eax, ebx
jle 0x478d20
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
add eax, edx
pop ebp
mov dword [ecx], eax
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x47a4d0
Capabilities:
Parse pe header

Disassembly:
mov al, byte [esp + 4]
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x47a4df
jmp dword [ecx*4 + 0x47a534]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret

Function at 0x47a6c0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x55309c]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004f393c
add esp, 4
test eax, eax
mov byte [esp], 0
je 0x47a725
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [esp], 0
je 0x47a725
lea edx, [esp]
push edx
call dword [0x55200c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004f2261
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004f2261
add esp, 0x108
ret
jmp 0x47a6c0
Function at 0x47a740
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x55309c]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.004f393c
add esp, 4
test eax, eax
mov byte [esp], 0
je 0x47a725
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp byte [esp], 0
je 0x47a725
lea edx, [esp]
push edx
call dword [0x55200c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004f2261
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.004f2261
add esp, 0x108
ret
jmp 0x47a6c0
Function at 0x47db20
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x88
call fcn.004f26a0
mov eax, dword [0x55309c]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x9c]
push ebx
mov ebx, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x94]
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
push edi
mov edi, dword [esp + 0x9c]
je 0x47db95
cmp ebx, dword [esi]
je 0x47db8c
test edi, edi
je 0x47db72
cmp dword [esp + 0xa0], eax
jge 0x47db8c
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004f2261
add esp, 0x88
ret
mov eax, 1
mov dword [esi], ebx
jmp 0x47db9b
mov ebx, dword [esi]
test ebx, ebx
je 0x47db72
test edi, edi
push ebp
je 0x47dc6d
push ebx
call fcn.00482540
mov ebp, eax
add esp, 4
cmp ebp, 0x80
jle 0x47dbcb
push str.j____int_sizeof_ctx__key_
push 0x74
push str..cryptohmachmac.c
call fcn.004823e0
add esp, 0xc
mov eax, dword [esp + 0xa4]
cmp ebp, eax
jge 0x47dc25
mov ecx, dword [esp + 0x10]
push ecx
lea ebp, [esi + 4]
push ebx
push ebp
call fcn.00481880
add esp, 0xc
test eax, eax
je 0x47dd28
mov edx, dword [esp + 0xa4]
push edx
push edi
push ebp
call fcn.00481a30
add esp, 0xc
test eax, eax
je 0x47dd28
lea edi, [esi + 0x4c]
push edi
lea eax, [esi + 0x50]
push eax
push ebp
call fcn.00481a40
add esp, 0xc
test eax, eax
je 0x47dd28
jmp 0x47dc4a
cmp eax, 0x80
ja 0x47dd28
push eax
lea ecx, [esi + 0x50]
push edi
push ecx
call fcn.004ee5d0
mov edx, dword [esp + 0xb0]
lea edi, [esi + 0x4c]
add esp, 0xc
mov dword [edi], edx
mov edi, dword [edi]
cmp edi, 0x80
je 0x47dc75
mov eax, 0x80
sub eax, edi
push eax
lea ecx, [edi + esi + 0x50]
push 0
push ecx
call fcn.004ec700
add esp, 0xc
jmp 0x47dc75
test eax, eax
je 0x47dd14
xor eax, eax
jmp 0x47dc80
mov dl, byte [esi + eax + 0x50]
xor dl, 0x36
mov byte [esp + eax + 0x14], dl
add eax, 1
cmp eax, 0x80
jl 0x47dc80
mov eax, dword [esp + 0x10]
push eax
lea ebp, [esi + 0x1c]
push ebx
push ebp
call fcn.00481880
add esp, 0xc
test eax, eax
je 0x47dd28
push ebx
call fcn.00482540
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.00481a30
add esp, 0x10
test eax, eax
je 0x47dd28
xor eax, eax
jmp 0x47dcd0
mov dl, byte [esi + eax + 0x50]
xor dl, 0x5c
mov byte [esp + eax + 0x14], dl
add eax, 1
cmp eax, 0x80
jl 0x47dcd0
mov eax, dword [esp + 0x10]
push eax
lea ebp, [esi + 0x34]
push ebx
push ebp
call fcn.00481880
add esp, 0xc
test eax, eax
je 0x47dd28
push ebx
call fcn.00482540
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.00481a30
add esp, 0x10
test eax, eax
je 0x47dd28
lea edx, [esi + 0x1c]
push edx
add esi, 4
push esi
call fcn.00481ba0
add esp, 8
test eax, eax
jne 0x47dd2c
xor eax, eax
jmp 0x47dd31
mov eax, 1
mov ecx, dword [esp + 0x94]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004f2261
add esp, 0x88
ret
Function at 0x4822a0
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.004f26a0
mov eax, dword [0x55309c]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x482327
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x482327
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x100
push edx
call fcn.004f3b3d
add esp, 0x10
test eax, eax
jge 0x4822fd
mov eax, 0x100
push 0
lea ecx, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004f2261
add esp, 0x108
ret
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0xff
push edx
call fcn.004f3b3d
add esp, 0x10
mov byte [esp + 0x107], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4823b5
call fcn.00482160
test eax, eax
jle 0x4823b5
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 1
push 0
push 0
push 0
mov esi, eax
push 1
lea eax, [esp + 0x28]
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004f2261
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.004f2261
add esp, 0x108
ret
Function at 0x4d3ee0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x4d3ef9
mov esi, edi
mov edi, eax
jmp 0x4d3efb
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x4d3f0b
mov eax, ebx
jmp 0x4d3f15
push eax
push ebx
call fcn.0048d490
add esp, 8
test eax, eax
jne 0x4d3f1d
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x4d3f3b
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [edi + 4]
jl 0x4d3f24
cmp eax, dword [esi + 4]
jge 0x4d3f52
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [esi + 4]
jl 0x4d3f40
mov eax, dword [esi + 4]
test eax, eax
mov dword [ebx + 4], eax
jle 0x4d3f75
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x4d3f72
sub eax, 1
test eax, eax
jg 0x4d3f62
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret

Function at 0x4e97b4
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x55309c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004e96f3
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004ec700
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4e9803
cmp dword [ebp - 0x1c], 5
jb 0x4e981b
jmp 0x4e9817
cmp dword [ebp - 0x10], 1
jne 0x4e981b
cmp dword [ebp - 0x1c], 4
ja 0x4e9817
jne 0x4e981b
cmp dword [ebp - 0x18], 0
jbe 0x4e981b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x535b14
call fcn.00407903
test eax, eax
jge 0x4e983c
mov byte [0x55ab58], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004f2261
add ebp, 0x78
leave
ret