joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f0f3
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0x54
mov eax, 0x4360e6
call fcn.0040fcb5
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0xf0000000
push 1
mov dword [ebp - 0x60], eax
xor eax, eax
push str.Microsoft_Enhanced_Cryptographic_Provider_v1.0
push eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
mov esi, eax
test esi, esi
je 0x42f2bb
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov esi, eax
test esi, esi
je 0x42f2ae
xor eax, eax
lea ecx, [ebp - 0x30]
push 9
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
push str._D_UfA
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], al
call fcn.00401d00
and dword [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.0042f824
mov byte [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x42f193
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00405a3d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00402823
cmp dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x30]
push 0
push dword [ebp - 0x20]
cmovae eax, dword [ebp - 0x30]
push eax
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov esi, eax
test esi, esi
je 0x42f25b
lea eax, [ebp - 0x4c]
push eax
push 0x10
push dword [ebp - 0x50]
push 0x6602
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
mov esi, eax
test esi, esi
je 0x42f25b
mov edi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
lea eax, [ebp - 0x58]
push 0
push eax
push 0x13
push dword [ebp - 0x4c]
mov dword [ebp - 0x5c], 1
mov dword [ebp - 0x58], 0x80
call edi
mov esi, eax
test esi, esi
je 0x42f24e
push 0
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
push 1
push dword [ebp - 0x4c]
movlpd qword [ebp - 0x18], xmm0
call edi
mov esi, eax
test esi, esi
je 0x42f24e
push 0
lea eax, [ebp - 0x5c]
push eax
push 4
push dword [ebp - 0x4c]
call edi
mov esi, eax
test esi, esi
je 0x42f24e
mov ecx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x54]
mov dword [ebx], eax
mov eax, dword [ebp - 0x4c]
mov dword [ecx], eax
jmp 0x42f25b
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
and dword [ebp - 0x4c], 0
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
and dword [ebp - 0x50], 0
or dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x1c]
cmp edx, 0x10
jb 0x42f29b
mov ecx, dword [ebp - 0x30]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x42f292
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42f2c6
push edx
push ecx
call fcn.0040f9bd
pop ecx
pop ecx
and dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
test esi, esi
jne 0x42f2bb
push 0
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test esi, esi
setne al
call fcn.0040fc5f
ret 8
call fcn.0041521a
int3
Function at 0x42f2cc
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push 0x18
mov eax, 0x43611a
call fcn.0040fc81
mov esi, ecx
mov ecx, dword [ebp + 8]
xor bl, bl
call fcn.0040a855
test eax, eax
je 0x42f3c8
lea ecx, [ebp - 0xd]
inc eax
push ecx
xor ebx, ebx
mov dword [ebp - 0x14], eax
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.004045b2
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp + 8]
push eax
call fcn.0040a72d
mov bl, al
test bl, bl
je 0x42f38a
and dword [ebp - 0x18], 0
lea eax, [ebp + 8]
and dword [ebp + 8], 0
mov ecx, esi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0042f0f3
test al, al
je 0x42f38a
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
push 0
push 1
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
mov byte [ecx + eax], 0
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42f361
sub ecx, edx
push ecx
push dword [ebp - 0x24]
mov ecx, dword [ebp + 0xc]
call fcn.00401d00
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x42f3c8
mov edx, dword [ebp - 0x1c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x42f3b4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42f3d2
push edx
push ecx
call fcn.0040f9bd
xor eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov al, bl
call fcn.0040fc4a
ret 8
call fcn.0041521a
int3
Function at 0x432fb5
Capabilities:
Check mutex on windows
Read file via mapping

Disassembly:
push 0x24
mov eax, 0x436957
call fcn.0040fcb5
mov esi, ecx
mov edi, dword [ebp + 8]
call fcn.00432cad
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x432fd5
mov eax, dword [edi]
push eax
xor ebx, ebx
lea ecx, [esi + 0x44]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x20], eax
test eax, eax
jne 0x433018
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x432ff4
mov eax, dword [edi]
push eax
push dword [esi + 0x4c]
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [esi + 0x20], eax
test eax, eax
jne 0x433018
mov dword [esi + 4], 0x186ad
xor al, al
jmp 0x43312e
mov dword [ebp - 0x30], esi
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 4]
mov dword [ebp - 4], ebx
mov edx, edi
push 0x43d268
lea ecx, [ebp - 0x28]
call fcn.0040bdfd
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae eax, dword [ebp - 0x28]
push eax
push 0x24
push ebx
push 0x8000004
lea eax, [esi + 0x44]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0x24], eax
mov byte [ebp - 0x29], 1
test eax, eax
je 0x433077
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov eax, dword [esi + 0x24]
sete byte [ebp - 0x29]
jmp 0x433095
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [esi + 0x4c]
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [esi + 0x24], eax
test eax, eax
je 0x43310f
push 0x24
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x28], eax
test eax, eax
je 0x43310f
cmp byte [ebp - 0x29], 0
jne 0x4330df
mov dword [eax], 1
mov eax, dword [esi + 0x28]
mov dword [eax + 4], 0x10000
mov eax, dword [esi + 0x28]
mov dword [eax + 8], ebx
mov eax, dword [esi + 0x28]
mov dword [eax + 0xc], ebx
mov eax, dword [esi + 0x28]
mov dword [eax + 0x10], ebx
mov ecx, dword [esi + 0x28]
add ecx, 0x14
call fcn.00407309
mov eax, dword [esi + 0x28]
push ebx
add eax, 0x14
lea ecx, [esi + 0x2c]
push eax
call fcn.004040fd
push edi
lea ecx, [esi + 8]
call fcn.0040295f
mov ecx, esi
call fcn.00433298
mov byte [esi + 0x40], al
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
call fcn.00402823
mov bl, byte [esi + 0x40]
jmp 0x433121
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x28]
mov dword [esi + 4], 0x186ab
call fcn.00402823
or dword [ebp - 4], 0xffffffff
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 8]
mov al, bl
call fcn.0040fc5f
ret 4
Function at 0x433136
Capabilities:
Read file via mapping

