joyce8/EMBER2024-capa huggingface dataset:
Function at 0x64d7c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push 0
mov byte [ebp + 0xa], cl
lea ecx, [ebp + 8]
push 3
mov eax, dword [esi + 0xc]
push ecx
mov byte [ebp + 8], 0xff
mov byte [ebp + 9], bl
push dword [eax + 0x150]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x64d808
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00624ee0
add esp, 0xc
push dword [ebp + 0x10]
push ebx
push str.SENT
push esi
call fcn.0064d070
add esp, 0x10
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0xc], 0x1f
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x134]
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
jne 0x64da9d
push edi
lea ecx, [eax + 0x1cb4]
lea edi, [eax + 0x1eb4]
mov dword [edi], ecx
cmp ecx, edi
jae 0x64d990
mov byte [ecx], 0xff
inc ecx
mov dword [edi], ecx
cmp ecx, edi
jae 0x64d990
mov byte [ecx], 0xfa
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x64d990
mov byte [ecx], 0x1f
inc dword [edi]
movzx eax, word [eax + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x1caa]
push eax
call esi
mov edx, dword [ebp + 8]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x64d9fc
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x64d9fc
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x64d9fc
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x64d9fc
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x64d9fc
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x64d9fc
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov esi, dword [ebp - 4]
mov dword [esi + 0x1eb8], eax
lea ecx, [esi + 0x1cb4]
sub eax, ecx
mov dword [edi], ecx
sub eax, 2
push eax
lea eax, [esi + 0x1cb6]
push eax
push 0x3e
push ebx
call fcn.0064d170
add esp, 0x10
lea eax, [esi + 0x1cb4]
push 0
push 3
push eax
mov eax, dword [ebp - 8]
push dword [eax + 0x150]
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x64da5a
call edi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00624ee0
add esp, 0xc
push 4
lea eax, [esi + 0x1cb7]
push eax
push ebx
call fcn.0064d820
add esp, 0xc
lea eax, [esi + 0x1cbb]
push 0
push 2
push eax
mov eax, dword [ebp - 8]
push dword [eax + 0x150]
call dword [sym.imp.WS2_32.dll_send]
pop esi
test eax, eax
jns 0x64da9c
call edi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00624ee0
add esp, 0xc
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x64ebd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x745694]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax + 0x320]
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [edi + 0x13c]
lea esi, [edi + 0x148]
push 0
add eax, 4
push eax
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi + 0x130], 0
mov dword [edi + 0x134], eax
jne 0x64ec5e
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [edi + 0xb0]
push eax
call fcn.0065fd30
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [edi + 0x130], eax
mov edx, dword [edi + 0x134]
cmp edx, 4
jge 0x64ec91
push str.Received_too_short_packet
push ebx
call fcn.00624ee0
add esp, 8
mov dword [edi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0065cc3a
mov esp, ebp
pop ebp
ret
push esi
call fcn.0064e7e0
movzx eax, ax
add esp, 4
mov dword [edi + 0xc], eax
dec eax
cmp eax, 5
ja case.0x64ecaa.1
jmp dword [eax*4 + 0x64edec]
cmp edx, 4
jle case.0x64ecaa.4
push esi
call fcn.0064e7c0
movzx ecx, word [edi + 0x144]
add esp, 4
inc ecx
cmp cx, ax
jne case.0x64ecaa.4
lea eax, [edx - 4]
push eax
mov eax, dword [esi]
add eax, 4
push eax
push 1
push ebx
call fcn.00624e30
mov esi, eax
add esp, 0x10
test esi, esi
je 0x64ed0d
push 5
push edi
call fcn.0064f640
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0065cc3a
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x134]
sub eax, 4
cdq
add dword [ebx + 0x90], eax
adc dword [ebx + 0x94], edx
push dword [ebx + 0x94]
push dword [ebx + 0x90]
push ebx
call fcn.00632330
jmp 0x64edb5
mov eax, dword [esi]
lea esi, [edx - 4]
add eax, 4
mov dword [ebp - 0x8c], eax
lea eax, [edi + 0x148]
push eax
call fcn.0064e7c0
push esi
push dword [ebp - 0x8c]
movzx eax, ax
mov dword [edi + 8], eax
call fcn.0064f770
add esp, 0xc
cmp eax, esi
jae case.0x64ecaa.4
push dword [ebp - 0x8c]
push str.TFTP_error:__s
push ebx
call fcn.00624fa0
jmp 0x64edb5
lea eax, [edx - 2]
push eax
mov eax, dword [esi]
add eax, 2
push eax
push edi
call fcn.0064e9a0
add esp, 0xc
test eax, eax
je case.0x64ecaa.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0065cc3a
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x72aac4
push ebx
call fcn.00624ee0
add esp, 0xc
push ebx
call fcn.00632640
add esp, 4
test eax, eax
je 0x64ec7e
push 5
push edi
call fcn.0064f640
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x2a
pop edi
pop esi
pop ebx
call fcn.0065cc3a
mov esp, ebp
pop ebp
ret
Function at 0x64f640
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 0x10]
cmp edx, 3
ja case.default.0x64f650
jmp dword [edx*4 + 0x64f6a4]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0064f0f0
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0064ee10
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0064f8a0
push str.TFTP_finished
push 0x72aac4
push ecx
call fcn.00624fa0
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x72aac4
push ecx
call fcn.00624ee0
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x65a3d0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x65a403
push 0x2e
push edi
call fcn.00660f40
add esp, 8
test eax, eax
je 0x65a401
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x65bdd0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x74564c]
mov edi, eax
add esp, 4
test edi, edi
jne 0x65bdfd
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x65be47
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov ecx, dword [edi + 4]
mov dword [ebp + 0x10], ebx
jmp 0x65be4d
mov eax, dword [ebp + 0xc]
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 + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x65beab
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop dword [eax + 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 + 0x10], 1
jne 0x65be70
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x65bed7
mov eax, dword [esi + 4]
push 1
push 0x6ac87c
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x6ac87d
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x65beb0
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x67c76e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0067c5e4

Function at 0x67f270
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0067edc3
Function at 0x4019c0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [0x4370c0], 0x24e1
mov eax, dword [0x4370c0]
sub eax, 0x24e1
mov dword [0x4370c0], eax
mov ecx, 1
test ecx, ecx
je 0x401a6b
mov edx, dword [0x4370c0]
cmp edx, dword [ebp + 0xc]
jb 0x4019f7
jmp 0x401a6b
cmp dword [0x4370c0], 0
jne 0x401a15
push 0x263
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
test eax, eax
je 0x401a15
xor eax, eax
jmp 0x401a6b
mov eax, dword [ebp + 8]
add eax, dword [0x4370c0]
mov ecx, dword [eax]
add ecx, dword [0x4370c0]
mov edx, dword [ebp + 8]
add edx, dword [0x4370c0]
mov dword [edx], ecx
mov dword [ebp - 4], 0x156
mov eax, dword [0x4370c0]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax + 2]
push edx
mov eax, dword [ebp + 8]
add eax, dword [0x4370c0]
push eax
call fcn.004011d0
add esp, 8
mov ecx, dword [0x4370c0]
add ecx, 4
mov dword [0x4370c0], ecx
jmp 0x4019dd
mov esp, ebp
pop ebp
ret

Function at 0x401a70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov dword [ebp - 0x114], str._ffffffffffffffff
mov eax, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x11c], eax
push 0x104
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, dword [ebp - 0x114]
push edx
lea eax, [ebp - 0x110]
push eax
call dword [ebp - 0x11c]
push 0
push 0x80
push 3
push 0
push 3
push 1
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x118], eax
cmp dword [ebp - 0x118], 0xffffffff
je 0x401aea
cmp dword [ebp - 0x118], 0
je 0x401aea
jmp 0x401b4c
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0
je 0x401b4c
mov dword [ebp - 0x120], 0x3c41
mov eax, dword [ebp + 8]
add eax, 8
mov dword [0x4370b4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [0x4370d0], edx
mov dword [ebp - 0x120], 0x3c41
mov dword [ebp - 0x120], 0x3c41
jmp 0x45b01e
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0xe51ea0
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [esi + 0x68], al
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], eax
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], eax
cmp dword [ecx + 0x18], 0x10
mov eax, dword [ecx + 0x14]
jb 0xe51ee9
mov ecx, dword [ecx + 4]
push ecx
mov ecx, esi
call fcn.00e51f00
mov eax, esi
ret
add ecx, 4
push ecx
mov ecx, esi
call fcn.00e51f00
mov eax, esi
ret

