joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4185b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x47ad79
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
mov eax, dword [0x49a0f4]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x24], 0
mov ecx, esi
mov dword [esp + 0xc], 0
call fcn.00406e10
mov dword [esp + 0x24], 0
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [esp + 0x18], ecx
push eax
mov ecx, esi
mov dword [esp + 0x10], 1
call fcn.00411a90
mov ecx, esi
call fcn.00402550
mov edx, dword [esp + 0x30]
push 5
mov dword [esp + 0xc], eax
lea eax, [edi + 8]
push eax
add edx, 0xfffffff3
lea ecx, [esp + 0x18]
push ecx
add eax, 5
mov dword [esp + 0x1c], edx
push eax
lea edx, [esp + 0x18]
push edx
push 0
mov ecx, esi
call fcn.00402530
push eax
call fcn.004618bc
mov ecx, esi
test eax, eax
jne 0x41866c
mov eax, dword [esp + 8]
push eax
call fcn.00411a90
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x20
ret
call fcn.0040d3c0
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x20
ret

Function at 0x41bef1
Capabilities:
Encode data using xor

Disassembly:
mov cl, byte [edx]
xor eax, eax
test cl, cl
je 0x41bf15
push esi
movzx ecx, cl
movzx ecx, byte [ecx + 0x47e660]
mov esi, eax
shl esi, 3
xor ecx, esi
inc edx
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x41befa
pop esi
ret
Function at 0x427e78
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
test ebx, ebx
jne 0x427e87
xor eax, eax
leave
ret
push esi
mov esi, dword [ebp + 8]
push 0
push 8
call fcn.00423416
pop ecx
pop ecx
mov ecx, eax
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x427f52
test byte [ebp + 0xc], 1
mov eax, dword [ebx]
mov dword [ecx], eax
jne 0x427ebc
mov ecx, dword [ebx]
xor eax, eax
inc eax
cmp ecx, eax
jle 0x427ebc
add eax, eax
cmp eax, ecx
jl 0x427eb6
imul eax, eax, 0x18
push edi
push 0
push eax
call fcn.00423416
mov edx, dword [ebp - 8]
mov edi, eax
pop ecx
pop ecx
mov dword [edx + 4], edi
test edi, edi
jne 0x427ee1
mov ecx, esi
call fcn.0041b008
xor eax, eax
jmp 0x427f51
and dword [ebp - 4], 0
cmp dword [ebx], 0
mov esi, dword [ebx + 4]
jle 0x427f4e
mov eax, dword [esi]
push 0
push dword [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.00430ec2
mov dword [edi], eax
push dword [esi + 4]
push dword [ebp + 8]
call fcn.00423575
mov dword [edi + 4], eax
push dword [esi + 8]
push dword [ebp + 8]
call fcn.00423575
mov dword [edi + 8], eax
mov al, byte [esi + 0xc]
and dword [edi + 0x10], 0xfffffffe
mov byte [edi + 0xc], al
mov eax, dword [edi + 0x10]
mov ecx, dword [esi + 0x10]
xor ecx, eax
and ecx, 2
xor ecx, eax
mov dword [edi + 0x10], ecx
mov eax, dword [esi + 0x14]
add esp, 0x20
inc dword [ebp - 4]
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 4]
add edi, 0x18
add esi, 0x18
cmp eax, dword [ebx]
jl 0x427eed
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret
Function at 0x44f215
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi]
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
xor ebx, ebx
cmp byte [edi + 0x49], 4
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], eax
jne 0x44f240
mov eax, dword [edi + 0x44]
jmp 0x44f3cb
mov ecx, dword [edi + 0x3c]
push edi
call fcn.0044eacd
pop ecx
cmp eax, ebx
jne 0x44f3cb
cmp dword [edi + 0x10], ebx
jne 0x44f297
push ebx
push dword [ebp + 0x10]
mov eax, esi
push dword [ebp + 0xc]
call fcn.0041e59c
add esp, 0xc
test byte [edi + 0x48], 2
je 0x44f297
cmp dword [ebp + 0x10], ebx
jl 0x44f297
jg 0x44f27a
cmp dword [ebp + 0xc], ebx
jbe 0x44f297
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [edi + 0x18]
sub eax, 1
sbb ecx, ebx
cmp edx, eax
jne 0x44f297
mov eax, dword [edi + 0x1c]
cmp eax, ecx
jne 0x44f297
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 4], ebx
jne 0x44f2bd
push dword [ebp + 0x20]
lea ecx, [ebp - 4]
push dword [ebp + 0x10]
mov esi, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044eb05
add esp, 0x10
cmp eax, ebx
jne 0x44f3cb
movsx eax, word [edi + 0x4c]
mov esi, dword [edi + eax*4 + 0x78]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x50]
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x1c]
mov dword [ebp - 0x14], eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
mov eax, esi
call fcn.00447830
add esp, 0x20
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x44f3cb
movsx eax, word [edi + 0x4c]
lea eax, [edi + eax*2 + 0x4e]
movzx ecx, word [eax]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 4], ebx
jne 0x44f372
mov eax, dword [esi + 0x44]
call fcn.00438c26
cmp eax, ebx
jne 0x44f3cb
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
lea ecx, [eax + ecx*2]
movzx eax, byte [ecx]
movzx ecx, byte [ecx + 1]
shl eax, 8
or eax, ecx
movzx ecx, word [esi + 0x14]
and eax, ecx
add eax, dword [esi + 0x38]
cmp byte [esi + 5], bl
jne 0x44f347
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
mov dword [edx], ecx
lea ecx, [ebp - 4]
push ecx
mov ecx, esi
call fcn.00447710
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
movzx eax, word [ebp - 4]
push eax
push dword [ebp - 0xc]
call fcn.0042c3ab
mov eax, dword [ebp - 8]
add esp, 0x10
cmp eax, ebx
jne 0x44f3cb
jmp 0x44f389
jge 0x44f389
cmp word [esi + 0x12], bx
jbe 0x44f389
inc word [eax]
movsx eax, word [edi + 0x4c]
movzx eax, word [edi + eax*2 + 0x4e]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push ebx
push ebx
push dword [ebp - 0x10]
mov ecx, esi
push dword [ebp - 0x14]
call fcn.004390ea
xor eax, eax
mov word [edi + 0x2c], ax
mov eax, dword [ebp - 8]
add esp, 0x14
cmp eax, ebx
jne 0x44f3cb
cmp byte [esi + 1], bl
je 0x44f3cb
and byte [edi + 0x48], 0xfd
call fcn.0044b99e
movsx ecx, word [edi + 0x4c]
mov ecx, dword [edi + ecx*4 + 0x78]
mov byte [ecx + 1], bl
mov byte [edi + 0x49], bl
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44f3d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [edi]
movsx ebx, word [edi + 0x4c]
mov ecx, dword [edi + ebx*4 + 0x78]
mov dx, word [edi + ebx*2 + 0x4e]
mov dword [ebp - 4], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
xor eax, eax
inc eax
mov dword [ebp - 0x1c], ebx
cmp dx, word [ecx + 0x12]
jae 0x44f5a1
cmp byte [edi + 0x49], al
jne 0x44f5a1
mov esi, ecx
mov ecx, dword [esi + 0x40]
movzx eax, dx
lea ecx, [ecx + eax*2]
mov dword [ebp - 0x10], eax
movzx eax, byte [ecx]
movzx ecx, byte [ecx + 1]
shl eax, 8
or eax, ecx
movzx ecx, word [esi + 0x14]
and eax, ecx
add eax, dword [esi + 0x38]
cmp byte [esi + 5], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
jne 0x44f455
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push edi
call fcn.0044f1ca
pop ecx
pop ecx
test eax, eax
jne 0x44f5a1
mov ecx, dword [edi + 0x3c]
mov eax, dword [ebp - 0xc]
push edi
call fcn.0044eacd
pop ecx
test eax, eax
jne 0x44f5a1
cmp dword [edi + 0x10], eax
jne 0x44f481
push eax
push dword [edi + 0x1c]
mov eax, dword [ebp - 4]
push dword [edi + 0x18]
call fcn.0041e59c
add esp, 0xc
mov eax, dword [esi + 0x44]
call fcn.00438c26
test eax, eax
jne 0x44f5a1
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
mov ecx, esi
call fcn.00447710
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
movzx eax, word [ebp - 4]
push eax
push dword [ebp - 0x10]
call fcn.0042c3ab
mov eax, dword [ebp - 8]
add esp, 0x10
test eax, eax
jne 0x44f5a1
cmp byte [esi + 5], al
jne 0x44f55d
movsx eax, word [edi + 0x4c]
mov esi, dword [edi + eax*4 + 0x78]
mov eax, dword [edi + ebx*4 + 0x7c]
mov eax, dword [eax + 0x48]
mov ecx, dword [esi + 0x40]
mov dword [ebp - 0x14], eax
movzx eax, word [esi + 0x12]
lea eax, [ecx + eax*2]
movzx ebx, byte [eax - 2]
movzx eax, byte [eax - 1]
shl ebx, 8
or ebx, eax
movzx eax, word [esi + 0x14]
and ebx, eax
add ebx, dword [esi + 0x38]
mov edx, esi
push ebx
call fcn.0041e741
movzx eax, ax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x44]
call fcn.00438c26
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
mov eax, dword [ebp - 4]
push dword [ebp - 0xc]
add eax, 4
push eax
mov eax, dword [ebp - 0x10]
add ebx, 0xfffffffc
push ebx
call fcn.004390ea
lea eax, [ebp - 8]
push eax
movzx eax, word [esi + 0x12]
push dword [ebp - 4]
dec eax
push eax
call fcn.0042c3ab
mov eax, dword [ebp - 8]
add esp, 0x24
test eax, eax
jne 0x44f5a1
mov ebx, dword [ebp - 0x1c]
call fcn.0044b99e
mov esi, eax
test esi, esi
jne 0x44f59f
movsx eax, word [edi + 0x4c]
cmp eax, ebx
jle 0x44f598
movzx ecx, word [edi + 0x4c]
movsx eax, cx
mov eax, dword [edi + eax*4 + 0x78]
dec ecx
mov word [edi + 0x4c], cx
call fcn.00445fce
movsx eax, word [edi + 0x4c]
cmp eax, ebx
jg 0x44f570
call fcn.0044b99e
mov esi, eax
test esi, esi
jne 0x44f59f
mov eax, edi
call fcn.0044a93d
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x463bd0
Capabilities:
Get common file path
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x47a601
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x49a0f4]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], ebx
mov edi, dword [esp + 0x34]
mov ecx, edi
call fcn.00401e20
mov dword [esp + 0x2c], ebx
push 0x800
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0x400
mov byte [esp + 0x24], 1
call fcn.004650ea
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x463c4e
push 0x800
push ebx
push esi
call fcn.00465f40
add esp, 0xc
mov dword [esp + 0x18], esi
mov dword [esp + 0x2c], 1
push 0x400
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x20]
push ecx
push ebx
push ebx
xor eax, eax
push esi
mov word [esi + 6], ax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov cl, byte [esp + 0x10]
movzx edx, byte [esp + 0x11]
movzx eax, cl
add eax, edx
movzx edx, byte [esp + 0x12]
add eax, edx
movzx edx, byte [esp + 0x13]
add eax, edx
movzx edx, byte [esp + 0x13]
push eax
mov byte [esp + 0x14], dl
movzx edx, byte [esp + 0x16]
mov byte [esp + 0x17], cl
mov cl, byte [esp + 0x15]
push 0x48561c
push edi
mov byte [esp + 0x1d], dl
mov byte [esp + 0x1e], cl
call fcn.00408500
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x44]
push eax
push 0x48561c
push ecx
call fcn.00408500
mov byte [esp + 0x44], bl
push esi
call fcn.0046500d
add esp, 0x1c
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov eax, edi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x20
ret

