joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ee6e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov eax, dword [esp + 0x10]
mov ebp, esp
push esi
push edi
mov esi, dword [ebp + 0xc]
shr esi, 2
mov edx, dword [ebp + 8]
mov ecx, esi
dec esi
test ecx, ecx
jle 0x40eeaf
movzx edi, byte [edx]
inc edx
movzx ecx, byte [edx]
shl ecx, 8
inc edx
or edi, ecx
movzx ecx, byte [edx]
shl ecx, 0x10
inc edx
or edi, ecx
movzx ecx, byte [edx]
shl ecx, 0x18
inc edx
or edi, ecx
mov ecx, esi
xor eax, edi
dec esi
test ecx, ecx
jg 0x40ee87
xor esi, esi
mov ecx, dword [ebp + 0xc]
and ecx, 3
cmp ecx, 1
je 0x40eed6
cmp ecx, 2
je 0x40eecd
cmp ecx, 3
jne 0x40eedb
movzx esi, byte [edx]
shl esi, 0x10
inc edx
movzx ecx, byte [edx]
shl ecx, 8
inc edx
or esi, ecx
movzx ecx, byte [edx]
or esi, ecx
xor eax, esi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4028cc
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x40b008], 0x8088405
inc edx
mov dword [ebx + 0x40b008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402d90
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40b018]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402e28
push 0x80000002
call sub.user32.dll_GetSystemMetrics
test eax, eax
jne 0x402e08
xor eax, eax
push ebp
push 0x402e01
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402e44
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_GetWindowTextA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402e08
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_GetWindow
ret
mov ax, word [0x40b018]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40b018], ax
mov esp, ebp
pop ebp
ret
Function at 0x40422c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call fcn.004010c8
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40445c
push 0x80000001
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x4042af
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40445c
push 0x80000002
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x4042af
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404478
push 0x80000001
call sub.user32.dll_GetSystemMetrics
test eax, eax
jne 0x404338
xor eax, eax
push ebp
push 0x404331
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404074
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_GetWindowTextA
test eax, eax
je 0x404316
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404498
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_GetWindowTextA
test eax, eax
je 0x404316
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404338
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_GetWindow
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call fcn.00401100
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call fcn.004010e8
push eax
call fcn.004010c0
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404452
cmp byte [ebp - 0xd], 0
jne 0x40437f
cmp byte [ebp - 0x12], 0
je 0x404452
lea eax, [ebp - 0x11d]
push eax
call fcn.00401108
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404398
dec ebx
cmp byte [ebx], 0x2e
je 0x4043a7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404397
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404452
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4043e4
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call fcn.00401100
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call fcn.004010f0
mov esi, eax
test esi, esi
jne 0x404452
cmp byte [ebp - 0xd], 0
je 0x404452
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call fcn.00401100
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call fcn.004010f0
mov esi, eax
test esi, esi
jne 0x404452
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call fcn.00401100
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call fcn.004010f0
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4090e0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00403cc0
mov eax, dword [ebp - 8]
call fcn.00403cc0
mov eax, dword [ebp + 8]
call fcn.00403cc0
xor eax, eax
push ebp
push 0x409198
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403cd0
push eax
push esi
call sub.advapi32.dll_RegCloseKey
test eax, eax
jne 0x409175
mov eax, dword [ebp + 8]
call fcn.00403ad0
inc eax
push eax
mov eax, dword [ebp + 8]
call fcn.00403cd0
push eax
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.00403cd0
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40919f
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403874
lea eax, [ebp + 8]
call fcn.00403850
ret

