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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4d4958]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x497a04
cmp byte [ebx], 0xa
jne 0x497a04
or byte [edi + eax + 0x28], 4
jmp 0x497a09
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x497b08
mov dl, byte [eax]
cmp dl, 0x1a
je 0x497aeb
inc eax
cmp dl, 0xd
je 0x497a35
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x497a5b
cmp eax, ecx
jae 0x497a69
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x497a1d
jmp 0x497b08
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x497ae6
cmp dword [ebp - 0x10], 0
je 0x497ae6
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4d4958]
test byte [eax + edi + 0x28], 0x48
je 0x497ac0
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x497aab
mov byte [esi], dl
jmp 0x497abc
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d4958]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x497b08
cmp byte [ebp - 1], 0xa
jne 0x497acf
cmp esi, ebx
jne 0x497acf
mov byte [esi], 0xa
jmp 0x497b07
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040192e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x497b08
mov byte [esi], 0xd
jmp 0x497b07
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4d4958]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x497b05
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x497b08
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x497b64
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4d4958]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x497baa
cmp word [ebx], dx
jne 0x497baa
or byte [eax + edi + 0x28], 4
jmp 0x497baf
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x497d12
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x497cf2
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x497bf0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x497c26
cmp eax, edx
jae 0x497c34
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x497bcb
jmp 0x497d12
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x497ced
cmp dword [ebp - 0x18], 0
je 0x497ced
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4d4958]
test byte [eax + edi + 0x28], 0x48
je 0x497cc3
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x497c87
mov word [esi], cx
jmp 0x497cbe
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4d4958]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4d4958]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4d4958]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x497d12
pop eax
cmp word [ebp - 4], ax
jne 0x497cd3
cmp esi, ebx
jne 0x497cd3
mov word [esi], ax
jmp 0x497d0f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040192e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x497d12
push 0xd
pop eax
jmp 0x497cce
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4d4958]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x497d0c
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x497d12
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49e507
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d1040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49e552
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049e9bf
test al, al
jne 0x49e54c
sub edx, 2
cmp edx, edi
jne 0x49e532
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49e574
lea eax, [edi + 2]
cmp edx, eax
je 0x49e574
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049e100
add esp, 0x10
jmp 0x49e66e
push esi
lea ecx, [ebp - 0x255]
call fcn.0049e9bf
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49e5b7
push dword [ebp - 0x25c]
jmp 0x49e564
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x49e5f4
cmp word [ebp - 0x226], 0
je 0x49e615
cmp word [ebp - 0x226], ax
jne 0x49e5f4
cmp word [ebp - 0x224], 0
je 0x49e615
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049e100
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49e661
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49e5ce
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49e649
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49e66e
push 0x49dae8
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004054e8
add esp, 0x10
jmp 0x49e63e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403035
leave
ret

Function at 0x4a3fd0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004042b4
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4a403f
cmp esi, dword [ebp - 4]
je 0x4a403a
cmp dword [ebp + 0xc], 0
je 0x4a403a
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4a4017
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004a39f8
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4a4041
xor eax, eax
inc eax
jmp 0x4a4041
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4013e7
Capabilities:
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 4]
push esi
push 8
xor eax, eax
shl ecx, 1
pop esi
sar ecx, 1
mov edx, eax
xor edx, ecx
shr eax, 1
test dl, 1
je 0x401405
xor eax, 0xedb88320
dec esi
jne 0x4013f3
pop esi
ret 4

Function at 0x401427
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
mov eax, dword [0x40a508]
je 0x401452
mov ecx, dword [esp + 4]
push esi
push edi
movzx esi, byte [ecx]
movzx edi, al
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x409ee0]
inc ecx
dec edx
jne 0x40143a
pop edi
pop esi
mov dword [0x40a508], eax
ret