Disassembly:
push 0
mov eax, 0x43698b
call fcn.0040fc81
mov esi, ecx
cmp dword [ebp + 0xc], 0
je 0x43327b
cmp dword [ebp + 0x10], 0
je 0x43327b
call fcn.00432cad
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call ebx
mov edi, eax
call ebx
push 2
push 1
xor ebx, ebx
lea ecx, [esi + 0x20]
push ebx
push ecx
push edi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x43327b
mov dword [ebp + 0xc], esi
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 4]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 1
push ebx
lea ecx, [esi + 0x24]
push ecx
push edi
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x4331c1
mov eax, 0x186ad
jmp 0x4331dc
push 0x24
push ebx
push ebx
push 6
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x28], eax
test eax, eax
jne 0x4331e4
mov eax, 0x186ab
mov dword [esi + 4], eax
jmp 0x43326c
push ebx
add eax, 0x14
lea ecx, [esi + 0x2c]
push eax
call fcn.004040fd
push dword [ebp + 8]
lea ecx, [esi + 8]
call fcn.0040295f
mov eax, dword [esi + 0x28]
cmp dword [eax], 1
jne 0x433256
cmp dword [ebp + 0x14], 0
je 0x433256
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 2
push 1
push ebx
lea ecx, [esi + 0x38]
push ecx
push edi
push dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x433256
mov eax, dword [esi + 0x28]
push dword [eax + 4]
push ebx
push ebx
push 6
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x3c], eax
test eax, eax
je 0x433256
mov eax, dword [esi + 0x28]
mov eax, dword [eax]
mov dword [esi + 0x34], eax
mov byte [esi + 0x40], 1
mov al, byte [esi + 0x40]
test al, al
jne 0x433267
mov ecx, esi
call fcn.00433298
mov byte [esi + 0x40], al
mov esi, dword [ebp + 0xc]
mov bl, al
or dword [ebp - 4], 0xffffffff
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 8]
mov al, bl
jmp 0x433284
mov dword [esi + 4], 0x186ad
xor al, al
call fcn.0040fc4a
ret 0x10
Function at 0x433298
Capabilities:
Read file via mapping

Disassembly:
push 0x50
mov eax, 0x4369d6
call fcn.0040fcb5
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x5c], ebx
mov eax, dword [edi + 0x28]
mov eax, dword [eax]
cmp dword [edi + 0x34], eax
jne 0x4332bc
mov al, 1
jmp 0x4333cb
cmp dword [edi + 0x3c], ebx
je 0x4332cd
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [edi + 0x3c], ebx
cmp dword [edi + 0x38], ebx
je 0x4332de
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x38], ebx
mov eax, dword [edi + 0x28]
mov edx, dword [eax]
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x58]
call fcn.00404bb2
push 0x43d26c
lea edx, [edi + 8]
mov dword [ebp - 0x5c], 1
lea ecx, [ebp - 0x40]
mov esi, eax
call fcn.0040bdfd
mov byte [ebp - 4], 1
mov edx, eax
push esi
lea ecx, [ebp - 0x28]
call fcn.0040bc63
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.00402823
xor eax, eax
inc eax
mov dword [ebp - 0x5c], eax
and eax, 0xfffffffe
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x58]
call fcn.00402823
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov eax, dword [edi + 0x28]
cmovae ecx, dword [ebp - 0x28]
push ecx
mov eax, dword [eax + 4]
push eax
push ebx
push 0x8000004
lea eax, [edi + 0x44]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [edi + 0x38], eax
test eax, eax
jne 0x433384
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [edi + 0x4c]
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov dword [edi + 0x38], eax
test eax, eax
je 0x4333aa
mov eax, dword [edi + 0x28]
push dword [eax + 4]
push ebx
push ebx
push 6
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi + 0x3c], eax
test eax, eax
jne 0x4333b3
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x38], ebx
mov dword [edi + 4], 0x186ab
jmp 0x4333bd
mov eax, dword [edi + 0x28]
mov bl, 1
mov eax, dword [eax]
mov dword [edi + 0x34], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402823
mov al, bl
call fcn.0040fc5f
ret

