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

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call fcn.00472a32
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov eax, 1
pop esi
ret

Function at 0x4c4660
Capabilities:
Query environment variable

Disassembly:
mov eax, 8
call fcn.00546d90
cmp dword [0x5b226c], 0
jne 0x4c476f
push esi
push str.OPENSSL_ia32cap
mov dword [0x5b226c], 1
call sub.MSVCR80.dll_getenv
mov esi, eax
add esp, 4
test esi, esi
je 0x4c477a
xor eax, eax
cmp byte [esi], 0x7e
push ebx
sete al
push edi
lea ecx, [esp + 0xc]
push ecx
push str._I64i
mov edi, eax
lea ebx, [edi + esi]
push ebx
call sub.MSVCR80.dll_sscanf
add esp, 0xc
test eax, eax
jne 0x4c46d6
push eax
push eax
push ebx
call sub.MSVCR80.dll_strtoul
add esp, 0xc
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 0
test edi, edi
je 0x4c46f9
push 0x5b2c10
call fcn.004cfdc0
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
not ecx
not edi
add esp, 4
and eax, ecx
and edx, edi
jmp 0x4c470b
cmp byte [esi], 0x3a
jne 0x4c4713
push 0x5b2c10
call fcn.004cfdc0
add esp, 4
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
push 0x3a
push esi
mov dword [0x5b2c18], 0
call sub.MSVCR80.dll_strchr
add esp, 8
test eax, eax
pop edi
pop ebx
je 0x4c4756
add eax, 1
xor edx, edx
cmp byte [eax], 0x7e
push 0
sete dl
push 0
mov esi, edx
add eax, esi
push eax
call sub.MSVCR80.dll_strtoul
add esp, 0xc
test esi, esi
je 0x4c4773
not eax
and dword [0x5b2c18], eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
or eax, 0x400
mov dword [0x5b2c10], eax
mov dword [0x5b2c14], ecx
pop esi
add esp, 8
ret
mov dword [0x5b2c18], eax
jmp 0x4c4756
push 0x5b2c10
call fcn.004cfdc0
add esp, 4
mov dword [esp + 8], edx
jmp 0x4c475a
Function at 0x4c48d0
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.00546d90
mov eax, dword [0x5a5084]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x4c4957
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4c4957
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x100
push edx
call sub.MSVCR80.dll__vsnprintf
add esp, 0x10
test eax, eax
jge 0x4c492d
mov eax, 0x100
push 0
lea ecx, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004726a1
add esp, 0x108
ret
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0xff
push edx
call sub.MSVCR80.dll__vsnprintf
add esp, 0x10
mov byte [esp + 0x107], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4c49e5
call fcn.004c4790
test eax, eax
jle 0x4c49e5
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 1
push 0
push 0
push 0
mov esi, eax
push 1
lea eax, [esp + 0x28]
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004726a1
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.004726a1
add esp, 0x108
ret

