joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56a2f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x60
mov ecx, 0xc
push ebx
mov ebx, dword [esp + 0x68]
push ebp
push esi
push edi
cmp byte [ebx + 0x2b], 2
lea edi, [esp + 0x10]
mov eax, dword [ebx + 0x20]
mov ebp, dword [eax]
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
je 0x56a321
mov eax, dword [ebx + 4]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x3c]
call eax
add esp, 4
lea esi, [ebp + 0x30]
mov ecx, 0xc
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
mov esi, 0x2c
lea edx, [esp + 0x40]
lea esp, [esp]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x56a3f1
add ecx, 4
add edx, 4
sub esi, 4
jae 0x56a340
cmp byte [esp + 0x1c], 0
je 0x56a3f1
xor edx, edx
lea ecx, [esp + 0x10]
xor esi, esi
mov eax, dword [ecx]
add eax, edx
add esi, eax
mov eax, dword [ecx + 4]
add eax, esi
add ecx, 8
add edx, eax
lea eax, [esp + 0x38]
cmp ecx, eax
jb 0x56a368
cmp esi, dword [esp + 0x38]
jne 0x56a3f1
cmp edx, dword [esp + 0x3c]
jne 0x56a3f1
lea edi, [ebx + 0x34]
mov esi, 0x2c
mov ecx, edi
lea edx, [esp + 0x10]
lea ebx, [ebx]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x56a3bb
add ecx, 4
add edx, 4
sub esi, 4
jae 0x56a3a0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x60
ret
mov eax, dword [esp + 0x78]
lea esi, [esp + 0x10]
mov ecx, 0xc
mov dword [eax], 1
rep movsd dword es:[edi], dword [esi]
movzx ecx, word [ebx + 0x42]
mov eax, ecx
and ecx, 0xfe00
and eax, 1
pop edi
shl eax, 0x10
pop esi
add eax, ecx
mov dword [ebx + 0x24], eax
xor eax, eax
pop ebp
pop ebx
add esp, 0x60
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x60
ret
Function at 0x578e07
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x57a200
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push esi
call fcn.0057a3e0
mov ebp, eax
add esp, 0xc
xor ebx, ebx
lea edi, [ebp*4]
test edi, edi
jle 0x57a279
mov ecx, dword [esp + 0x14]
lea esi, [esi + edi*4]
add esi, 8
add ecx, 8
mov edx, dword [ecx - 8]
lea ecx, [ecx + 0x10]
mov eax, dword [esi - 8]
lea esi, [esi - 0x10]
mov dword [ecx - 0x18], eax
add ebx, 4
mov eax, dword [esi + 0xc]
sub edi, 4
mov dword [esi + 8], edx
mov edx, dword [ecx - 0x14]
mov dword [ecx - 0x14], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [ecx - 0x10]
mov dword [ecx - 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [esi + 0x10], edx
mov edx, dword [ecx - 0xc]
mov dword [ecx - 0xc], eax
mov dword [esi + 0x14], edx
cmp ebx, edi
jl 0x57a235
mov esi, dword [esp + 0x14]
cmp ebp, 1
jle 0x57a3d9
add esi, 2
lea edi, [ebp - 1]
mov edx, dword [esi + 0xe]
lea esi, [esi + 0x10]
mov eax, edx
shr eax, 0x18
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi - 1]
mov ecx, dword [ecx*4 + 0x5ac300]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5acb00]
movzx eax, byte [esi]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5ac700]
movzx eax, dl
mov edx, dword [esi + 2]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5acf00]
mov eax, edx
shr eax, 0x18
mov dword [esi - 2], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi + 3]
mov ecx, dword [ecx*4 + 0x5ac300]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5acb00]
movzx eax, byte [esi + 4]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5ac700]
movzx eax, dl
mov edx, dword [esi + 6]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5acf00]
mov eax, edx
shr eax, 0x18
mov dword [esi + 2], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi + 7]
mov ecx, dword [ecx*4 + 0x5ac300]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5acb00]
movzx eax, byte [esi + 8]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5ac700]
movzx eax, dl
mov edx, dword [esi + 0xa]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5acf00]
mov eax, edx
shr eax, 0x18
mov dword [esi + 6], ecx
movzx ecx, byte [eax*4 + str.ccccwwww]
movzx eax, byte [esi + 0xb]
mov ecx, dword [ecx*4 + 0x5ac300]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5acb00]
movzx eax, byte [esi + 0xc]
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5ac700]
movzx eax, dl
movzx eax, byte [eax*4 + str.ccccwwww]
xor ecx, dword [eax*4 + 0x5acf00]
mov dword [esi + 0xa], ecx
dec edi
jne 0x57a288
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x57a8d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x34
cdq
and edx, 0xf
push ebx
mov ebx, dword [esp + 0x40]
push ebp
mov ebp, dword [esp + 0x4c]
push esi
push edi
lea edi, [edx + eax]
sar edi, 4
and ebp, 0x8000000f
jns 0x57a8fa
dec ebp
or ebp, 0xfffffff0
inc ebp
mov dword [esp + 0x1c], ebp
je 0x57a90f
test edi, edi
jne 0x57a90e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x34
ret
dec edi
mov eax, dword [esp + 0x58]
mov esi, dword [eax + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x4c], esi
mov esi, dword [eax + 0xc]
mov dword [esp + 0x10], esi
mov esi, dword [esp + 0x50]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
test edi, edi
je 0x57a9a2
mov ebp, dword [esp + 0x48]
mov eax, ebx
sub eax, esi
mov dword [esp + 0x50], eax
push esi
push ebx
push dword [ebp + 4]
lea eax, [ebp + 0xf8]
push eax
call fcn.00579630
mov eax, dword [esp + 0x24]
add esp, 0x10
xor dword [esi], eax
mov eax, dword [esp + 0x18]
xor dword [esi + 4], eax
mov eax, dword [esp + 0x4c]
xor dword [esi + 8], eax
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x10]
xor dword [esi + 0xc], ecx
mov ecx, dword [ebx]
mov eax, dword [eax + esi + 8]
add esi, 0x10
mov edx, dword [ebx + 4]
mov dword [esp + 0x4c], eax
mov eax, dword [ebx + 0xc]
add ebx, 0x10
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
dec edi
jne 0x57a942
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x58]
test ebp, ebp
je 0x57aa6a
mov edi, dword [ebx]
mov edx, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov ebp, dword [esp + 0x58]
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], eax
mov dword [ebp], edi
mov edi, ebp
mov dword [esp + 0x2c], ecx
mov dword [edi + 4], edx
lea edx, [esp + 0x34]
push edx
mov dword [edi + 0xc], eax
lea edx, [esp + 0x28]
mov eax, dword [esp + 0x4c]
push edx
mov dword [edi + 8], ecx
push dword [eax + 4]
lea ecx, [eax + 0xf8]
push ecx
mov dword [esp + 0x30], ecx
call fcn.00579630
mov ebp, dword [esp + 0x2c]
add esp, 0x10
test ebp, ebp
je 0x57aa2a
mov eax, esi
lea edi, [ebx + 0x10]
sub eax, ebx
lea edx, [esp + 0x34]
mov dword [esp + 0x50], eax
mov ebx, eax
mov al, byte [edi]
lea edi, [edi + 1]
mov cl, byte [edx]
lea edx, [edx + 1]
xor cl, al
mov byte [edx - 1], al
mov byte [ebx + edi - 1], cl
dec ebp
jne 0x57aa14
push esi
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x50]
push dword [eax + 4]
push dword [esp + 0x2c]
call fcn.00579630
mov eax, dword [esp + 0x24]
add esp, 0x10
xor dword [esi], eax
mov eax, dword [esp + 0x18]
xor dword [esi + 4], eax
mov eax, dword [esp + 0x4c]
xor dword [esi + 8], eax
mov ecx, dword [esp + 0x10]
xor dword [esi + 0xc], ecx
mov eax, dword [esp + 0x54]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
pop edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x48]
pop esi
mov dword [eax + 8], ecx
mov ecx, dword [esp + 8]
pop ebp
mov dword [eax + 4], edx
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x48]
pop ebx
add esp, 0x34
ret
Function at 0x57aa90
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x20
cdq
and edx, 0xf
push ebp
mov ebp, dword [esp + 0x30]
push esi
lea esi, [edx + eax]
mov eax, dword [esp + 0x38]
sar esi, 4
push edi
mov edi, dword [esp + 0x34]
and eax, 0x8000000f
jns 0x57aabc
dec eax
or eax, 0xfffffff0
inc eax
mov dword [esp + 0x34], eax
je 0x57aad0
test esi, esi
jne 0x57aacf
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20
ret
dec esi
push ebx
mov ebx, dword [esp + 0x44]
test esi, esi
je 0x57ab2e
mov ecx, dword [esp + 0x34]
lea edx, [ecx + 8]
mov eax, dword [edi]
xor eax, dword [ebx]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 4]
xor eax, dword [edi + 4]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 8]
xor eax, dword [edi + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0xc]
xor eax, dword [edi + 0xc]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10]
push ebp
push eax
push dword [ecx + 4]
push edx
call fcn.00579c10
mov ecx, dword [esp + 0x44]
mov ebx, ebp
add esp, 0x10
add edi, 0x10
add ebp, 0x10
lea edx, [ecx + 8]
dec esi
jne 0x57aae0
mov eax, dword [esp + 0x38]
test eax, eax
je 0x57abe2
mov edx, dword [edi + 8]
xor edx, dword [ebx + 8]
mov eax, dword [edi]
xor eax, dword [ebx]
mov ecx, dword [edi + 4]
xor ecx, dword [ebx + 4]
mov esi, dword [edi + 0xc]
xor esi, dword [ebx + 0xc]
mov dword [esp + 0x18], edx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x14], eax
lea edx, [esp + 0x14]
mov eax, dword [esp + 0x38]
push edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x24], esi
push dword [eax + 4]
lea ecx, [eax + 8]
push ecx
mov dword [esp + 0x4c], ecx
call fcn.00579c10
mov ebx, dword [esp + 0x48]
add esp, 0x10
xor esi, esi
test ebx, ebx
je 0x57aba9
lea edx, [ebp + 0x10]
sub edi, ebp
lea esp, [esp]
mov cl, byte [esp + esi + 0x20]
lea edx, [edx + 1]
mov al, byte [edi + edx - 1]
xor al, cl
mov byte [edx - 1], cl
mov byte [esp + esi + 0x20], al
inc esi
cmp esi, ebx
jb 0x57ab90
lea eax, [esp + 0x20]
push eax
push eax
mov eax, dword [esp + 0x3c]
push dword [eax + 4]
push dword [esp + 0x48]
call fcn.00579c10
mov eax, dword [esp + 0x30]
lea ebx, [esp + 0x30]
mov dword [ebp], eax
add esp, 0x10
mov eax, dword [esp + 0x24]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x44]
mov ecx, dword [ebx]
mov dword [eax], ecx
mov ecx, dword [ebx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [ebx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 0xc]
pop ebx
pop edi
pop esi
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x34]
pop ebp
add esp, 0x20
ret
Function at 0x4010f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8a40
call fcn.00438720
mov eax, dword [0x45504c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, edx
push 0
push eax
mov ebx, ecx
call fcn.0040b420
add esp, 0xc
mov dword [ebp - 0x8a18], 0x104
lea eax, [ebp - 0x8a40]
mov dword [ebp - 0x8a14], 0
mov dword [ebp - 0x8a10], 0
push eax
lea eax, [ebp - 0x8a28]
push eax
lea eax, [ebp - 0x8a2c]
push eax
lea eax, [ebp - 0x8a30]
push eax
lea eax, [ebp - 0x8a10]
push eax
lea eax, [ebp - 0x8a34]
push eax
lea eax, [ebp - 0x8a38]
push eax
lea eax, [ebp - 0x8a14]
push eax
push 0
lea eax, [ebp - 0x8a18]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [ebp - 0x8a10]
test eax, eax
je 0x40126c
xor esi, esi
test eax, eax
je 0x40126c
nop dword [eax]
xor eax, eax
mov dword [ebp - 0x8a1c], 0x3fff
push eax
push eax
push eax
push eax
mov word [ebp - 0x8a0c], ax
lea eax, [ebp - 0x8a1c]
push eax
lea eax, [ebp - 0x8a0c]
push eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40125f
lea eax, [ebp - 0x8a0c]
push edi
push eax
call fcn.0040a4db
add esp, 8
test eax, eax
jne 0x40127f
push 0x800
push eax
lea eax, [ebp - 0xa0c]
push eax
call fcn.0040b420
add esp, 0xc
mov dword [ebp - 0x8a20], 0x400
lea eax, [ebp - 0x8a20]
mov dword [ebp - 0x8a24], 1
push eax
lea eax, [ebp - 0xa0c]
push eax
lea eax, [ebp - 0x8a24]
push eax
push 0
lea eax, [ebp - 0x8a0c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40125f
lea eax, [ebp - 0xa0c]
push edi
push eax
call fcn.0040a4db
add esp, 8
test eax, eax
jne 0x40127f
inc esi
cmp esi, dword [ebp - 0x8a10]
jb 0x4011b0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408f46
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408f46
mov esp, ebp
pop ebp
ret
Function at 0x4012a0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x45504c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x44fb90
push str.kernel32
mov ebx, ecx
mov dword [ebp - 0x808], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4012ef
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
lea eax, [ebp - 0x814]
push eax
mov eax, dword [ebp - 0x808]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push str.SYSTEMCurrentControlSetControlSession_Manager
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4013fa
push 0x800
lea eax, [ebp - 0x804]
mov dword [ebp - 0x810], 7
push 0
push eax
call fcn.0040b420
add esp, 0xc
mov dword [ebp - 0x80c], 0x400
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push eax
lea eax, [ebp - 0x810]
push eax
push 0
push str.PendingFileRenameOperations
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x814]
mov esi, eax
call edi
test esi, esi
jne 0x4013fa
mov eax, dword [ebp - 0x80c]
lea esi, [ebp - 0x804]
xor edi, edi
mov dword [ebp - 0x818], eax
test eax, eax
je 0x4013f4
push ebx
push esi
call fcn.0040a4db
add esp, 8
test eax, eax
jne 0x401447
mov ecx, esi
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4013c0
sub ecx, edx
mov eax, esi
sar ecx, 1
inc edi
add edi, ecx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4013d7
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2]
add esi, 2
cmp edi, dword [ebp - 0x818]
jb 0x4013a3
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x814]
push eax
mov eax, dword [ebp - 0x808]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000002
call esi
test eax, eax
jne 0x40145c
mov ecx, dword [ebp - 0x814]
mov edx, ebx
call fcn.004010f0
push dword [ebp - 0x814]
test al, al
je 0x40145a
call edi
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408f46
mov esp, ebp
pop ebp
ret
call edi
lea eax, [ebp - 0x814]
push eax
mov eax, dword [ebp - 0x808]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push 0x80000001
call esi
test eax, eax
jne 0x4014a3
mov ecx, dword [ebp - 0x814]
mov edx, ebx
call fcn.004010f0
push dword [ebp - 0x814]
test al, al
jne 0x401445
call edi
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408f46
mov esp, ebp
pop ebp
ret
Function at 0x4014c0
Capabilities:
Create directory

Disassembly:
push ebx
push edi
push str.shell32.dll
mov edi, edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40154e
cmp ebx, 0xffffffff
je 0x40154e
push str.SHGetSpecialFolderPathW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401547
push 0
push 0x1c
push edi
push 0
call eax
test eax, eax
je 0x401547
push str.GoToAssist_Remote_Support
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.Applet
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401529
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401547
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x401533
sub edi, ecx
sar edi, 1
mov eax, edi
pop edi
pop ebx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
xor eax, eax
pop ebx
ret
Function at 0x401560
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x45504c]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
lea ecx, [ebx - 1]
cmp ecx, 0x100
ja 0x4016e7
cmp word [esi + ebx*2 - 2], 0x5c
je 0x4015ad
mov eax, 0x5c
mov word [esi + ebx*2], ax
inc ebx
lea eax, [esi + ebx*2]
xor ecx, ecx
mov dword [eax], 0x2a
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x401644
test byte [esp + 0x18], 0x10
je 0x401629
push 0x44fcd0
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x401625
push 0x44fcd4
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x401625
mov eax, 0x104
sub eax, ebx
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esi + ebx*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push edi
push esi
mov dl, 1
xor cl, cl
call fcn.00401560
add esp, 8
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
mov eax, dword [esp + 0x10]
jne 0x4015d1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esi + ebx*2]
mov dword [eax], 0x2a
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
je 0x4016c8
test byte [esp + 0x18], 0x10
jne 0x4016ab
mov eax, 0x104
sub eax, ebx
push eax
lea eax, [esp + 0x48]
push eax
lea eax, [esi + ebx*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40169d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
je 0x4016ab
test eax, eax
jne 0x4016ab
push 4
push eax
push esi
call edi
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401662
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x14]
xor ecx, ecx
push esi
mov word [eax - 2], cx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4016e7
test edi, edi
je 0x4016e7
push 4
push eax
push esi
call edi
mov ecx, dword [esp + 0x26c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00408f46
mov esp, ebp
pop ebp
ret
Function at 0x402470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45504c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xa
push 0x7d00
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4024ce
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x4024ce
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4024ce
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4024dd
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor edi, edi
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0xc], ebx
test edi, edi
je 0x4025eb
cmp edi, 0xffffffff
je 0x4025eb
cmp ebx, 0xd
jb 0x4025d8
mov ebx, dword [esi + 5]
mov dword [ebp - 0x18], ebx
cmp ebx, 0xffffffff
je 0x4025d8
mov al, byte [esi]
cmp al, 0xe1
jae 0x4025d8
xor edx, edx
movzx eax, al
mov ecx, 9
div ecx
mov ecx, 5
mov dword [ebp - 0x10], edx
xor edx, edx
movzx eax, al
div ecx
push ebx
mov ecx, edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
mov edx, 0x300
add cl, byte [ebp - 0x10]
shl edx, cl
lea eax, [edx*2 + 0xe6c]
mov dword [ebp - 0x14], eax
call fcn.0040fae8
push dword [ebp - 0x14]
mov ebx, eax
call fcn.0040fae8
add esp, 8
mov ecx, eax
mov dword [ebp - 0x24], ecx
test ebx, ebx
je 0x40260c
test ecx, ecx
je 0x4025fc
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff3
mov dword [ebp - 8], 0
push ebx
push eax
lea eax, [esi + 0xd]
push eax
mov eax, dword [ebp - 0x1c]
movzx eax, al
push eax
mov eax, dword [ebp - 0x20]
movzx eax, al
push eax
mov eax, dword [ebp - 0x10]
movzx eax, al
push eax
call fcn.004034d0
push dword [ebp - 0x24]
mov esi, eax
call fcn.0040cf54
add esp, 0x24
test esi, esi
jne 0x4025cf
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 8], eax
jne 0x4025cf
push ecx
mov edx, eax
mov ecx, ebx
call fcn.004032a0
push ebx
mov esi, eax
call fcn.0040cf54
add esp, 8
push esi
jmp 0x4025de
push ebx
call fcn.0040cf54
add esp, 4
mov eax, 0xd
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408f46
mov esp, ebp
pop ebp
ret
push ebx
call fcn.0040cf54
add esp, 4
mov eax, 0xe
jmp 0x4025dd
test ecx, ecx
je 0x402619
push ecx
call fcn.0040cf54
add esp, 4
mov eax, 0xe
jmp 0x4025dd
Function at 0x402620
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x45504c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x820
lea eax, [ebp - 0x824]
push 0
push eax
call fcn.0040b420
add esp, 0xc
mov byte [ebp - 0x82a], 0
lea eax, [ebp - 0x824]
mov byte [ebp - 0x829], 0
push str.params.json
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xa
push 0x2710
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4026b8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x830], eax
test eax, eax
je 0x4026b8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x4026b8
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4026cc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x830], 0
test esi, esi
je 0x402760
cmp esi, 0xffffffff
je 0x402760
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x40273a
cmp edi, 0xffffffff
je 0x40273a
push 2
push 0
push 0
push edi
mov byte [ebp - 0x82a], 1
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x828]
push eax
push dword [ebp - 0x830]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push edi
setne byte [ebp - 0x829]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp byte [ebp - 0x829], 0
jne 0x402760
cmp byte [ebp - 0x82a], 0
je 0x402760
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408f46
mov esp, ebp
pop ebp
ret