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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x47cf1d
dec al
je 0x47cf58
dec al
je 0x47cf9d
dec al
je 0x47d006
jmp 0x47d090
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x47d090
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x47cf2d
jmp 0x47d090
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x47d090
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x47cf68
jmp 0x47d090
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x47d090
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x47cfcc
xor ebp, ebp
jmp 0x47cfdc
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x47cfe5
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x47cfad
jmp 0x47d090
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x47d090
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x47d05f
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.0047a298
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x47d01a
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x481148
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x18], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x14]
mov edx, dword [0x408ea4]
call fcn.00406200
xor eax, eax
push ebp
push 0x481309
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4d5314], 0
jne 0x48119c
mov ecx, dword [0x4d692c]
mov dl, 1
mov eax, dword [0x40989c]
call fcn.00411018
call fcn.00404724
lea eax, [ebp - 0x2c]
xor ecx, ecx
mov edx, 0x10
call fcn.00403610
mov eax, ebx
call fcn.004056ac
mov dword [ebp - 0x28], eax
push esi
mov esi, 0x481318
lea edi, [ebp - 0x3c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x10]
call fcn.0040757c
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, ebx
test eax, eax
je 0x4811e3
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x4812af
mov dword [ebp - 0x1c], 0x20
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x5c]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x48129b
lea eax, [ebp - 4]
lea edx, [ebp - 0x5c]
mov ecx, 0x10
call fcn.00405a48
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00405ab0
mov eax, dword [ebp - 4]
test eax, eax
je 0x48123e
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x48123e
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.004050b0
mov ebx, eax
test ebx, ebx
je 0x481249
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 8]
test eax, eax
je 0x481266
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x481266
lea eax, [ebp - 8]
mov edx, dword [ebp - 8]
call fcn.004050b0
mov edi, eax
test edi, edi
je 0x481271
sub edi, 4
mov edi, dword [edi]
push edi
mov eax, dword [ebp - 8]
call fcn.004058d4
push eax
push ebx
mov eax, dword [ebp - 4]
call fcn.004058d4
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringW_1
sub eax, 2
test eax, eax
sete al
jmp 0x48129d
xor eax, eax
test al, al
je 0x4812a8
mov ebx, 0x15
jmp 0x4812b4
mov ebx, 0x10
jmp 0x4812b4
mov ebx, 0x15
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 0x2c]
push eax
push ebx
push 0
push esi
call dword [0x4d5314]
call fcn.00480fb4
mov eax, dword [ebp - 0xc]
call fcn.00480fb4
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
call fcn.00407594
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x481310
lea eax, [ebp - 0x14]
mov edx, dword [0x408ea4]
call fcn.004062d8
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405840
ret
Function at 0x48314c
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
cmp dword [ebp + 0x14], 0
je 0x483328
xor eax, eax
push ebp
push 0x48322d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x483223
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x14]
call fcn.0047fff8
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0047fff8
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0047fff8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
lea eax, [eax + eax*2]
dec eax
test eax, eax
jl 0x483217
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
movzx eax, byte [eax + edx]
movzx edx, byte [ebp + 0x10]
mov ecx, 0xff
sub ecx, edx
imul ecx
mov ecx, 0xff
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
movzx eax, byte [eax + edx]
movzx edx, byte [ebp + 0x10]
imul edx
mov ebx, 0xff
xor edx, edx
div ebx
add cl, al
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov byte [eax + edx], cl
inc dword [ebp - 0xc]
dec dword [ebp - 0x24]
jne 0x4831ca
inc dword [ebp - 0x10]
dec dword [ebp - 0x20]
jne 0x48318a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x483237
xor eax, eax
push ebp
push 0x48331e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0xc]
dec eax
test eax, eax
jl 0x483314
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], 0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x14]
call fcn.0047ff9c
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0047ff9c
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0047ff9c
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
dec eax
test eax, eax
jl 0x483308
inc eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xc], 0
xor eax, eax
push ebp
push 0x4832f6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
movzx eax, byte [eax + edx]
movzx edx, byte [ebp + 0x10]
mov ecx, 0xff
sub ecx, edx
imul ecx
mov ecx, 0xff
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
movzx eax, byte [eax + edx]
movzx edx, byte [ebp + 0x10]
imul edx
mov ebx, 0xff
xor edx, edx
div ebx
add cl, al
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov byte [eax + edx], cl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x483300
inc dword [ebp - 0xc]
dec dword [ebp - 0x24]
jne 0x483299
inc dword [ebp - 0x10]
dec dword [ebp - 0x20]
jne 0x48325c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x483328
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4ca06c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405830
xor eax, eax
push ebp
push 0x4ca196
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00405848
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004058d4
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x4ca173
mov eax, ebx
call fcn.0040306c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4ca12e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
push esi
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x4ca118
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4ca1a4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x4ca118
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 0x1c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca135
mov eax, dword [ebp - 0x10]
call fcn.00403088
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ca19d
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00405840
lea eax, [ebp - 4]
call fcn.00405838
ret
Function at 0x4cad18
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x220], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4caf8b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov ecx, 0x4cafac
mov edx, dword [0x4ded18]
call fcn.00405c1c
mov eax, dword [ebp - 4]
call fcn.0040c1c8
test al, al
je 0x4cadbc
mov edx, 0x4cafd8
mov eax, ebx
call fcn.004cab28
test eax, eax
jne 0x4cadbc
mov eax, dword [ebp - 4]
call fcn.004058d4
push eax
call sub.kernel32.dll_LoadLibraryW
mov esi, eax
test esi, esi
je 0x4cadbc
push 0x4caff0
push esi
call fcn.00408274
mov edi, eax
test edi, edi
je 0x4cadb6
call edi
or ecx, 0xffffffff
mov edx, 0x4cafd8
mov eax, ebx
call fcn.004cac20
push esi
call sub.kernel32.dll_FreeLibrary_1
lea eax, [ebp - 4]
mov ecx, 0x4cb030
mov edx, dword [0x4ded18]
call fcn.00405c1c
mov eax, dword [ebp - 4]
call fcn.0040c1c8
test al, al
je 0x4cae32
mov edx, 0x4cb05c
mov eax, ebx
call fcn.004cab28
test eax, eax
jne 0x4cae32
push 0x4cb080
push dword [ebp - 4]
push 0x4cb098
lea eax, [ebp - 8]
mov edx, 3
call fcn.00405cec
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004058d4
push eax
push 0x4cb09c
push 0x4cb0b8
push 0
call sub.shell32.dll_ShellExecuteW
or ecx, 0xffffffff
mov edx, 0x4cb05c
mov eax, ebx
call fcn.004cac20
push 0
push 0x24
lea eax, [ebp - 0x218]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderPathW
lea eax, [ebp - 0xc]
lea edx, [ebp - 0x218]
mov ecx, 0x105
call fcn.00405a48
lea eax, [ebp - 0x220]
mov edx, dword [ebp - 0xc]
call fcn.00405ac4
mov eax, dword [ebp - 0x220]
lea ecx, [ebp - 0x21c]
mov edx, 1
call fcn.00409844
mov eax, dword [ebp - 0x21c]
mov edx, 0x4cb0c8
call fcn.00405740
je 0x4cae9a
lea eax, [ebp - 0xc]
mov edx, 0x4cb0d8
call fcn.00405b9c
call fcn.004c973c
test eax, eax
je 0x4caeca
call fcn.004ca1b8
test al, al
je 0x4caebb
lea eax, [ebp - 0xc]
mov edx, 0x4cb0e8
call fcn.00405b9c
jmp 0x4caed7
lea eax, [ebp - 0xc]
mov edx, 0x4cb108
call fcn.00405b9c
jmp 0x4caed7
lea eax, [ebp - 0xc]
mov edx, 0x4cb108
call fcn.00405b9c
lea eax, [ebp - 0x224]
mov ecx, 0x4cb128
mov edx, dword [ebp - 0xc]
call fcn.00405c1c
mov eax, dword [ebp - 0x224]
call fcn.0040c1c8
test al, al
je 0x4caf55
mov edx, 0x4cb144
mov eax, ebx
call fcn.004cab28
test eax, eax
jne 0x4caf55
push 0x4cb080
push dword [ebp - 0xc]
push 0x4cb128
push 0x4cb098
lea eax, [ebp - 8]
mov edx, 4
call fcn.00405cec
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004058d4
push eax
push 0x4cb09c
push 0x4cb0b8
push 0
call sub.shell32.dll_ShellExecuteW
or ecx, 0xffffffff
mov edx, 0x4cb144
mov eax, ebx
call fcn.004cac20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4caf92
lea eax, [ebp - 0x224]
call fcn.00405838
lea eax, [ebp - 0x220]
mov edx, 2
call fcn.004054f8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405840
ret
Function at 0x438c88
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x438a14
sub edx, 0xab5491ee
inc edx
call fcn.00438cc5
add ecx, 1
xor dword [ebx], esi
and ecx, ecx
or edx, ecx
inc ebx
inc edx
add edx, 0x7ecd52c2
mov edx, 0x49a0d137
cmp ebx, eax
jne fcn.00438c88
sub ecx, edx
sub edx, 1
ret
Function at 0x404d50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x404d7b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004055f0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x404d9d
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x404d9f
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x404e23
jg 0x404db4
test esi, esi
je 0x404e23
test ecx, ecx
jl 0x404e07
jg 0x404dbe
test eax, eax
je 0x404e07
cmp edi, ecx
jg 0x404dd2
jl 0x404dc8
cmp esi, eax
jae 0x404dd2
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.0043c680
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
mov edx, dword [ebp + 8]
sbb edi, dword [esp + 0x10]
add edx, ecx
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x404e23
jg 0x404e0a
test esi, esi
je 0x404e23
jmp 0x404e0a
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x404e23
push eax
push esi
push 1
push edx
call fcn.00448ed7
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404e40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [ebp + 0x10]
sub esp, 0xc
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x404e6b
jl 0x404e5e
test edi, edi
jne 0x404e6b
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x404e84
push eax
push edi
push dword [ebp + 8]
call fcn.004056d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov esi, edi
mov dword [esp + 0x10], edi
mov ecx, dword [eax]
test ecx, ecx
je 0x404ed6
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
test eax, eax
je 0x404ed6
cmp eax, edi
jb 0x404eaa
mov eax, edi
mov dword [esp + 0xc], edi
mov esi, dword [ebp + 8]
push eax
push ecx
push esi
call fcn.0043c680
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0xc]
add esi, ecx
mov dword [esp + 0xc], esi
mov esi, edi
sub esi, ecx
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x10], esi
add dword [eax], ecx
jmp 0x404edd
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x404f92
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x404f08
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov eax, dword [esp + 0x10]
mov edx, eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x10], edx
cmp eax, 0xfff
jbe 0x404f50
lea ecx, [ecx]
push dword [ebx + 0x4c]
push 0xfff
push 1
push ecx
call fcn.00449109
mov ecx, dword [esp + 0x1c]
sub esi, eax
add ecx, eax
mov dword [esp + 0x20], esi
add esp, 0x10
mov dword [esp + 0xc], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x404f7f
cmp esi, eax
ja 0x404f20
cmp dword [esp + 0x10], 0
jbe 0x404f96
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00449109
mov edx, dword [esp + 0x20]
add esp, 0x10
sub edx, eax
sub edi, edx
mov edx, dword [ebp + 0x10]
mov eax, edi
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esp + 0x10]
sub edi, edx
mov edx, dword [ebp + 0x10]
mov eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4053c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4053dc
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40540e
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40540e
lea ecx, [edi - 1]
mov eax, ebx
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4054db
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x405436
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x40545e
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0044c50e
add esp, 8
cmp eax, 0xffffffff
jne 0x4054a7
pop edi
or ebx, eax
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 4], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 3]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x40]
push eax
call edx
test eax, eax
js 0x4054db
cmp eax, 1
jle 0x4054b2
cmp eax, 3
jne 0x4054db
push dword [esi + 0x4c]
push dword [ebp - 4]
call fcn.00402580
add esp, 8
test al, al
jne 0x4054a7
or ebx, 0xffffffff
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x28]
sub edi, eax
je 0x4054cf
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00448ed7
add esp, 0x10
cmp edi, eax
jne 0x4054db
lea eax, [ebp - 4]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 8], eax
jne 0x4054a7
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406cf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x406d7c
cmp byte [esi + 0x3d], 0
je 0x406d7c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x406d74
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x406d46
sub eax, 1
je 0x406d4a
sub eax, 2
jne 0x406d74
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x406d67
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00448ed7
add esp, 0x10
cmp edi, eax
jne 0x406d74
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40b1f0
Capabilities:
Reference http user-agent string

Disassembly:
xor eax, eax
mov dword [ecx + 0x28], 0
mov word [ecx + 0x18], ax
mov dword [ecx + 0x40], eax
mov word [ecx + 0x30], ax
mov dword [ecx + 0x58], eax
mov byte [ecx + 0x48], al
mov dword [ecx + 0x70], eax
mov byte [ecx + 0x60], al
mov eax, ecx
mov dword [ecx + 0x2c], 7
mov dword [ecx + 0x44], 7
mov dword [ecx + 0x5c], 0xf
mov dword [ecx + 0x74], 0xf
mov dword [ecx + 0xc], str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_74.0.3729.169_Safari_537.36
ret
Function at 0x4242a0
Capabilities:
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
cmp byte [0x4bc30c], 0
jne 0x4242ae
call fcn.00439fc0
cmp byte [0x4bc316], 0
je 0x4242cc
push 0
push 0x40
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.0043a3c0
add esp, 0x10
ret
jmp fcn.0041f9a0

Function at 0x4245f0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x492838
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4b6018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push 0xf0000000
push 1
push 0
push 0
push esi
mov dword [esi], 0
call edi
test eax, eax
jne 0x424666
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 8
push 1
push 0
push str.Crypto_RNG
push esi
mov ebx, eax
call edi
test eax, eax
jne 0x424666
push 0x28
push 1
push eax
push str.Crypto_RNG
push esi
call edi
test eax, eax
je 0x424684
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419a47
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.CryptAcquireContext
lea ecx, [ebp - 0x28]
call fcn.004061e0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x50]
call fcn.00424750
push 0x4b303c
lea eax, [ebp - 0x50]
push eax
call fcn.0043c2ee
int3

Function at 0x424c40
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4928f4
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x4b6018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4bab40]
mov esi, dword [ebp + 8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x4bb1fc]
cmp eax, dword [ecx + 4]
jg 0x424cb8
push esi
push dword [ebp + 0xc]
push dword [0x4bb1f8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x424cff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00419a47
mov esp, ebp
pop ebp
ret 8
push 0x4bb1fc
call fcn.00419156
add esp, 4
cmp dword [0x4bb1fc], 0xffffffff
jne 0x424c88
mov ecx, 0x4bb1f8
mov dword [ebp - 4], 0
call fcn.004245f0
push 0x493850
call fcn.00418fd4
push 0x4bb1fc
mov dword [ebp - 4], 0xffffffff
call fcn.0041910c
add esp, 8
jmp 0x424c88
push 0x498f20
lea ecx, [ebp - 0x28]
call fcn.004061e0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x50]
call fcn.00424750
push 0x4b303c
lea eax, [ebp - 0x50]
push eax
call fcn.0043c2ee
int3