joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a4400
Capabilities:
Get thread local storage value
Set file attributes

Disassembly:
mov eax, dword [0x527af4]
sub esp, 0x10
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x4a44b1
mov ecx, dword [esi + 0x9068]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call ebp
mov ax, word [esi + 0xb00]
mov cx, word [esi + 0xb02]
lea edx, [esp + 0x18]
mov dword [esi + 0x9068], 0xffffffff
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
push 0
push SysReAllocStringLen
push 3
push 0
lea ebx, [esi + 0x75e]
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4a44b1
mov ecx, dword [esi + 0x966]
or ecx, 0x20
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x10]
push edx
lea ecx, [esp + 0x14]
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x4a44c0
Capabilities:
Get disk information
Get thread local storage value

Disassembly:
mov eax, dword [0x527af4]
sub esp, 0x64
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4a44e0
mov eax, 4
pop edi
add esp, 0x64
ret
mov eax, dword [esp + 0x6c]
push ebx
xor ebx, ebx
push esi
test eax, eax
je 0x4a4585
cmp byte [eax], 0
je 0x4a4585
push eax
call fcn.0049bd70
mov esi, eax
mov eax, dword [edi + 0xc7c]
add esp, 4
test eax, eax
je 0x4a4585
push esi
call fcn.0049bd10
add esp, 4
test eax, eax
je 0x4a4585
add esi, 0x40
lea ecx, [esp + 0x50]
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push str._c:_
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x3c]
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push 0x14
push edx
push eax
push ecx
push ebx
lea edx, [esp + 0x28]
push 0x14
lea eax, [esp + 0x68]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [esp + 0x78]
lea edx, [esp + 0x28]
push ecx
push str.PKBACK__03d
push edx
call esi
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x4a4585
mov ebx, 1
mov eax, ebx
pop esi
pop ebx
pop edi
add esp, 0x64
ret

Function at 0x4a4600
Capabilities:
Get file size

Disassembly:
mov ecx, dword [esp + 4]
push ebx
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ecx
or edi, 0xffffffff
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a462a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4a4644
mov edx, dword [esp + 0x10]
push 1
push 0
push 0
push edx
call fcn.004b0d60
xor ecx, ecx
add eax, esi
pop edi
pop esi
adc edx, ecx
pop ebx
ret
mov eax, edi
pop edi
mov edx, ebx
pop esi
pop ebx
ret
Function at 0x4a4950
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x527af4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4a4961
ret
mov cx, word [eax + 0xcd2]
or cl, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
and eax, 0xffff
shr eax, 8
ret

Function at 0x4a4980
Capabilities:
Generate random numbers using the delphi lcg
Get thread local storage value
Hash data with crc32

Disassembly:
mov eax, dword [0x527af4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a49f8
mov edx, dword [eax + 0xcca]
push esi
mov esi, dword [esp + 8]
mov ecx, edx
xor ecx, esi
and ecx, 0xff
shr edx, 8
mov ecx, dword [ecx*4 + 0x51dfc4]
xor ecx, edx
mov edx, dword [eax + 0xcce]
mov dword [eax + 0xcca], ecx
and ecx, 0xff
add ecx, edx
mov edx, dword [eax + 0xcd2]
imul ecx, ecx, 0x8088405
inc ecx
mov esi, edx
mov dword [eax + 0xcce], ecx
and esi, 0xff
shr ecx, 0x18
xor ecx, esi
pop esi
shr edx, 8
mov ecx, dword [ecx*4 + 0x51dfc4]
xor ecx, edx
mov dword [eax + 0xcd2], ecx
ret

Function at 0x4a4a00
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x527af4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a4a4d
mov esi, dword [esp + 8]
mov dword [eax + 0xcca], 0x12345678
mov dword [eax + 0xcce], 0x23456789
mov dword [eax + 0xcd2], 0x34567890
mov al, byte [esi]
test al, al
je 0x4a4a4d
movsx ecx, al
push ecx
call fcn.004a4980
mov al, byte [esi + 1]
add esp, 4
inc esi
test al, al
jne 0x4a4a39
pop esi
ret

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

Disassembly:
mov ecx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
mov edx, ecx
dec ecx
mov eax, dword [edi + 0x8cde]
test edx, edx
je 0x4a4a97
push ebx
push esi
lea esi, [ecx + 1]
mov ecx, dword [esp + 0x10]
xor edx, edx
mov ebx, eax
mov dl, byte [ecx]
and ebx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x51dfc4]
xor eax, edx
inc ecx
dec esi
jne 0x4a4a6f
pop esi
mov dword [edi + 0x8cde], eax
pop ebx
pop edi
ret
mov dword [edi + 0x8cde], eax
pop edi
ret
Function at 0x4a5ca0
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x527af4]
push ebx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x4a5cc2
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
lea ecx, [esp + 0xc]
push esi
push ecx
mov dword [esi + 0x9078], ebx
mov dword [esi + 0x9084], ebx
mov dword [esi + 0x9080], ebx
mov dword [esi + 0x9a6], ebx
xor edi, edi
mov dword [esi + 0x908a], ebx
call fcn.004a5be0
add esp, 8
cmp eax, ebx
jne 0x4a5d39
mov eax, dword [esi + 0x908a]
cmp eax, edi
jbe 0x4a5d00
mov edi, eax
cmp dword [esi], ebx
jne 0x4a5d27
cmp dword [esp + 0xc], ebx
jne 0x4a5d27
lea edx, [esp + 0xc]
push esi
push edx
mov dword [esi + 0x908a], ebx
call fcn.004a5be0
add esp, 8
cmp eax, ebx
je 0x4a5cf4
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esi + 0x9078]
push esi
push eax
call fcn.004a4fc0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4a5d40
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x527af4]
push ebx
push ebp
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x4a5d60
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
ret
lea esi, [ebx + 0x9088]
push ebx
push esi
call fcn.004a3ba0
xor ebp, ebp
push ebx
mov bp, word [esi]
push esi
inc ebp
xor edi, edi
call fcn.004a3ba0
xor eax, eax
mov edx, dword [esp + 0x28]
mov ax, word [esi]
add esp, 0x10
mov ecx, eax
shr eax, 4
and ecx, 0xf
and eax, 0xf
inc ecx
inc eax
cmp eax, edx
ja 0x4a5dd1
mov edx, dword [esp + 0x14]
lea edx, [edx + edi*4]
mov dword [edx], ecx
inc edi
add edx, 4
dec eax
jne 0x4a5da0
dec ebp
je 0x4a5ddb
push ebx
push esi
call fcn.004a3ba0
xor eax, eax
add esp, 8
mov ax, word [esi]
mov ecx, eax
shr eax, 4
and ecx, 0xf
and eax, 0xf
inc ecx
inc eax
lea edx, [eax + edi]
cmp edx, dword [esp + 0x18]
jbe 0x4a5d99
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
ret
mov esi, dword [esp + 0x18]
mov eax, edi
sub eax, esi
pop edi
neg eax
sbb eax, eax
pop esi
pop ebp
and eax, 4
pop ebx
ret
Function at 0x4a7c50
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x527af4]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x4a7d2d
mov eax, 0xffff6f6e
push ebx
push ebp
sub eax, esi
push edi
mov ebp, 0x3fc0
lea edi, [esi + 0x9191]
mov dword [esp + 0x10], eax
cmp dword [esi + 0x8cf2], 6
jge 0x4a7c93
push esi
call fcn.004a3b30
add esp, 4
mov cl, byte [esi + 0x8cee]
mov bl, byte [0x51e3d0]
and cl, bl
xor ebx, ebx
mov byte [edi], cl
mov edx, dword [esi + 0x8cee]
mov ecx, dword [esi + 0x8cf2]
shr edx, 6
add ecx, 0xfffffffa
mov dword [esi + 0x8cee], edx
mov dword [esi + 0x8cf2], ecx
mov al, byte [edi]
test al, al
jbe 0x4a7d18
cmp dword [esi + 0x8cf2], 8
jge 0x4a7cdb
push esi
call fcn.004a3b30
add esp, 4
mov dl, byte [esi + 0x8cee]
mov al, byte [0x51e3d4]
and dl, al
mov eax, dword [esi + 0x908e]
add eax, ebp
mov byte [eax + ebx], dl
mov eax, dword [esi + 0x8cee]
mov edx, dword [esi + 0x8cf2]
shr eax, 8
add edx, 0xfffffff8
mov dword [esi + 0x8cee], eax
mov dword [esi + 0x8cf2], edx
mov al, byte [edi]
inc ebx
cmp bl, al
jb 0x4a7cc9
mov ecx, dword [esp + 0x10]
dec edi
add ecx, edi
sub ebp, 0x40
test ecx, ecx
jge 0x4a7c81
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
Function at 0x4a8170
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x527af4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a8243
mov ecx, dword [eax + 0x91a2]
mov edx, 0x101
cmp ecx, edx
push esi
jle 0x4a81ad
lea ecx, [eax + 0xed8]
or word [ecx], 0x8000
mov esi, dword [eax + 0x91a2]
inc edx
add ecx, 2
cmp edx, esi
jl 0x4a819a
mov ecx, dword [eax + 0x91a2]
mov esi, 0x101
cmp ecx, esi
jle 0x4a81eb
lea edx, [eax + 0xed8]
mov cx, word [edx]
and ecx, 0x7fff
cmp ecx, 0x101
jl 0x4a81dd
and word [eax + ecx*2 + 0xcd6], 0x7fff
mov ecx, dword [eax + 0x91a2]
inc esi
add edx, 2
cmp esi, ecx
jl 0x4a81c2
mov ecx, dword [eax + 0x91a2]
mov edx, 0x101
cmp ecx, edx
jle 0x4a8219
lea ecx, [eax + 0xed8]
test byte [ecx + 1], 0x80
je 0x4a820b
mov word [ecx], 0xffff
mov esi, dword [eax + 0x91a2]
inc edx
add ecx, 2
cmp edx, esi
jl 0x4a8200
mov esi, dword [eax + 0x919e]
mov ecx, 0x101
cmp esi, ecx
jle 0x4a823c
lea edx, [eax + 0xed8]
cmp word [edx], 0xffff
je 0x4a823c
inc ecx
add edx, 2
cmp ecx, esi
jl 0x4a822e
mov dword [eax + 0x91a2], ecx
pop esi
ret