Function at 0xe53000
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push ebx
lea ecx, [esp + 8]
push ecx
mov ecx, dword [eax + 0x20c]
lea edx, [esp + 8]
push edx
push 0
or ecx, 0x20006
push ecx
push 0
push 0
push 0
lea edx, [eax + 4]
mov eax, dword [eax]
push edx
push eax
xor bl, bl
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0xe53069
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push 3
push eax
mov eax, dword [esp + 0x14]
push str.6FE14B1E_464E_4942_85C4_5426E2E522B1
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0xe53069
mov bl, 1
mov eax, dword [esp + 4]
test eax, eax
je 0xe53083
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
add esp, 8
ret 8
Function at 0xe53700
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0xf123b9
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0xf387a0]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0xf387a0]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x70]
mov ebx, ecx
xor edi, edi
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebx
mov dword [esp + 0x18], edi
mov esi, 1
push ebp
mov dword [esp + 0x6c], esi
call fcn.00e83a60
mov dword [esp + 0x18], esi
cmp ebx, edi
je 0xe538e2
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0xe53766
sub eax, edx
sar eax, 1
mov dword [esp + 0x14], eax
cmp dword [esp + 0x88], eax
jb 0xe538e2
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x7c]
xor eax, eax
push ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], edi
mov word [esp + 0x50], ax
call fcn.00e51940
mov byte [esp + 0x68], 2
cmp dword [esp + 0x54], edi
jbe 0xe538ce
jmp 0xe537c4
mov ebx, dword [esp + 0x38]
mov eax, ebx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0xe537d0
sub eax, edx
sar eax, 1
push ebx
mov ebx, eax
xor eax, eax
lea edx, [esp + 0x44]
call fcn.00e53a30
mov esi, eax
cmp esi, edi
jl 0xe538a9
cmp dword [esp + 0x58], 8
mov eax, dword [esp + 0x44]
jae 0xe53806
lea eax, [esp + 0x44]
push esi
xor edx, edx
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], edi
mov word [esp + 0x28], dx
call fcn.00e51cc0
lea eax, [esp + 0x1c]
push eax
mov ebx, ebp
mov byte [esp + 0x6c], 3
call fcn.00e53980
mov bl, 2
mov byte [esp + 0x68], bl
cmp dword [esp + 0x34], 8
jb 0xe5384f
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00eb98f8
add esp, 4
mov eax, dword [esp + 0x14]
push 0xffffffffffffffff
add esi, eax
push esi
lea ecx, [esp + 0x48]
xor edx, edx
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], edi
mov word [esp + 0x2c], dx
call fcn.00e51940
push 0xffffffffffffffff
push edi
lea edx, [esp + 0x24]
push edx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x74], 4
call fcn.00e51940
mov byte [esp + 0x68], bl
cmp dword [esp + 0x34], 8
jb 0xe538c4
mov eax, dword [esp + 0x20]
push eax
call fcn.00eb98f8
add esp, 4
jmp 0xe538c4
lea ecx, [esp + 0x40]
push ecx
mov ebx, ebp
call fcn.00e53980
push edi
push 0xf24e48
lea ecx, [esp + 0x48]
call fcn.00e51cc0
cmp dword [esp + 0x54], edi
ja 0xe537c0
cmp dword [esp + 0x58], 8
jb 0xe538e2
mov edx, dword [esp + 0x44]
push edx
call fcn.00eb98f8
add esp, 4
cmp dword [esp + 0x8c], 8
jb 0xe538f9
mov eax, dword [esp + 0x78]
push eax
call fcn.00eb98f8
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00eb9637
add esp, 0x58
ret
Function at 0xe54630
Capabilities:
Check os version

