joyce8/EMBER2024-capa huggingface dataset:
Function at 0x493608
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
test dl, dl
je 0x49361a
add esp, 0xfffffff0
call fcn.00403340
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
call fcn.00406cb0
xor eax, eax
push ebp
push 0x4936f1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 4]
mov byte [eax + 0x14], 0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x18], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], 0xffffffff
mov eax, dword [ebp - 4]
add eax, 0x20
call fcn.00406c50
mov eax, dword [ebp - 4]
mov byte [eax + 0x24], 0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x28], edx
mov eax, dword [ebp - 4]
mov byte [eax + 0x2c], 0
mov eax, dword [ebp - 4]
mov byte [eax + 0x2d], 0
mov eax, dword [ebp - 4]
add eax, 0x30
call fcn.00403c10
mov eax, dword [ebp - 4]
add eax, 0x38
mov edx, dword [ebp - 0xc]
call fcn.00406c68
mov dl, 1
mov eax, dword [0x4109bc]
call fcn.00402fd0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov dl, 1
mov eax, dword [0x4109bc]
call fcn.00402fd0
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
cmp dword [ebp + 8], 0
je 0x4936db
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4936f8
lea eax, [ebp - 0xc]
call fcn.00406c50
ret
Function at 0x4d5cf0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d5de5
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 3
mov edx, 7
mov eax, dword [ebp - 4]
call fcn.004d59f4
test al, al
je 0x4d5d33
lea eax, [ebp - 0xc]
mov edx, 0x4d5dfc
call fcn.00403ca8
jmp 0x4d5d40
lea eax, [ebp - 0xc]
mov edx, 0x4d5e98
call fcn.00403ca8
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x230]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0xc]
test al, al
jne 0x4d5d94
lea edx, [ebp - 0x1c]
mov eax, dword [0x517238]
call fcn.00406bf8
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x408908]
call fcn.0040cde8
call fcn.004036ec
mov edx, 0x4d5ed4
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d5dec
lea eax, [ebp - 0x1c]
call fcn.00403c10
lea eax, [ebp - 0x18]
call fcn.00406c50
lea eax, [ebp - 0x14]
call fcn.00406c50
lea eax, [ebp - 0x10]
call fcn.00406c50
lea eax, [ebp - 0xc]
call fcn.00403c10
ret
Function at 0x512608
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404040
mov eax, dword [ebp - 8]
call fcn.00404040
mov eax, dword [ebp + 8]
call fcn.00404040
xor eax, eax
push ebp
push 0x5126dc
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, 0x5126f4
call fcn.00403e94
lea eax, [ebp - 8]
mov edx, 0x5126f4
call fcn.00403e94
lea eax, [ebp + 8]
mov edx, 0x5126f4
call fcn.00403e94
mov bl, 1
push 1
lea eax, [ebp + 8]
call fcn.0040405c
push eax
lea eax, [ebp - 8]
call fcn.0040405c
push eax
lea eax, [ebp - 4]
call fcn.0040405c
push eax
push 0
push 0
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
jae 0x5126b9
xor ebx, ebx
push 0
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov edx, 0x512700
call fcn.00403ed8
mov eax, dword [ebp - 0xc]
mov cx, word [0x512714]
mov dl, 1
call fcn.0044ef60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5126e3
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403c34
lea eax, [ebp + 8]
call fcn.00403c10
ret
Function at 0x51f070
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc8000]
push edi
jmp 0x51f08a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x51f091
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51f080
mov eax, 1
add ebx, ebx
jne 0x51f0a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x51f0b4
jne 0x51f0d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51f0d3
dec eax
add ebx, ebx
jne 0x51f0c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x51f098
add ebx, ebx
jne 0x51f0cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x51f125
xor ecx, ecx
sub eax, 3
jb 0x51f0eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x51f15a
sar eax, 1
mov ebp, eax
jmp 0x51f0f6
add ebx, ebx
jne 0x51f0f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51f0c4
inc ecx
add ebx, ebx
jne 0x51f104
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51f0c4
add ebx, ebx
jne 0x51f111
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x51f106
jne 0x51f122
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x51f106
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x51f144
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x51f136
jmp 0x51f086
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x51f144
add edi, ecx
jmp 0x51f086
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x51f162
cmp byte [edi], 0x11
jne 0x51f162
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 0x51f167
lea edi, [esi + 0x118000]
mov eax, dword [edi]
or eax, eax
je 0x51f1df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1658f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x165a70]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x51f194
mov ecx, edi
jns 0x51f1c3
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 + 0x165a74]
or eax, eax
je 0x51f1d9
mov dword [ebx], eax
add ebx, 4
jmp 0x51f1b1
call dword [esi + 0x165a84]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x51f210
cmp al, 0xef
ja 0x51f203
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x51f1e5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x51f1f2
mov ebp, dword [esi + 0x165a78]
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 0x51f244
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x403f4c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x4188d4], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x403f90
call ebx
test eax, eax
jns 0x403f86
push 0x40155c
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x401550
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x4188d0], eax
mov dword [0x4188d4], 1
mov eax, dword [0x4188d0]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x403fac
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x403fdc
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x403fd2
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x403fc6
push dword [eax + 8]
call dword [eax]
jmp 0x403fcc
push dword [eax + 0xc]
call dword [eax + 4]
test eax, eax
je 0x403fdb
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc

Function at 0x4044c9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4044f5
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4044f5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x4044f7
xor eax, eax
ret 8

Function at 0x4091ec
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
mov eax, dword [esi]
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
push edi
lea ebx, [ecx + eax + 0x18]
jbe 0x4092ce
add ebx, 0x10
mov eax, dword [ebx]
test eax, eax
jne 0x409269
mov eax, dword [ebp + 0x10]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x4092b9
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push edi
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x4092d8
mov edx, dword [ebx - 4]
add edx, dword [ebp - 4]
mov ecx, edi
mov dword [ebx - 8], edx
mov edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x4092b9
mov ecx, dword [ebx + 4]
add ecx, eax
mov eax, dword [ebp + 0xc]
push ecx
call fcn.004091d4
test eax, eax
je 0x4092d8
push dword [esi + 0x34]
mov eax, dword [ebx - 4]
add eax, dword [ebp - 4]
push 4
push 0x1000
push dword [ebx]
push eax
call dword [esi + 0x1c]
test eax, eax
je 0x4092d8
mov eax, dword [ebx - 4]
mov ecx, dword [ebx]
add eax, dword [ebp - 4]
mov esi, dword [ebx + 4]
add esi, dword [ebp + 8]
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov dword [ebx - 8], eax
mov eax, dword [esi]
movzx eax, word [eax + 6]
inc dword [ebp - 8]
add ebx, 0x28
cmp dword [ebp - 8], eax
jl 0x409219
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0x10
xor eax, eax
jmp 0x4092d1
Function at 0x409e2f
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x41889c]
push edi
push 0xf0000000
xor edi, edi
push 0x18
push edi
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x424]
push eax
mov dword [ebp - 0x42c], 0x20
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x420], edi
mov byte [ebp - 0x1c], 0x6f
mov byte [ebp - 0x1b], 0x4a
mov byte [ebp - 0x1a], 0xd5
mov byte [ebp - 0x19], 0x8f
mov byte [ebp - 0x18], 0x2a
mov byte [ebp - 0x17], 0x1c
mov byte [ebp - 0x16], 0xe1
mov byte [ebp - 0x15], 0xa2
mov byte [ebp - 0x14], 0xe3
mov byte [ebp - 0x13], 0xad
mov byte [ebp - 0x12], 0x8e
mov byte [ebp - 0x11], 0xf6
mov byte [ebp - 0x10], 0xf4
mov byte [ebp - 0xf], 0xfa
mov byte [ebp - 0xe], 0xca
mov byte [ebp - 0xd], 0x21
mov byte [ebp - 0xc], 0x15
mov byte [ebp - 0xb], 0x40
mov byte [ebp - 0xa], 0x4d
mov byte [ebp - 9], 0xf5
mov byte [ebp - 8], 0x38
mov byte [ebp - 7], 0x45
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x409fba
push ebx
push esi
lea eax, [ebp - 0x420]
push eax
push edi
push edi
push 0x800c
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x409ef6
xor esi, esi
jmp 0x409fa9
mov esi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push edi
push 0x16
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x420]
call esi
test eax, eax
jne 0x409f16
xor esi, esi
jmp 0x409f9d
push 0x401aa8
push dword [ebp + 8]
mov dword [ebp - 0x428], edi
call dword [sym.imp.msvcrt.dll__wfopen]
mov ebx, eax
cmp ebx, edi
pop ecx
pop ecx
je 0x409f7d
push ebx
push 0x400
lea eax, [ebp - 0x41c]
push 1
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, edi
jbe 0x409f75
add dword [ebp - 0x428], eax
push edi
push eax
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x420]
call esi
test eax, eax
je 0x409fc7
cmp dword [ebp - 0x428], 0x3c00
jb 0x409f32
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
push edi
lea eax, [ebp - 0x42c]
push eax
push dword [ebp + 0xc]
push 2
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
xor esi, esi
test eax, eax
je 0x409f9d
inc esi
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.004140d1
leave
ret 8
push dword [ebp - 0x420]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
xor eax, eax
jmp 0x409fb8
Function at 0x409fec
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x41889c]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 8
pop ecx
push 0xf0000000
push 0x18
push 0x401ab0
xor ebx, ebx
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x30], cl
mov byte [ebp - 0x2f], 2
mov word [ebp - 0x2e], bx
mov dword [ebp - 0x2c], 0x6610
mov dword [ebp - 0x28], 0x20
lea edi, [ebp - 0x24]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x40a0d9
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push 0x2c
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
xor edi, edi
test eax, eax
je 0x40a0cd
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
push ebx
lea eax, [ebp - 0x34]
push eax
push 4
push dword [ebp + 0xc]
inc edi
mov dword [ebp - 0x34], edi
call esi
test eax, eax
jne 0x40a07b
xor edi, edi
jmp 0x40a0c4
push ebx
lea eax, [ebp - 0x34]
push eax
push 3
push dword [ebp + 0xc]
mov dword [ebp - 0x34], edi
call esi
test eax, eax
je 0x40a077
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::data_void_const]
push eax
push ebx
push edi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x40a077
push dword [ebp - 0x38]
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_int_]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push ebx
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.004140d1
leave
ret 8
Function at 0x40b363
Capabilities:
Delete file

Disassembly:
mov eax, 0x4146cb
call fcn.004143e0
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov eax, dword [esi + 0x4c]
test eax, eax
mov dword [ebp - 4], 2
je 0x40b1b9
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esi + 0x74]
test eax, eax
je 0x40b1c7
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
lea eax, [esi + 0x8c]
cmp dword [eax], 0
je 0x40b1da
mov eax, dword [eax]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x40b1f3
push dword [eax + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
push dword [esi + 0x50]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ecx
mov eax, dword [esi + 0x70]
test eax, eax
je 0x40b201
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esi + 0x78]
test eax, eax
mov ebx, dword [sym.imp.OLEAUT32.dll_SysStringLen]
je 0x40b211
push eax
call ebx
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x40b21b
push eax
call ebx
mov eax, dword [esi + 0x80]
test eax, eax
je 0x40b228
push eax
call ebx
mov eax, dword [esi + 0x84]
test eax, eax
je 0x40b235
push eax
call ebx
lea edi, [esi + 0x88]
mov eax, dword [edi]
test eax, eax
je 0x40b24c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [edi]
call ebx
mov ecx, esi
call fcn.004072bb
lea ecx, [esi + 0x60]
mov byte [ebp - 4], 1
call fcn.0040b0c5
lea ecx, [esi + 0x54]
call fcn.0040e9ee
lea ecx, [esi + 0x24]
call fcn.0040a2ef
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
push esi
mov esi, ecx
push 0x41898c
mov dword [esi], 0x401c34
mov dword [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, esi
pop esi
jmp 0x40b191
Function at 0x40b780
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
test byte [0x418a00], 1
push ebx
push esi
push edi
jne 0x40b7a3
or dword [0x418a00], 1
call fcn.0040b72c
mov dword [0x4189fc], eax
push 4
pop eax
call fcn.00414450
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b838
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x48]
lea edi, [eax - 1]
not edi
and edi, esi
sub edi, eax
mov dword [ebp - 8], eax
mov eax, dword [0x4188bc]
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xffff1000
add esi, 0x11000
add esi, ebx
cmp edi, esi
jb 0x40b838
cmp eax, 1
je 0x40b859
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40b838
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40b805
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40b834
xor eax, eax
inc eax
jmp 0x40b878
cmp edi, eax
jae 0x40b83c
xor eax, eax
jmp 0x40b878
cmp eax, esi
jae 0x40b843
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4188bc]
jmp 0x40b85c
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40ba16
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0xc]
push 1
push 0
push dword [esp + 0x1c]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
ret 8

Function at 0x40bd67
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 8]
cmp word [ecx], 0
mov eax, dword [esp + 4]
push ebx
mov ebx, eax
je 0x40bdf5
cmp word [eax], 0
push ebp
push esi
push edi
je 0x40bdf0
mov ebp, dword [sym.imp.USER32.dll_CharNextW]
cmp word [ebx], 0
mov edi, dword [esp + 0x18]
mov esi, ebx
je 0x40bddf
mov ax, word [edi]
test ax, ax
je 0x40bdf9
movzx ecx, word [esi]
movzx eax, ax
sub ecx, eax
jne 0x40bddf
push esi
call ebp
push edi
mov dword [esp + 0x18], eax
call ebp
mov ecx, eax
mov eax, dword [esp + 0x14]
mov edx, eax
sub ecx, edi
sub edx, esi
xor ecx, edx
test ecx, 0xfffffffe
jne 0x40bddf
jmp 0x40bdd5
inc esi
inc esi
movzx edx, word [esi]
inc edi
inc edi
movzx ecx, word [edi]
sub edx, ecx
je 0x40bdd9
cmp esi, eax
jb 0x40bdc7
cmp word [esi], 0
jne 0x40bd93
cmp word [edi], 0
je 0x40bdf9
push ebx
call ebp
mov ebx, eax
cmp word [ebx], 0
jne 0x40bd87
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, ebx
jmp 0x40bdf2
Function at 0x40bfa9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov eax, 0x200c
lea ebp, [esp - 0x1f8c]
call fcn.00414450
mov eax, dword [0x41889c]
push esi
xor esi, esi
push esi
push esi
push esi
push esi
mov dword [ebp + 0x1f88], eax
lea eax, [ebp - 0x7c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 0x1f94]
mov dword [ebp - 0x7c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x40c01d
cmp dword [ebp - 0x7c], 1
jne 0x40c021
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push esi
push dword [ebp + 0x1f94]
mov dword [ebp - 0x80], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x40c01d
cmp word [ebp - 0x78], si
je 0x40c01d
inc eax
jmp 0x40c02a
xor eax, eax
jmp 0x40c02a
xor eax, eax
cmp eax, dword [ebp - 0x7c]
sbb eax, eax
neg eax
mov ecx, dword [ebp + 0x1f88]
pop esi
call fcn.004140d1
add ebp, 0x1f8c
leave
ret 4

Function at 0x40c5f6
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov eax, 0x414728
call fcn.004143e0
sub esp, 0x214
mov eax, dword [0x41889c]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], eax
mov ebx, ecx
mov dword [ebp - 0x214], esi
push 0x2001f
push dword [ebp + 8]
lea ecx, [ebp - 0x214]
push dword [ebx]
mov dword [ebp - 4], esi
call fcn.0040b9c7
cmp eax, esi
jne 0x40c695
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40c64f
lea eax, [ebp - 0x210]
push eax
call fcn.0040c5f6
cmp eax, esi
jne 0x40c694
lea eax, [ebp - 0x220]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x214]
je 0x40c63f
call fcn.0040b962
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.0040b962
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004140d1
leave
ret 4