Function at 0x433e4a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ecx + 0x14], 8
push edi
jb 0x433e59
mov ecx, dword [ecx]
push edx
push 2
push 3
mov edx, 0xc0000000
call fcn.0040ec5a
mov edi, eax
cmp edi, 0xffffffff
je 0x433e9f
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp + 8]
push ebx
push ecx
mov eax, dword [esi + 4]
sub eax, dword [esi]
push eax
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x433e95
mov eax, dword [esi + 4]
sub eax, dword [esi]
cmp dword [ebp + 8], eax
jne 0x433e97
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov al, bl
pop ebx
pop ebp
ret 4
Function at 0x4347e5
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [edx + 0x14], 0x10
mov dword [ebp - 4], ebx
jb 0x4347f7
mov edx, dword [edx]
lea eax, [ebp - 4]
push eax
push 2
push ebx
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x434833
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x434815
mov eax, dword [eax]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x434828
cmp eax, 2
jne 0x43482a
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret 4

Function at 0x43515c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x44e0d8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
mov edi, ebx
mov esi, 0x43d4bc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor esi, esi
mov edi, ecx
sub eax, ebx
lea edx, [ebx + esi]
mov cl, byte [eax + edx]
xor cl, byte [edi + esi + 4]
inc esi
mov byte [edx], cl
cmp esi, 0x10
jl 0x435190
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f9cb
leave
ret 4
Function at 0x435c5b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
xor bl, bl
cmp dword [edx + 0x14], 0x10
push esi
jb 0x435c70
mov edx, dword [edx]
lea eax, [ebp - 4]
xor esi, esi
push eax
push 1
push esi
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x435cfa
push edi
mov edi, dword [ebp + 8]
mov eax, edi
mov dword [ebp - 8], esi
cmp dword [edi + 0x14], 0x10
jb 0x435c96
mov eax, dword [edi]
lea ecx, [ebp - 8]
push ecx
push esi
push esi
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x435ce1
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 0xb]
push eax
push dword [ebp - 8]
mov ecx, esi
call fcn.0040227f
cmp dword [edi + 0x14], 0x10
jb 0x435cc6
mov edi, dword [edi]
lea eax, [ebp - 8]
push eax
push dword [esi]
push 0
push 0
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
sete bl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 4], 0
pop edi
test bl, bl
jne 0x435cfa
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
mov al, bl
pop ebx
leave
ret 8

Function at 0x435ea6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, ecx
xor edx, edx
mov ecx, 0x43d4bc
sub esi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
sub eax, ecx
mov cl, byte [esi + edx + 0x43d4bc]
xor cl, byte [edx + 0x43d4bc]
mov byte [eax + edx + 0x43d4bc], cl
inc edx
cmp edx, 0x10
jb 0x435ec4
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret 4