Function at 0x409204
Capabilities:
Persist via winlogon helper dll registry key

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
xor eax, eax
push ebp
push 0x40926e
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409284
lea eax, [ebp - 8]
call fcn.004091ac
push dword [ebp - 8]
push 0x40929c
lea eax, [ebp - 4]
mov edx, 3
call fcn.00403b90
mov eax, dword [ebp - 4]
push eax
mov ecx, 0x4092bc
mov edx, 0x4092cc
mov eax, 0x80000002
call fcn.004090e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409275
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403874
ret
Function at 0x40965c
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x409665
mov eax, dword [ebp - 4]
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403cc0
xor eax, eax
push ebp
push 0x409831
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x4097fe
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
mov edx, 0x409848
call fcn.004038a4
lea eax, [ebp - 0x10]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x409860
call fcn.00403d68
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00403ad0
mov ecx, eax
mov eax, dword [ebp - 4]
pop edx
call fcn.00403d28
mov edx, dword [ebp - 4]
mov eax, 0x409860
call fcn.00403d68
test eax, eax
je 0x409709
lea eax, [ebp - 4]
push eax
mov edx, dword [ebp - 4]
mov eax, 0x409860
call fcn.00403d68
mov ecx, eax
dec ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00403d28
push 0
push 0
push 0
push 0
push 0x409864
call sub.wininet.dll_InternetOpenA
mov ebx, eax
test ebx, ebx
je 0x4097ee
push 0
push 0
push 3
push 0
push 0
push 0x50
mov eax, dword [ebp - 4]
call fcn.00403cd0
push eax
push ebx
call sub.wininet.dll_InternetConnectA
mov esi, eax
test esi, esi
je 0x4097ee
push 1
push 0x400000
push 0
push 0
push 0
mov eax, dword [ebp - 0x10]
call fcn.00403cd0
push eax
push 0x4098ac
push esi
call sub.wininet.dll_HttpOpenRequestA
mov esi, eax
test esi, esi
je 0x4097ee
push 0
push 0
push 0
push 0
push esi
call sub.wininet.dll_HttpSendRequestA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4097ee
lea eax, [ebp - 0x10014]
xor ecx, ecx
mov edx, 0x10000
call fcn.004028ac
lea eax, [ebp - 0x14]
push eax
push 0x10000
lea eax, [ebp - 0x10014]
push eax
push esi
call sub.wininet.dll_InternetReadFile
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x4097ee
cmp dword [ebp - 0x14], 0
je 0x4097ee
push 0x10000
call fcn.00404590
pop ecx
mov esi, eax
lea edx, [ebp - 0x10014]
mov ecx, 0x10000
mov eax, esi
call fcn.00404ac0
test esi, esi
je 0x4097ee
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.00403a2c
push ebx
call sub.wininet.dll_InternetCloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x409813
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409838
lea eax, [ebp - 0x10]
call fcn.00403850
lea eax, [ebp - 4]
call fcn.00403850
ret
Function at 0x4098b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403cc0
mov ebx, 0x40c844
xor eax, eax
push ebp
push 0x4099e8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, 0x4099fc
call fcn.004038e8
jmp 0x4099ba
lea eax, [ebp - 0xc]
mov edx, dword [ebx]
call fcn.00403a98
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00403ad8
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 8]
xor edx, edx
call fcn.0040965c
mov eax, dword [ebp - 8]
mov edx, 0x4099fc
call fcn.00403c1c
je 0x409932
mov edx, dword [ebp - 8]
mov eax, 0x409a14
call fcn.00403d68
test eax, eax
jne 0x4099cd
lea eax, [ebp - 0x10]
mov edx, dword [ebx]
add edx, 0x43
call fcn.00403a98
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
xor edx, edx
call fcn.0040965c
mov eax, dword [ebp - 8]
mov edx, 0x4099fc
call fcn.00403c1c
je 0x4099ba
mov edx, dword [ebp - 8]
mov eax, 0x409a28
call fcn.00403d68
test eax, eax
jne 0x4099ba
lea eax, [ebp - 8]
push eax
mov edx, dword [ebp - 8]
mov eax, 0x409a34
call fcn.00403d68
mov ecx, eax
dec ecx
xor edx, edx
mov eax, dword [ebp - 8]
call fcn.00403d28
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00403b1c
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
xor edx, edx
call fcn.0040965c
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 8]
call fcn.004038e8
push 0x2710
call sub.KERNEL32.DLL_WriteFile
mov eax, dword [ebp - 8]
mov edx, 0x4099fc
call fcn.00403c1c
je 0x4098ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4099ef
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.00403874
ret
Function at 0x409eb4
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library
Start tcp server

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov eax, 0x409e34
call fcn.00404858
mov esi, 0x40c9dc
mov edi, 0x40ca00
call fcn.00408f8c
test al, al
je 0x40a043
mov edx, 0x40a04c
mov eax, 0x40a050
call fcn.004091d4
mov dword [0x40c844], eax
push 0x40c848
push 0
push 0
push 0x4094d4
push 0
push 0
call fcn.0040496c
push eax
call fcn.0040492c
mov dword [0x40ca10], 0x94
push 0x40ca10
call fcn.004049f4
cmp dword [0x40ca1c], 0xa28
jne 0x409f4c
push 0x40ca0c
push 0
push 0
push 0x408d40
push 0
push 0
call fcn.0040496c
push eax
call fcn.0040492c
call fcn.004027d8
mov eax, 0xd6d8
call fcn.004028cc
add ax, 0x2710
mov word [0x40b2cc], ax
push 0x40ca08
push 0
push 0
push 0x409d50
push 0
push 0
call fcn.0040496c
push eax
call fcn.0040492c
push 0x40c84c
mov dl, 2
mov al, 2
call fcn.00404aac
push eax
call sub.wsock32.dll_WSAStartup
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x409fb2
mov eax, 0x40a05c
call fcn.00408f64
mov word [0x40c9e0], 2
mov ax, word [0x40b2cc]
push eax
call sub.wsock32.dll_htons
mov word [0x40c9e2], ax
push 0
call sub.wsock32.dll_htonl
mov dword [0x40c9e4], eax
push 0x10
push 0x40c9e0
push ebx
call sub.wsock32.dll_bind
inc eax
jne 0x409ff3
mov eax, 0x40a06c
call fcn.00408f64
push 5
push ebx
call sub.wsock32.dll_listen
mov dword [edi], 0x10
push edi
push 0x40c9f0
push ebx
call sub.wsock32.dll_accept
mov dword [esi], eax
cmp dword [esi], 0xffffffff
jne 0x40a020
mov eax, 0x40a07c
call fcn.00408f64
jmp 0x409ffb
push 0x40ca04
push 0
push esi
push 0x409a38
push 0
push 0
call fcn.0040496c
push eax
call fcn.0040492c
jmp 0x409ffb
pop edi
pop esi
pop ebx
call fcn.00403760
add byte [edx + 0x49], al
dec esi
add byte [ebx + 0x46], al
inc edi
add bh, bh
invalid
Function at 0x406ccd
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
push esi
xor esi, esi
push edi
mov edi, ecx
mov eax, esi
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmmword [0xeed290]
movups xmmword [edi + eax*4], xmm0
add eax, 4
cmp eax, 0x100
jl 0x406cd7
mov ebp, dword [esp + 0x14]
mov ebx, esi
xor edx, edx
mov eax, ebx
div dword [esp + 0x18]
movzx eax, byte [edx + ebp]
add eax, dword [edi + ebx*4]
add esi, eax
and esi, 0x800000ff
jns 0x406d1d
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [edi + ebx*4]
mov eax, dword [edi + esi*4]
mov dword [edi + ebx*4], eax
inc ebx
movzx eax, cl
mov dword [edi + esi*4], eax
cmp ebx, 0x100
jl 0x406cfc
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x406d3c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x400
lea eax, [esp]
push ebx
push esi
push edi
push 0x400
push ecx
xor esi, esi
push eax
mov edi, esi
call fcn.00436910
mov edx, dword [esp + 0x420]
add esp, 0xc
mov ebx, esi
add edx, 1
je 0x406dcc
push ebp
mov ebp, dword [esp + 0x414]
inc esi
and esi, 0x800000ff
jns 0x406d82
dec esi
or esi, 0xffffff00
inc esi
mov eax, dword [esp + esi*4 + 0x10]
add edi, eax
and edi, 0x800000ff
jns 0x406d98
dec edi
or edi, 0xffffff00
inc edi
mov cl, al
mov eax, dword [esp + edi*4 + 0x10]
mov dword [esp + esi*4 + 0x10], eax
movzx eax, cl
mov dword [esp + edi*4 + 0x10], eax
mov ecx, dword [esp + esi*4 + 0x10]
add ecx, eax
and ecx, 0x800000ff
jns 0x406dbf
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [esp + ecx*4 + 0x10]
xor byte [ebx + ebp], al
inc ebx
cmp ebx, edx
jb 0x406d71
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x400
ret 8
Function at 0x40db60
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040d7dd
Function at 0x401570
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
push ebx
mov ebx, eax
sub esp, 0x4c
mov esi, dword [sym.imp.kernel32.dll_GetTickCount]
call esi
add ebx, eax
call esi
mov ecx, ebx
mov dword [esp + 0x10], 6
sub ecx, eax
mov dword [esp + 0xc], 0x4ff
mov dword [esp + 8], ecx
mov dword [esp + 4], edi
mov dword [esp], 1
call sub.user32.dll_MsgWaitForMultipleObjectsEx
sub esp, 0x14
cmp eax, 1
je 0x4015c1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x34]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.user32.dll_GetMessageW
sub esp, 0x10
cmp dword [0x40e168], 1
jle 0x401617
mov dword [esp + 4], 0xcd
mov dword [esp], str..._wine_dlls_wmp_tests_media.c
call fcn.0040bcb0
mov eax, dword [ebp - 0x30]
mov dword [esp], str.Dispatching__d_n
mov dword [esp + 4], eax
call fcn.0040bf50
lea eax, [ebp - 0x34]
mov dword [esp], eax
call sub.user32.dll_TranslateMessage
lea eax, [ebp - 0x34]
sub esp, 4
mov dword [esp], eax
call sub.user32.dll_DispatchMessageW
sub esp, 4
jmp 0x401587
Function at 0x40ba30
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [esp], 1
call dword [0x40e16c]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll_fflush]
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]