Function at 0x4b2235
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4b2255
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004b3e7c
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4b2278
test byte [esp + 8], 2
je 0x4b2278
call fcn.004b3eef
mov dword [eax], 0xd
call fcn.004b3ef8
mov dword [eax], 5
jmp 0x4b2251
xor eax, eax
ret

Function at 0x4c8a7f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c8ab7
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004c7a11
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c79e9
jmp 0x4c8ac3
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ca2bd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4ca2ff
call fcn.004d4df1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ca2ff
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ca2f6
xor eax, eax
jmp 0x4ca307
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ca30d
pop edi
pop esi
pop ebx
ret 4
Function at 0x4cb599
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4cb5bb
cmp dword [edi + 0x3c], 0
jne 0x4cb5bb
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004d4df1
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004cb5e8
pop edi
pop esi
pop ebx
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x4cc0ab
push edi
call ebx
push eax
call fcn.004c690b
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x4cc0d5
test byte [ebp - 4], 1
je 0x4cc0d5
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4cc0d5
push edi
call ebx
push eax
call fcn.004c690b
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x4cc17b
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.004cbfc8
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x4cc107
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.004cbfc8
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x4cc11d
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.004cbfc8
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4cc147
push 0
call ebx
push eax
call fcn.004c690b
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x4cc165
push eax
call ebx
push eax
call fcn.004c690b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4cc179
push eax
call ebx
push eax
call fcn.004c690b
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x4cc1a2
test byte [ebp - 4], 1
jne 0x4cc1a2
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4cc1a2
push edi
call ebx
push eax
call fcn.004c690b
pop edi
pop ebx
leave
ret 8
Function at 0x4d334d
Capabilities:
Create http request

Disassembly:
mov eax, 0x4e5cb8
call fcn.004b0604
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x4d3385
call fcn.004d4df1
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x4d33aa
push eax
push dword [esi + 4]
call fcn.004d4589
jmp 0x4d33b6
push esi
push eax
mov ecx, 0x527318
call fcn.004d33c7
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x4d358e
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x4e5d07
call fcn.004b0604
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004cd14f
mov eax, dword [str.pRdR]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], vtable.CInternetFile.0
mov ecx, 0x527318
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.004d33c7
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.004c76f3
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.004a89b2
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.004c76a3
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.004c756a
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x4d5ee0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4d5f0e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d5f2c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d5e46
jmp 0x4d5f2c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d5f2c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d5e46
test edi, edi
mov eax, edi
jne 0x4d5f16
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x406ccd
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
push esi
xor esi, esi
push edi
mov edi, ecx
mov eax, esi
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmmword [0x8dd290]
movups xmmword [edi + eax*4], xmm0
add eax, 4
cmp eax, 0x100
jl 0x406cd7
mov ebp, dword [esp + 0x14]
mov ebx, esi
xor edx, edx
mov eax, ebx
div dword [esp + 0x18]
movzx eax, byte [edx + ebp]
add eax, dword [edi + ebx*4]
add esi, eax
and esi, 0x800000ff
jns 0x406d1d
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [edi + ebx*4]
mov eax, dword [edi + esi*4]
mov dword [edi + ebx*4], eax
inc ebx
movzx eax, cl
mov dword [edi + esi*4], eax
cmp ebx, 0x100
jl 0x406cfc
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x406d3c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x400
lea eax, [esp]
push ebx
push esi
push edi
push 0x400
push ecx
xor esi, esi
push eax
mov edi, esi
call fcn.00436910
mov edx, dword [esp + 0x420]
add esp, 0xc
mov ebx, esi
add edx, 1
je 0x406dcc
push ebp
mov ebp, dword [esp + 0x414]
inc esi
and esi, 0x800000ff
jns 0x406d82
dec esi
or esi, 0xffffff00
inc esi
mov eax, dword [esp + esi*4 + 0x10]
add edi, eax
and edi, 0x800000ff
jns 0x406d98
dec edi
or edi, 0xffffff00
inc edi
mov cl, al
mov eax, dword [esp + edi*4 + 0x10]
mov dword [esp + esi*4 + 0x10], eax
movzx eax, cl
mov dword [esp + edi*4 + 0x10], eax
mov ecx, dword [esp + esi*4 + 0x10]
add ecx, eax
and ecx, 0x800000ff
jns 0x406dbf
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [esp + ecx*4 + 0x10]
xor byte [ebx + ebp], al
inc ebx
cmp ebx, edx
jb 0x406d71
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x400
ret 8
Function at 0x412502
Capabilities:
Parse pe header

Disassembly:
push 0x70
push 0x4133f0
call 0xe8572610
xor ebx, ebx
push ebx
mov edi, dword [0x4130f0]
call edi
cmp word [eax], 0x5a4d
jne 0x41253f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41253f
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x412557
cmp eax, 0x20b
je 0x412544
mov dword [ebp - 0x1c], ebx
jmp 0x41256b
cmp dword [ecx + 0x84], 0xe
jbe 0x41253f
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x412565
cmp dword [ecx + 0x74], 0xe
jbe 0x41253f
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [0x413308]
pop ecx
or dword [0x41a8d4], 0xffffffff
or dword [0x41a8d8], 0xffffffff
call dword [0x413304]
mov ecx, dword [0x41742c]
mov dword [eax], ecx
call dword [0x413300]
mov ecx, dword [0x417428]
mov dword [eax], ecx
mov eax, dword [0x4132fc]
mov eax, dword [eax]
mov dword [0x41a8d0], eax
call 0x539d25b4
cmp dword [section..data], ebx
jne 0x4125c6
push 0x406c57
call dword [0x4132f8]
pop ecx
call 0xd65726cd
push 0x4133cc
push 0x4133c8
call 0xd05726dc
mov eax, dword [0x417424]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x417420]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [0x4132f0]
mov dword [ebp - 0x30], eax
push 0x4133c4
push 0x4133ac
call 0xd0572712
add esp, 0x24
mov eax, dword [0x4132ec]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x41265c
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x412630
cmp al, 0x22
jne 0x412622
cmp byte [esi], 0x22
jne 0x412639
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x412643
cmp al, 0x20
jbe 0x412635
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [0x4130a0]
test byte [ebp - 0x4c], 1
je 0x412667
movzx eax, word [ebp - 0x48]
jmp 0x41266a
cmp byte [esi], 0x20
jbe 0x412639
inc esi
mov dword [ebp - 0x34], esi
jmp 0x41265c
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call 0x81e02678
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x412687
push esi
call dword [0x4132e8]
call dword [0x4132e4]
jmp 0x4126bc
or dword [ebp - 4], 0xffffffff
mov eax, esi
call 0x215827c9
ret
Function at 0x10001dd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004b968
push 0x1001bd80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffffed4
push ebx
push esi
push edi
mov dword [ebp - 0x1c], 0
call fcn.10004480
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x12c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10005c60
test eax, eax
je 0x10001ed2
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x12c]
push edx
call fcn.10008880
test eax, eax
je 0x10001ed2
mov eax, dword [ebp - 0x138]
or eax, dword [ebp - 0x134]
je 0x10001ed2
lea ecx, [ebp - 0x13c]
push ecx
push 0x40
push 8
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10001ed2
mov dword [ebp - 0x1c], 1
push 8
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x138]
push ecx
call fcn.10009f30
test eax, eax
jne 0x10001ea5
push 8
lea edx, [ebp - 0x138]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.1001bea0
add esp, 0xc
push 8
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea edx, [ebp - 0x13c]
push edx
mov eax, dword [ebp - 0x13c]
push eax
push 8
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 4], 0xffffffff
call fcn.10001ee0
jmp 0x10001ee6
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10003630
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
cmp dword [0x1004d024], 0xffffffff
jne 0x100036ac
push 0x114
push 0
lea eax, [ebp - 0x118]
push eax
call fcn.1001c680
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
ja 0x10003696
cmp dword [ebp - 0x114], 6
jne 0x1000368a
cmp dword [ebp - 0x110], 1
ja 0x10003696
mov dword [ebp - 0x11c], 0
jmp 0x100036a0
mov dword [ebp - 0x11c], 1
mov edx, dword [ebp - 0x11c]
mov dword [0x1004d024], edx
xor eax, eax
cmp dword [0x1004d024], 1
sete al
mov esp, ebp
pop ebp
ret

Function at 0x10004db0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
cmp dword [ebp + 8], 0
sete al
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
test ecx, ecx
jne 0x10004e40
mov dword [ebp - 8], 0
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
cmp dword [eax + edx*4], 0
je 0x10004e40
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4]
cmp eax, dword [ebp + 0xc]
jne 0x10004e35
lea ecx, [ebp - 0xc]
push ecx
push 0x40
push 4
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10004e31
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [eax + edx*4], ecx
mov byte [ebp - 1], 1
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 0xc]
push eax
push 4
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x10004e40
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
jmp 0x10004dd1
movzx eax, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0xc