Function at 0x4c4a40
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor cl, cl
test edi, edi
jbe 0x4c4a66
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
sub esi, eax
mov dl, byte [esi + eax]
xor dl, byte [eax]
add eax, 1
or cl, dl
sub edi, 1
jne 0x4c4a56
pop esi
movzx eax, cl
pop edi
ret
Function at 0x4d7d60
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x88
call fcn.00546d90
mov eax, dword [0x5a5084]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x9c]
push ebx
mov ebx, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x94]
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
push edi
mov edi, dword [esp + 0x9c]
je 0x4d7dd5
cmp ebx, dword [esi]
je 0x4d7dcc
test edi, edi
je 0x4d7db2
cmp dword [esp + 0xa0], eax
jge 0x4d7dcc
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.004726a1
add esp, 0x88
ret
mov eax, 1
mov dword [esi], ebx
jmp 0x4d7ddb
mov ebx, dword [esi]
test ebx, ebx
je 0x4d7db2
test edi, edi
push ebp
je 0x4d7ead
push ebx
call fcn.004d2480
mov ebp, eax
add esp, 4
cmp ebp, 0x80
jle 0x4d7e0b
push str.j____int_sizeof_ctx__key_
push 0x74
push str..cryptohmachmac.c
call fcn.004c4a10
add esp, 0xc
mov eax, dword [esp + 0xa4]
cmp ebp, eax
jge 0x4d7e65
mov ecx, dword [esp + 0x10]
push ecx
lea ebp, [esi + 4]
push ebx
push ebp
call fcn.004c8de0
add esp, 0xc
test eax, eax
je 0x4d7f68
mov edx, dword [esp + 0xa4]
push edx
push edi
push ebp
call fcn.004c8f90
add esp, 0xc
test eax, eax
je 0x4d7f68
lea edi, [esi + 0x4c]
push edi
lea eax, [esi + 0x50]
push eax
push ebp
call fcn.004c8fa0
add esp, 0xc
test eax, eax
je 0x4d7f68
jmp 0x4d7e8a
cmp eax, 0x80
ja 0x4d7f68
push eax
lea ecx, [esi + 0x50]
push edi
push ecx
call sub.MSVCR80.dll_memcpy
mov edx, dword [esp + 0xb0]
lea edi, [esi + 0x4c]
add esp, 0xc
mov dword [edi], edx
mov edi, dword [edi]
cmp edi, 0x80
je 0x4d7eb5
mov eax, 0x80
sub eax, edi
push eax
lea ecx, [edi + esi + 0x50]
push 0
push ecx
call fcn.00472a32
add esp, 0xc
jmp 0x4d7eb5
test eax, eax
je 0x4d7f54
xor eax, eax
jmp 0x4d7ec0
mov dl, byte [esi + eax + 0x50]
xor dl, 0x36
mov byte [esp + eax + 0x14], dl
add eax, 1
cmp eax, 0x80
jl 0x4d7ec0
mov eax, dword [esp + 0x10]
push eax
lea ebp, [esi + 0x1c]
push ebx
push ebp
call fcn.004c8de0
add esp, 0xc
test eax, eax
je 0x4d7f68
push ebx
call fcn.004d2480
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.004c8f90
add esp, 0x10
test eax, eax
je 0x4d7f68
xor eax, eax
jmp 0x4d7f10
mov dl, byte [esi + eax + 0x50]
xor dl, 0x5c
mov byte [esp + eax + 0x14], dl
add eax, 1
cmp eax, 0x80
jl 0x4d7f10
mov eax, dword [esp + 0x10]
push eax
lea ebp, [esi + 0x34]
push ebx
push ebp
call fcn.004c8de0
add esp, 0xc
test eax, eax
je 0x4d7f68
push ebx
call fcn.004d2480
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
call fcn.004c8f90
add esp, 0x10
test eax, eax
je 0x4d7f68
lea edx, [esi + 0x1c]
push edx
add esi, 4
push esi
call fcn.004c9130
add esp, 8
test eax, eax
jne 0x4d7f6c
xor eax, eax
jmp 0x4d7f71
mov eax, 1
mov ecx, dword [esp + 0x94]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004726a1
add esp, 0x88
ret
Function at 0x4f1260
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 4]
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x4f1350
push esi
mov esi, dword [esp + 0x14]
lea esp, [esp]
cmp edi, 3
jl 0x4f12e2
movzx eax, byte [esi + 2]
xor edx, edx
mov dh, byte [esi]
add ecx, 1
add ecx, 1
add ecx, 1
mov dl, byte [esi + 1]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 3], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 2], al
mov eax, edx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx - 1], al
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
jmp 0x4f133b
movzx edx, byte [esi]
shl edx, 0x10
cmp edi, 2
jne 0x4f12f4
xor eax, eax
mov ah, byte [esi + 1]
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
add ecx, 1
mov byte [ecx], al
add ecx, 1
cmp edi, 1
jne 0x4f1326
lea edx, [edi + 0x3c]
jmp 0x4f1333
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
add ecx, 1
mov byte [ecx], 0x3d
sub edi, 3
add ecx, 1
add ebp, 4
add esi, 3
test edi, edi
jg 0x4f1280
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret
Function at 0x52c170
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x52c189
mov esi, edi
mov edi, eax
jmp 0x52c18b
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x52c19b
mov eax, ebx
jmp 0x52c1a5
push eax
push ebx
call fcn.004c1100
add esp, 8
test eax, eax
jne 0x52c1ad
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x52c1cb
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [edi + 4]
jl 0x52c1b4
cmp eax, dword [esi + 4]
jge 0x52c1e2
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, dword [esi + 4]
jl 0x52c1d0
mov eax, dword [esi + 4]
test eax, eax
mov dword [ebx + 4], eax
jle 0x52c205
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x52c202
sub eax, 1
test eax, eax
jg 0x52c1f2
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x536a09
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa0
call fcn.00546d90
mov eax, dword [0x5a5084]
xor eax, esp
mov dword [esp + 0x9c], eax
mov eax, dword [esp + 0xa8]
test eax, eax
push ebp
mov ebp, dword [esp + 0xa8]
push esi
mov esi, ecx
jbe 0x536b9c
push ebx
add eax, 0xffffffff
push edi
lea edi, [ebp + 0xc]
shr eax, 3
add ebp, 0x14
add eax, 1
mov dword [esp + 0x18], eax
movzx ebx, byte [esi]
xor eax, eax
mov ah, byte [esi + 1]
add esi, 1
movzx ecx, byte [esi + 1]
add esi, 1
movzx edx, byte [esi + 1]
or ebx, eax
add esi, 1
movzx eax, byte [esi + 1]
shl ecx, 0x10
add esi, 1
or ebx, ecx
xor ecx, ecx
mov ch, byte [esi + 1]
add esi, 1
shl edx, 0x18
or ebx, edx
movzx edx, byte [esi + 1]
or eax, ecx
add esi, 1
movzx ecx, byte [esi + 1]
add esi, 1
shl edx, 0x10
or eax, edx
mov dl, byte [edi]
shl ecx, 0x18
or eax, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov al, byte [ebp]
and dl, 0xdf
and al, 0xbf
or dl, 0x40
or al, 0x20
push edi
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
add esi, 1
mov byte [edi], dl
mov byte [ebp], al
call fcn.004c2f70
lea ecx, [esp + 0x30]
push ecx
push edi
call fcn.004c30f0
push 1
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.004e8340
push ebp
call fcn.004c2f70
lea ecx, [esp + 0x48]
push ecx
push ebp
call fcn.004c30f0
push 1
lea edx, [esp + 0x54]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.004e8340
mov eax, dword [esp + 0x50]
xor eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x58]
xor dword [esp + 0x40], edx
xor ecx, ebx
xor ebx, dword [esp + 0x54]
mov dword [esp + 0x44], eax
mov eax, edi
mov byte [eax], bl
mov edx, ebx
add eax, 1
shr edx, 8
add esp, 0x30
mov byte [eax], dl
add eax, 1
add eax, 1
mov edx, ebx
shr edx, 0x10
mov byte [eax - 1], dl
mov edx, dword [esp + 0x14]
add eax, 1
shr ebx, 0x18
mov byte [eax - 1], bl
mov byte [eax], dl
mov ebx, edx
add eax, 1
add eax, 1
shr ebx, 8
mov byte [eax - 1], bl
mov ebx, edx
shr edx, 0x18
shr ebx, 0x10
mov byte [eax], bl
mov byte [eax + 1], dl
mov edx, ecx
shr edx, 8
mov eax, ebp
mov byte [eax], cl
mov byte [eax + 1], dl
add eax, 1
add eax, 1
mov edx, ecx
shr edx, 0x10
mov byte [eax], dl
add eax, 1
shr ecx, 0x18
mov byte [eax], cl
mov ecx, dword [esp + 0x10]
add eax, 1
mov byte [eax], cl
mov edx, ecx
shr edx, 8
add eax, 1
mov byte [eax], dl
mov edx, ecx
add eax, 1
shr edx, 0x10
shr ecx, 0x18
sub dword [esp + 0x18], 1
mov byte [eax], dl
mov byte [eax + 1], cl
jne 0x536a27
pop edi
pop ebx
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
xor ecx, esp
call fcn.004726a1
add esp, 0xa0
ret
Function at 0x4fa040
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa3000]
push edi
jmp 0x4fa05a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4fa061
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fa050
mov eax, 1
add ebx, ebx
jne 0x4fa073
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4fa084
jne 0x4fa0a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fa0a3
dec eax
add ebx, ebx
jne 0x4fa090
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4fa068
add ebx, ebx
jne 0x4fa09f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4fa0f5
xor ecx, ecx
sub eax, 3
jb 0x4fa0bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4fa12a
sar eax, 1
mov ebp, eax
jmp 0x4fa0c6
add ebx, ebx
jne 0x4fa0c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fa094
inc ecx
add ebx, ebx
jne 0x4fa0d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4fa094
add ebx, ebx
jne 0x4fa0e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4fa0d6
jne 0x4fa0f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4fa0d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4fa114
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4fa106
jmp 0x4fa056
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4fa114
add edi, ecx
jmp 0x4fa056
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4fa132
cmp byte [edi], 0x11
jne 0x4fa132
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 0x4fa137
lea edi, [esi + 0xf3000]
mov eax, dword [edi]
or eax, eax
je 0x4fa1af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11b6f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11b86c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4fa164
mov ecx, edi
jns 0x4fa193
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x11b870]
or eax, eax
je 0x4fa1a9
mov dword [ebx], eax
add ebx, 4
jmp 0x4fa181
call dword [esi + 0x11b880]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4fa1e0
cmp al, 0xef
ja 0x4fa1d3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4fa1b5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4fa1c2
mov ebp, dword [esi + 0x11b874]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x4fa214
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x404640
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 4]
mov dword [edx + 8], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x4046da
push str.CreateToolhelp32Snapshot
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
push str.Process32First
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], eax
push str.Process32Next
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
je 0x4046f9
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x4046f9
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
jne 0x40477b
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0
jne 0x404704
jmp 0x40477b
push 0x42a2d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
je 0x40477b
push str.ZwQuerySystemInformation
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], eax
push str.GetProcessHeap
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], eax
push 0x42a308
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x1c], eax
push 0x42a314
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4061a0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add eax, 1
push eax
push 0x5c
mov ecx, dword [ebp + 8]
call fcn.004063a0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4061fc
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 8]
push edx
mov ecx, dword [ebp + 8]
call fcn.00406460
mov dword [ebp - 0x18], eax
push 0
mov ecx, dword [ebp - 0x18]
call fcn.004017f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 8]
call fcn.004015e0
jmp 0x4061b4
cmp dword [ebp + 0xc], 0
jne 0x406213
push 0
mov ecx, dword [ebp + 8]
call fcn.004017f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [ebp + 0xc], 0
jne 0x406236
push 0
mov ecx, dword [ebp + 8]
call fcn.004017f0
push eax
call fcn.004129cd
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x406274
push 0x5c
mov ecx, dword [ebp + 8]
call fcn.00406410
push eax
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.00406460
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x14]
or ecx, 1
mov dword [ebp - 0x14], ecx
push 0
mov ecx, dword [ebp - 0x20]
call fcn.004017f0
push eax
call fcn.004129cd
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x14]
and eax, 1
je 0x40628e
and dword [ebp - 0x14], 0xfffffffe
lea ecx, [ebp - 0x10]
call fcn.004015e0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4068e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427d31
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov dword [ebp - 0x128], 0
lea ecx, [ebp - 0x10]
call fcn.004015c0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x406954
lea edx, [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x406954
lea ecx, [ebp - 0x124]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00401620
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp + 8]
call fcn.00402c70
mov eax, dword [ebp - 0x128]
or eax, 1
mov dword [ebp - 0x128], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004015e0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x407b40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427ec3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp + 8]
call fcn.004017f0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x407ba6
push str.DllRegisterServer
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x10], 0
jne 0x407bc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004015e0
jmp 0x407c69
lea ecx, [ebp - 0x18]
call fcn.004015c0
mov byte [ebp - 4], 1
lea edx, [ebp + 8]
push edx
push str.Regsvr32.exe__s__
lea eax, [ebp - 0x1c]
push eax
call fcn.00402890
add esp, 0xc
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x2c], ecx
mov byte [ebp - 4], 2
push 0x42a998
mov edx, dword [ebp - 0x2c]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.004027f0
add esp, 0xc
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x34], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x34]
call fcn.004017f0
push eax
lea edx, [ebp - 0x18]
push edx
call fcn.004027c0
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.004015e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004015e0
push 5
lea ecx, [ebp - 0x18]
call fcn.004017f0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.004015e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004015e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4