Function at 0x40c400
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x30
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x28]
mov dword [esp + 8], eax
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
lea eax, [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 0x2c], 0
call sub.msvcrt.dll___getmainargs
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll___set_app_type
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.0040cda0
mov dword [esp], eax
call sub.msvcrt.dll_exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
and esp, 0xfffffff0
call sub.msvcrt.dll___iob_func
mov edx, dword [ebp + 8]
leave
shl edx, 5
add eax, edx
ret
Function at 0x41b600
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x808
mov eax, dword [0x41f004]
xor eax, esp
mov dword [esp + 0x804], eax
mov eax, dword [0x4222a4]
imul eax, eax, 0x343fd
cmp dword [0x22c4e8c], 0x139e
mov dword [0x4222a4], eax
jne 0x41b653
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTapePosition]
mov eax, dword [esp]
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_GetAce]
mov eax, dword [0x4222a4]
add eax, 0x269ec3
push esi
mov dword [0x4222a4], eax
movzx esi, word [0x4222a6]
and esi, 0x7fff
cmp dword [0x22c4e8c], 0x8e7
jne 0x41b688
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ecx, dword [esp + 0x808]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00401000
add esp, 0x808
ret

Function at 0x41b710
Capabilities:
Create pipe

Disassembly:
sub esp, 0x24
mov eax, dword [0x41f004]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [0x4201f0]
push ebx
mov ebx, dword [0x22c4830]
push edi
mov edi, dword [0x22c4e8c]
call fcn.0041b6a0
cmp dword [0x22c4e8c], 0x2f
jne 0x41b775
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
call fcn.0041b6d0
mov ecx, dword [esp + 0x24]
pop edi
pop ebx
xor ecx, esp
call fcn.00401000
add esp, 0x24
ret
Function at 0x41bac0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1818
call fcn.00409150
mov eax, dword [0x41f004]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
jmp 0x41bae9
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xbbe2aa2
jge 0x41bb91
cmp dword [0x22c4e8c], 0xa5f
jne 0x41bb35
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0
lea ecx, [ebp - 0x818]
push ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
lea edx, [ebp - 0x1018]
push edx
push str.keminivefayosexerukugufebaponif
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp dword [ebp - 4], 0x84526b
jne 0x41bb5a
mov eax, dword [0x421010]
mov dword [0x22c4e8c], eax
mov ecx, dword [0x22c4e8c]
add ecx, 0xa231
mov dword [0x22c4e8c], ecx
cmp dword [0x22c4e8c], 0x141
jne 0x41bb8c
push str.renej_luwoyisawopab_dadabayegutenecisufoba_wozonotuwugewiropoxu_vogiwipeladoxakanahotucucuwi
lea edx, [ebp - 0x1818]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [0x4222a8], 0xec58acac
mov dword [0x4222ac], 0xffffffff
jmp 0x41bae0
call fcn.0041b790
jmp dword [0x22c4830]
Function at 0x405cf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x405d09
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405d44
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x405d40
lea ebx, [ebx]
cmp esi, eax
jae 0x405d44
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x405d30
cmp esi, eax
jb 0x405d4a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x406310
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
push edi
xor esi, esi
call fcn.004062f0
mov eax, dword [esp + 0x24]
add esp, 4
lea edx, [eax + 1]
jmp 0x406330
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406330
sub eax, edx
push 0x484f50
push edi
mov ebp, eax
call fcn.0042a5ac
mov edi, eax
mov eax, dword [esp + 0x24]
push 0x484930
push eax
call fcn.0042a5ac
push edi
mov ebx, eax
call fcn.0042b79c
add esp, 0x14
test eax, eax
jne 0x4063b2
push edi
push 1
lea ecx, [esp + 0x1b]
push 1
push ecx
call fcn.0042b77f
push edi
call fcn.0042b79c
add esp, 0x14
test eax, eax
jne 0x4063a5
mov eax, esi
cdq
idiv ebp
mov eax, dword [esp + 0x20]
push ebx
push 1
push 1
mov cl, byte [edx + eax]
xor byte [esp + 0x1f], cl
lea edx, [esp + 0x1f]
push edx
call fcn.00429dc5
add esp, 0x10
inc esi
push edi
call fcn.0042b79c
add esp, 4
test eax, eax
je 0x406366
push edi
call fcn.00429ebe
push ebx
call fcn.00429ebe
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4063d0
Capabilities:
Delete file

