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

Disassembly:
push ecx
push ecx
mov edx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi + 0xd4]
mov dword [esp + 4], eax
test edx, edx
je 0x50b8ec
imul eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
imul ecx, dword [esp + 0x28]
push ebx
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
neg eax
add ecx, dword [esp + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
push ebp
push edi
lea edi, [ecx + eax*4]
mov eax, dword [esp + 0x28]
mov ecx, dword [esi + 0xcc]
mov ebp, edi
imul ecx, ebx
add ecx, dword [esi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x50b8cc
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 4]
xor byte [ecx], al
add ecx, esi
dec edx
jne 0x50b8a7
mov edx, dword [esp + 0x3c]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec edx
inc ebx
cmp dword [esi + 0xe8], 0
mov dword [esp + 0x3c], edx
jne 0x50b8e1
add edi, dword [esp + 0x14]
jmp 0x50b8e5
add edi, dword [esp + 0x24]
test edx, edx
jne 0x50b885
pop edi
pop ebp
pop ebx
pop esi
pop ecx
pop ecx
ret 0x24

Function at 0x50bbf7
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 8], edx
test ebx, ebx
je 0x50bcd1
imul eax, dword [esp + 0x1c], 3
mov ecx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
neg ecx
push esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
imul eax, dword [esp + 0x30]
push edi
imul edi, dword [esp + 0x30], 3
mov dword [esp + 0x10], ecx
add eax, dword [esp + 0x20]
add edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x38], edi
mov esi, dword [eax + 0xcc]
imul esi, ebp
mov dword [esp + 0x34], edi
add esi, dword [eax + 0xc8]
add esi, dword [esp + 0x28]
test edx, edx
jle 0x50bca7
mov ebp, dword [esp + 0x34]
mov ebx, 0xff
sub ebx, dword [esp + 0x40]
mov edi, edx
movzx eax, byte [esi]
movzx ecx, byte [ebp]
imul ecx, dword [esp + 0x40]
imul eax, ebx
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
inc ebp
mov byte [esi], al
inc esi
dec edi
jne 0x50bc6f
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
dec ebx
inc ebp
cmp dword [eax + 0xe8], 0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], ebp
jne 0x50bcbe
add edi, ecx
jmp 0x50bcc2
add edi, dword [esp + 0x24]
mov dword [esp + 0x38], edi
test ebx, ebx
jne 0x50bc45
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28
Function at 0x50c2f1
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ecx
push esi
mov esi, dword [esp + 0x30]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi + 0xd4]
mov dword [esp + 8], eax
test esi, esi
je 0x50c3a6
imul eax, dword [esp + 0x20]
imul edx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x28]
push ebp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
neg eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x24]
imul eax, dword [esp + 0x34]
add eax, dword [esp + 0x20]
add edx, eax
mov eax, dword [esp + 0x28]
mov ecx, dword [edi + 0xcc]
mov ebp, edx
imul ecx, ebx
add ecx, dword [edi + 0xc8]
add ecx, eax
cmp dword [esp + 0x38], 0
jle 0x50c387
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x10]
mov al, byte [ebp + 2]
xor byte [ecx + 2], al
mov al, byte [ebp + 1]
xor byte [ecx + 1], al
mov al, byte [ebp]
lea ebp, [ebp + 3]
xor byte [ecx], al
add ecx, edi
dec esi
jne 0x50c362
mov esi, dword [esp + 0x3c]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
dec esi
inc ebx
cmp dword [edi + 0xe8], 0
mov dword [esp + 0x3c], esi
jne 0x50c39c
add edx, dword [esp + 0x14]
jmp 0x50c3a0
add edx, dword [esp + 0x24]
test esi, esi
jne 0x50c340
pop ebp
pop ebx
pop edi
pop esi
pop ecx
pop ecx
ret 0x24
Function at 0x10061120
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101402f0]
jne 0x1006112a
repz ret
jmp fcn.100623cc

Function at 0x100635cb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1006078f
and dword [ebp - 4], 0
cmp dword [0x10141244], 0
mov ebx, eax
jne 0x1006367c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1006372d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1006372d
push eax
call fcn.1006071d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10141244], eax
call esi
push eax
call fcn.1006071d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10141248], eax
call esi
push eax
call fcn.1006071d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1014124c], eax
call esi
push eax
call fcn.1006071d
pop ecx
mov dword [0x10141254], eax
test eax, eax
je 0x1006367c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1006071d
pop ecx
mov dword [0x10141250], eax
mov eax, dword [0x10141250]
cmp eax, ebx
je 0x100636d4
cmp dword [0x10141254], ebx
je 0x100636d4
push eax
call fcn.10060798
push dword [0x10141254]
mov esi, eax
call fcn.10060798
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100636d4
test edi, edi
je 0x100636d4
call esi
test eax, eax
je 0x100636cb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100636cb
test byte [ebp - 0xc], 1
jne 0x100636d4
or dword [ebp + 0x10], 0x200000
jmp 0x1006370d
mov eax, dword [0x10141248]
cmp eax, ebx
je 0x1006370d
push eax
call fcn.10060798
pop ecx
test eax, eax
je 0x1006370d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1006370d
mov eax, dword [0x1014124c]
cmp eax, ebx
je 0x1006370d
push eax
call fcn.10060798
pop ecx
test eax, eax
je 0x1006370d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10141244]
call fcn.10060798
pop ecx
test eax, eax
je 0x1006372d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1006372f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10064770
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x1013fcb0], 0
mov byte [0x1013fcb4], 0
mov esi, dword [0x1013fca8]
add esi, 0x1248
mov dword [0x1013fca4], esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [0x1013fcac], 0
jmp 0x10064890
mov eax, 0x100
mov dword [0x1013fcb8], 0
mov dword [0x1013fca4], 0x1dfc
mov ecx, dword [0x1013fcb0]
mov edx, dword [0x1013fcac]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + edx]
add edi, ecx
mov dword [ebp - 0x1c], eax
mov eax, edx
xor edx, edx
mov ecx, dword [ebp - 0x10]
div ecx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add edi, edx
mov dword [0x1013fcb8], edi
mov edx, dword [0x1013fca4]
mov eax, edi
mov dword [ebp - 0x20], edx
cdq
mov edi, dword [ebp - 0x1c]
idiv edi
mov dword [0x1013fcb0], edx
mov edx, dword [ebp - 0x20]
add edx, 0x152a
mov dword [0x1013fca4], edx
mov edx, dword [0x1013fcac]
mov cl, byte [esi + edx]
mov byte [0x1013fcb4], cl
mov dword [0x1013fca4], 0x118d
mov edx, dword [0x1013fcb0]
mov cl, byte [esi + edx]
mov edx, dword [0x1013fcac]
mov byte [esi + edx], cl
mov cl, byte [0x1013fcb4]
mov edx, dword [0x1013fcb0]
mov byte [esi + edx], cl
mov dword [0x1013fca4], 0x24c0
mov edx, dword [0x1013fcac]
add edx, 1
mov dword [0x1013fcac], edx
cmp edx, 0x100
jl 0x100647bd
jmp 0x100648ea
mov eax, dword [0x1013fcac]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x1013fca4], 0xa1e
mov eax, dword [0x1013fcac]
add eax, 1
mov dword [0x1013fcac], eax
cmp eax, 0x100
setl dl
mov byte [ebp - 0x21], dl
mov al, byte [ebp - 0x21]
test al, 1
jne 0x10064890
jmp 0x100648cc
mov eax, dword [0x1013fca8]
add eax, 0x101c
mov dword [0x1013fca4], eax
mov dword [0x1013fcac], 0
jmp 0x100647bd
mov dword [0x1013fca4], 0x23eb
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10064d10
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [0x1013fca4], 0x9d2
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x10]
mov ecx, dword [ecx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
xor eax, eax
mov dword [0x1013fca4], 0x2420
mov dword [ebp - 0x10], eax
jmp 0x10064d7b
mov dword [0x1013fca8], 0x18b8
xor eax, eax
mov dword [ebp - 0x14], eax
jmp 0x10064e6a
mov eax, 1
mov dword [0x1013fca4], 0x263b
mov dword [ebp - 0x14], eax
jmp 0x10064e6a
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
je 0x10064db2
mov dword [0x1013fca8], 0xffffe35a
mov eax, dword [ebp - 0x18]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
jl 0x10064d7b
mov eax, dword [ebp - 0x1c]
mov dword [0x1013fca4], 0x568
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x20], eax
jne 0x10064d50
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x18], 0x6f
sete dl
mov byte [ebp - 0x21], dl
mov al, byte [ebp - 0x21]
test al, 1
jne 0x10064ded
jmp 0x10064d50
mov dword [0x1013fca4], 0x23ba
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x10064d50
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x10064d50
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x10064d50
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x10064d50
mov eax, dword [0x1013fca8]
add eax, 0x1815
mov dword [0x1013fca8], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0xe], 0x6c
je 0x10064d64
jmp 0x10064d50
mov eax, dword [ebp - 0x14]
add esp, 0x24
pop ebp
ret

Function at 0x10064e80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [fcn.10064e80]
mov dword [0x1013fca4], 0x2ba
mov dword [0x1013fca8], 0xffffe8fe
mov dword [ebp - 4], eax
jmp 0x10064ebf
mov eax, dword [ebp - 8]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [0x1013fca4], 0xfffff2fa
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
mov dword [ebp - 8], eax
jne 0x10064ea5
mov eax, dword [ebp - 8]
add eax, 0x3c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
cmp dword [edx + ecx], 0x4550
jne 0x10064ea5
mov eax, dword [ebp - 8]
add esp, 0xc
pop ebp
ret
Function at 0x408190
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa1960b21
mov ecx, 0x18b71962
rorx edx, eax, 0xb
sarx ecx, ecx, ecx
mulx eax, edx, ecx
xor eax, edx
mov ecx, 0xf5f7ffbe
pext eax, eax, ecx
cmp eax, 0x22f270c
sete al
ret

Function at 0x411ef0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x522104]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ecx + 0x18]
push ebx
lea ebx, [ecx + 0x18]
push esi
mov esi, dword [eax + 0x14]
mov ecx, esi
push edi
push 2
push 0xffffc000
mov dword [ebp - 0x78], ebx
call dword [0x4ee33c]
mov ecx, ebx
call esi
test eax, eax
jle 0x41200a
mov eax, dword [ebx]
push 0x4000
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x4ee33c]
mov ecx, ebx
call esi
mov edi, eax
test edi, edi
je 0x41200a
cmp dword [edi + 0x3ff8], 0x53575341
jne 0x411f62
cmp dword [edi + 0x3ffc], 0x646e6769
je 0x411fda
push 0x3ff0
mov edx, edi
mov dword [ebp - 0x70], 0
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x6c], 0x67452301
mov dword [ebp - 0x68], 0xefcdab89
mov dword [ebp - 0x64], 0x98badcfe
mov dword [ebp - 0x60], 0x10325476
call fcn.00492f90
add esp, 4
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x74]
call fcn.00493080
lea edx, [edi + 0x3ff0]
mov esi, 0xc
lea ecx, [ebp - 0x18]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x411fda
add ecx, 4
add edx, 4
sub esi, 4
jae 0x411fb7
push dword [ebp + 8]
push 0x3ff0
push edi
call fcn.00412500
mov ebx, eax
jmp 0x411fdf
mov ebx, 0xd
mov eax, dword [ebp - 0x78]
push edi
mov eax, dword [eax]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x4ee33c]
mov ecx, dword [ebp - 0x78]
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a4c5b
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
mov eax, 0x52
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a4c5b
mov esp, ebp
pop ebp
ret 4
Function at 0x416680
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
push esi
push edi
push 0x18
mov esi, ecx
mov dword [esp + 0x24], 0
xorps xmm0, xmm0
mov dword [esp + 0x28], 0
push str.www.google_analytics.com
lea ecx, [esp + 0x18]
movaps xmmword [esp + 0x18], xmm0
call fcn.0040aa50
push 0
push 0
push 0
push 0
push str.Avast_SFX_1.0
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esp + 0xc], eax
test eax, eax
je 0x41674b
cmp dword [esp + 0x24], 8
lea ecx, [esp + 0x10]
push 0
cmovae ecx, dword [esp + 0x14]
push 0
push ecx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
test edi, edi
je 0x416741
cmp dword [esi + 0x14], 8
jb 0x4166f8
mov esi, dword [esi]
push 0
push 0
push 0
push 0
push esi
push 0x501d50
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
test esi, esi
je 0x41673a
push 0
push 0
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x416733
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [esp + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
lea ecx, [esp + 0x10]
call fcn.0040ab30
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x418be0
Capabilities:
Terminate thread

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 0x40], 0
mov dword [edi], vtable.ProgressAnimator.0
je 0x418c3a
mov eax, dword [edi + 0x48]
test eax, eax
je 0x418c0a
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov dword [edi + 0x48], 0
push 0x2710
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x418c2a
push 1
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x40], 0
push ebx
mov ebx, dword [edi + 0x4c]
test ebx, ebx
je 0x418c5d
mov eax, dword [ebx]
push esi
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x4ee33c]
mov ecx, ebx
call esi
mov dword [edi + 0x4c], 0
pop esi
push dword [edi + 8]
call dword [sym.imp.gdiplus.dll_GdiplusShutdown]
mov eax, dword [edi + 4]
pop ebx
test eax, eax
je 0x418c7c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 4], 0
lea ecx, [edi + 0x24]
call fcn.0040ab30
lea ecx, [edi + 0xc]
pop edi
jmp fcn.0040ab30

Function at 0x4192a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x522104]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 8], 0
cmp dword [esi + 0x40], 0
jne 0x4192fe
lea eax, [ebp - 8]
push eax
push 0
push esi
push 0x419090
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x40], eax
test eax, eax
je 0x4192fe
mov eax, dword [esi + 4]
test eax, eax
je 0x4192ed
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a4c5b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.004a4c5b
mov esp, ebp
pop ebp
ret
Function at 0x41b790
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ecx, ecx
push edi
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx ebx, ax
mov eax, ebx
and eax, 0x3ff
cmp eax, 0x1a
jne 0x41b7ed
mov ax, bx
shr ax, 0xa
cmp ax, 2
je 0x41b7e8
cmp ax, 3
je 0x41b7e8
cmp ax, 9
je 0x41b7e8
cmp ax, 0xa
je 0x41b7e8
cmp ax, 6
je 0x41b7e8
cmp ax, 7
je 0x41b7e8
cmp ax, 0xb
je 0x41b7e8
cmp ax, 0xc
jne 0x41b7ed
mov ebx, 0x81a
xor esi, esi
call fcn.0043ad50
test eax, eax
je 0x41b830
xor edi, edi
nop word [eax + eax]
call fcn.0043acc0
mov eax, dword [eax]
cmp bx, word [edi + eax + 0x40]
je 0x41b81d
inc esi
add edi, 0x4c
call fcn.0043ad50
cmp esi, eax
jb 0x41b800
jmp 0x41b830
call fcn.0043acc0
imul ecx, esi, 0x4c
add ecx, dword [eax]
mov dword [ebp - 4], ecx
jne 0x41b8c8
and ebx, 0x3ff
xor esi, esi
call fcn.0043ad50
test eax, eax
je 0x41b869
xor edi, edi
call fcn.0043acc0
mov ecx, 0x3ff
mov eax, dword [eax]
mov ax, word [edi + eax + 0x40]
and ax, cx
cmp bx, ax
je 0x41b8a9
inc esi
add edi, 0x4c
call fcn.0043ad50
cmp esi, eax
jb 0x41b843
mov ebx, dword [ebp - 4]
xor esi, esi
call fcn.0043ad50
test eax, eax
je 0x41b8a0
xor edi, edi
nop dword [eax]
call fcn.0043acc0
mov ecx, 0x409
mov eax, dword [eax]
cmp word [edi + eax + 0x40], cx
je 0x41b8be
inc esi
add edi, 0x4c
call fcn.0043ad50
cmp esi, eax
jb 0x41b880
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0043acc0
imul ebx, esi, 0x4c
add ebx, dword [eax]
je 0x41b86c
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0043acc0
imul ecx, esi, 0x4c
add ecx, dword [eax]
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41b8e0
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x522104]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ecx
push eax
push 8
xor bl, bl
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41b9aa
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 0
push 0x19
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov eax, dword [ebp - 8]
xor ecx, ecx
shr eax, 3
mov edx, 8
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a4cdf
add esp, 4
mov edi, eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push edi
push 0x19
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x41b997
push esi
mov esi, dword [edi]
push esi
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x41b996
push esi
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
movzx eax, byte [eax]
dec eax
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov ecx, dword [ebp - 0x10]
mov bl, 1
mov eax, dword [eax]
mov dword [ecx], eax
pop esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.004a4cd1
add esp, 4
pop edi
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004a4c5b
mov esp, ebp
pop ebp
ret
Function at 0x4233e0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e3e8e
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x522104]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x40], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x58], esi
xorps xmm0, xmm0
mov dword [ebp - 0x3c], 0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
push ecx
push eax
mov dword [ebp - 0x3c], 1
movlpd qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x423582
cmp dword [ebp - 0x1c], 0
jne 0x423576
mov edi, dword [ebp - 0x20]
cmp edi, 0x7fffffff
ja 0x423576
mov eax, dword [esi + 4]
mov ecx, eax
mov edx, dword [esi]
sub ecx, edx
mov dword [ebp - 0x38], eax
cmp edi, ecx
jae 0x4234a8
lea eax, [edx + edi]
jmp 0x4234d9
jbe 0x4234dc
mov eax, dword [esi + 8]
sub eax, edx
cmp edi, eax
jbe 0x4234c1
push ecx
push edi
mov ecx, esi
call fcn.00423bb0
mov edi, dword [ebp - 0x20]
jmp 0x4234dc
sub edi, ecx
push edi
push 0
push dword [ebp - 0x38]
call fcn.004a7c50
mov eax, dword [ebp - 0x38]
add esp, 0xc
add eax, edi
mov edi, dword [ebp - 0x20]
mov dword [esi + 4], eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], 0
push eax
push edi
push dword [esi]
xorps xmm0, xmm0
push dword [ebp - 0x40]
movups xmmword [ebp - 0x34], xmm0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4235a4
mov eax, dword [esi + 4]
mov ecx, eax
mov edx, dword [esi]
sub ecx, edx
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
cmp edi, ecx
jae 0x423528
lea eax, [edx + edi]
mov dword [esi + 4], eax
jmp 0x423556
jbe 0x423556
mov eax, dword [esi + 8]
sub eax, edx
cmp edi, eax
jbe 0x42353e
push ecx
push edi
mov ecx, esi
call fcn.00423bb0
jmp 0x423556
sub edi, ecx
push edi
push 0
push dword [ebp - 0x38]
call fcn.004a7c50
mov ecx, dword [ebp - 0x38]
add esp, 0xc
add ecx, edi
mov dword [esi + 4], ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a4c5b
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push str.get_file_content
push 0xdf
jmp 0x42358e
push str.get_file_content:_GetFileSizeEx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x54]
call fcn.004924d0
push 0x51f1f8
lea eax, [ebp - 0x54]
push eax
call fcn.004a765b
push str.get_file_content:_ReadFile
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x54]
call fcn.004924d0
push 0x51f1f8
lea eax, [ebp - 0x54]
push eax
call fcn.004a765b
int3