joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427b10
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret

Function at 0x428640
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jle 0x42872f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
push edi
movzx ecx, byte [edx]
dec ebx
inc edx
mov dword [ebp + 0x10], ebx
test ebx, ebx
jle 0x4286f5
movzx esi, byte [edx]
dec ebx
inc edx
mov dword [ebp + 0x10], ebx
test ebx, ebx
jle 0x4286bf
movzx edi, byte [edx]
dec ebx
mov dword [ebp + 0x10], ebx
mov ebx, ecx
shr ebx, 2
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ccccccccccccccccccccccccccccccccccccccccccc_ccc_456789:__cccbccc]
mov byte [eax], bl
and ecx, 3
add ecx, ecx
mov ebx, esi
shr ebx, 4
movzx ecx, byte [ebx + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ccccccccccccccccccccccccccccccccccccccccccc_ccc_456789:__cccbccc]
mov byte [eax + 1], cl
mov ecx, edi
shr ecx, 6
and esi, 0xf
movzx ecx, byte [ecx + esi*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ccccccccccccccccccccccccccccccccccccccccccc_ccc_456789:__cccbccc]
inc edx
mov byte [eax + 2], cl
and edi, 0x3f
movzx ecx, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ccccccccccccccccccccccccccccccccccccccccccc_ccc_456789:__cccbccc]
mov byte [eax + 3], cl
jmp 0x428717
mov edi, ecx
shr edi, 2
mov bl, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ccccccccccccccccccccccccccccccccccccccccccc_ccc_456789:__cccbccc]
and ecx, 3
mov byte [eax], bl
mov edi, esi
add ecx, ecx
shr edi, 4
movzx ecx, byte [edi + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ccccccccccccccccccccccccccccccccccccccccccc_ccc_456789:__cccbccc]
mov byte [eax + 1], cl
and esi, 0xf
movzx ecx, byte [esi*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ccccccccccccccccccccccccccccccccccccccccccc_ccc_456789:__cccbccc]
mov byte [eax + 2], cl
mov byte [eax + 3], 0x3d
jmp 0x428717
mov esi, ecx
shr esi, 2
mov bl, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ccccccccccccccccccccccccccccccccccccccccccc_ccc_456789:__cccbccc]
and ecx, 3
mov byte [eax], bl
shl ecx, 4
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ccccccccccccccccccccccccccccccccccccccccccc_ccc_456789:__cccbccc]
mov byte [eax + 1], cl
mov word [eax + 2], 0x3d3d
mov ebx, dword [ebp + 0x10]
add eax, 4
test ebx, ebx
jg 0x428657
pop edi
pop esi
mov byte [eax], 0
xor eax, eax
pop ebx
pop ebp
ret
mov edx, dword [ebp + 0xc]
mov byte [edx], 0
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x428a70
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
push ebx
push esi
mov esi, dword [ecx + 4]
mov ecx, eax
shr ecx, 4
xor ecx, esi
and ecx, 0xf0f0f0f
xor esi, ecx
shl ecx, 4
xor eax, ecx
mov ecx, eax
shr ecx, 0x10
xor ecx, esi
and ecx, 0xffff
xor esi, ecx
shl ecx, 0x10
xor eax, ecx
mov ecx, esi
shr ecx, 2
xor ecx, eax
and ecx, 0x33333333
xor eax, ecx
add ecx, ecx
add ecx, ecx
xor esi, ecx
mov ecx, esi
shr ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor eax, ecx
shl ecx, 8
xor ecx, esi
rol ecx, 1
mov esi, ecx
xor esi, eax
and esi, 0xaaaaaaaa
xor ecx, esi
xor esi, eax
push edi
rol esi, 1
mov dword [ebp - 4], 8
lea esp, [esp]
mov eax, ecx
ror eax, 4
xor eax, dword [edx]
add edx, 0x10
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x46d7b0]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x46d9b0]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x46dbb0]
and eax, 0x3f
xor edi, dword [eax*4 + 0x46ddb0]
mov eax, dword [edx - 0xc]
xor esi, edi
xor eax, ecx
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x46d8b0]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x46dab0]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x46dcb0]
and eax, 0x3f
xor edi, dword [eax*4 + 0x46deb0]
xor esi, edi
mov eax, esi
ror eax, 4
xor eax, dword [edx - 8]
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x46d7b0]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x46d9b0]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x46dbb0]
and eax, 0x3f
xor edi, dword [eax*4 + 0x46ddb0]
mov eax, dword [edx - 4]
xor ecx, edi
xor eax, esi
mov edi, eax
shr edi, 0x18
and edi, 0x3f
mov edi, dword [edi*4 + 0x46d8b0]
mov ebx, eax
shr ebx, 0x10
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x46dab0]
mov ebx, eax
shr ebx, 8
and ebx, 0x3f
xor edi, dword [ebx*4 + 0x46dcb0]
and eax, 0x3f
xor edi, dword [eax*4 + 0x46deb0]
xor ecx, edi
dec dword [ebp - 4]
jne 0x428af0
ror ecx, 1
mov eax, ecx
xor eax, esi
and eax, 0xaaaaaaaa
xor ecx, eax
xor eax, esi
ror eax, 1
mov edx, eax
shr edx, 8
xor edx, ecx
and edx, 0xff00ff
xor ecx, edx
shl edx, 8
xor eax, edx
mov edx, eax
shr edx, 2
xor edx, ecx
and edx, 0x33333333
xor ecx, edx
add edx, edx
add edx, edx
xor eax, edx
mov edx, ecx
shr edx, 0x10
xor edx, eax
and edx, 0xffff
xor eax, edx
shl edx, 0x10
xor ecx, edx
mov edx, ecx
shr edx, 4
xor edx, eax
and edx, 0xf0f0f0f
mov esi, edx
shl esi, 4
xor esi, ecx
mov ecx, dword [ebp + 8]
pop edi
mov dword [ecx], esi
xor edx, eax
pop esi
mov dword [ecx + 4], edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429670
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x429685
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp + 0x14]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42967e
mov edx, dword [ebp + 0x10]
mov eax, 4
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 0x14]
push esi
lea ecx, [ebp - 8]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp + 0x14]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4296e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push ecx
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x429736
mov eax, dword [ebp - 4]
test eax, eax
je 0x429736
mov edx, dword [ebp + 0x10]
push esi
push 4
lea ecx, [ebp + 0x14]
push ecx
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x429740
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x47c5a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x429777
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043fe0a
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10c]
push edx
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x429765
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 0x10c]
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x114]
push edx
push 0
push esi
push eax
mov dword [ebp - 0x114], 2
mov dword [ebp - 0x110], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x10c]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x429765
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4297e3
sub eax, edx
cmp dword [ebp + 0x18], eax
jb 0x429765
lea eax, [ebp - 0x108]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x429801
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0043fe0a
mov esp, ebp
pop ebp
ret
Function at 0x429c00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0x104
jae 0x429c23
mov eax, dword [ebp + 8]
push 0
push str.the_len_in_is_too_small
push eax
call fcn.0042a600
add esp, 0xc
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 0xc]
push 0x105
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
dec eax
cmp eax, 0x103
ja 0x429c47
mov byte [esi + 1], 0
mov eax, 1
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x42d0c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x47c5a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x88], eax
test esi, esi
je 0x42d164
test edi, edi
je 0x42d164
test ebx, ebx
je 0x42d164
test eax, eax
je 0x42d164
cmp dword [ebp + 0x18], 0x80
jbe 0x42d164
push 0x80
lea eax, [ebp - 0x84]
push 0
push eax
call fcn.00440de0
add esp, 0xc
push esi
push 0x80
lea ecx, [ebp - 0x84]
push ecx
push 0x472d70
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, eax
test esi, esi
je 0x42d151
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x88]
push edx
lea eax, [ebp - 0x84]
push eax
push ecx
call fcn.00441150
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043fe0a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0043fe0a
mov esp, ebp
pop ebp
ret