Function at 0x40165b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
lea eax, [ebp - 0x5c8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [ebp + 0xc]
cmp byte [esi], 0
je 0x40169e
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x407240
lea eax, [ebp - 0x5c8]
push eax
call edi
push esi
lea eax, [ebp - 0x5c8]
push eax
call edi
mov edi, dword [ebp + 0x10]
cmp edi, 0xffffffff
jne 0x4016ba
push 1
lea eax, [ebp - 0x5c8]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x40176c
lea eax, [ebp - 0x2e4]
push eax
push 0
push ebx
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x1f
jne 0x4016f2
mov eax, dword [0x4090e8]
mov ecx, dword [0x409d80]
add eax, ecx
push ebx
push eax
lea eax, [ebp - 0x2e4]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x10
jmp 0x401752
cmp eax, 0x20
jbe 0x401730
mov al, byte [esi]
neg al
push 1
push 0
sbb eax, eax
and eax, esi
push eax
mov eax, dword [0x4099d4]
and eax, 0x20000
neg eax
sbb eax, eax
push ebx
and eax, str.Install
push eax
push dword [0x409e90]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
test edi, edi
je 0x40172b
mov dword [edi], eax
cmp eax, 0x20
ja 0x40176c
mov ecx, dword [0x409068]
push ebx
push eax
mov eax, dword [0x409d80]
add ecx, eax
push ecx
lea eax, [ebp - 0x2e4]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
push str.WinZip_Self_Extractor
lea eax, [ebp - 0x2e4]
push eax
push dword [0x409e90]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401771
Capabilities:
Log keystrokes via polling
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x4017ad
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10c]
push eax
push str.winzip_shellopencommand
push 0x80000000
mov dword [ebp - 4], 0x105
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x4017d2
mov eax, dword [0x409d80]
mov ecx, dword [0x40909c]
push 0
push str.WinZip_Self_Extractor
add ecx, eax
push ecx
push dword [0x409e90]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
leave
ret
mov cl, byte [ebp - 0x10c]
lea eax, [ebp - 0x10c]
jmp 0x4017e8
cmp cl, 0x20
je 0x4017ec
inc eax
mov cl, byte [eax]
test cl, cl
jne 0x4017e0
push 0x40a580
inc eax
push str.__s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [0x4099d4]
add esp, 0xc
test ah, 0x10
je 0x401832
test ah, ah
js 0x401832
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x10c]
sub ecx, 4
add eax, ecx
mov byte [eax], 0x7a
inc eax
mov byte [eax], 0x69
mov byte [eax + 1], 0x70
push 0xffffffffffffffff
lea eax, [ebp - 0x10c]
push 0x407244
push eax
call fcn.0040165b
add esp, 0xc
neg eax
sbb eax, eax
neg eax
leave
ret

