joyce8/EMBER2024-capa huggingface dataset:
Function at 0x9c531e
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x9f2274]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x9c5369
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.009c54b9
test al, al
jne 0x9c5363
sub edx, 2
cmp edx, edi
jne 0x9c5349
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x9c538b
lea eax, [edi + 2]
cmp edx, eax
je 0x9c538b
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.009c526a
add esp, 0x10
jmp 0x9c5485
push esi
lea ecx, [ebp - 0x255]
call fcn.009c54b9
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x9c53ce
push dword [ebp - 0x25c]
jmp 0x9c537b
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x9c540b
cmp word [ebp - 0x226], 0
je 0x9c542c
cmp word [ebp - 0x226], ax
jne 0x9c540b
cmp word [ebp - 0x224], 0
je 0x9c542c
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.009c526a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x9c5478
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x9c53e5
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x9c5460
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x9c5485
push 0x9c4fcb
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.009b5890
add esp, 0x10
jmp 0x9c5455
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.009b16f2
leave
ret

Function at 0x9c6010
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x9c6021
pop esi
ret
push ebx
push edi
push esi
call fcn.009c5fd9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.009c1a6d
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x9c6049
push ebx
push esi
push edi
call fcn.009b2200
add esp, 0xc
push 0
call fcn.009c1a33
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x9c6419
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009c605e
Function at 0x9cc735
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.009cc6b1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x9cc8a4
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x9cc8a4
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x9cc859
jg 0x9cc791
test eax, eax
je 0x9cc84f
push 1
push 0x1000
call fcn.009c4c94
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x9cc7b4
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x9cc846
push 0x8000
push ebx
call fcn.009be170
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x9cc7dd
jg 0x9cc7d8
cmp ecx, 0x1000
jb 0x9cc7dd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.009c82b7
add esp, 0x10
cmp eax, 0xffffffff
je 0x9cc822
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x9cc7d8
jl 0x9cc809
test ecx, ecx
jne 0x9cc7ca
push dword [ebp - 0xc]
push ebx
call fcn.009be170
push esi
call fcn.009c1a33
add esp, 0xc
xor ebx, ebx
jmp 0x9cc8b2
cmp byte [edi + 0x24], 0
je 0x9cc839
cmp dword [edi + 0x20], 5
jne 0x9cc839
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x9cc844
mov ebx, dword [edi + 0x18]
jmp 0x9cc846
xor ebx, ebx
push esi
call fcn.009c1a33
pop ecx
jmp 0x9cc8b2
test ecx, ecx
jg 0x9cc81b
jl 0x9cc859
test eax, eax
jae 0x9cc81b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.009c1216
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x9cc879
cmp byte [edi + 0x1c], 0
je 0x9cc81b
jmp 0x9cc8aa
push ebx
call fcn.009c67ee
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x9cc81b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x9cc8b2
cmp byte [edi + 0x1c], 0
je 0x9cc8af
mov ebx, dword [edi + 0x18]
jmp 0x9cc8b2
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.009c1216
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x9ce6bc
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x9f2274]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x9efedc
push esi
call fcn.009c6b03
pop ecx
pop ecx
test eax, eax
jne 0x9ce6ea
xor al, al
jmp 0x9ce767
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.009ce3f1
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x9ce724
push dword [ebp - 0x210]
call fcn.009b4d92
xor al, al
jmp 0x9ce765
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x9ce72a
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x9ce74a
push edx
call fcn.009ce5f3
pop ecx
test al, al
je 0x9ce715
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x9ce758
mov bl, 1
push dword [ebp - 0x210]
call fcn.009b4d92
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.009b16f2
leave
ret

Function at 0x9cf24c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x9f2274]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x9cf28f
call fcn.009bed77
mov dword [eax], 0xf
call fcn.009bed8a
mov dword [eax], 0xd
call fcn.009c2654
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009b16f2
leave
ret
test eax, eax
jne 0x9cf296
inc eax
jmp 0x9cf283
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x9cf281
xor eax, eax
cmp ecx, 1
setne al
jmp 0x9cf283
Function at 0x49a294
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49a2c2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49a2e0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049a1fa
jmp 0x49a2e0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49a2e0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049a1fa
test edi, edi
mov eax, edi
jne 0x49a2ca
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x10016610
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x100167d4
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd000]
push edi
jmp 0x1001663a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10016641
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10016630
mov eax, 1
add ebx, ebx
jne 0x10016653
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10016648
jne 0x10016664
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10016648
xor ecx, ecx
sub eax, 3
jb 0x10016678
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x100166ea
mov ebp, eax
add ebx, ebx
jne 0x10016683
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10016690
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x100166b4
inc ecx
add ebx, ebx
jne 0x100166a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10016695
jne 0x100166b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10016695
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x100166d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x100166c5
jmp 0x10016636
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x100166d4
add edi, ecx
jmp 0x10016636
pop esi
mov edi, esi
mov ecx, 0x3e4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x100166f2
cmp byte [edi], 7
jne 0x100166f2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x100166f7
lea edi, [esi + 0x14000]
mov eax, dword [edi]
or eax, eax
je 0x10016766
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x16000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x16028]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10016724
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1602c]
or eax, eax
je 0x10016760
mov dword [ebx], eax
add ebx, 4
jmp 0x10016741
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10016797
cmp al, 0xef
ja 0x1001678a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1001676c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10016779
mov ebp, dword [esi + 0x16030]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x100167cb
sub esp, 0xffffff80
jmp 0x10001697
Function at 0x581962
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x673a50]
jne 0x58196c
repz ret
jmp fcn.0058ad79

