joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bc48c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x105
xor eax, eax
push ebp
push 0x4bc4e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00405300
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.004051cc
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
jne 0x4bc4d0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bc4f0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00405300
ret

Function at 0x4bc778
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x5a4f78
push 0x5ac608
call sub.kernel32.dll_EnterCriticalSection_1
xor eax, eax
push ebp
push 0x4bc879
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [esi], 0
jne 0x4bc838
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x5a4f74]
mov dword [eax], edx
mov eax, dword [ebp - 8]
mov dx, word [0x5a4fd0]
mov word [eax + 6], dx
mov edx, 0x4bc70c
mov eax, dword [ebp - 8]
add eax, 7
call fcn.004bc72c
mov edx, dword [ebp - 8]
mov dword [edx + 8], eax
mov eax, dword [ebp - 8]
mov word [eax + 4], 0
mov eax, dword [ebp - 8]
add eax, 0xc
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 6]
mov eax, dword [ebx]
call fcn.004bc72c
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffe
jl 0x4bc7ff
mov eax, dword [ebp - 8]
mov dword [0x5a4f74], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebx]
call fcn.004bc744
inc word [eax + 4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bc880
push 0x5ac608
call sub.kernel32.dll_LeaveCriticalSection_1
ret
Function at 0x4bea5c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff64
push ebx
xor edx, edx
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0x98], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4bec10
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x4bead0
mov eax, dword [ebp - 0x90]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x88]
and eax, 0xffff
mov dword [ebx + 0x18], eax
lea eax, [ebx + 0x1c]
lea edx, [ebp - 0x80]
mov ecx, 0x80
call fcn.00404f24
jmp 0x4beadf
xor eax, eax
mov dword [ebx + 0x10], eax
xor eax, eax
mov dword [ebx + 0x14], eax
xor eax, eax
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x10]
sub eax, 4
je 0x4beaf2
dec eax
je 0x4beb25
dec eax
je 0x4beb61
jmp 0x4beb8b
mov eax, dword [ebx + 0x14]
sub eax, 0xa
je 0x4beb04
sub eax, 0x50
je 0x4beb16
jmp 0x4beb98
lea eax, [ebx + 4]
mov edx, 0x4bec24
call fcn.00404d08
jmp 0x4beb98
lea eax, [ebx + 4]
mov edx, 0x4bec30
call fcn.00404d08
jmp 0x4beb98
mov eax, dword [ebx + 0x14]
sub eax, 1
jb 0x4beb34
je 0x4beb43
dec eax
je 0x4beb52
jmp 0x4beb98
lea eax, [ebx + 4]
mov edx, 0x4bec3c
call fcn.00404d08
jmp 0x4beb98
lea eax, [ebx + 4]
mov edx, 0x4bec4c
call fcn.00404d08
jmp 0x4beb98
lea eax, [ebx + 4]
mov edx, 0x4bec58
call fcn.00404d08
jmp 0x4beb98
mov eax, dword [ebx + 0x14]
sub eax, 1
jb 0x4beb6d
je 0x4beb7c
jmp 0x4beb98
lea eax, [ebx + 4]
mov edx, 0x4bec68
call fcn.00404d08
jmp 0x4beb98
lea eax, [ebx + 4]
mov edx, 0x4bec78
call fcn.00404d08
jmp 0x4beb98
lea eax, [ebx + 4]
mov edx, 0x4bec84
call fcn.00404d08
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 0x10]
cmp eax, 4
jle 0x4bebc4
cmp eax, 6
jge 0x4bebc4
lea edx, [ebp - 0x98]
mov eax, ebx
call fcn.004be69c
mov edx, dword [ebp - 0x98]
lea eax, [ebx + 8]
call fcn.00404d08
cmp dword [ebx + 0x10], 5
jle 0x4bebe5
lea edx, [ebp - 0x9c]
mov eax, ebx
call fcn.004bdc08
mov edx, dword [ebp - 0x9c]
lea eax, [ebx + 8]
call fcn.00404d08
cmp dword [ebx + 0x10], 4
jle 0x4bebf2
mov eax, ebx
call fcn.004bec90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bec17
lea eax, [ebp - 0x9c]
mov edx, 2
call fcn.00404cd8
ret
Function at 0x4bfd50
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4bfee0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.00404cb4
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
call fcn.00404d4c
mov dword [ebp - 0x24], 0xff
mov eax, dword [ebp - 4]
call fcn.00404f74
test eax, eax
jle 0x4bfec5
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
call fcn.00405174
mov ebx, eax
push ebx
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jbe 0x4bfea3
mov eax, dword [ebp - 0x1c]
call fcn.00402e04
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4bfe9c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
push ebx
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4bfe83
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x4bfeec
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4bfe5a
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
movzx eax, word [eax]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
call fcn.00408314
movzx eax, ax
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
lea edx, [ebp - 0x44]
mov ecx, 2
mov eax, 0x4bff10
call fcn.0040d808
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
call fcn.00404d4c
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x28]
call fcn.00405174
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4bfe83
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call fcn.0040d2f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bfea3
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
call fcn.00402e34
ret
mov eax, dword [ebp - 8]
mov edx, 0x4bff38
call fcn.004050c0
jne 0x4bfec5
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
jne 0x4bfec5
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004bff44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bfee7
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.00404cd8
ret
Function at 0x4bff44
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405164
xor eax, eax
push ebp
push 0x4c0075
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404cb4
cmp dword [ebp - 4], 0
je 0x4c005f
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.00405174
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4c005f
mov eax, dword [ebp - 8]
call fcn.00402e04
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4c0058
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push esi
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4c0084
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
mov eax, dword [ebp - 0x14]
mov esi, dword [eax + 8]
shr esi, 0x10
mov dx, word [eax + 8]
and dx, 0xffff
mov word [ebp - 0x1a], dx
mov edx, dword [eax + 0xc]
shr edx, 0x10
mov word [ebp - 0x1c], dx
mov di, word [eax + 0xc]
and di, 0xffff
push ebx
movzx eax, si
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
movzx eax, word [ebp - 0x1a]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
movzx eax, word [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
movzx eax, di
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x3c]
mov ecx, 3
mov eax, 0x4c0090
call fcn.0040d808
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c005f
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.00402e34
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c007c
lea eax, [ebp - 4]
call fcn.00404cb4
ret