Function at 0x4643e7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x49a0f4]
jne 0x4643f1
repz ret
jmp fcn.00468694
Function at 0x47230d
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.00468eef
and dword [ebp - 4], 0
cmp dword [0x4ace30], 0
mov ebx, eax
jne 0x4723be
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x47246f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x47246f
push eax
call fcn.00468e7d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4ace30], eax
call esi
push eax
call fcn.00468e7d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4ace34], eax
call esi
push eax
call fcn.00468e7d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4ace38], eax
call esi
push eax
call fcn.00468e7d
pop ecx
mov dword [0x4ace40], eax
test eax, eax
je 0x4723be
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00468e7d
pop ecx
mov dword [0x4ace3c], eax
mov eax, dword [0x4ace3c]
cmp eax, ebx
je 0x472416
cmp dword [0x4ace40], ebx
je 0x472416
push eax
call fcn.00468ef8
push dword [0x4ace40]
mov esi, eax
call fcn.00468ef8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x472416
test edi, edi
je 0x472416
call esi
test eax, eax
je 0x47240d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x47240d
test byte [ebp - 0xc], 1
jne 0x472416
or dword [ebp + 0x10], 0x200000
jmp 0x47244f
mov eax, dword [0x4ace34]
cmp eax, ebx
je 0x47244f
push eax
call fcn.00468ef8
pop ecx
test eax, eax
je 0x47244f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x47244f
mov eax, dword [0x4ace38]
cmp eax, ebx
je 0x47244f
push eax
call fcn.00468ef8
pop ecx
test eax, eax
je 0x47244f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4ace30]
call fcn.00468ef8
pop ecx
test eax, eax
je 0x47246f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x472471
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x475f67
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
mov dword [ebp - 8], edi
cmp eax, ecx
jb 0x475ff6
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00466170
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x475fb6
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x475fd8
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x4760b4
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
cmp ecx, edx
jbe 0x47601e
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x476029
xor eax, eax
jmp 0x476075
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x476046
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.00476b45
jmp 0x476056
cmp ecx, 2
jne 0x47605f
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.00476b27
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
push dword [ebp - 4]
push dword [edi]
push eax
call fcn.00466170
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x4760a0
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x4760b4
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x475f74
pop edi
pop ebx
leave
ret
Function at 0x4013ca
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x407070], 1
mov dword [0x407074], 1
mov dword [0x407078], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40140b
mov eax, 0
jmp 0x4014a5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40142e
mov eax, 0
jmp 0x4014a5
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401450
cmp eax, 0x20b
je 0x401475
jmp 0x4014a0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401462
mov eax, 0
jmp 0x4014a5
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014a5
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x40148d
mov eax, 0
jmp 0x4014a5
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4014a5
mov eax, 0
leave
ret
Function at 0x4024ac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._vfprintf
call sym._abort

