joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c03e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov eax, dword [0x43c4b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
mov dword [ebp - 0x81c], ecx
lea ecx, [ebp - 0x810]
push ecx
mov esi, 0x20019
push esi
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x40c1df
push edi
lea eax, [ebp - 0x814]
push eax
push esi
push 0
push 0x433518
push dword [ebp - 0x810]
mov dword [ebp - 0x808], 0x400
call ebx
mov esi, dword [sym.imp.MSVCR100.dll_wcstok_s]
mov edi, 0x433514
test eax, eax
jne 0x40c12c
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x804]
push eax
push 0
push 0
push str.tWhiteList
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c120
mov ecx, dword [ebp - 0x808]
and dword [ebp - 0x80c], eax
mov word [ebp + ecx*2 - 0x804], ax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push edi
push eax
call esi
add esp, 0xc
mov ecx, dword [ebp - 0x81c]
push eax
call fcn.0040bf22
lea eax, [ebp - 0x80c]
push eax
push edi
push 0
call esi
add esp, 0xc
test eax, eax
jne 0x40c101
push dword [ebp - 0x814]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x818]
push eax
push 0x20019
push 0
push str.cAllowedFolderPaths
push dword [ebp - 0x810]
call ebx
test eax, eax
jne 0x40c1d2
lea eax, [ebp - 0x808]
push eax
lea eax, [ebp - 0x804]
push eax
xor ebx, ebx
push ebx
push ebx
push str.tWhiteList
push dword [ebp - 0x818]
mov dword [ebp - 0x808], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c1c6
mov ecx, dword [ebp - 0x808]
mov word [ebp + ecx*2 - 0x804], ax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
push edi
push eax
mov dword [ebp - 0x80c], ebx
call esi
add esp, 0xc
mov ecx, dword [ebp - 0x81c]
push eax
call fcn.0040bfbf
lea eax, [ebp - 0x80c]
push eax
push edi
push ebx
call esi
add esp, 0xc
cmp eax, ebx
jne 0x40c1a8
push dword [ebp - 0x818]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e766
leave
ret 4
Function at 0x40c1ef
Capabilities:
Get common file path

Disassembly:
push 0x214
mov eax, 0x43092b
call fcn.0042e7e5
push ecx
mov esi, ecx
mov dword [ebp - 0x21c], esp
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], esp
call fcn.0040b528
lea ecx, [esi + 0xc]
push ecx
xor edi, edi
mov dword [ebp - 0x21c], esp
mov dword [ebp - 4], edi
mov dword [ebp - 0x21c], esp
call fcn.0040b528
push str.HKEY_CURRENT_USERSoftwareAdobeAdobe_Acrobat11.0
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0040bf22
push str.HKEY_CURRENT_USERSoftwareAdobeAcrobat_Reader11.0
mov ecx, esi
call fcn.0040bf22
push str.HKEY_CURRENT_USERSoftwareAdobeAdobe_Synchronizer11.0
mov ecx, esi
call fcn.0040bf22
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push edi
push 0x1a
lea eax, [ebp - 0x218]
push eax
push edi
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call edi
mov ebx, dword [sym.imp.MSVCR100.dll_wcscat_s]
test eax, eax
je 0x40c2b9
push str.AdobeAcrobat11.0
lea eax, [ebp - 0x218]
push 0x104
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.0040bfbf
push 0
push 0x1c
lea eax, [ebp - 0x218]
push eax
push 0
call edi
test eax, eax
je 0x40c2f0
push str.AdobeAcrobat11.0
lea eax, [ebp - 0x218]
push 0x104
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.0040bfbf
push 0
push 0x1a
lea eax, [ebp - 0x218]
push eax
push 0
call edi
test eax, eax
je 0x40c327
push str.AdobeLinguisticsDictionaries
lea eax, [ebp - 0x218]
push 0x104
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.0040bfbf
push str.SOFTWAREPoliciesAdobeAdobe_Acrobat11.0FeatureLockDown
mov ecx, esi
call fcn.0040c03e
push str.SOFTWAREPoliciesAdobeAcrobat_Reader11.0FeatureLockDown
mov ecx, esi
call fcn.0040c03e
mov eax, esi
call fcn.0042e868
ret