Function at 0x401acd
Capabilities:
Query environment variable

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
ret
Function at 0x402294
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x409d9c]
inc dword [0x409d9c]
test eax, eax
push ebx
push esi
push edi
jne 0x40237a
push dword [ebp + 0xc]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push dword [ebp + 8]
lea eax, [ebp - 0x19c]
push str.WinZip_internal_error_in_file__s_line__d
push eax
call esi
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
add esp, 0x10
push 0x30
mov ebx, str.WinZip_Self_Extractor
push ebx
lea eax, [ebp - 0x19c]
push eax
push dword [0x409e90]
call edi
push 0
push 0x20
push 2
push 0
push 1
push 0x40000000
push str.WZSFX32.RPT
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40237a
lea eax, [ebp - 0x19c]
push 0x4074b4
push eax
call fcn.00405c30
pop ecx
pop ecx
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x19c]
push eax
call fcn.00405b90
pop ecx
push eax
lea eax, [ebp - 0x19c]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 4]
call fcn.00401f0f
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x19c]
push str._nPlease_save_the_file_WZSFX32.RPTand_inform_WinZip_Computing_n_nInternet:_support_winzip.com_nWeb:_http:__www.winzip.com_nPostal_mail:_P.O._Box_540__Mansfield__CT_06268_USA
push eax
call esi
pop ecx
pop ecx
push 0x30
push ebx
lea eax, [ebp - 0x19c]
push eax
push dword [0x409e90]
call edi
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4023f6
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 8]
push eax
call fcn.00405b90
cmp eax, 8
pop ecx
jae 0x4024a3
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x20
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x40246c
push 7
lea eax, [ebp - 0x28]
push str.PKBACK
push eax
call fcn.00401187
add esp, 0xc
test eax, eax
jne 0x40246c
mov al, byte [ebp - 0x28]
cmp al, bl
lea ecx, [ebp - 0x28]
je 0x40246c
cmp al, 0x2e
je 0x402468
cmp al, 0x20
je 0x402468
inc ecx
mov al, byte [ecx]
cmp al, bl
jne 0x402459
cmp byte [ecx], bl
jne 0x402475
or ax, 0xffff
pop ebx
leave
ret 4
mov al, byte [ecx]
cmp al, 0x30
jb 0x40247f
cmp al, 0x39
jbe 0x402482
inc ecx
jmp 0x402475
xor eax, eax
jmp 0x40249b
movzx edx, dl
lea eax, [eax + eax*4]
shl eax, 1
sub edx, 0x30
js 0x402470
cmp edx, 9
jg 0x402470
add eax, edx
inc ecx
mov dl, byte [ecx]
cmp dl, bl
jne 0x402486
jmp 0x402470
push 0x643
push str.sfxhead.c
call fcn.00402294
int3
Function at 0x403e90
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov bl, 0x22
cmp byte [eax], bl
je 0x403ea0
add bl, 0xfe
inc eax
mov cl, byte [eax]
xor edx, edx
cmp cl, dl
je 0x403eb9
cmp cl, bl
je 0x403eb4
inc eax
mov cl, byte [eax]
cmp cl, dl
jne 0x403ea9
cmp byte [eax], dl
je 0x403eb9
inc eax
push edx
push eax
push edx
push edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x404016
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [0x409ece]
test eax, eax
jg 0x404029
and dword [0x409e8c], 0
xor eax, eax
ret
push esi
mov esi, 0x800
cmp eax, esi
push edi
ja 0x404036
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll__lread]
push esi
push dword [0x409e88]
push dword [0x409d50]
call edi
cmp dword [0x409d60], 0
mov dword [0x409e8c], eax
je 0x4040a0
cmp eax, 0xffffffff
je 0x4040a0
cmp eax, esi
je 0x4040b0
test eax, eax
jl 0x4040a0
push dword [0x409d64]
xor eax, eax
mov ax, word [0x409974]
inc ax
push eax
call fcn.004024b3
mov eax, dword [0x409e8c]
test eax, eax
jne 0x404099
push esi
push dword [0x409e88]
push dword [0x409d50]
call edi
mov dword [0x409e8c], eax
cmp eax, 0xffffffff
je 0x4040a0
mov esi, eax
cmp eax, esi
je 0x4040b0
push 2
call fcn.00402cfd
mov eax, dword [0x409e8c]
sub dword [0x409ece], eax
cmp dword [0x409d54], 0
mov esi, dword [0x409e88]
mov dword [0x40a568], esi
je 0x4040eb
test eax, eax
je 0x4040eb
mov edi, eax
call fcn.004059aa
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.004059c1
inc esi
dec edi
pop ecx
jne 0x4040d1
mov eax, dword [0x409e8c]
mov ecx, eax
dec eax
pop edi
mov dword [0x409e8c], eax
mov eax, ecx
pop esi
ret

Function at 0x4059c1
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [0x409e50]
mov edx, eax
xor edx, dword [esp + 4]
shr eax, 8
mov ecx, 0xff
and edx, ecx
xor eax, dword [edx*4 + 0x409ee0]
xor edx, edx
mov dword [0x409e50], eax
and eax, ecx
add eax, dword [0x409e54]
imul eax, eax, 0x8088405
inc eax
mov dword [0x409e54], eax
mov dl, byte [0x409e57]
mov eax, dword [0x409e58]
xor edx, eax
and edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x409ee0]
mov dword [0x409e58], eax
ret