Function at 0x4d6f98
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x4d6fd0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4d6fae
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4d6fbd
or bl, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4d6fcc
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x4e7cd0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4e7d34
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404f24
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040c67c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e7d3b
lea eax, [ebp - 0xc]
call fcn.00404cb4
ret
Function at 0x4fa708
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
push edi
mov edi, eax
xor ebx, ebx
push 0x4fa7a0
call sub.kernel32.dll_LoadLibraryA
mov esi, eax
mov dword [edi + 4], esi
test esi, esi
je 0x4fa797
push 0x4fa7b0
push esi
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 8], eax
push 0x4fa7c0
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0xc], eax
push 0x4fa7d0
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x10], eax
push 0x4fa7e8
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x14], eax
push 0x4fa7fc
mov eax, dword [edi + 4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [edi + 0x18], eax
cmp dword [edi + 8], 0
je 0x4fa797
cmp dword [edi + 0xc], 0
je 0x4fa797
cmp dword [edi + 0x10], 0
je 0x4fa797
cmp dword [edi + 0x14], 0
je 0x4fa797
cmp dword [edi + 0x18], 0
je 0x4fa797
mov bl, 1
call dword [edi + 8]
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x50d9b8
Capabilities:
Encode data using base64
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp + 4], ecx
mov dword [esp], edx
mov edi, 0x5a55fc
lea ecx, [esp + 8]
mov dword [ecx], eax
mov eax, dword [esp]
mov dword [esp + 0xc], eax
xor ebx, ebx
xor esi, esi
mov eax, dword [esp + 4]
mov ebp, 3
cdq
idiv ebp
test eax, eax
jle 0x50da7c
mov edx, dword [ecx]
movzx edx, byte [edx + ebx]
shr edx, 2
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx]
and dl, 3
and edx, 0xff
shl edx, 4
mov ebp, dword [ecx]
movzx ebp, byte [ebp + ebx + 1]
shr ebp, 4
add edx, ebp
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 1], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx + 1]
and dl, 0xf
and edx, 0xff
shl edx, 2
mov ebp, dword [ecx]
movzx ebp, byte [ebp + ebx + 2]
shr ebp, 6
add edx, ebp
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 2], dl
mov edx, dword [ecx]
mov dl, byte [edx + ebx + 2]
and dl, 0x3f
and edx, 0xff
mov dl, byte [edi + edx]
mov ebp, dword [esp + 0xc]
mov byte [ebp + esi + 3], dl
add esi, 4
add ebx, 3
dec eax
jne 0x50d9f0
mov eax, dword [esp + 4]
mov ebp, 3
cdq
idiv ebp
dec edx
je 0x50da93
dec edx
je 0x50dad4
jmp 0x50db31
mov eax, dword [ecx]
movzx eax, byte [eax + ebx]
shr eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi], al
mov eax, dword [ecx]
mov al, byte [eax + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 1], al
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 2], 0x3d
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 3], 0x3d
jmp 0x50db31
mov eax, dword [ecx]
movzx eax, byte [eax + ebx]
shr eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi], al
mov eax, dword [ecx]
mov al, byte [eax + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov edx, dword [ecx]
movzx edx, byte [edx + ebx + 1]
shr edx, 4
add eax, edx
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 1], al
mov eax, dword [ecx]
mov al, byte [eax + ebx + 1]
and al, 0xf
and eax, 0xff
shl eax, 2
mov al, byte [edi + eax]
mov edx, dword [esp + 0xc]
mov byte [edx + esi + 2], al
mov eax, dword [esp + 0xc]
mov byte [eax + esi + 3], 0x3d
mov eax, dword [esp + 4]
add eax, 2
mov ecx, 3
cdq
idiv ecx
shl eax, 2
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x50db94
Capabilities:
Encode data using base64