Function at 0x40c38b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp + 8]
push eax
mov edi, 0x20019
push edi
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x40c3f3
lea eax, [ebp + 0xc]
push eax
push edi
push ebx
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40c3ee
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push dword [ebp + 0x14]
mov dword [ebp + 0x10], 4
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0xc]
call esi
push dword [ebp + 8]
call esi
xor eax, eax
cmp dword [ebp - 4], ebx
pop edi
pop esi
setne al
pop ebx
leave
ret 0x10
Function at 0x4115a0
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
push esi
mov esi, dword [esp + 8]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], eax
mov dword [esi + 8], 0x67452301
mov dword [esi + 0xc], 0xefcdab89
mov dword [esi + 0x10], 0x98badcfe
mov dword [esi + 0x14], 0x10325476
mov dword [esi + 4], eax
call fcn.00419380
cmp eax, 0x17
je 0x4115de
mov dword [esi], 0x4189d8
pop esi
ret
mov dword [esi], 0x411570
pop esi
ret

Function at 0x4115f0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x4c
mov eax, dword [0x43c4b0]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
mov ebx, dword [esp + 0x58]
push ebp
push esi
mov esi, dword [esp + 0x5c]
mov eax, dword [esi + 0x18]
shr eax, 3
and eax, 0x3f
cmp eax, 0x38
push edi
mov edi, 0x38
jb 0x411622
mov edi, 0x78
sub edi, eax
push edi
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0040b12d
add esp, 0xc
mov byte [esp + 0x10], 0x80
lea ecx, [esp + edi + 0x11]
lea eax, [esi + 0x1a]
mov ebp, 2
movzx edx, byte [eax - 2]
mov byte [ecx - 1], dl
movzx edx, byte [eax - 1]
mov byte [ecx], dl
movzx edx, byte [eax]
mov byte [ecx + 1], dl
movzx edx, byte [eax + 1]
mov byte [ecx + 2], dl
add eax, 4
add ecx, 4
sub ebp, 1
jne 0x411645
add edi, 8
push edi
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00411470
add esp, 0xc
lea ecx, [ebx + 1]
lea eax, [esi + 0xa]
lea edi, [ebp + 4]
movzx edx, byte [eax - 2]
mov byte [ecx - 1], dl
movzx edx, byte [eax - 1]
mov byte [ecx], dl
movzx edx, byte [eax]
mov byte [ecx + 1], dl
movzx edx, byte [eax + 1]
mov byte [ecx + 2], dl
add eax, 4
add ecx, 4
sub edi, 1
jne 0x411685
xor eax, eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], eax
mov dword [esi + 8], 0x67452301
mov dword [esi + 0xc], 0xefcdab89
mov dword [esi + 0x10], 0x98badcfe
mov dword [esi + 0x14], 0x10325476
mov dword [esi + 4], eax
call fcn.00419380
cmp eax, 0x17
je 0x4116f4
pop edi
mov dword [esi], 0x4189d8
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0042e766
add esp, 0x4c
ret
mov ecx, dword [esp + 0x58]
pop edi
mov dword [esi], 0x411570
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042e766
add esp, 0x4c
ret
Function at 0x422340
Capabilities:
Hash data using sha1