Disassembly:
sub esp, 0x130
mov eax, dword [0x4a1b58]
xor eax, esp
mov dword [esp + 0x12c], eax
push ebp
mov ebp, dword [esp + 0x13c]
push esi
mov esi, dword [esp + 0x13c]
push edi
push 0x484b12
push ebp
call fcn.0040d160
mov edi, eax
add esp, 8
test edi, edi
je 0x406420
push esi
push edi
call fcn.0040b090
add esp, 8
test eax, eax
je 0x40643a
push edi
call fcn.0040d1f0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x12c]
xor ecx, esp
call fcn.0042a4d9
add esp, 0x130
ret
lea eax, [esp + 0xc]
push eax
push 0xffffffffffffffff
push edi
call fcn.0040b040
add esp, 0xc
test eax, eax
jne 0x406417
push ebx
mov ebx, dword [esp + 0x10]
xor esi, esi
test ebx, ebx
jle 0x406480
lea esp, [esp]
lea ecx, [esp + 0x10]
push ecx
push esi
push edi
call fcn.0040b040
lea edx, [esp + 0x20]
push edx
push esi
push edi
call fcn.0040d1d0
inc esi
add esp, 0x18
cmp esi, ebx
jl 0x406460
push edi
call fcn.0040d1f0
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x13c]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.0042a4d9
add esp, 0x130
ret
Function at 0x4064c0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x230
mov eax, dword [0x4a1b58]
xor eax, esp
mov dword [esp + 0x22c], eax
mov eax, dword [esp + 0x234]
push ebx
push esi
push edi
push eax
lea eax, [esp + 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, dword [sym.imp.USER32.dll_CharLowerBuffA]
push 0x104
lea ecx, [esp + 0x138]
push ecx
call ebx
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x406568
lea edx, [esp + 0xc]
push edx
push esi
mov dword [esp + 0x14], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x406561
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push 0x104
lea eax, [esp + 0x38]
push eax
call ebx
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x13c]
push edx
call ebp
test eax, eax
jne 0x406551
inc edi
lea eax, [esp + 0x10]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x406531
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x238]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042a4d9
add esp, 0x230
ret