Function at 0x435f44
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [edx + 0x14], 0x10
mov dword [ebp - 4], ebx
jb 0x435f56
mov edx, dword [edx]
lea eax, [ebp - 4]
push eax
push 2
push ebx
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x435f97
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x435f74
mov eax, dword [eax]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 3
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
neg eax
sbb al, al
lea ebx, [eax + 1]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret 0xc
Function at 0x100205d
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x20c]
push eax
xor esi, esi
push esi
push esi
push 0x25
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
cmp edi, esi
jl 0x10022ab
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
je 0x10022ab
push ebx
push 0x10013a8
mov esi, 0x104
push esi
mov ebx, 0x1004b48
push ebx
call fcn.01001fe2
mov edi, eax
test edi, edi
jl 0x10022aa
lea eax, [ebp - 0x20c]
push eax
push esi
push ebx
call fcn.0100201c
mov edi, eax
test edi, edi
jl 0x10022aa
push 0x1001370
push esi
push ebx
call fcn.0100201c
mov edi, eax
test edi, edi
jl 0x10022aa
push 0x1001364
push esi
mov ebx, 0x1004d60
push ebx
call fcn.01001fe2
mov edi, eax
test edi, edi
jl 0x10022aa
lea eax, [ebp - 0x20c]
push eax
push esi
push ebx
call fcn.0100201c
mov edi, eax
test edi, edi
jl 0x10022aa
push 0x1001334
push esi
push ebx
call fcn.0100201c
mov edi, eax
test edi, edi
jl 0x10022aa
push 0x1001328
push esi
mov ebx, 0x1004738
push ebx
call fcn.01001fe2
mov edi, eax
test edi, edi
jl 0x10022aa
lea eax, [ebp - 0x20c]
push eax
push esi
push ebx
call fcn.0100201c
mov edi, eax
test edi, edi
jl 0x10022aa
push 0x1001334
push esi
push ebx
call fcn.0100201c
mov edi, eax
test edi, edi
jl 0x10022aa
push 0x1001320
push esi
mov ebx, 0x1004320
push ebx
call fcn.01001fe2
mov edi, eax
test edi, edi
jl 0x10022aa
lea eax, [ebp - 0x20c]
push eax
push esi
push ebx
call fcn.0100201c
mov edi, eax
test edi, edi
jl 0x10022aa
push 0x10012c0
push esi
push ebx
call fcn.0100201c
mov edi, eax
test edi, edi
jl 0x10022aa
push 0x1001320
push esi
mov ebx, 0x1004f68
push ebx
call fcn.01001fe2
mov edi, eax
test edi, edi
jl 0x10022aa
lea eax, [ebp - 0x20c]
push eax
push esi
push ebx
call fcn.0100201c
mov edi, eax
test edi, edi
jl 0x10022aa
push 0x1001268
push esi
push ebx
call fcn.0100201c
mov edi, eax
test edi, edi
jl 0x10022aa
push 0x1001220
push esi
push 0x1004530
call fcn.01001fe2
mov edi, eax
test edi, edi
jl 0x10022aa
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x1004940
call fcn.01001fe2
mov edi, eax
test edi, edi
jl 0x10022aa
mov ebx, 0x100120c
push ebx
push esi
push 0x1004940
call fcn.0100201c
mov edi, eax
test edi, edi
jl 0x10022aa
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea eax, [ebp - 0x20c]
push eax
call esi
push 0x10011f4
mov edi, eax
call esi
lea eax, [eax + edi + 6]
push ebx
mov dword [0x1004d58], eax
call esi
lea eax, [eax + edi + 6]
push 0x10011f4
mov dword [0x1004d54], eax
call esi
lea eax, [eax + edi + 3]
push ebx
mov dword [0x1004d50], eax
call esi
lea eax, [eax + edi + 3]
mov dword [0x1004528], eax
xor edi, edi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0100265e
leave
ret
Function at 0x100264f
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1003020
call fcn.01002c34
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x10054cc
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_InterlockedCompareExchange]
cmp eax, ebx
je 0x100245b
cmp eax, esi
jne 0x100244e
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x100245e
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x1002435
xor esi, esi
inc esi
mov eax, dword [0x10054c8]
cmp eax, esi
jne 0x1002471
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10024ac
mov eax, dword [0x10054c8]
test eax, eax
jne 0x10024a6
mov dword [0x10054c8], esi
push 0x10010e4
push 0x10010d8
call fcn.010023b2
pop ecx
pop ecx
test eax, eax
je 0x10024ac
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1002576
mov dword [0x100518c], esi
mov eax, dword [0x10054c8]
cmp eax, esi
jne 0x10024d0
push 0x10010d4
push 0x10010cc
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10054c8], 2
cmp dword [ebp - 0x1c], ebx
jne 0x10024dd
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
cmp dword [0x10054d4], ebx
je 0x10024fe
push 0x10054d4
call fcn.01002bab
pop ecx
test eax, eax
je 0x10024fe
push ebx
push 2
push ebx
call dword [0x10054d4]
push dword [0x1005174]
push dword [0x1005178]
push dword [0x1005170]
call fcn.0100232c
add esp, 0xc
mov dword [0x1005188], eax
cmp dword [0x100517c], ebx
jne 0x100255c
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x100518c], ebx
jne 0x100256a
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1005188]
call fcn.01002c79
ret
call fcn.01002d7e
jmp 0x1002413

Function at 0x1002b20
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1002b33
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1002b2f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x1002b60
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x1002b9f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x1002b95
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x1002ba1
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x1002b85
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10c82b4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x10c82be
pushal
call 0x10c82c4
pop ebp
sub ebp, 0x10
sub ebp, 0xcc82b4
jmp 0x10c82da
mov eax, 0xcc82b4
add eax, ebp
add eax, 0x4c
mov ecx, 0x5d5
mov edx, 0x669d90e8
xor byte [eax], dl
inc eax
dec ecx
jne 0x10c82f1
jmp 0x10c8304
arpl word [0xe8d46163], sp
call 0x1135ecf7
call 0x26f86bfc
push eax
in al, dx
call 0xc15f6c03
call 0xb2c6c08
jmp 0x10c8342
jmp 0x318d500b