Function at 0x42d180
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x47c5a8]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push esi
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
call fcn.00436550
add esp, 4
test eax, eax
je 0x42d248
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push esi
call fcn.0043b820
add esp, 0xc
test eax, eax
je 0x42d248
cmp dword [ebp - 0x2c], 0
jne 0x42d248
cmp dword [ebp - 0x28], 0x220
jb 0x42d248
push 0x472dc4
push esi
call fcn.00441bda
mov esi, eax
add esp, 8
test esi, esi
je 0x42d248
push 0
push 0x200
push esi
call fcn.00441aa2
push esi
push 0x20
lea edx, [ebp - 0x24]
push 1
push edx
call fcn.00441802
push esi
call fcn.00441527
add esp, 0x20
mov ecx, 8
lea esi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043fe0a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0043fe0a
mov esp, ebp
pop ebp
ret
Function at 0x42fe20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x47c5a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x10b]
push 0
push eax
mov byte [ebp - 0x10c], 0
call fcn.00440de0
push 0x105
lea ecx, [ebp - 0x214]
push 0
push ecx
call fcn.00440de0
push str.iNodeLicense.ini
push esi
lea edx, [ebp - 0x214]
push 0x46c9e8
push edx
call fcn.00440e5a
add esp, 0x28
xor eax, eax
pop esi
mov cl, byte [ebp + eax - 0x214]
mov byte [ebp + eax - 0x10c], cl
inc eax
test cl, cl
jne 0x42fe81
lea eax, [ebp - 0x10c]
push eax
call fcn.00436550
add esp, 4
test eax, eax
jne 0x42feb5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043fe0a
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10c]
push ecx
push 0xffffffffffffffff
push str.IsExtendedLic
push str.Common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043fe0a
mov esp, ebp
pop ebp
ret

Function at 0x430390
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x47c5a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x10b]
push 0
push eax
mov byte [ebp - 0x10c], 0
call fcn.00440de0
push 0x105
lea ecx, [ebp - 0x214]
push 0
push ecx
call fcn.00440de0
push str.iNodeLicense.ini
push esi
lea edx, [ebp - 0x214]
push 0x46c9e8
push edx
call fcn.00440e5a
add esp, 0x28
xor eax, eax
pop esi
mov cl, byte [ebp + eax - 0x214]
mov byte [ebp + eax - 0x10c], cl
inc eax
test cl, cl
jne 0x4303f1
lea eax, [ebp - 0x10c]
push eax
call fcn.00436550
add esp, 4
test eax, eax
jne 0x430425
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043fe0a
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10c]
push ecx
push 0
push str.Is3ComLic
push str.Common
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043fe0a
mov esp, ebp
pop ebp
ret

Function at 0x430640
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x47c5a8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x545ee8], 0
jne 0x4306c7
push 0x105
push 0x545ee8
push str.CommonProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x4306c7
push 0x105
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
dec eax
cmp eax, 0x103
ja 0x4306da
mov cl, byte [ebp - 0x10c]
push esi
push edi
mov edi, 0x545ee8
mov byte [0x545ee8], cl
mov byte [0x545ee9], 0
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4306b0
mov ecx, 7
mov esi, str.:Program_FilesCommon_Files
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043fe0a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0043fe0a
mov esp, ebp
pop ebp
ret
Function at 0x430700
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x430710
push ebx
mov ebx, dword [ebp + 0x10]
sub eax, edx
xor ecx, ecx
push edi
mov edi, eax
test ebx, ebx
je 0x430746
push esi
mov esi, dword [ebp + 0xc]
lea ebx, [ebx]
xor edx, edx
mov eax, ecx
div edi
mov eax, dword [ebp + 8]
inc ecx
mov dl, byte [edx + eax]
xor byte [ecx + esi - 1], dl
cmp ecx, ebx
jb 0x430730
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x430830
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
lea eax, [ebp - 8]
push eax
xor edi, edi
push ecx
mov dword [ebp - 0x10], edi
xor ebx, ebx
mov dword [ebp - 8], edi
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x43086c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [ebp + 0xc]
mov edx, 1
mov word [eax + 4], dx
jmp 0x430887
push esi
call fcn.0044239c
mov edi, eax
add esp, 4
test edi, edi
jne 0x4308a2
mov ecx, 2
mov eax, dword [ebp + 0xc]
mov word [eax + 4], cx
mov esi, dword [ebp - 0x10]
mov dword [eax], ebx
test edi, edi
je 0x430899
push edi
call fcn.00442391
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
push edi
push esi
push 0
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x4308c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, 3
jmp 0x430880
xor eax, eax
lea edx, [ebp - 0xc]
push edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 0x46cb80
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4308f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, 4
jmp 0x430880
mov eax, dword [ebp - 4]
movzx edx, word [eax + 0xa]
mov ecx, dword [ebp + 0xc]
mov word [ecx], dx
movzx edx, word [eax + 8]
mov word [ecx + 2], dx
movzx edx, word [eax + 0xe]
mov word [ecx + 4], dx
mov ax, word [eax + 0xc]
mov word [ecx + 6], ax
mov esi, 1
jmp 0x43088c
Function at 0x436550
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x47c5a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
lea ecx, [ebp - 0x144]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43658d
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043fe0a
mov esp, ebp
pop ebp
ret
test byte [ebp - 0x144], 0x10
push edi
je 0x4365b7
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ecx, [ecx]
lea edx, [ebp - 0x144]
push edx
push esi
call edi
test eax, eax
je 0x4365d3
test byte [ebp - 0x144], 0x10
jne 0x4365a0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043fe0a
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0043fe0a
mov esp, ebp
pop ebp
ret

Function at 0x4365f0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x47c5a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
lea ecx, [ebp - 0x144]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43662d
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043fe0a
mov esp, ebp
pop ebp
ret
test byte [ebp - 0x144], 0x10
push edi
jne 0x436657
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ecx, [ecx]
lea edx, [ebp - 0x144]
push edx
push esi
call edi
test eax, eax
je 0x436673
test byte [ebp - 0x144], 0x10
je 0x436640
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043fe0a
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0043fe0a
mov esp, ebp
pop ebp
ret
Function at 0x436b90
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00436550
add esp, 4
test eax, eax
jne 0x436bac
mov eax, 1
pop esi
pop ebp
ret
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
pop ebp
ret

Function at 0x436bd0
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x47c5a8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x20b]
push ebx
push eax
mov byte [ebp - 0x20c], bl
call fcn.00440de0
push edi
push esi
lea ecx, [ebp - 0x20c]
push 0x46c9e8
push ecx
call fcn.00440e5a
add esp, 0x1c
lea edx, [ebp - 0x34c]
push edx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x436cb9
push 0x103
lea ecx, [ebp - 0x107]
push ebx
push ecx
mov byte [ebp - 0x108], bl
call fcn.00440de0
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
add esp, 0xc
lea esp, [esp]
test byte [ebp - 0x34c], 0x10
jne 0x436ca0
lea edx, [ebp - 0x320]
push edx
push esi
lea eax, [ebp - 0x108]
push 0x46c9e8
push eax
call fcn.00440e5a
add esp, 0x10
push 0x80
lea ecx, [ebp - 0x108]
push ecx
call ebx
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x34c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x436c60
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043fe0a
mov esp, ebp
pop ebp
ret

Function at 0x436d50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 4], 0
call fcn.00436d30
mov ecx, dword [ebp + 8]
add esp, 8
push 0
lea eax, [ebp - 4]
push eax
push esi
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x436d90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push 0
lea eax, [ebp - 4]
push eax
push esi
push edi
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x436dd3
cmp dword [ebp - 4], esi
jne 0x436dd3
push esi
push edi
call fcn.00436d30
add esp, 8
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x436e50
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.004365f0
add esp, 4
test eax, eax
jne 0x436e6c
mov eax, 1
pop esi
pop ebp
ret
push 0x46cb24
push esi
call fcn.00436bd0
push esi
call fcn.00436e90
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
pop ebp
ret
Function at 0x436e90
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
mov eax, dword [0x47c5a8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
lea eax, [ebp - 0x213]
push 0
push eax
mov byte [ebp - 0x214], 0
call fcn.00440de0
push 0x46cb24
push edi
lea ecx, [ebp - 0x214]
push 0x46c9e8
push ecx
call fcn.00440e5a
add esp, 0x1c
lea edx, [ebp - 0x354]
push edx
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x436fde
push 0x104
lea ecx, [ebp - 0x10b]
push 0
push ecx
mov byte [ebp - 0x10c], 0
call fcn.00440de0
add esp, 0xc
jmp 0x436f20
test byte [ebp - 0x354], 0x10
je 0x436fc1
mov ecx, 0x46c43c
lea eax, [ebp - 0x328]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x436f58
test dl, dl
je 0x436f54
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x436f58
add eax, 2
add ecx, 2
test dl, dl
jne 0x436f38
xor eax, eax
jmp 0x436f5d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x436fc1
mov ecx, 0x46f380
lea eax, [ebp - 0x328]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x436f90
test dl, dl
je 0x436f8c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x436f90
add eax, 2
add ecx, 2
test dl, dl
jne 0x436f70
xor eax, eax
jmp 0x436f95
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x436fc1
lea edx, [ebp - 0x328]
push edx
push edi
lea eax, [ebp - 0x10c]
push 0x46c9e8
push eax
call fcn.00440e5a
lea ecx, [ebp - 0x10c]
push ecx
call fcn.00436e50
add esp, 0x14
lea edx, [ebp - 0x354]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x436f20
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043fe0a
mov esp, ebp
pop ebp
ret

Function at 0x437b50
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.004365f0
add esp, 4
test eax, eax
je 0x437b79
push 0x46cb24
push esi
call fcn.00436bd0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop esi
pop ebp
ret