joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421310
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x421369
test eax, edx
je 0x42136c
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x421327
movzx eax, word [eax]
sub eax, ecx
jmp 0x42134e
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [eax + ecx]
xor ebx, dword [edx + ecx]
jne 0x42134f
add ecx, 4
js 0x42133f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x42134c
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x42134e
xor eax, eax
ret
test eax, eax
je 0x421378
test edx, edx
jne 0x421318
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x4221d4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0040b310
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42223e
test ah, 4
je 0x422237
test bl, bl
jne 0x4221fc
mov al, 1
jmp 0x422265
test al, 0x10
je 0x422204
xor eax, eax
jmp 0x422265
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x422228
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x422265
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x422265
test al, 0x10
sete al
jmp 0x422265
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x42225f
cmp ebx, 3
je 0x42225f
cmp ebx, 0x7b
je 0x42225f
mov eax, esi
call fcn.00422194
test al, al
jne 0x422263
xor eax, eax
jmp 0x422265
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x426e78
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x426eb1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a9f0
jmp 0x426eba
mov eax, ebx
mov edx, esi
call fcn.0040ac48
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x426ec4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov esi, edx
mov ebx, eax
push 3
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x426ee8
movzx eax, word [esp]
jmp 0x426eea
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x428be0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x428d07
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004289e8
mov esi, eax
mov eax, dword [0x4e623c]
cmp byte [eax], 0
je 0x428cad
mov eax, dword [0x4e606c]
call fcn.00407da0
call fcn.00406f90
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x428bb0]
call fcn.0040d73c
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x428d20
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x428ce9
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4e6028]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4ea634]
call fcn.0040de0c
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428d0e
lea eax, [ebp - 4]
mov edx, dword [0x428bb0]
call fcn.0040d860
pop eax
jmp eax

Function at 0x42b0fc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0040ad40
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00410a88
mov edi, eax
cmp edi, 0x104
jbe 0x42b0a7
mov eax, edi
add eax, eax
call fcn.00406e18
mov esi, eax
jmp 0x42b0a9
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00410a88
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42b0e2
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x42b0cc
mov eax, esp
cmp esi, eax
je 0x42b0ef
mov eax, esi
call fcn.00406e34
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x42b128
cmp bl, 0
je 0x42b124
cmp bl, 0x41
jl 0x42b11f
cmp bl, 0x5a
jg 0x42b11f
or bl, 0x20
xor al, bl
inc esi
jmp 0x42b103
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42b068

Function at 0x42ba44
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.0040b3ac
add esp, 0x800
pop ebx
ret
Function at 0x42bfb8
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.0040a858
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.0040b310
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x42bffd
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.0040a9f0
jmp 0x42c016
mov edx, ebx
dec edx
mov eax, esi
call fcn.0040b484
push ebx
mov eax, dword [esi]
call fcn.0040b310
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42e25c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42e27a
mov eax, dword [eax - 4]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x42e292
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42e28d
mov eax, dword [eax - 4]
mov dword [ebp - 8], eax
jmp 0x42e297
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x42e305
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x42e34e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42e2c3
inc dword [ebp - 0xc]
jmp 0x42e2db
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x42e2db
cmp dword [ebp - 0xc], 0
jle 0x42e2db
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x42e2fd
xor eax, eax
jmp 0x42e2f9
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42e2f8
mov eax, esi
jmp 0x42e351
inc eax
cmp eax, ecx
jle 0x42e2e5
inc esi
cmp esi, dword [ebp - 8]
jl 0x42e2af
jmp 0x42e34e
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x42e34e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42e326
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x42e348
xor eax, eax
jmp 0x42e344
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42e343
mov eax, esi
jmp 0x42e351
inc eax
cmp eax, ecx
jle 0x42e330
inc esi
cmp esi, dword [ebp - 8]
jl 0x42e30e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42e540
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x42e55d
mov eax, dword [eax - 4]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42e56b
mov eax, dword [eax - 4]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x42e68d
test ebx, ebx
jl 0x42e68d
test esi, esi
jle 0x42e68d
mov eax, dword [ebp - 8]
call fcn.0040b310
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040b310
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp + 0xc]
je 0x42e62a
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x42e68d
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42e60f
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42e5de
inc dword [ebp - 0x14]
jmp 0x42e5ee
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x42e5ee
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x42e5f9
or eax, 0xffffffff
jmp 0x42e60f
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42e60c
inc eax
jmp 0x42e60f
or eax, 0xffffffff
test eax, eax
jl 0x42e617
cmp esi, eax
jg 0x42e5cc
cmp esi, eax
jg 0x42e622
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42e690
inc edx
dec dword [ebp - 0x1c]
jne 0x42e5c8
jmp 0x42e68d
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x42e68d
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42e674
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42e653
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x42e65e
or eax, 0xffffffff
jmp 0x42e674
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42e671
inc eax
jmp 0x42e674
or eax, 0xffffffff
test eax, eax
jl 0x42e67c
cmp esi, eax
jg 0x42e63c
cmp esi, eax
jg 0x42e687
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42e690
inc edx
dec dword [ebp - 0x1c]
jne 0x42e638
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x43e8a4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x43e8ac
mov eax, edx
pop esi
pop ebx
ret