Disassembly:
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp + 4], eax
mov dword [esp + 8], edx
xor esi, esi
xor edi, edi
xor eax, eax
mov ebp, ecx
test ebp, ebp
jns 0x50dbb1
add ebp, 3
sar ebp, 2
test ebp, ebp
jle 0x50dcc3
mov edx, 4
mov eax, esp
mov ecx, dword [esp + 4]
movzx ecx, byte [ecx + esi]
cmp ecx, 0x3d
jg 0x50dbe4
je 0x50dc30
sub ecx, 0x2b
je 0x50dc26
sub ecx, 4
je 0x50dc2b
dec ecx
sub ecx, 0xa
jb 0x50dc15
jmp 0x50dc33
add ecx, 0xffffffbf
sub ecx, 0x1a
jb 0x50dbf6
add ecx, 0xfffffffa
sub ecx, 0x1a
jb 0x50dc04
jmp 0x50dc33
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x41
mov byte [eax], cl
jmp 0x50dc33
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x61
add cl, 0x1a
mov byte [eax], cl
jmp 0x50dc33
mov ecx, dword [esp + 4]
mov cl, byte [ecx + esi]
sub cl, 0x30
add cl, 0x34
mov byte [eax], cl
jmp 0x50dc33
mov byte [eax], 0x3e
jmp 0x50dc33
mov byte [eax], 0x3f
jmp 0x50dc33
mov byte [eax], 0xff
inc esi
inc eax
dec edx
jne 0x50dbc3
mov al, byte [esp]
shl eax, 2
xor edx, edx
mov dl, byte [esp + 1]
shr edx, 4
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi], al
lea eax, [edi + 1]
mov dl, byte [esp + 2]
cmp dl, 0xff
je 0x50dc83
cmp byte [esp + 3], 0xff
jne 0x50dc83
mov al, byte [esp + 1]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi + 1], al
lea eax, [edi + 2]
inc edi
jmp 0x50dcbb
cmp dl, 0xff
je 0x50dcbb
mov al, byte [esp + 1]
shl eax, 4
and edx, 0xff
shr edx, 2
or al, dl
mov edx, dword [esp + 8]
mov byte [edx + edi + 1], al
mov eax, dword [esp + 8]
mov dl, byte [esp + 2]
shl edx, 6
or dl, byte [esp + 3]
mov byte [eax + edi + 2], dl
lea eax, [edi + 3]
add edi, 2
inc edi
dec ebp
jne 0x50dbbc
add esp, 0xc
pop ebp
pop edi
pop esi
ret

