joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401220
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x40a040]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
push 0x64
push 0x40a850
push 0x67
push ebx
call esi
push 0x64
push 0x40a788
push 0x6d
push ebx
call esi
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x83
push ebx
mov dword [esp + 0x18], 0x30
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], 0x401420
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], ebx
call esi
push 0x7f00
push 0
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x1e1e1e
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push 0x83
push dword [esp + 0x28]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0x6d
mov dword [esp + 0x40], 0x40a788
call esi
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push ebx
push 0
push 0
push 0x1f4
push 0x258
push 0
push 0x80000000
push 0xca0000
push str.Valhalla2
push 0x40a788
push 0
mov dword [0x40a780], ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esp + 0xc], eax
test eax, eax
jne 0x401331
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.00405593
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [esp + 0x5c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call esi
mov ecx, dword [esp + 0x5c]
sub ecx, dword [esp + 0x64]
add eax, ecx
cdq
sub eax, edx
mov edi, eax
push 1
sar edi, 1
call esi
mov ecx, dword [esp + 0x60]
sub ecx, dword [esp + 0x68]
mov esi, dword [esp + 0xc]
add eax, ecx
push 5
push 0
cdq
push 0
sub eax, edx
sar eax, 1
push eax
push edi
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [ebp + 0x14]
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
call fcn.00402830
push 0x6d
push ebx
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
push 0
push 0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x48]
push 0
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x401406
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorW]
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
nop word [eax + eax]
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x10]
push dword [esp + 0x48]
call ebx
test eax, eax
jne 0x4013f1
lea eax, [esp + 0x40]
push eax
call esi
lea eax, [esp + 0x40]
push eax
call edi
push 0
push 0
push 0
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x4013d0
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x48]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00405593
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4019e0
Capabilities:
Create process on windows
Get graphical window text

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40648b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1e0
mov eax, dword [0x40a040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x64
lea eax, [ebp - 0x1a8]
push eax
push dword [0x40a918]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0x64
lea eax, [ebp - 0xe0]
push eax
push dword [0x40a784]
call dword [sym.imp.USER32.dll_GetWindowTextW]
xorps xmm0, xmm0
mov dword [ebp - 0x1e0], 0
lea ecx, [ebp - 0xe0]
mov dword [ebp - 0x1dc], 0
movups xmmword [ebp - 0x1f0], xmm0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401a70
sub ecx, edx
lea eax, [ebp - 0xe0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1f0]
call fcn.004048e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1a8]
xorps xmm0, xmm0
mov dword [ebp - 0x1c8], 0
movups xmmword [ebp - 0x1d8], xmm0
mov dword [ebp - 0x1c4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401ac0
sub ecx, edx
lea eax, [ebp - 0x1a8]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1d8]
call fcn.004048e0
lea edx, [ebp - 0x1f0]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1d8]
call fcn.00401c60
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x1c4]
cmp ecx, 7
jbe 0x401b3b
mov edx, dword [ebp - 0x1d8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401b31
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401c2f
push ecx
push edx
call fcn.004055d1
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x1dc]
cmp ecx, 7
jbe 0x401b82
mov edx, dword [ebp - 0x1f0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401b78
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401c2f
push ecx
push edx
call fcn.004055d1
add esp, 8
push 0x1a
xorps xmm0, xmm0
mov dword [ebp - 0x1b0], 0
push str.Ashita_cli.exe_laucher.lnk
lea ecx, [ebp - 0x1c0]
mov dword [ebp - 0x1ac], 0
movups xmmword [ebp - 0x1c0], xmm0
call fcn.004048e0
cmp dword [ebp - 0x1ac], 7
lea eax, [ebp - 0x1c0]
push 1
cmova eax, dword [ebp - 0x1c0]
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x401bf5
push 0x10
push str.Error
push str.Failed_to_launch_the_application._Please_check_the_shortcut_path.
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x401bfd
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, dword [ebp - 0x1ac]
cmp ecx, 7
jbe 0x401c3f
mov edx, dword [ebp - 0x1c0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x401c35
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401c35
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004055d1
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00405593
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x403cd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x40a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, 0xffff
movzx eax, bx
mov dword [ebp - 0x34], eax
mov esi, ecx
cmp di, bx
jne 0x403d0d
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405593
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x403d47
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x403d47
dec dword [edx]
mov ax, bx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405593
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x403e17
mov ecx, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [ecx], eax
jne 0x403d74
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
sar edx, 1
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x403da7
push dword [esi + 0x4c]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
add esp, 8
movzx ecx, bx
cmp ax, di
cmove ecx, edi
pop edi
pop esi
mov ax, cx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405593
mov esp, ebp
pop ebp
ret 4
movzx eax, bx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet___wchar_t_const___wchar_t_const___wchar_t_const____char___char___char___const]
sub eax, 0
je 0x403de6
sub eax, 1
je 0x403de6
sub eax, 2
jne 0x403e17
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x403d7f
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub ebx, eax
je 0x403e04
push dword [esi + 0x4c]
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp ebx, eax
jne 0x403e17
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x30], ecx
movzx eax, ax
mov byte [esi + 0x3e], 1
cmovne edi, eax
mov ecx, dword [ebp - 4]
mov ax, di
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405593
mov esp, ebp
pop ebp
ret 4
Function at 0x404370
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x40a040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x404434
cmp byte [esi + 0x3e], 0
je 0x404434
mov eax, dword [esi]
push edi
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
je 0x404422
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x4043e9
sub eax, 1
je 0x4043ed
sub eax, 2
jne 0x404422
mov byte [esi + 0x3e], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405593
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3e], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40440b
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x404422
cmp byte [esi + 0x3e], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405593
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405593
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00405593
mov esp, ebp
pop ebp
ret

Function at 0x405e5f
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x405e9e
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x405e9e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405e9e
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x405e9e
cmp dword [ecx + 0x74], 0xe
jbe 0x405e9e
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4065c9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x42d2c4], 0
jne 0x406604
xor ecx, ecx
push esi
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 0x4065dd
mov dword [ecx*4 + 0x42d2c0], eax
inc ecx
cmp ecx, 0x100
jl 0x4065d8
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406631
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42d2c0]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406612
not eax
pop ebp
ret 0xc

Function at 0x4eea66
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.004eeae5
jae 0x4eea72
xor ecx, ecx
call fcn.004eeae5
jae 0x4eea9c
xor eax, eax
call fcn.004eeae5
jae 0x4eeaad
mov al, 0x10
call fcn.004eeae5
adc al, al
jae 0x4eea8e
jne 0x4eeada
stosb byte es:[edi], al
jmp 0x4eea73
call fcn.004eeaf1
dec ecx
loop 0x4eeab9
mov eax, ebp
call fcn.004eeaef
jmp 0x4eeadb
lodsb al, byte [esi]
shr eax, 1
je 0x4eeb01
adc ecx, 2
mov ebp, eax
jmp 0x4eeadb
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.004eeaef
cmp eax, 0x7d00
jae 0x4eead9
cmp eax, 0x500
jae 0x4eeada
cmp eax, 0x7f
ja 0x4eeadb
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x4eea73
pop ebp
ret 8
Function at 0x4c6ee0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x84000]
push edi
jmp 0x4c6efa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4c6f01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c6ef0
mov eax, 1
add ebx, ebx
jne 0x4c6f13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4c6f24
jne 0x4c6f43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c6f43
dec eax
add ebx, ebx
jne 0x4c6f30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4c6f08
add ebx, ebx
jne 0x4c6f3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4c6f95
xor ecx, ecx
sub eax, 3
jb 0x4c6f5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4c6fca
sar eax, 1
mov ebp, eax
jmp 0x4c6f66
add ebx, ebx
jne 0x4c6f66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c6f34
inc ecx
add ebx, ebx
jne 0x4c6f74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c6f34
add ebx, ebx
jne 0x4c6f81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4c6f76
jne 0x4c6f92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4c6f76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4c6fb4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4c6fa6
jmp 0x4c6ef6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4c6fb4
add edi, ecx
jmp 0x4c6ef6
pop esi
mov edi, esi
mov ecx, 0x377e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4c6fd2
cmp byte [edi], 0x11
jne 0x4c6fd2
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 0x4c6fd7
lea edi, [esi + 0xc2000]
mov eax, dword [edi]
or eax, eax
je 0x4c704f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xdd2a0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xdd414]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4c7004
mov ecx, edi
jns 0x4c7033
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 + 0xdd41c]
or eax, eax
je 0x4c7049
mov dword [ebx], eax
add ebx, 4
jmp 0x4c7021
call dword [esi + 0xdd418]
mov ebp, dword [esi + 0xdd420]
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 0x4c7083
sub esp, 0xffffff80
jmp 0x416310
Function at 0x415bd0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48f76b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00483f25
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x415c52
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004815cd
mov eax, dword [eax]
push 0x4ab1ec
push eax
call fcn.00473814
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004841b0
test bl, bl
je 0x415c52
push 0x4ab1ec
lea ecx, [esp + 0xc]
call fcn.00484540
push 0x4aeea4
lea ecx, [esp + 0xc]
call fcn.00484540
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x415c8e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004841b0
jmp 0x415d59
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x415d12
lea edx, [esp + 0x7c]
push 0x4aeea0
push edx
call fcn.00473814
add esp, 8
test eax, eax
je 0x415d12
lea eax, [esp + 0x7c]
push 0x4aee9c
push eax
call fcn.00473814
add esp, 8
test eax, eax
je 0x415d12
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x415ca2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.004841b0
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x416550
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4165b2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x4165c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48f7eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4c1b70]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x4166f8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x416626
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004841b0
xor eax, eax
jmp 0x41676f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004842ed
push esi
lea ecx, [esp + 0xc]
call fcn.0048457c
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x41674d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.00416550
test eax, eax
jne 0x41674d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push SysReAllocString
mov ecx, edi
call fcn.00416550
test eax, eax
jne 0x41674d
lea eax, [esp + 0x14]
push 0x4aeeb8
push eax
call fcn.00474920
mov esi, eax
add esp, 8
test esi, esi
jne 0x41672c
lea ecx, [esp + 0x14]
push 0x4aeeb4
push ecx
call fcn.004748a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41672c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41672f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0048429d
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41663e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004841b0
xor eax, eax
jmp 0x41676f
mov byte [esi], 0
push 0x4aeeb0
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004841b0
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x427f50
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x427fbe
cmp si, 0x69
ja 0x427fbe
add esi, 0xffd0
cmp si, 0x11
je 0x427f8e
push 0x11
call edi
test ax, ax
jge 0x427f8e
or esi, 0x2000
cmp si, 0x10
je 0x427fa3
push 0x10
call edi
test ax, ax
jge 0x427fa3
or esi, 0x4000
cmp si, 0x12
je 0x427fb8
push 0x12
call edi
test ax, ax
jge 0x427fb8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x427fcb
mov esi, 0xbd
jmp 0x427f7f
cmp si, 0x6e
jne 0x427fd8
mov esi, 0xbe
jmp 0x427f7f
cmp si, 0x6f
jne 0x427f79
mov esi, 0xbf
jmp 0x427f7f

Function at 0x429750
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4d2328]
xor edx, edx
cmp eax, edx
jne 0x429776
xor eax, eax
mov byte [eax + 0x4d2228], al
inc eax
cmp eax, 0x100
jl 0x42975e
mov dword [0x4d2328], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4d2228
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x429807
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4297da
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4297a8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x429880
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4298d3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4298ba
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret