joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5a9492
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005a9079

Function at 0x5a949d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005a9208

Function at 0x5a99c0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00556ea0
mov eax, dword [0x626734]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.005a375d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x5a9a02
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x5a9b5e
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00557270
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x646ae0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.005aaf53
mov ecx, dword [esi*4 + 0x646ae0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x5a9b57
cmp eax, dword [edi + ecx + 0x24]
jne 0x5a9b57
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5a9b57
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005aaf53
add esp, 0x14
test edx, edx
jl 0x5a9b57
jg 0x5a9acd
test eax, eax
jb 0x5a9b57
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x5a9b57
jl 0x5a9ae7
cmp dword [ebp - 0x1008], eax
ja 0x5a9b57
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x5a9b05
test ebx, ebx
je 0x5a9b3e
cmp ecx, edi
jae 0x5a9b3e
mov al, byte [ecx]
cmp al, 0xd
jne 0x5a9b1f
lea eax, [edi - 1]
cmp ecx, eax
jae 0x5a9b2b
cmp byte [ecx + 1], 0xa
jne 0x5a9b2b
inc ecx
jmp 0x5a9b2b
movzx eax, al
movsx eax, byte [eax + 0x6269d8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x5a9b05
cmp edx, ebx
jne 0x5a9b05
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x5a9b5c
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.005566b4
leave
ret
Function at 0x5aa0dc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x646ae0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5aa11c
cmp byte [ebx], 0xa
jne 0x5aa11c
or byte [eax + edi + 0x28], 4
jmp 0x5aa121
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x5aa21f
mov al, byte [edx]
cmp al, 0x1a
je 0x5aa201
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x5aa150
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x5aa175
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x5aa17f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x5aa132
jmp 0x5aa21f
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5aa1fc
cmp dword [ebp - 0xc], 0
je 0x5aa1fc
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x646ae0]
test byte [eax + edi + 0x28], 0x48
je 0x5aa1d6
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x5aa1c1
mov byte [esi], dl
jmp 0x5aa1d2
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x646ae0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x5aa21f
cmp byte [ebp - 1], 0xa
jne 0x5aa1e5
cmp esi, ebx
jne 0x5aa1e5
mov byte [esi], 0xa
jmp 0x5aa21e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005aaf71
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5aa21f
mov byte [esi], 0xd
jmp 0x5aa21e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x646ae0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5aa21b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5aa21f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5aa228
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x646ae0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5aa26b
cmp word [esi], dx
jne 0x5aa26b
or byte [edi + eax + 0x28], 4
jmp 0x5aa270
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x5aa3c3
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x5aa3a3
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x5aa2b2
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x5aa2e8
cmp eax, edx
jae 0x5aa2f4
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x5aa28a
jmp 0x5aa3c3
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5aa39f
cmp dword [ebp - 0x14], 0
je 0x5aa39f
mov eax, dword [ebx*4 + 0x646ae0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x5aa377
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x5aa340
mov word [esi], cx
jmp 0x5aa373
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x646ae0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x646ae0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x646ae0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x5aa3c3
pop ebx
cmp word [ebp - 4], bx
jne 0x5aa388
cmp esi, dword [ebp + 0xc]
jne 0x5aa388
mov word [esi], bx
jmp 0x5aa3c0
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.005aaf71
add esp, 0x10
cmp word [ebp - 4], bx
je 0x5aa3c3
push 0xd
jmp 0x5aa3bc
mov ecx, dword [ebx*4 + 0x646ae0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5aa3ba
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5aa3c3
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5b08a5
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x626734]
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 0x5b08f0
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.005b0c40
test al, al
jne 0x5b08ea
sub edx, 2
cmp edx, edi
jne 0x5b08d0
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x5b0912
lea eax, [edi + 2]
cmp edx, eax
je 0x5b0912
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.005b056c
add esp, 0x10
jmp 0x5b0a0c
push esi
lea ecx, [ebp - 0x255]
call fcn.005b0c40
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 0x5b0955
push dword [ebp - 0x25c]
jmp 0x5b0902
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 0x5b0992
cmp word [ebp - 0x226], 0
je 0x5b09b3
cmp word [ebp - 0x226], ax
jne 0x5b0992
cmp word [ebp - 0x224], 0
je 0x5b09b3
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.005b056c
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x5b09ff
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x5b096c
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x5b09e7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x5b0a0c
push 0x5b016e
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00593ad0
add esp, 0x10
jmp 0x5b09dc
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.005566b4
leave
ret
Function at 0x5b1d33
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x5b1dd0
push ebx
push esi
call fcn.005b1cef
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.005ab23c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5b1d7d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5b1dcf
push edi
push eax
call fcn.005a4573
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5b1d9d
call fcn.005a3723
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5b1dce
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.005ab23c
add esp, 0x20
test eax, eax
jne 0x5b1dbc
push edi
call fcn.005a3723
jmp 0x5b1dc4
push ebx
call fcn.005a3723
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x5b1dd3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5b1de4
pop esi
ret
push ebx
push edi
push esi
call fcn.005b1cef
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.005a4573
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5b1e0c
push ebx
push esi
push edi
call fcn.00558ae0
add esp, 0xc
push 0
call fcn.005a3723
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x5b26ed
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005b207f

Function at 0x5b2b74
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005b2a48
Function at 0x5bd9ab
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]
push dword [ebp + 0xc]
push ebx
call fcn.005bd7cb
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5bdb23
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5bdb23
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5bdad2
jg 0x5bda04
test eax, eax
je 0x5bdac8
push 1
push 0x1000
call fcn.005a5c71
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5bda2a
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x5bdabf
push 0x8000
push ebx
call fcn.005a08af
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5bda56
jg 0x5bda51
cmp ecx, 0x1000
jb 0x5bda56
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.005a8e79
add esp, 0x10
cmp eax, 0xffffffff
je 0x5bda9b
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 0x5bda51
jl 0x5bda82
test ecx, ecx
jne 0x5bda43
push dword [ebp - 0xc]
push ebx
call fcn.005a08af
push esi
call fcn.005a3723
add esp, 0xc
xor edi, edi
jmp 0x5bdb34
cmp byte [edi + 0x24], 0
je 0x5bdab2
cmp dword [edi + 0x20], 5
jne 0x5bdab2
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5bdabd
mov edi, dword [edi + 0x18]
jmp 0x5bdabf
xor edi, edi
push esi
call fcn.005a3723
pop ecx
jmp 0x5bdb34
test ecx, ecx
jg 0x5bda94
jl 0x5bdad2
test eax, eax
jae 0x5bda94
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005aaf71
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5bdaf5
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x5bda94
jmp 0x5bdb2c
push ebx
call fcn.005b2fa6
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5bda94
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x5bdb34
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x5bdb31
mov edi, dword [edi + 0x18]
jmp 0x5bdb34
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.005aaf71
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5bece0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x5bed0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x5bed0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4010b2
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x410284]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x4010ff
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x804]
push 0x3ff
push 0x400
push eax
call fcn.00403777
lea eax, [ebp - 0x804]
push eax
call fcn.00401059
add esp, 0x18
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call int.00401ea2
leave
ret