Function at 0x58a9e4
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.0057fca4
and dword [ebp - 4], 0
cmp dword [0x67523c], 0
mov ebx, eax
jne 0x58aa95
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x58ab46
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x58ab46
push eax
call fcn.0057fc32
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x67523c], eax
call esi
push eax
call fcn.0057fc32
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x675240], eax
call esi
push eax
call fcn.0057fc32
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x675244], eax
call esi
push eax
call fcn.0057fc32
pop ecx
mov dword [0x67524c], eax
test eax, eax
je 0x58aa95
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0057fc32
pop ecx
mov dword [0x675248], eax
mov eax, dword [0x675248]
cmp eax, ebx
je 0x58aaed
cmp dword [0x67524c], ebx
je 0x58aaed
push eax
call fcn.0057fcad
push dword [0x67524c]
mov esi, eax
call fcn.0057fcad
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x58aaed
test edi, edi
je 0x58aaed
call esi
test eax, eax
je 0x58aae4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x58aae4
test byte [ebp - 0xc], 1
jne 0x58aaed
or dword [ebp + 0x10], 0x200000
jmp 0x58ab26
mov eax, dword [0x675240]
cmp eax, ebx
je 0x58ab26
push eax
call fcn.0057fcad
pop ecx
test eax, eax
je 0x58ab26
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x58ab26
mov eax, dword [0x675244]
cmp eax, ebx
je 0x58ab26
push eax
call fcn.0057fcad
pop ecx
test eax, eax
je 0x58ab26
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x67523c]
call fcn.0057fcad
pop ecx
test eax, eax
je 0x58ab46
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x58ab48
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5908b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x672f4c], 0
mov byte [0x672f50], 0
mov dword [0x672f40], 0xde7
mov dword [0x672f44], 0x22fd
mov dword [0x672f48], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x672f48]
add eax, 1
mov dword [0x672f48], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x5908ff
mov dword [0x672f40], 0xbd0
mov dword [0x672f48], 0
mov eax, 0x100
mov dword [0x672f54], 0
mov dword [0x672f44], 0x1bb5
mov ecx, dword [0x672f4c]
mov edx, dword [0x672f48]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + edx]
add edi, ecx
mov dword [ebp - 0x20], 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 [0x672f54], edi
mov dword [0x672f44], 0x938
mov eax, edi
cdq
mov edi, dword [ebp - 0x20]
idiv edi
mov dword [0x672f4c], edx
mov ecx, dword [0x672f48]
mov bl, byte [esi + ecx]
mov byte [0x672f50], bl
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov bl, byte [0x672f50]
mov ecx, dword [0x672f4c]
mov byte [esi + ecx], bl
mov dword [0x672f44], 0x42e
mov dword [0x672f40], 0x178b
mov ecx, dword [0x672f48]
add ecx, 1
mov dword [0x672f48], ecx
cmp ecx, 0x100
jl 0x590939
mov dword [0x672f40], 0xa6
mov dword [0x672f44], 0x1ca3
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x590a20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x60
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x672f44], 0x8f6
mov dword [0x672f40], 0xfffff6fa
mov edx, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
lea edx, section..data
imul esi, eax, 0x6c
mov edi, edx
add edi, esi
add edi, 0x68
mov esi, dword [edi]
imul edi, eax, 0x6c
add edx, edi
add edx, 0x50
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x211
mov ecx, edx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
jne 0x590a4d
lea eax, [0x661494]
mov ecx, 0xe
lea edx, [ebp - 0x2c]
mov dword [0x672f44], 0xb99
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], ecx
call fcn.00590e30
mov eax, dword [0x672f44]
add eax, 0xfffff64c
mov dword [0x672f40], eax
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call fcn.005905f0
mov ecx, eax
mov dword [0x672f60], eax
mov eax, esp
mov edx, dword [ebp - 0x3c]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
mov ecx, dword [0x672f44]
add ecx, 0xffffef93
mov dword [0x672f40], ecx
mov dword [ebp - 0x48], eax
xor eax, eax
mov ecx, eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], eax
jmp 0x590b2c
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
lea edx, section..data
imul esi, eax, 0x6c
mov edi, edx
add edi, esi
add edi, 0x68
mov esi, dword [edi]
imul edi, eax, 0x6c
mov ebx, edx
add ebx, edi
add ebx, 0x4c
mov edi, dword [ebx]
imul ebx, eax, 0x6c
add edx, ebx
add edx, 0x50
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x48]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], edx
call fcn.00590c10
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
add eax, ecx
mov edx, dword [ebp - 0x54]
add edx, 1
cmp edx, 0x211
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], edx
jne 0x590b2c
mov dword [0x672f40], 0x23de
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x3c]
mov dword [esp + 8], ecx
call fcn.00591170
mov eax, dword [ebp - 0x48]
add eax, 0x1002aa
mov ecx, dword [ebp - 0x30]
mov dword [ecx], eax
mov dword [0x672f40], 0x26a1
mov dword [ecx + 4], 0x137200
mov eax, dword [ebp - 0x48]
add eax, 0xc8ef3
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], 0x1f60
xor eax, eax
mov dword [0x672f44], 0x1a84
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x590ca0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x672f44], 0x12cc
mov dword [0x672f48], 0
mov dword [0x672f4c], 0
mov dword [0x672f58], 0
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
je 0x590e20
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x672f44], 0x79c
mov edx, eax
add edx, 1
mov esi, dword [0x672f48]
add esi, 1
mov dword [ebp - 0x24], eax
mov eax, esi
mov dword [ebp - 0x28], edx
cdq
idiv ecx
mov dword [0x672f48], edx
mov dword [0x672f40], 0x11e9
mov esi, dword [0x672f4c]
mov edi, dword [ebp - 0x1c]
movzx edx, byte [edi + edx]
add edx, esi
mov eax, edx
cdq
idiv ecx
mov dword [0x672f4c], edx
mov dword [0x672f40], 0x18c
mov ecx, dword [0x672f48]
mov bl, byte [edi + ecx]
mov byte [0x672f50], bl
mov dword [0x672f40], 0x82
mov ecx, dword [0x672f4c]
mov bl, byte [edi + ecx]
mov ecx, dword [0x672f48]
mov byte [edi + ecx], bl
mov bl, byte [0x672f50]
mov ecx, dword [0x672f4c]
mov byte [edi + ecx], bl
mov ecx, dword [0x672f44]
add ecx, 0xffffede2
mov dword [0x672f40], ecx
mov ecx, dword [0x672f48]
movzx ecx, byte [edi + ecx]
mov edx, dword [0x672f4c]
movzx edx, byte [edi + edx]
add edx, ecx
and edx, 0xff
mov dword [0x672f58], edx
mov dword [0x672f44], 0x9b0
mov dword [0x672f40], 0xeba
mov bl, byte [edi + edx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
movzx esi, byte [ecx + edx]
mov dword [esp], esi
movzx esi, bl
mov dword [esp + 4], esi
call fcn.00401000
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov byte [ecx + edx], al
mov dword [0x672f40], 0x15cf
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x10]
cmp esi, edi
mov dword [ebp - 0x20], esi
jne 0x590cf9
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x590fb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [0x672f40], 0x2505
lea eax, [fcn.00590fb0]
mov dword [ebp - 4], eax
jmp 0x590fcb
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
mov dword [ebp - 8], eax
je 0x590fe2
jmp 0x590ff8
mov eax, dword [ebp - 8]
add esp, 0xc
pop ebp
ret
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
mov ecx, dword [eax + ecx]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp eax, 0x4550
je 0x590fda
mov eax, dword [ebp - 8]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [0x672f44], 0x1296
mov dword [ebp - 4], eax
jmp 0x590fcb
Function at 0x591520
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x2c
mov dword [ebp - 8], 0
mov dword [0x672f40], 0x2ca5
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x10]
add ecx, 0x3c
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [0x672f40], 0x261f
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], eax
jmp 0x5915e9
mov eax, dword [ebp - 0x1c]
mov dword [0x672f44], 0x6af
mov ecx, dword [ebp - 0x14]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x20], eax
je 0x59159a
mov eax, 0x1567
xor ecx, ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
jmp 0x59169a
mov dword [0x672f40], 0x1f57
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x591629
jmp 0x591588
mov dword [0x672f44], 0x681
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x591588
mov dword [0x672f40], 0x17cf
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x59165a
jmp 0x591588
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], edx
je 0x59156c
mov dword [0x672f40], 0x6eb
mov eax, dword [ebp - 0x2c]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
jl 0x5915e9
jmp 0x59156c
mov eax, dword [0x672f44]
add eax, 0xffffec0d
mov dword [0x672f40], eax
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff5
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x30]
cmp word [eax + ecx*2], 0x61
je 0x5915b5
jmp 0x591588
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x591588
mov eax, 0x5b7
mov ecx, 1
mov dword [0x672f40], 0x23a3
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x20]
cmp word [edx + esi*2 - 0xe], 0x6c
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
jne 0x591588
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [0x672f40], ecx
add esp, 0x2c
pop esi
pop ebp
ret
Function at 0x40b33d
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
mov edi, 0x4dd200
push ebx
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov esi, 0x2b4
lea eax, [ebp - 0x2bc]
push esi
push ebx
push eax
call fcn.00476d70
lea eax, [ebp - 8]
add esp, 0xc
neg eax
sbb eax, eax
lea ecx, [ebp - 4]
and eax, ecx
xor ecx, ecx
cmp dword [ebp + 8], ebx
mov eax, dword [eax]
sete cl
or cx, 0x4008
push ecx
lea ecx, [ebp - 0x2bc]
push esi
push ecx
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea ecx, [ebp - 8]
mov esi, eax
neg ecx
sbb ecx, ecx
lea eax, [ebp - 4]
and ecx, eax
mov dword [ebp - 8], edi
call fcn.0040b6cb
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4