Function at 0x403080
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40309f
mov eax, 0
jmp 0x4030e3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x4030c2
mov eax, 0
jmp 0x4030e3
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x4030de
mov eax, 0
jmp 0x4030e3
mov eax, 1
leave
ret

Function at 0x4030e5
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x403144
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x40313c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x40313c
mov eax, dword [ebp - 4]
jmp 0x403158
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x403119
mov eax, 0
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401dc0
Capabilities:
Access peb ldr_data
Check mutex on windows
Create thread
Get file size
Query environment variable
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x81c
mov eax, dword [0x405018]
xor eax, esp
mov dword [esp + 0x818], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
mov eax, dword fs:[0x30]
push 0xf0000000
mov eax, dword [eax + 0xc]
push 1
mov eax, dword [eax + 0x14]
push 0
mov eax, dword [eax + 0x20]
push 0
push 0x405438
mov dword [0x405434], eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x401e2c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x818]
xor ecx, esp
call fcn.0040237d
mov esp, ebp
pop ebp
ret 0x10
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push dword [0x405434]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401e89
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x401e89
push 0
lea eax, [esp + 0x20]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401e89
push dword [esp + 0xc]
mov edx, edi
mov ecx, ebx
call fcn.00401530
push str.Global3pc6RWOgectGTFqCowxjeGy3XIGPtLwNrsr2zDctYD4hAU5pj4GW7rm8gHrHyTB6
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401ebe
mov ecx, dword [esp + 0x824]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040237d
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x401d80
push 0
push 0
call esi
push 0
push 0
push 0
push 0x401cd0
push 0
push 0
call esi
push 0
push 0
push 0
push 0x401bb0
push 0
push 0
call esi
push 0x400
lea eax, [esp + 0x24]
push eax
push str.userprofile
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, dword [sym.imp.ntdll.dll_NtDelayExecution]
mov dword [esp + 0x10], 0x4d2fa200
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00401a90
lea eax, [esp + 0x10]
push eax
push 0
call esi
jmp 0x401f22