Function at 0x40110b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x410284]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x401158
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push 0x3ff
push 0x400
push eax
call fcn.00406792
lea eax, [ebp - 0x404]
push eax
call section..text
add esp, 0x18
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call int.00401ea2
leave
ret
Function at 0x40984b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x410284]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404b63
and dword [ebp - 0x14], 0
cmp dword [0x411b3c], 0
mov dword [ebp - 0x18], eax
jne 0x4098fe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4099a6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4099a6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x411b3c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x411b40], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x411b44], eax
call edi
push eax
call esi
mov dword [0x411b4c], eax
test eax, eax
je 0x4098fe
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x411b48], eax
mov eax, dword [0x411b48]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x409957
cmp dword [0x411b4c], ecx
je 0x409957
push eax
call esi
push dword [0x411b4c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x409957
test ebx, ebx
je 0x409957
call edi
test eax, eax
je 0x40994e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40994e
test byte [ebp - 8], 1
jne 0x409957
or dword [ebp + 0x10], 0x200000
jmp 0x40998a
mov eax, dword [0x411b40]
cmp eax, dword [ebp - 0x18]
je 0x40998a
push eax
call esi
test eax, eax
je 0x40998a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40998a
mov eax, dword [0x411b44]
cmp eax, dword [ebp - 0x18]
je 0x40998a
push eax
call esi
test eax, eax
je 0x40998a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x411b3c]
call esi
test eax, eax
je 0x4099a6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4099a8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call int.00401ea2
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
jmp 0x455392
push 0x14
push 0x4764f0
call fcn.00455720
push 1
call fcn.00454f78
pop ecx
test al, al
jne 0x455249
push 7
call fcn.00455a3c
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00454f43
mov byte [ebp - 0x24], al
mov eax, dword [0x8a89a4]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x455242
test eax, eax
jne 0x4552b3
mov dword [0x8a89a4], ecx
push 0x467420
push 0x467408
call fcn.0045b0ca
pop ecx
pop ecx
test eax, eax
je 0x455296
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x45538c
push 0x467404
push 0x4673b0
call fcn.0045b06e
pop ecx
pop ecx
mov dword [0x8a89a4], 2
jmp 0x4552b8
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.004550d2
pop ecx
call fcn.00455d2a
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x4552e8
push esi
call fcn.00455048
pop ecx
test al, al
je 0x4552e8
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00455717
call esi
call fcn.00455d30
mov esi, eax
cmp dword [esi], edi
je 0x455306
push esi
call fcn.00455048
pop ecx
test al, al
je 0x455306
push dword [esi]
call fcn.0045a4cc
pop ecx
call fcn.00455b57
movzx eax, ax
push eax
call fcn.0045b01b
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.00455b8a
test al, al
jne 0x455331
push esi
call fcn.0045a504
test bl, bl
jne 0x45533a
call fcn.0045a4a7
push edi
push 1
call fcn.004550ef
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x45538c
call fcn.00455766
ret
call fcn.00455c23
jmp 0x45522a
Function at 0x4044d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x404503
call fcn.004042d0
test eax, eax
je 0x404503
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.004042b0
mov eax, dword [ebp - 8]
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x404550
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jae 0x404566
xor eax, eax
mov esp, ebp
pop ebp
ret
call fcn.004042d0
cmp eax, 7
jb 0x404560
mov edx, 7
lea ecx, [ebp - 0x10]
call fcn.004042b0
mov eax, dword [ebp - 0xc]
shr eax, 0x1d
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x4047f0
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x8a4a74]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x404839
push str.SetDefaultDllDirectories
push 0x4675d0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x404839
push 0xc00
call eax
test eax, eax
jne 0x4048d7
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4048d7
cmp eax, 0x104
ja 0x4048d7
cmp word [ebp + eax*2 - 0x2d6], 0x5c
je 0x404877
mov ecx, 0x5c
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x4048d6
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + eax*2]
mov al, byte [esi]
mov ecx, edi
inc esi
test al, al
je 0x4048b0
movzx eax, al
mov word [ecx], ax
add ecx, 2
mov al, byte [esi]
inc esi
test al, al
jne 0x4048a0
xor eax, eax
mov dword [ecx], 0x64002e
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ecx + 4], 0x6c006c
call ebx
cmp byte [esi], 0
jne 0x404897
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00454942
mov esp, ebp
pop ebp
ret
Function at 0x40a870
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x98
push 0
lea eax, [edi + 0x110]
push eax
call fcn.004563c0
mov eax, dword [edi + 0x30]
add esp, 0xc
add eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x28]
mov dword [edi + 0x40], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x14], 0
lea esi, [ecx + eax]
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
mov ecx, 0xc
shr edx, 3
imul eax, edx, 0x54
mov edx, esi
sub edx, eax
mov eax, dword [edi + 0x18]
cmp eax, ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x44], edx
cmovb ecx, eax
mov dword [edi + 8], edx
not ecx
lea eax, [edx + 0x600]
mov dword [edi + 0x24], ecx
mov dword [edi + 0x20], ecx
lea ecx, [esi - 0xc]
mov dword [edi + 0x38], eax
xor eax, eax
mov dword [edi + 0x3c], ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [ecx + 4], edx
add edx, 2
mov dword [ecx], 0x1010100
mov dword [ecx + 8], 0
mov byte [edx - 2], al
lea edx, [edx + 6]
xor ecx, ecx
mov byte [edx - 7], 1
inc eax
mov dword [edx - 6], ecx
cmp eax, 0x100
jb 0x40a907
lea eax, [edi + 0x9fc]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
nop word [eax + eax]
mov esi, eax
xor edi, edi
movzx eax, word [edi + 0x4675f0]
lea ecx, [ebx + 2]
xor edx, edx
div ecx
mov ecx, 0x4000
sub ecx, eax
xor eax, eax
movzx ecx, cx
nop
mov word [esi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x40a950
add edi, 2
add esi, 2
cmp edi, 0x10
jb 0x40a934
mov eax, dword [ebp - 4]
inc ebx
sub eax, 0xffffff80
mov dword [ebp - 4], eax
cmp ebx, 0x80
jb 0x40a930
mov edi, dword [ebp + 8]
mov edx, 0x50
pop ebx
lea esi, [edi + 0x3bc]
nop dword [eax + eax]
mov eax, esi
mov ecx, 0x10
nop word [eax + eax]
mov word [eax], dx
lea eax, [eax + 4]
mov word [eax - 2], 0x403
sub ecx, 1
jne 0x40a9a0
add edx, 0x28
add esi, 0x40
cmp edx, 0x438
jb 0x40a990
mov dword [edi + 0x3b8], 0x40070000
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40b140
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [0x8a4a4c]
mov dword [ecx], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
pop ebp
ret 4