Disassembly:
call fcn.00419380
add eax, 0xfffffffd
cmp eax, 0x25
ja case.0x422354.8
movzx eax, byte [eax + 0x4223dc]
jmp dword [eax*4 + 0x4223c8]
mov eax, dword [esp + 4]
mov dword [eax + 0x5c], 0x427598
jmp 0x42239a
mov eax, dword [esp + 4]
mov dword [eax + 0x5c], 0x426460
jmp 0x42239a
mov eax, dword [esp + 4]
mov dword [eax + 0x5c], 0x4253b0
jmp 0x42239a
mov eax, dword [esp + 4]
mov dword [eax + 0x5c], 0x422310
jmp 0x42239a
mov eax, dword [esp + 4]
mov dword [eax + 0x5c], 0x415ec0
xor ecx, ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret
Function at 0x422410
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x60
mov eax, dword [0x43c4b0]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x6c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x70]
push edi
mov edi, dword [esp + 0x78]
lea ecx, [esp + 0x1c]
and ecx, 7
push 0x48
lea ebx, [esp + 0x28]
sub ebx, ecx
push 0
push ebx
mov dword [esp + 0x1c], eax
call fcn.0040b12d
mov edx, dword [esi + 0x18]
and edx, 0x3f
mov eax, 0x40
sub eax, edx
add esp, 0xc
cmp eax, 8
ja 0x422461
add eax, 0x40
mov ecx, dword [esi + 0x14]
mov ebp, dword [esi + 0x18]
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov edx, ebp
shr edx, 0x1d
or ecx, edx
mov byte [ebx], 0x80
lea edx, [ebp*8]
mov dword [esp + 0x18], edx
mov edx, ecx
shr edx, 0x18
mov byte [eax + ebx - 8], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + ebx - 7], dl
mov edx, ecx
shr edx, 8
mov byte [eax + ebx - 6], dl
mov byte [eax + ebx - 5], cl
mov ecx, dword [esp + 0x18]
mov edx, ecx
shr edx, 0x18
mov byte [eax + ebx - 4], dl
mov edx, ecx
shr edx, 0x10
mov byte [eax + ebx - 3], dl
mov edx, ecx
mov byte [eax + ebx - 1], cl
mov ecx, dword [esp + 0x10]
push ecx
push eax
shr edx, 8
push ebx
push esi
mov byte [eax + ebx - 2], dl
call fcn.00422210
movzx edx, byte [esi + 3]
mov byte [edi], dl
movzx eax, byte [esi + 2]
mov byte [edi + 1], al
mov ecx, dword [esi]
shr ecx, 8
mov byte [edi + 2], cl
movzx edx, byte [esi]
mov byte [edi + 3], dl
movzx eax, byte [esi + 7]
mov byte [edi + 4], al
movzx ecx, byte [esi + 6]
mov byte [edi + 5], cl
mov edx, dword [esi + 4]
shr edx, 8
mov byte [edi + 6], dl
movzx eax, byte [esi + 4]
mov byte [edi + 7], al
movzx ecx, byte [esi + 0xb]
mov byte [edi + 8], cl
movzx edx, byte [esi + 0xa]
mov byte [edi + 9], dl
mov eax, dword [esi + 8]
shr eax, 8
mov byte [edi + 0xa], al
movzx ecx, byte [esi + 8]
mov byte [edi + 0xb], cl
movzx edx, byte [esi + 0xf]
mov byte [edi + 0xc], dl
movzx eax, byte [esi + 0xe]
mov byte [edi + 0xd], al
mov ecx, dword [esi + 0xc]
shr ecx, 8
mov byte [edi + 0xe], cl
movzx edx, byte [esi + 0xc]
mov byte [edi + 0xf], dl
movzx eax, byte [esi + 0x13]
mov byte [edi + 0x10], al
movzx ecx, byte [esi + 0x12]
mov byte [edi + 0x11], cl
mov edx, dword [esi + 0x10]
shr edx, 8
mov byte [edi + 0x12], dl
movzx eax, byte [esi + 0x10]
push esi
mov byte [edi + 0x13], al
call fcn.00422340
push 0x140
push 0
add esi, 0x60
push esi
call fcn.0040b12d
mov ecx, dword [esp + 0x8c]
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042e766
add esp, 0x60
ret
Function at 0x42e766
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43c4b0]
jne 0x42e770
repz ret
jmp fcn.0042f010

Function at 0x42fe54
Capabilities:
Get disk information

Disassembly:
push edi
mov ecx, esi
xor edi, edi
call fcn.0042a430
cmp dword [esi + 4], edi
jne 0x42fe67
xor eax, eax
pop edi
ret
mov ecx, esi
call fcn.0042a430
cmp dword [esi + 4], 1
jne 0x42fe91
push edi
mov ecx, esi
call fcn.0042b2f1
movzx eax, ax
push eax
call fcn.0042fe3a
add esp, 4
test al, al
je 0x42fe91
xor eax, eax
inc eax
pop edi
ret
mov ecx, esi
call fcn.0042a430
cmp dword [esi + 4], 3
jne 0x42fef6
push edi
mov ecx, esi
call fcn.0042b2f1
movzx eax, ax
push eax
call dword [sym.imp.MSVCR100.dll_iswalpha]
pop ecx
test eax, eax
je 0x42fef6
push 1
mov ecx, esi
call fcn.0042b2f1
cmp ax, 0x3a
jne 0x42fef6
push 2
mov ecx, esi
call fcn.0042b2f1
movzx eax, ax
push eax
call fcn.0042fe3a
add esp, 4
test al, al
je 0x42fef6
mov ecx, esi
call fcn.0042a430
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
cmp ecx, eax
sbb eax, eax
neg eax
pop edi
ret
mov ecx, esi
call fcn.0042a430
cmp dword [esi + 4], 2
jbe 0x43002c
push 0
mov ecx, esi
call fcn.0042b2f1
movzx eax, ax
push eax
call fcn.0042fe3a
add esp, 4
test al, al
je 0x43002c
push 1
mov ecx, esi
call fcn.0042b2f1
movzx eax, ax
push eax
call fcn.0042fe3a
add esp, 4
test al, al
je 0x43002c
push 2
pop edi
push edi
mov ecx, esi
call fcn.0042b2f1
movzx eax, ax
push eax
call fcn.0042fe3a
add esp, 4
test al, al
jne 0x42fe63
mov ecx, esi
inc edi
call fcn.0042a430
cmp edi, dword [esi + 4]
jae 0x42ff85
push edi
mov ecx, esi
call fcn.0042b2f1
movzx eax, ax
push eax
call fcn.0042fe3a
add esp, 4
test al, al
je 0x42ff60
mov ecx, esi
call fcn.0042a430
cmp dword [esi + 4], edi
je 0x42fe63
mov ecx, esi
inc edi
call fcn.0042a430
cmp dword [esi + 4], edi
je 0x42fe63
push edi
mov ecx, esi
call fcn.0042b2f1
movzx eax, ax
push eax
call fcn.0042fe3a
add esp, 4
test al, al
jne 0x42fe63
mov ecx, esi
inc edi
call fcn.0042a430
cmp edi, dword [esi + 4]
jae 0x42ffe7
push edi
mov ecx, esi
call fcn.0042b2f1
movzx eax, ax
push eax
call fcn.0042fe3a
add esp, 4
test al, al
je 0x42ffc2
mov ecx, esi
call fcn.0042a430
lea eax, [edi + 1]
cmp dword [esi + 4], eax
ja 0x42fe63
mov ecx, esi
call fcn.0042a430
cmp dword [esi + 4], edi
jne 0x430015
movzx eax, word [0x43c4d0]
push eax
mov ecx, esi
call fcn.0042a7b2
mov ecx, esi
call fcn.0042a430
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
cmp ecx, eax
sbb edi, edi
neg edi
mov eax, edi
pop edi
ret
Function at 0x43007f
Capabilities:
Check if file exists