Function at 0x405a4f
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [0x409d5c]
call fcn.00405a17
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00401165
add esp, 0x10
xor esi, esi
lea edx, [ebp + esi - 0xc]
call fcn.004059aa
xor byte [edx], al
movzx eax, byte [edx]
push eax
call fcn.004059c1
inc esi
cmp esi, 0xc
pop ecx
jl 0x405a74
cmp dword [0x409d58], 0
movzx ax, byte [ebp - 1]
movzx cx, byte [0x409ec7]
pop esi
jne 0x405aae
movzx cx, byte [0x409ecd]
cmp ax, cx
je 0x405ab8
or eax, 0xffffffff
leave
ret
xor eax, eax
leave
ret
Function at 0x406111
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40613f
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x406146
cmp ebx, dword [eax + 4]
jae 0x406146
xor eax, eax
jmp 0x406336
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x406157
xor eax, eax
inc eax
jmp 0x406335
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40616d
cmp ecx, edx
jae 0x4062b2
cmp dword [eax + 4], 0
je 0x406176
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40615e
cmp dword [ebp + 8], 0
je 0x406198
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4062b2
cmp eax, esi
jae 0x4062b2
mov eax, dword [0x409df0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4061bd
cmp dword [esi*4 + 0x409df8], edi
je 0x4062b6
inc esi
cmp esi, eax
jl 0x4061ab
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406332
cmp dword [ebp - 8], 0x1000000
jne 0x406332
test byte [ebp - 0xc], 0xcc
je 0x40623b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x406332
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x406332
cmp word [eax + 0x18], 0x10b
jne 0x406332
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x406332
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40623b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40623b
test byte [ecx + 0x27], 0x80
jne 0x4062b2
push 1
push 0x409e38
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40614f
mov ecx, dword [0x409df0]
test ecx, ecx
mov edx, ecx
jle 0x40626f
lea eax, [ecx*4 + 0x409df4]
cmp dword [eax], edi
je 0x40626f
dec edx
sub eax, 4
test edx, edx
jg 0x406263
test edx, edx
jne 0x4062a0
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40627c
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x406294
lea eax, [edx*4 + 0x409df8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x406282
cmp ecx, 0x10
jge 0x4062a0
inc ecx
mov dword [0x409df0], ecx
push 0
push 0x409e38
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40614f
xor eax, eax
jmp 0x406335
test esi, esi
jle 0x40614f
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x409e38
call ebx
test eax, eax
jne 0x40614f
cmp dword [esi*4 + 0x409df8], edi
je 0x40630c
mov eax, dword [0x409df0]
lea esi, [eax - 1]
test esi, esi
jl 0x4062fa
cmp dword [esi*4 + 0x409df8], edi
je 0x4062f6
dec esi
jns 0x4062ea
test esi, esi
jge 0x40630a
cmp eax, 0x10
jge 0x406305
inc eax
mov dword [0x409df0], eax
lea esi, [eax - 1]
jmp 0x40630c
je 0x406324
xor ecx, ecx
test esi, esi
jl 0x406324
lea eax, [ecx*4 + 0x409df8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x406312
push 0
push 0x409e38
call ebx
jmp 0x40614f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10076247
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x10076267
mov eax, 0x80004005
jmp 0x100762f5
lea eax, [ebp - 4]
push esi
push eax
xor esi, esi
push 0x2000000
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x100762f2
lea eax, [ebp - 0x10]
push edi
push eax
push esi
push esi
lea eax, [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push esi
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 0x104
call edi
cmp eax, esi
jne 0x100762dc
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 4]
call fcn.100c7e5f
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0x104
push eax
push esi
push esi
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push dword [ebp - 4]
jmp 0x100762a8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
xor eax, eax
pop esi
leave
ret 8
Function at 0x100762f9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
push ebx
push esi
push edi
lea eax, [ebp - 0x15c]
push 0x27
push eax
lea eax, [ebp + 8]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x10c]
push str.CLSID_ls
push eax
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x80000000
call ebx
test eax, eax
jne 0x10076418
push dword [ebp + 0x18]
mov edi, 0x10093370
lea eax, [ebp - 0x10c]
push edi
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x10c]
push 0x104
push eax
push 1
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
test eax, eax
mov dword [ebp + 0x18], eax
je 0x10076396
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10076415
push dword [ebp + 0x24]
lea eax, [ebp - 0x10c]
push edi
push eax
call esi
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call ebx
mov ebx, eax
test ebx, ebx
je 0x100763c9
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x10076418
push dword [ebp + 0x1c]
lea eax, [ebp - 0x10c]
push edi
push eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
call ebx
inc eax
push eax
lea eax, [ebp - 0x10c]
push eax
push 1
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
test eax, eax
mov dword [ebp + 0x18], eax
je 0x10076424
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 8]
call esi
mov eax, dword [ebp + 0x18]
and eax, 0xffff
or eax, 0x80070000
jmp 0x1007647e
push dword [ebp + 0x20]
lea eax, [ebp - 0x10c]
push edi
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
call ebx
inc eax
push eax
lea eax, [ebp - 0x10c]
push eax
push 1
push 0
push 0x10093360
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
call edi
push dword [ebp - 8]
call edi
mov eax, esi
and esi, 0xffff
or esi, 0x80070000
neg eax
sbb eax, eax
and eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x20