Function at 0x409ebd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x409ebd
lcall 0x5de5, 0x8b10c483
jmp fcn.0076d6b4

Function at 0x403d61
Capabilities:
Encode data using xor

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x978cb0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x992014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
mov ecx, 0x993074
push dword [ebp + 0x30]
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.00947f00
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
mov ecx, 0x992a8c
push eax
call fcn.00947f00
mov esi, dword [0x993084]
xor ebx, ebx
mov edi, dword [0x993088]
nop word [eax + eax]
cmp edi, 0x10
mov byte [ebx + 0x9962d0], bl
mov eax, ebx
mov ecx, 0x993074
cmovae ecx, dword [0x993074]
cdq
idiv esi
mov al, byte [edx + ecx]
mov byte [ebx + 0x9963e0], al
inc ebx
cmp ebx, 0x100
jl 0x9349c0
xor edi, edi
xor esi, esi
mov dl, byte [esi + 0x9962d0]
movzx eax, byte [esi + 0x9963e0]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x934a14
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [edi + 0x9962d0]
mov byte [esi + 0x9962d0], al
inc esi
mov byte [edi + 0x9962d0], dl
cmp esi, 0x100
jl 0x9349f0
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.00934590
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x934a69
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x934a5f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x934abf
push edx
push ecx
call fcn.0094d569
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x934aab
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x934aa1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x934abf
push edx
push ecx
call fcn.0094d569
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00966b7a
int3