Disassembly:
push 0x49c
mov eax, 0x4311e6
call fcn.0042e7e5
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0042a430
xor ebx, ebx
cmp dword [esi + 4], ebx
jne 0x4300ac
mov eax, 0xffffe89d
jmp 0x4302d7
push ebx
push 0xffffffffffffffff
push 0x434240
lea ecx, [ebp - 0x488]
call fcn.0042abee
push ebx
lea eax, [ebp - 0x488]
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0042b397
cmp eax, 0xffffffff
setne bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x478]
call fcn.00407664
lea ecx, [ebp - 0x480]
call fcn.00407664
test bl, bl
je 0x4300ff
mov eax, 0xffffe8c2
jmp 0x4302d7
mov ecx, esi
call fcn.0042a430
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp - 0x46c]
push ecx
push eax
call ebx
mov dword [ebp - 0x470], eax
cmp eax, 0xffffffff
jne 0x430237
mov ecx, esi
call fcn.0042a430
lea ecx, [ebp - 0x48c]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
mov esi, 0x105
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov dword [ebp - 0x470], eax
test eax, eax
jne 0x430157
inc eax
jmp 0x4302d7
cmp eax, esi
jbe 0x430165
mov eax, 0xffffe8c1
jmp 0x4302d7
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x488]
call fcn.0042a6f6
lea esi, [ebp - 0x488]
mov dword [ebp - 4], 1
call fcn.0042fe54
test eax, eax
je 0x4301c4
xor eax, eax
mov dword [edi], 2
mov dword [edi + 4], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
xor esi, esi
lea ecx, [ebp - 0x478]
call fcn.00407664
lea ecx, [ebp - 0x480]
call fcn.00407664
mov eax, esi
jmp 0x4302d7
mov ecx, dword [ebp - 0x470]
lea ecx, [ebp + ecx*2 - 0x21e]
movzx eax, word [ecx]
push eax
call fcn.0042fe3a
add esp, 4
test al, al
jne 0x4301fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4301f6
cmp eax, 3
je 0x4301f6
xor esi, esi
inc esi
jmp 0x4301a7
mov esi, 0xffffe8c2
jmp 0x4301a7
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x21c]
push eax
call ebx
mov dword [ebp - 0x470], eax
cmp eax, 0xffffffff
je 0x4301e1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x478]
call fcn.00407664
lea ecx, [ebp - 0x480]
call fcn.00407664
push dword [ebp - 0x470]
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x46c], 0x10
push 0
pop eax
setne al
xor ebx, ebx
inc eax
mov dword [edi], eax
cmp dword [ebp - 0x450], ebx
je 0x43028b
push ebx
push 0xffffffffffffffff
push str.file_size_larger_than_4GB_encountered
lea ecx, [ebp - 0x4a4]
mov dword [ebp - method.RSException.virtual_0], vtable.RSException.0
call fcn.0042abee
push 0x435834
lea eax, [ebp - 0x4a8]
push eax
call sub.MSVCR100.dll__CxxThrowException
mov eax, dword [ebp - 0x44c]
mov dword [edi + 4], eax
lea esi, [edi + 0x10]
lea eax, [ebp - 0x458]
push esi
push eax
call fcn.00430030
pop ecx
pop ecx
cmp dword [ebp - 0x468], ebx
jne 0x4302c3
cmp dword [ebp - 0x464], ebx
jne 0x4302c3
mov eax, dword [esi]
mov dword [edi + 8], eax
mov eax, dword [esi + 4]
mov dword [edi + 0xc], eax
jmp 0x4302d5
add edi, 8
lea eax, [ebp - 0x468]
push edi
push eax
call fcn.00430030
pop ecx
pop ecx
xor eax, eax
call fcn.0042e868
ret
Function at 0x40526c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x42bfe8], 0x44
push eax
xor eax, eax
push 0x42bfe8
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4052a7
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405331
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004055e0
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x405365
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x42ebe8], eax
jmp 0x4054f9
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x405383
test eax, eax
je 0x4054a4
test byte [ebp + 0xc], 2
je 0x4054a4
mov esi, 0x42afe8
push edi
push esi
call fcn.00405a0c
test ebx, ebx
je 0x4053a0
push 0x409328
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4053a6
push edi
call fcn.00405546
cmp byte [edi], 0
jne 0x4053b4
cmp byte [0x42afe8], 0x5c
jne 0x4053bf
push 0x409010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40549a
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.0040552a
cmp byte [eax], 0
je 0x405405
cmp byte [ebp - 0x18], 0
je 0x405405
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x40541b
mov al, byte [esi + 1]
test al, al
je 0x405479
cmp al, 0x2e
jne 0x40541b
cmp byte [esi + 2], 0
je 0x405479
push esi
push ebx
call fcn.00405a0c
test byte [ebp - 0x148], 0x10
je 0x405440
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405479
push dword [ebp + 0xc]
push edi
call fcn.00405331
jmp 0x405479
push edi
call fcn.004056c4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405471
test byte [ebp + 0xc], 4
je 0x405469
push edi
push 0xfffffffffffffff1
call fcn.00404daa
push 0
push edi
call fcn.0040575a
jmp 0x405479
inc dword [0x42ebe8]
jmp 0x405479
push edi
push 0xfffffffffffffff2
call fcn.00404daa
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4053e3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x4054a4
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4054f9
cmp dword [ebp - 8], esi
jne 0x4054b9
inc dword [0x42ebe8]
jmp 0x4054f9
push edi
call fcn.00405d07
test eax, eax
je 0x4054f9
push edi
call fcn.004054ff
push edi
call fcn.004056c4
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4054f1
test byte [ebp + 0xc], 4
je 0x4054b1
push edi
push 0xfffffffffffffff1
call fcn.00404daa
push esi
push edi
call fcn.0040575a
jmp 0x4054f9
push edi
push 0xffffffffffffffe5
call fcn.00404daa
pop edi
pop esi
leave
ret 8
Function at 0x402b15
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x184
call fcn.0048e830
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402b5a
push ebx
call fcn.0048c88e
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x100
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
nop
nop
nop
nop
push 0xa0000101
push 0
push 0x4d2379
push 1
mov ebx, 0x168
call fcn.0048e8e0
add esp, 0x10
mov dword [ebp - 8], eax
push dword [ebp - 8]
push dword [ebp - 4]
mov ecx, 2
call fcn.00402ab9
add esp, 8
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402bb7
push ebx
call fcn.0048c88e
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x402bbf
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402bd0
push ebx
call fcn.0048c88e
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x402bd5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x184
call fcn.0048e830
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402c1a
push ebx
call fcn.0048c88e
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0xff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
nop
nop
nop
nop
push 0xa0000101
push 0
push 0x4d2379
push 1
mov ebx, 0x168
call fcn.0048e8e0
add esp, 0x10
mov dword [ebp - 8], eax
push dword [ebp - 8]
push dword [ebp - 4]
mov ecx, 2
call fcn.00402ab9
add esp, 8
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402c77
push ebx
call fcn.0048c88e
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x402c7f
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402c90
push ebx
call fcn.0048c88e
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x4031dc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
leave
ret

Function at 0x403fa0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx eax, byte [eax + 2]
leave
ret

Function at 0x40a587
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
jmp 0x40a5a0
nop
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x40a5bf
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x40a5b6
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x40a5ae
mov eax, ebx
leave
ret