Function at 0x441520
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
add edx, eax
cmp edx, eax
jbe 0x441537
movzx ebx, byte [eax]
xor ecx, ebx
imul ecx, ecx, 0x1000193
inc eax
cmp edx, eax
ja 0x441527
mov eax, ecx
pop ebx
ret
Function at 0x4559f4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
test dl, dl
je 0x455a08
add esp, 0xfffffff0
call fcn.00409070
mov ebx, edx
mov esi, eax
mov dl, 1
mov eax, dword [0x44f978]
call fcn.00474460
mov dword [esi + 4], eax
mov dl, 1
mov eax, dword [0x4549c4]
call fcn.00477214
mov dword [esi + 8], eax
mov dl, 1
mov eax, dword [0x4549c4]
call fcn.00477214
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x10], eax
mov eax, esi
test bl, bl
je 0x455a5d
call fcn.004090c8
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b933c
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
or dl, byte [ebx + 0xd]
je 0x4b937f
cmp byte [ebx + 0x11], 0
jne 0x4b937f
cmp byte [ebx + 0x24], 0
jne 0x4b937f
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4b9396
mov ecx, dword [0x4e61f0]
mov dl, 1
mov eax, dword [0x48c1b4]
call fcn.00428e6c
call fcn.00409f40
pop ebx
ret
mov ecx, dword [0x4e61f0]
mov dl, 1
mov eax, dword [0x48c1b4]
call fcn.00428e6c
call fcn.00409f40
pop ebx
ret