Disassembly:
sub esp, 0x130
mov eax, dword [0xf387a0]
xor eax, esp
mov dword [esp + 0x12c], eax
mov eax, dword [0xf3bfbc]
push ebp
xor ebp, ebp
push esi
mov esi, 0x20
cmp eax, ebp
jne 0xe54900
push ebx
push edi
push str.IsWow64Process
push str.kernel32
mov dword [0xf3bfbc], ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov edi, eax
cmp edi, ebp
je 0xe54693
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
cmp dword [esp + 0x18], ebp
je 0xe5469e
mov esi, 0x40
push str.ntdll.dll
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebp
je 0xe548f9
push str.RtlGetNtVersionNumbers
push edi
call ebx
cmp eax, ebp
je 0xe548f2
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push ecx
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x14]
cmp eax, 4
jne 0xe54715
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0xe54706
cmp eax, 0xa
je 0xe54706
cmp eax, 0x5a
jne 0xe548f9
mov dword [0xf3bfbc], 1
jmp 0xe548f9
cmp eax, 5
jne 0xe5479f
mov eax, dword [esp + 0x10]
cmp eax, ebp
jne 0xe54735
mov dword [0xf3bfbc], 2
jmp 0xe548f9
cmp eax, 1
jne 0xe54768
cmp si, 0x20
jne 0xe5474f
mov dword [0xf3bfbc], 4
jmp 0xe548f9
cmp si, 0x40
jne 0xe548f9
mov dword [0xf3bfbc], 8
jmp 0xe548f9
cmp eax, 2
jne 0xe548f9
cmp si, 0x20
jne 0xe54786
mov dword [0xf3bfbc], 0x10
jmp 0xe548f9
cmp si, 0x40
jne 0xe548f9
mov dword [0xf3bfbc], 0x20
jmp 0xe548f9
cmp eax, 6
jne 0xe548cc
mov eax, dword [esp + 0x10]
cmp eax, ebp
jne 0xe54840
push 0x11c
lea edx, [esp + 0x24]
push ebp
push edx
call fcn.00ec1460
add esp, 0xc
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp byte [esp + 0x13a], 3
jne 0xe54812
cmp si, 0x20
jne 0xe547f9
mov dword [0xf3bfbc], 0x100
jmp 0xe548f9
cmp si, 0x40
jne 0xe548f9
mov dword [0xf3bfbc], 0x200
jmp 0xe548f9
cmp si, 0x20
jne 0xe54827
mov dword [0xf3bfbc], 0x40
jmp 0xe548f9
cmp si, 0x40
jne 0xe548f9
mov dword [0xf3bfbc], 0x80
jmp 0xe548f9
cmp eax, 1
jne 0xe54873
cmp si, 0x20
jne 0xe5485a
mov dword [0xf3bfbc], 0x400
jmp 0xe548f9
cmp si, 0x40
jne 0xe548f9
mov dword [0xf3bfbc], 0x800
jmp 0xe548f9
cmp eax, 2
jne 0xe5489c
cmp si, 0x20
jne 0xe5488a
mov dword [0xf3bfbc], 0x1000
jmp 0xe548f9
cmp si, 0x40
jne 0xe548f9
mov dword [0xf3bfbc], 0x2000
jmp 0xe548f9
cmp eax, 3
jne 0xe548c5
cmp si, 0x20
jne 0xe548b3
mov dword [0xf3bfbc], 0x4000
jmp 0xe548f9
cmp si, 0x40
jne 0xe548f9
mov dword [0xf3bfbc], 0x8000
jmp 0xe548f9
cmp eax, 4
jb 0xe548f9
jmp 0xe548ce
jbe 0xe548f9
cmp si, 0x20
jne 0xe548e0
mov dword [0xf3bfbc], 0x10000
jmp 0xe548f9
cmp si, 0x40
jne 0xe548f9
mov dword [0xf3bfbc], 0x20000
jmp 0xe548f9
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0xf3bfbc]
pop edi
pop ebx
mov ecx, dword [esp + 0x134]
pop esi
pop ebp
xor ecx, esp
call fcn.00eb9637
add esp, 0x130
ret
Function at 0xe54920
Capabilities:
Get session user name

Disassembly:
sub esp, 0x210
mov eax, dword [0xf387a0]
xor eax, esp
mov dword [esp + 0x20c], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.00ec1460
add esp, 0xc
lea edx, [esp]
push edx
lea eax, [esp + 8]
push eax
mov dword [esp + 8], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea ecx, [esp + 4]
push str.SYSTEM
push ecx
call fcn.00eb9e49
mov ecx, dword [esp + 0x214]
add esp, 8
neg eax
sbb eax, eax
xor ecx, esp
inc eax
call fcn.00eb9637
add esp, 0x210
ret

Function at 0xe54a20
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
lea eax, [esi + 0x14]
push edi
push eax
xor ebx, ebx
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esi + 0xc], 0x3e8
mov dword [esi + 0x10], ebx
cmp dword [esi + 8], ebx
jne 0xe54a51
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0xe54aae
mov eax, dword [esi + 4]
cmp eax, ebx
je 0xe54a79
push 1
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0xe54a79
mov eax, dword [esi + 4]
push eax
call edi
mov dword [esi + 4], ebx
cmp dword [esi + 4], ebx
jne 0xe54a97
push ebx
push ebx
push esi
push 0xe54ae0
push ebx
push ebx
call fcn.00ebb665
add esp, 0x18
mov dword [esi + 4], eax
cmp eax, ebx
je 0xe54aae
mov ecx, dword [esp + 8]
push ecx
mov byte [esi + 0x2c], 1
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov al, bl
pop ebx
pop ecx
ret
mov eax, dword [esi + 8]
cmp eax, ebx
je 0xe54abb
push eax
call edi
mov dword [esi + 8], ebx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0xe54ac8
push eax
call edi
mov dword [esi + 4], ebx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov al, bl
pop ebx
pop ecx
ret
Function at 0xe56640
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [esi + 8]
push eax
push 1
push ecx
push edi
call fcn.00eba397
mov ecx, dword [esi + 8]
add esp, 0x10
cmp eax, 1
mov eax, ecx
sete bl
cdq
idiv dword [esi + 0x18]
mov byte [esp + 0x12], bl
mov dword [esi + 0x1c], eax
test bl, bl
je 0xe567b9
add dword [esi + 0x14], ecx
cmp dword [esi + 0x54], 8
push 0xffffffffffffffff
push eax
push 0x18
push ecx
mov ecx, esp
jb 0xe56693
mov eax, dword [esi + 0x40]
jmp 0xe56696
lea eax, [esi + 0x40]
mov dword [ecx], eax
push ecx
mov eax, esp
mov dword [eax], str.read
lea eax, [esi + 0x20]
push eax
mov dword [esp + 0x2c], eax
call fcn.00e54cc0
mov ecx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
add esp, 0x18
xor ebp, ebp
xor eax, eax
cmp ecx, 1
sete byte [esp + 0x13]
test ebx, ebx
je 0xe56754
xor edx, edx
dec ebx
cmp byte [esp + 0x13], dl
je 0xe566d8
cmp byte [edi], dl
jmp 0xe566dc
cmp word [edi], 0
sete dl
test edx, edx
je 0xe56706
test eax, eax
je 0xe566ff
cmp edi, eax
je 0xe566ff
imul ecx, ebp
mov edx, edi
sub edx, eax
push edx
push eax
sub eax, ecx
push eax
call fcn.00ebbb40
add esp, 0xc
mov ecx, dword [esi + 0x18]
lea eax, [ecx + edi]
inc ebp
add edi, ecx
test ebx, ebx
jne 0xe566cb
test eax, eax
je 0xe56729
cmp edi, eax
je 0xe56729
mov ecx, dword [esi + 0x18]
imul ecx, ebp
sub edi, eax
push edi
push eax
sub eax, ecx
push eax
call fcn.00ebbb40
add esp, 0xc
test ebp, ebp
je 0xe56754
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push ebp
push 1
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
push edx
mov dword [eax], str.nulls_removed
call fcn.00e54cc0
add esp, 0x18
sub dword [esi + 0x1c], ebp
cmp dword [esi + 0x18], 1
jle 0xe567ab
test byte [esi + 4], 0x80
je 0xe567ab
mov esi, dword [esi + 0x1c]
test esi, esi
je 0xe56786
jmp 0xe56770
mov ecx, dword [esp + 0x1c]
movzx eax, word [ecx + esi*2 - 2]
dec esi
rol ax, 8
mov word [ecx + esi*2], ax
test esi, esi
jne 0xe56770
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
mov dword [eax], 0
push ecx
mov eax, esp
mov dword [eax], str.endian_swap
mov eax, dword [esp + 0x28]
push eax
call fcn.00e54cc0
add esp, 0x18
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
push esi
call fcn.00e56420
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 8
ret 4