Function at 0x50e5ac
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jbe 0x50e5cc
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
mov bl, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x50e5ba
pop edi
pop esi
pop ebx
ret

Function at 0x511720
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x511771
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x511758
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x511748
jmp 0x511771
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x511759
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51f1d4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp], ecx
mov ebx, edx
mov edi, eax
lea edx, [esp + 4]
mov eax, ebx
mov ecx, 4
call fcn.0040308c
lea edx, [esp + 8]
mov esi, ebx
mov eax, esi
add eax, 4
mov ecx, 4
call fcn.0040308c
lea edx, [esp + 0xc]
mov eax, esi
add eax, 8
mov ecx, 4
call fcn.0040308c
lea edx, [esp + 0x10]
mov eax, esi
add eax, 0xc
mov ecx, 4
call fcn.0040308c
mov eax, dword [edi + 0x20]
add dword [esp + 8], eax
mov eax, dword [edi + 0x24]
add dword [esp + 0x10], eax
mov esi, 1
mov eax, dword [esp + 8]
add eax, eax
inc eax
imul dword [esp + 8]
mov edx, 5
call fcn.0051efb0
mov ebx, eax
mov eax, dword [esp + 0x10]
add eax, eax
inc eax
imul dword [esp + 0x10]
mov edx, 5
call fcn.0051efb0
mov ebp, eax
mov eax, dword [esp + 4]
xor eax, ebx
mov edx, ebp
call fcn.0051efb0
mov edx, esi
add edx, edx
add eax, dword [edi + edx*4 + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc]
xor eax, ebp
mov edx, ebx
call fcn.0051efb0
mov edx, esi
add edx, edx
add eax, dword [edi + edx*4 + 0x24]
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 4]
mov eax, dword [esp + 8]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
inc esi
cmp esi, 0x15
jne 0x51f240
mov eax, dword [edi + 0xc8]
add dword [esp + 4], eax
mov eax, dword [edi + 0xcc]
add dword [esp + 0xc], eax
mov edx, dword [esp]
lea eax, [esp + 4]
mov ecx, 4
call fcn.0040308c
mov ebx, dword [esp]
mov edx, ebx
add edx, 4
lea eax, [esp + 8]
mov ecx, 4
call fcn.0040308c
mov edx, ebx
add edx, 8
lea eax, [esp + 0xc]
mov ecx, 4
call fcn.0040308c
mov edx, ebx
add edx, 0xc
lea eax, [esp + 0x10]
mov ecx, 4
call fcn.0040308c
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x51f334
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp], ecx
mov ebx, edx
mov edi, eax
lea edx, [esp + 4]
mov eax, ebx
mov ecx, 4
call fcn.0040308c
lea edx, [esp + 8]
mov esi, ebx
mov eax, esi
add eax, 4
mov ecx, 4
call fcn.0040308c
lea edx, [esp + 0xc]
mov eax, esi
add eax, 8
mov ecx, 4
call fcn.0040308c
lea edx, [esp + 0x10]
mov eax, esi
add eax, 0xc
mov ecx, 4
call fcn.0040308c
mov eax, dword [edi + 0xcc]
sub dword [esp + 0xc], eax
mov eax, dword [edi + 0xc8]
sub dword [esp + 4], eax
mov esi, 0x14
mov ebx, dword [esp + 4]
mov eax, dword [esp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 8]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov eax, dword [esp + 0x10]
add eax, eax
inc eax
imul dword [esp + 0x10]
mov edx, 5
call fcn.0051efb0
mov ebp, eax
mov eax, dword [esp + 8]
add eax, eax
inc eax
imul dword [esp + 8]
mov edx, 5
call fcn.0051efb0
mov ebx, eax
mov eax, esi
add eax, eax
push dword [edi + eax*4 + 0x24]
mov eax, dword [esp + 0x10]
pop edx
sub eax, edx
mov edx, ebx
call fcn.0051efc4
xor eax, ebp
mov dword [esp + 0xc], eax
mov eax, esi
add eax, eax
push dword [edi + eax*4 + 0x20]
mov eax, dword [esp + 8]
pop edx
sub eax, edx
mov edx, ebp
call fcn.0051efc4
xor ebx, eax
mov dword [esp + 4], ebx
dec esi
test esi, esi
jne 0x51f3a6
mov eax, dword [edi + 0x24]
sub dword [esp + 0x10], eax
mov eax, dword [edi + 0x20]
sub dword [esp + 8], eax
mov edx, dword [esp]
lea eax, [esp + 4]
mov ecx, 4
call fcn.0040308c
mov ebx, dword [esp]
mov edx, ebx
add edx, 4
lea eax, [esp + 8]
mov ecx, 4
call fcn.0040308c
mov edx, ebx
add edx, 8
lea eax, [esp + 0xc]
mov ecx, 4
call fcn.0040308c
mov edx, ebx
add edx, 0xc
lea eax, [esp + 0x10]
mov ecx, 4
call fcn.0040308c
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x521a8c
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffff99c
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x5c]
mov edx, 0x1f
call fcn.00521a80
lea eax, [ebp - 0x15c]
mov edx, 0xff
call fcn.00521a80
lea eax, [ebp - 0x1dc]
mov edx, 0x7f
call fcn.00521a80
lea eax, [ebp - 0x25c]
mov edx, 0x7f
call fcn.00521a80
lea eax, [ebp - 0xa5c]
mov edx, 0x7ff
call fcn.00521a80
lea eax, [ebp - 0x1263]
mov edx, 0x806
call fcn.00521a80
lea eax, [ebp - 0x1663]
mov edx, 0x3ff
call fcn.00521a80
lea eax, [ebp - 0x3c]
mov edx, 0x3c
call fcn.00408328
mov dword [ebp - 0x3c], 0x3c
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0x20
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], pe_nt_image_headers32
lea eax, [ebp - 0x1dc]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0x80
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0x80
lea eax, [ebp - 0xa5c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0x800
lea eax, [ebp - 0x1663]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0x400
lea eax, [ebp - 0x3c]
push eax
push 0x90000000
mov eax, ebx
call fcn.00404f74
push eax
mov eax, ebx
call fcn.00405174
push eax
call sub.wininet.dll_InternetCrackUrlA
mov eax, edi
lea edx, [ebp - 0x15c]
mov ecx, pe_nt_image_headers32
call fcn.00404f24
mov eax, esi
lea edx, [ebp - 0xa5c]
mov ecx, 0x800
call fcn.00404f24
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
mov edx, ebx
call fcn.004052b8
push eax
mov eax, ebx
call fcn.00404f74
mov edi, eax
pop eax
sub edi, eax
mov eax, dword [esi]
call fcn.00404f74
sub edi, eax
inc edi
push edi
mov eax, dword [esi]
mov edx, ebx
call fcn.004052b8
mov edi, eax
mov eax, dword [esi]
call fcn.00404f74
add edi, eax
mov edx, edi
mov eax, ebx
pop ecx
call fcn.004051d4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x522698
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.00408328
ret
Function at 0x5227c0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405164
xor eax, eax
push ebp
push 0x52290e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x6c]
call fcn.00522698
push 0
push 0x8000080
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00405174
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x5228ed
xor eax, eax
push ebp
push 0x5228e6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5228cf
xor eax, eax
push ebp
push 0x5228c8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x5228b1
xor eax, eax
push ebp
push 0x5228aa
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetFileSize
mov ecx, eax
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0x14]
call fcn.005226cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5228b1
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5228cf
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5228ed
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x6c]
call fcn.0052274c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x522915
lea eax, [ebp - 4]
call fcn.00404cb4
ret