Function at 0x4b9d04
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4b9d52
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004b91e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b9d6b
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4b9d74
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004b91e8
dec esi
jne 0x4b9d96
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret
Function at 0x4d2490
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff4
mov dword [esp + 4], ecx
mov dword [esp], edx
mov esi, eax
mov eax, dword [esp]
mov dword [esp + 8], eax
xor ebx, ebx
xor ecx, ecx
mov eax, dword [esp + 4]
mov edx, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
test eax, eax
jle 0x4d2553
mov edx, dword [esp + 8]
lea edi, [edx + ecx]
movzx edx, byte [esi + ebx]
shr edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
mov byte [edi], dl
movzx edx, byte [esi + ebx]
and dl, 3
movzx edx, dl
shl edx, 4
movzx edi, byte [esi + ebx + 1]
shr edi, 4
add edx, edi
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
mov edi, dword [esp + 8]
mov byte [edi + ecx + 1], dl
movzx edx, byte [esi + ebx + 1]
and dl, 0xf
movzx edx, dl
shl edx, 2
movzx edi, byte [esi + ebx + 2]
shr edi, 6
add edx, edi
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
mov edi, dword [esp + 8]
mov byte [edi + ecx + 2], dl
mov edx, dword [esp + 8]
lea edx, [edx + ecx + 3]
push edx
movzx edx, byte [esi + ebx + 2]
and dl, 0x3f
movzx edx, dl
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
pop edi
mov byte [edi], dl
add ecx, 4
add ebx, 3
dec eax
jne 0x4d24c4
mov edi, dword [esp + 4]
mov eax, 0x55555556
imul edi
mov eax, edx
shr eax, 0x1f
add edx, eax
lea edx, [edx + edx*2]
sub edi, edx
dec edi
je 0x4d2575
dec edi
je 0x4d25ba
jmp 0x4d261a
mov eax, dword [esp + 8]
movzx edx, byte [esi + ebx]
shr edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
mov byte [eax + ecx], dl
mov eax, dword [esp + 8]
movzx edx, byte [esi + ebx]
and dl, 3
movzx edx, dl
shl edx, 4
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
mov byte [eax + ecx + 1], dl
mov eax, dword [esp + 8]
mov byte [eax + ecx + 2], 0x3d
mov eax, dword [esp + 8]
mov byte [eax + ecx + 3], 0x3d
jmp 0x4d261a
mov eax, dword [esp + 8]
movzx edx, byte [esi + ebx]
shr edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
mov byte [eax + ecx], dl
movzx eax, byte [esi + ebx]
and al, 3
movzx eax, al
shl eax, 4
movzx edx, byte [esi + ebx + 1]
shr edx, 4
add eax, edx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
mov edx, dword [esp + 8]
mov byte [edx + ecx + 1], al
mov eax, dword [esp + 8]
movzx edx, byte [esi + ebx + 1]
and dl, 0xf
movzx edx, dl
shl edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_cw]
mov byte [eax + ecx + 2], dl
mov eax, dword [esp + 8]
mov byte [eax + ecx + 3], 0x3d
mov eax, dword [esp + 4]
add eax, 2
mov edx, 0x55555556
imul edx
mov eax, edx
shr eax, 0x1f
add eax, edx
shl eax, 2
add esp, 0xc
pop edi
pop esi
pop ebx
ret
Function at 0x4d273c
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], ecx
mov edi, eax
mov dword [esp + 8], edx
xor esi, esi
xor ebp, ebp
xor eax, eax
mov edx, dword [esp]
test edx, edx
jns 0x4d275b
add edx, 3
sar edx, 2
test edx, edx
jle 0x4d2868
mov dword [esp + 0xc], edx
mov edx, 4
lea eax, [esp + 4]
movzx ecx, byte [edi + esi]
cmp ecx, 0x3d
jg 0x4d2790
je 0x4d27d3
sub ecx, 0x2b
je 0x4d27c9
sub ecx, 4
je 0x4d27ce
dec ecx
sub ecx, 0xa
jb 0x4d27bb
jmp 0x4d27d6
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x4d27a2
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x4d27ad
jmp 0x4d27d6
movzx ecx, byte [edi + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x4d27d6
movzx ecx, byte [edi + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x4d27d6
movzx ecx, byte [edi + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x4d27d6
mov byte [eax], 0x3e
jmp 0x4d27d6
mov byte [eax], 0x3f
jmp 0x4d27d6
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x4d2773
movzx eax, byte [esp + 4]
shl eax, 2
movzx edx, byte [esp + 5]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp], al
lea eax, [ebp + 1]
movzx edx, byte [esp + 6]
cmp dl, 0xff
je 0x4d2826
cmp byte [esp + 7], 0xff
jne 0x4d2826
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
lea eax, [ebp + 2]
inc ebp
jmp 0x4d285d
cmp dl, 0xff
je 0x4d285d
movzx eax, byte [esp + 5]
shl eax, 4
movzx edx, dl
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + ebp + 1], al
mov eax, dword [esp + 8]
movzx edx, byte [esp + 6]
shl edx, 6
or dl, byte [esp + 7]
mov byte [eax + ebp + 2], dl
lea eax, [ebp + 3]
add ebp, 2
inc ebp
dec dword [esp + 0xc]
jne 0x4d276a
add esp, 0x10
pop ebp
pop edi
pop esi
ret

Function at 0x4d50f0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, eax
mov edi, edx
mov edx, ecx
dec edx
test edx, edx
jb 0x4d510b
inc edx
xor eax, eax
movzx ecx, byte [edi + eax]
xor byte [esi + eax], cl
inc eax
dec edx
jne 0x4d5100
pop edi
pop esi
ret

Function at 0x4d699c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
movzx ebx, dl
dec ebx
test ebx, ebx
jb 0x4d69e5
inc ebx
xor edx, edx
mov ecx, edx
shl ecx, 2
movzx esi, byte [eax + ecx]
mov esi, dword [esi*4 + 0x4e4e14]
movzx edi, byte [eax + ecx + 1]
xor esi, dword [edi*4 + 0x4e5214]
movzx edi, byte [eax + ecx + 2]
xor esi, dword [edi*4 + 0x4e5614]
movzx edi, byte [eax + ecx + 3]
xor esi, dword [edi*4 + 0x4e5a14]
mov dword [eax + ecx], esi
inc edx
dec ebx
jne 0x4d69aa
pop edi
pop esi
pop ebx
ret
Function at 0x5ed370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x5ed38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x616074
push ecx
mov edi, eax
call fcn.00601198
mov esi, eax
add esp, 8
test esi, esi
jne 0x5ed3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0060102e
push esi
call fcn.00600fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x5f0850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x5f08ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x61b720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5f08ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.006011e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x5f08ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x61b720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x5f092a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00602082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x5f0957
mov word [eax], si
add eax, 2
push eax
call fcn.00602030
add esp, 4
jmp 0x5f0959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x5f08ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x5f08b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x5f0ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x5f1080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x5f10c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x616458
push ecx
call fcn.006011e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.006011e1
add esp, 0x10
jmp 0x5f10d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0060120b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00600dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.005f1050
mov eax, dword [0x61b728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x5f113b
push esi
call fcn.005f0fb0
add esp, 4
mov dword [0x61b728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x5f114c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.005f0ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x5f4440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x5f44b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x5f448e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x5f4471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x5f447e
add edx, ecx
cmp ebx, edx
jb 0x5f448a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x5f4467
xor ecx, ecx
jmp 0x5f44a2
test eax, eax
jne 0x5f4492
xor ecx, ecx
jmp 0x5f44a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.005f43c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret