joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f520
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push edi
mov edi, eax
mov al, byte [0x4974e8]
mov byte [esi + 3], al
cmp word [edi], 0
je 0x4295c9
mov eax, edi
mov ecx, edi
call fcn.00410120
mov ebx, edi
call fcn.004102b0
mov ecx, dword [ebp + 8]
push ecx
mov edx, edi
mov ebx, esi
call fcn.00410190
push eax
push esi
mov eax, edi
call fcn.0040f570
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
dec dword [ebp - 0x17ad1fab]
cmpsd dword [esi], dword es:[edi]
push ds
add al, byte [eax]
mov al, 1
jmp fcn.0040f5c5

Function at 0x40f5c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10020
add byte [ecx], al
add al, ch
jae 0x40f5f7
add dword [eax], eax

Function at 0x40f820
Capabilities:
Hash data with md5

Disassembly:
push 8
lea eax, [esi + 0x44]
push 0
push eax
call fcn.00412f40
add esp, 0xc
mov dword [esi + 0x34], 0x67452301
mov dword [esi + 0x38], 0xefcdab89
mov dword [esi + 0x3c], 0x98badcfe
mov dword [esi + 0x40], 0x10325476
ret

Function at 0x4102b0
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428

Function at 0x4322aa
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov ebp, esp
add dword [ebp + 8], 0xffffff8b
mov dword [0x534a7540], eax
push esi
add al, 0x50
call 0x7583db9d
dec edx
push ebx
push edi
mov ecx, dword [eax]
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
mov dword [eax + 4], edi
dec eax
add edx, dword [ecx + 0x42]
cmp eax, 0x4a7efc
jl 0x4322c0
mov dword [0x3b68205c], 0xff83ffff
mov dword [0x95547f10], 0x5752004a
pop edi
xchg esi, eax
clc
push dword [ebp + 0x29]
fld qword [ebp + 8]
sub esp, 0x18
fld st(0)
push ebx
fldz
push esi
fld st(0)
push edi
fucomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x44
jnp 0x579523df
fld st(1)
fld qword [0x758b5638]
fucompp
or byte [ecx - 0x75], dl
invalid
Function at 0x432eb1
Capabilities:
Encrypt data using rc4 prga

Disassembly:
xor ecx, dword [edi]
mov dh, 4
adc dword [ebp + 0x50579c0], eax
mov dword [ebp - 4], esi
mov al, byte [esi]
rol byte [ecx + 0x45890fe2], 1
cld
je 0x432e75
dec edx
or edx, 0xfffffff0
inc edx
mov dx, word [ebp + edx*2 - 0x24]
mov word [esi + 2], dx
cdq
and edx, 0xf
ret
lea edx, [esi - 1]
sar bh, cl
push esi
push ss
pop esi
sub esp, 0x24
inc esi
pushal
pop ebp
or al, 0x56
mov edi, eax
mov dword [ebp - 4], eax
mov edx, dword [ecx - 0x47]
or byte [ebx + 0x34be04f8], al
jle 0x432e58
mov dl, 0x8d
jge 0x432eac
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
div byte [ebp + 0x14]
lea ecx, [esi - 1]
test ecx, ecx
js 0x432ef9
lea ebx, [ecx + 0x56085503]
out 0xf, eax
mov di, word [ebp + edi*2 - 0x24]
shrd eax, edx, 4
mov word [ebx + ecx*2], di
push ebp
or byte [esi - 0x19], dl
pcmpgtd mm1, qword [ebx + 0xfdc7d7c]
lodsb al, byte [esi]
rol byte [esi], 1
mov dword [ebx + ecx*2], edi
shr edx, 4
dec ecx
jns 0x432ee1
xor ecx, ecx
or eax, edx
pop edi
mov word [ebx + esi*2], cx
pop esi
pop ebx
je 0x432f0c
xor cl, byte [eax]
push eax
push esi
push ecx
ret
mov al, 1
push esi
call edx
call dword [esi + 0x16]
push esi
push ss
pop esi
push ecx
clc
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
dec eax
add al, 0x56
call ecx
mov dword [ebp - 4], 0xe0e85004
mov byte [ebp + 0xb], 0
add eax, 0x8b103eb8
pop ebp
or al, 0xff
inc ebp
or al, 0x50
lea ecx, [eax]
mov eax, dword [esi]
movzx ecx, word [edi + eax*2]
push ecx
call 0x499324e
mov dword [edx + edi*4], eax
inc edi
cmp edi, dword [esi + 0x1a]
adc byte [edx - 0xbdfebe], cl
push es
mov edx, dword [esi]
movzx eax, word [esi + eax*2]
add al, 0x5e
out dx, al
add dl, byte [esi + 4]
mov dword [edx + edi*4], eax
inc edi
cmp esi, dword [ebp - 0x15]
mov ecx, dword [esi]
movzx eax, word [edi + ecx*2]
sub eax, 0x2b
pop esp
inc edx
inc byte [eax]
push ebx
push esi
je 0x432f84
sub eax, 2
jne 0x432f87
cmp eax, 0x68
ja 0x898431ac
inc ecx
mov dword [esi], ecx
push cs
mov ecx, dword [esi]
cmp word [edi + ecx*2], 0
je 0x432fc4
mov edi, edi
mov edx, dword [esi]
movzx eax, word [esi + eax*2]
add al, 0x5e
pop esi
mov edx, dword [esi + 4]
mov dword [edx + edi*4], eax
inc edi
cmp edi, dword [esi + 0x1f]
mov eax, dword [esi]
movzx edx, word [edi + eax*2]
mov ecx, dword [ebx]
add byte [edi + 0xb], dh
cmp esp, dword [esi - 0x7d]
cmp al, 0x47
add byte [ebp - 0x762fb5ac], cl
adc eax, esi
inc ebp
or eax, dword [ecx]
mov dword [esi], eax
jne 0x432f92
mov ecx, dword [ebx]
imul ecx, dword [ebp - 4]
mov al, byte [ebp + 0xb]
pop edi
pop esi
mov dword [ebx], ecx
leave
call dword [edi - 0x75]
jge 0x432feb
test byte [edx + 0x4337ad0], bl
cmp dword [esi + 0x45], 0xfffffff0
mov eax, dword [ebx - 0x7f83c708]
jne 0x432feb
xor eax, eax
cmp ecx, 0x807c38f8
jne 0x432ff5
xor ecx, dword [ebx + 0x38bf04d]
add byte [eax], al
add dl, al
hlt
dec ebp
invalid
Function at 0x40323e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x403269
mov ecx, dword [0x4702b8]
push esi
add eax, ecx
push esi
push eax
mov dword [0x4326d4], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00403346
cmp eax, esi
jl 0x403340
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00405fd3
test eax, eax
je 0x403330
push dword [ebp + 8]
add dword [0x4326d4], 4
call fcn.00403346
mov ebx, eax
cmp ebx, esi
jl 0x40333e
cmp dword [ebp + 0x10], esi
jne 0x40330c
cmp dword [ebp + 8], esi
jle 0x40333e
mov esi, 0x4266d0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x4032ce
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00405fd3
test eax, eax
je 0x403330
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00406002
test eax, eax
je 0x403308
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x4326d4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4032bd
jmp 0x40333e
push 0xfffffffffffffffe
jmp 0x403332
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403317
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403335
push 0xfffffffffffffffd
pop eax
jmp 0x403340
mov ebx, dword [ebp - 4]
add dword [0x4326d4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x405991
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x4083f8
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x4083e8
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4059e2
xor eax, eax
jmp 0x405a09
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405a09
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
jne 0x4059de
call esi
pop esi
leave
ret 4

Function at 0x405a43
Capabilities:
Create process on windows

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

Function at 0x405a86
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x405b24
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405f2b
mov edi, eax
cmp edi, 0xffffffff
je 0x405b65
test byte [esp + 0x10], 1
push esi
je 0x405b47
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405b4d
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405b56
xor eax, eax
inc eax
jmp 0x405b67
test byte [esp + 0x10], 4
jne 0x405b65
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405b6c
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405e37
test bl, 8
mov dword [ebp - 8], eax
je 0x405bab
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x4702e8], eax
jmp 0x405d28
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405bc5
test eax, eax
je 0x405cd6
test bl, 2
je 0x405cd6
mov esi, 0x456730
push edi
push esi
call fcn.0040645a
cmp dword [ebp + 8], 0
je 0x405be4
push 0x40a57c
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405bea
push edi
call fcn.00405d7b
cmp word [edi], 0
jne 0x405bfa
cmp word [0x456730], 0x5c
jne 0x405c05
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405ccb
cmp word [ebp - 0x22c], 0x2e
jne 0x405c4f
cmp word [ebp - 0x22a], 0
je 0x405cae
cmp word [ebp - 0x22a], 0x2e
jne 0x405c4f
cmp word [ebp - 0x228], 0
je 0x405cae
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.0040645a
test byte [ebp - 0x258], 0x10
je 0x405c7a
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405cae
push dword [ebp + 0xc]
push edi
call fcn.00405b6c
jmp 0x405cae
push dword [ebp - 4]
push edi
call fcn.00405b24
test eax, eax
jne 0x405ca6
cmp dword [ebp - 4], eax
je 0x405c9e
push edi
push 0xfffffffffffffff1
call fcn.004054c2
push 0
push edi
call fcn.00406220
jmp 0x405cae
inc dword [0x4702e8]
jmp 0x405cae
push edi
push 0xfffffffffffffff2
call fcn.004054c2
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405c27
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405cd6
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405d28
cmp dword [ebp - 8], esi
jne 0x405cea
inc dword [0x4702e8]
jmp 0x405d28
push edi
call fcn.0040679d
test eax, eax
je 0x405d28
push edi
call fcn.00405d2f
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405b24
test eax, eax
jne 0x405d20
cmp dword [ebp - 4], esi
je 0x405ce2
push edi
push 0xfffffffffffffff1
call fcn.004054c2
push esi
push edi
call fcn.00406220
jmp 0x405d28
push edi
push 0xffffffffffffffe5
call fcn.004054c2
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405e37
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x45a730
push esi
call fcn.0040645a
push esi
call fcn.00405dda
mov edi, eax
test edi, edi
jne 0x405e58
xor eax, eax
jmp 0x405eb0
push edi
call fcn.004066ee
test byte [0x47025c], 0x80
je 0x405e75
mov ax, word [edi]
test ax, ax
je 0x405e54
cmp ax, 0x5c
je 0x405e54
sub edi, esi
sar edi, 1
jmp 0x405e8f
call fcn.0040679d
test eax, eax
je 0x405e89
test byte [eax], 0x10
je 0x405e54
push esi
call fcn.00405d7b
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405e7b
call fcn.00405d2f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405f2b
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405f4a
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405f50
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405f7f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a588]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a58c]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405fcf
test edi, edi
jne 0x405f8c
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405fc9
Function at 0x4060a6
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x45edc8], 0x55004e
mov dword [0x45edcc], 0x4c
mov edi, 0x400
mov ebp, 0x45edc8
je 0x4060fc
push 1
push 0
push esi
call fcn.00405f50
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40621b
cmp eax, edi
jg 0x40621b
mov esi, 0x45f5c8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40621b
cmp eax, edi
jg 0x40621b
push esi
push ebp
push str._ls_ls_r_n
push 0x45e9c8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x470254]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.0040647c
push 4
push 0xc0000000
push esi
call fcn.00405f50
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x40621b
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x406214
push edi
push esi
push ebp
call fcn.00405fd3
test eax, eax
je 0x406214
push str._Rename__r_n
push esi
call fcn.00405eb5
test eax, eax
jne 0x4061b2
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4061e7
add eax, 0xa
push 0x40a590
push eax
call fcn.00405eb5
mov ebp, eax
test ebp, ebp
je 0x4061e3
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4061d4
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4061ce
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x4061e9
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x45e9c8
push eax
call fcn.00405f0b
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00406002
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406220
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x406243
push dword [esp + 8]
push dword [esp + 8]
call fcn.004060a6
pop ecx
pop ecx
inc dword [0x4702f0]
ret 8
Function at 0x406328
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x4000
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004062c7
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x406398
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x3ffe], 0
test edi, edi
pop edi
jne 0x406398
cmp dword [ebp + 0xc], 1
je 0x40639c
cmp dword [ebp + 0xc], 2
je 0x40639c
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x4067c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4067e8
xor eax, eax
test eax, eax
je 0x4067fb
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4067fb
xor ecx, ecx
jmp 0x4067fe
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406927
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x45fdcc], 0
push esi
jne 0x40695e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406938
mov dword [ecx*4 + 0x45fdc8], eax
inc ecx
cmp ecx, 0x100
jl 0x406933
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40698f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x45fdc8]
xor eax, esi
inc ecx
dec edx
jne 0x406971
pop edi
not eax
pop esi
ret 0xc
Function at 0x401b90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401ba9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401bbd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401bde
cmp esi, eax
jae 0x401bb7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401bd0
cmp esi, eax
jae 0x401bb7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x407390
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x443ab8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov ecx, dword [0x455690]
mov eax, 0x709ad4e5
imul ecx
mov ecx, dword [0x45569c]
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
push esi
mov esi, eax
mov eax, 0xc2c05bdf
imul ecx
mov eax, dword [0x4556a8]
sar edx, 7
imul eax, eax, 0x12b
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, dword [0x45568c]
imul edx, edx, 0x217
push edi
mov edi, ecx
mov ecx, dword [0x455694]
sub edi, esi
add edi, edx
add edi, eax
mov eax, 0xe070381d
imul ecx
add edx, ecx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add edi, edx
mov edx, dword [0x56bcbc]
add ecx, edi
mov dword [str._r_____r____], ecx
mov ecx, 0x56bcbc
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 8], eax
mov ecx, dword [0x45569c]
mov esi, dword [0x4556a8]
mov eax, 0x709ad4e5
imul esi, esi, 0x246
imul ecx
mov ecx, dword [0x455688]
sar edx, 8
imul ecx, ecx, 0x1ed
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
add esi, ecx
mov ecx, dword [0x455690]
mov eax, 0x8c55841d
imul ecx
add edx, ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x1c]
sub esi, eax
mov eax, dword [0x4556a0]
lea ecx, [esp + 0x20]
sub esi, eax
push ecx
sub esi, 0xb8
push edx
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
mov dword [0x455690], esi
call fcn.00407100
mov ecx, dword [0x455694]
mov eax, 0x709ad4e5
imul ecx
sar edx, 8
mov esi, edx
shr esi, 0x1f
add esi, edx
mov edx, dword [0x45568c]
imul ecx, ecx, 0xb8
mov eax, edx
imul eax, eax, 0x23c
add esi, eax
mov eax, dword [0x455690]
imul eax, eax, 0x217
add esi, eax
mov eax, 0x42776e9b
imul edx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
sub esi, eax
add esi, ecx
mov dword [0x45569c], esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
jg 0x40752d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4163f0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x118
mov eax, dword [0x456fc0]
mov edx, dword [esp + 0x11c]
push ebp
push esi
mov ebp, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x128], eax
mov eax, dword [ebp]
push edx
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x416512
lea ecx, [esp + 8]
call fcn.004162d0
mov esi, eax
test esi, esi
mov eax, dword [esp + 0x10]
mov dword [esp + 8], eax
jne 0x416516
push edi
lea ecx, [esp + 0x18]
push ecx
push esi
push esi
push esi
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x34]
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x4164c0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x10]
call fcn.004163f0
mov edi, eax
test edi, edi
jne 0x41653a
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push edi
push edi
push edi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x34]
push edx
push edi
push eax
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x416482
mov eax, dword [esp + 0xc]
test eax, eax
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4164d9
push eax
call edi
mov dword [esp + 0xc], 0
mov ecx, dword [esp + 0x128]
mov edx, dword [ebp]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4164f8
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.004291fd
add esp, 0x118
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x416521
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
call fcn.004291fd
add esp, 0x118
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x416549
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
mov eax, edi
pop edi
pop esi
pop ebp
call fcn.004291fd
add esp, 0x118
ret 4
Function at 0x416a20
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x416a32
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8