joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4abf40
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hash data using fnv

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x14], ebx
mov esi, ebp
cmp dword [ebp + 0x14], 8
mov edi, dword [ebp + 0x10]
jb 0x4abf5f
mov esi, dword [ebp]
xor ecx, ecx
mov edx, 0x811c9dc5
add edi, edi
je 0x4abf81
lea ebx, [ebx]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x4abf70
mov eax, dword [ebx + 0x18]
lea ecx, [ebx + 4]
mov esi, dword [ecx]
and eax, edx
lea edx, [eax*8]
mov dword [esp + 0x10], ecx
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x18], edx
mov ecx, dword [eax + edx]
mov dword [esp + 0x24], ecx
cmp esi, ecx
je 0x4ac00d
mov esi, dword [eax + edx + 4]
mov esi, dword [esi]
cmp esi, ecx
je 0x4ac00d
mov esi, dword [esi + 4]
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
mov ecx, dword [eax + 0x10]
jb 0x4abfc3
mov eax, dword [eax]
cmp dword [ebp + 0x14], 8
mov ebx, ebp
jb 0x4abfce
mov ebx, dword [ebp]
mov edx, dword [ebp + 0x10]
cmp edx, ecx
jne 0x4ac003
mov edi, edx
test edx, edx
je 0x4ac053
movzx ecx, word [ebx]
movzx edx, word [eax]
cmp cx, dx
jb 0x4ac003
sub ebx, eax
cmp cx, dx
ja 0x4ac003
cmp edi, 1
je 0x4ac053
movzx ecx, word [ebx + eax + 2]
add eax, 2
dec edi
movzx edx, word [eax]
cmp cx, dx
jae 0x4abfeb
cmp esi, dword [esp + 0x24]
jne 0x4abfb2
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x28]
mov eax, dword [edi]
cmp esi, eax
je 0x4ac038
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x18]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx + 4]
jne 0x4ac089
mov dword [ecx], edi
mov eax, dword [ebx + 0xc]
mov dword [eax + edx + 4], edi
jmp 0x4ac0ab
mov edi, dword [esp + 0x28]
push edi
mov edx, dword [edi + 4]
mov eax, dword [edi]
mov dword [edx], eax
mov edx, dword [edi]
mov eax, dword [edi + 4]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x14]
mov ecx, eax
dec dword [eax + 4]
call fcn.004b0890
mov eax, dword [esp + 0x20]
pop edi
mov dword [eax], esi
pop esi
pop ebp
mov byte [eax + 4], 0
pop ebx
add esp, 0xc
ret 0xc
cmp eax, esi
jne 0x4ac091
mov dword [ecx], edi
jmp 0x4ac0ab
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x4ac0ab
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.004b01d0
mov eax, dword [esp + 0x20]
mov dword [eax], edi
pop edi
pop esi
pop ebp
mov byte [eax + 4], 1
pop ebx
add esp, 0xc
ret 0xc
Function at 0x4ac220
Capabilities:
Hash data using fnv

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov ebx, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
mov esi, dword [ebx + 0xc]
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [ebx + 4]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebx + 0x18]
and ecx, eax
mov eax, dword [esi + ecx*8]
lea ebp, [ecx*8]
cmp eax, edx
jne 0x4ac27a
mov esi, edx
jmp 0x4ac280
mov esi, dword [esi + ebp + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x4ac292
mov ecx, dword [edi]
mov esi, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x4ac2e6
cmp esi, eax
jne 0x4ac286
mov eax, dword [edx]
mov dword [esp + 0x1c], eax
push 0x10
mov eax, dword [eax + 4]
mov dword [esp + 0x14], eax
call fcn.004b2888
mov edx, eax
add esp, 4
mov eax, dword [esp + 0x1c]
mov dword [edx], eax
mov eax, dword [esp + 0x10]
mov dword [edx + 4], eax
mov ecx, dword [edi]
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0
mov eax, dword [edi + 4]
mov dword [edi + 4], 0
mov dword [edx + 0xc], eax
mov eax, 0xffffffe
mov ecx, dword [ebx + 8]
sub eax, ecx
cmp eax, 1
jb 0x4ac38b
jmp 0x4ac2f8
mov eax, dword [esp + 0x18]
pop edi
mov dword [eax], esi
pop esi
pop ebp
mov byte [eax + 4], 0
pop ebx
pop ecx
ret 0xc
lea eax, [ecx + 1]
mov dword [ebx + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x10]
mov dword [eax], edx
mov edx, dword [ebx + 4]
mov edi, dword [edx]
mov eax, dword [edi]
cmp esi, eax
je 0x4ac33a
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [ebx + 4]
mov ecx, dword [ebx + 0xc]
add ecx, ebp
mov eax, dword [ecx]
cmp eax, edx
jne 0x4ac350
mov dword [ecx], edi
mov eax, dword [ebx + 0xc]
mov dword [eax + ebp + 4], edi
jmp 0x4ac372
cmp eax, esi
jne 0x4ac358
mov dword [ecx], edi
jmp 0x4ac372
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x4ac372
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + ebp + 4]
mov eax, dword [eax + 4]
mov dword [ecx + ebp + 4], eax
mov ecx, ebx
call fcn.004afff0
mov eax, dword [esp + 0x18]
mov dword [eax], edi
pop edi
pop esi
pop ebp
mov byte [eax + 4], 1
pop ebx
pop ecx
ret 0xc
push str.list_T__too_long
call fcn.004b1853
int3
Function at 0x4ae480
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hash data using fnv

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
mov eax, ecx
push ebp
push esi
mov dword [esp + 0x10], eax
mov esi, ebx
cmp dword [ebx + 0x14], 8
lea ebp, [eax + 0xb4]
mov eax, dword [ebx + 0x10]
push edi
mov dword [esp + 0x18], eax
jb 0x4ae4a8
mov esi, dword [ebx]
lea edi, [eax + eax]
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x4ae4c7
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x4ae4b6
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
and eax, edx
mov edi, dword [esp + 0x14]
mov ebp, dword [ecx + eax*8]
mov esi, ebp
mov edx, dword [edi + 0xb8]
lea eax, [eax*8 + 4]
add eax, ecx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], eax
cmp ebp, edx
jne 0x4ae4fb
mov eax, edx
jmp 0x4ae4ff
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x4ae5ac
cmp dword [ebx + 0x14], 8
lea ebp, [esi + 8]
mov eax, ebx
jb 0x4ae514
mov eax, dword [ebx]
cmp dword [ebp + 0x14], 8
mov ebx, ebp
mov ecx, dword [ebp + 0x10]
jb 0x4ae522
mov ebx, dword [ebp]
cmp ecx, dword [esp + 0x18]
jne 0x4ae558
test ecx, ecx
je 0x4ae568
movzx edx, word [ebx]
movzx edi, word [eax]
cmp dx, di
jb 0x4ae554
sub ebx, eax
cmp dx, di
ja 0x4ae554
cmp ecx, 1
je 0x4ae568
movzx edx, word [eax + ebx + 2]
add eax, 2
dec ecx
movzx edi, word [eax]
cmp dx, di
jae 0x4ae53c
mov edx, dword [esp + 0x10]
mov esi, dword [esi]
mov ebx, dword [esp + 0x28]
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
jmp 0x4ae4f3
mov edi, dword [esp + 0x14]
push ebp
push dword [esp + 0x2c]
lea ecx, [edi + 0xb4]
call fcn.004acfd0
test al, al
je 0x4ae597
mov edx, dword [esp + 0x10]
cmp edx, dword [edi + 0xb8]
pop edi
pop esi
pop ebp
setne al
pop ebx
add esp, 0x14
ret 4
mov edx, esi
cmp edx, dword [edi + 0xb8]
pop edi
pop esi
pop ebp
setne al
pop ebx
add esp, 0x14
ret 4
mov edi, dword [esp + 0x14]
cmp edx, dword [edi + 0xb8]
pop edi
pop esi
pop ebp
setne al
pop ebx
add esp, 0x14
ret 4
Function at 0x4afff0
Capabilities:
Hash data using fnv

Disassembly:
push ecx
push esi
mov esi, ecx
fld dword [esi]
mov eax, dword [esi + 8]
mov edx, dword [esi + 0x1c]
fild dword [esi + 8]
test eax, eax
jns 0x4b0009
fadd dword [0x658448]
fstp dword [esp + 4]
fld dword [esp + 4]
mov dword [esp + 4], edx
fild dword [esp + 4]
test edx, edx
jns 0x4b0023
fadd dword [0x658448]
fstp dword [esp + 4]
fdiv dword [esp + 4]
fstp dword [esp + 4]
fld dword [esp + 4]
fcompp
fnstsw ax
test ah, 0x41
jne 0x4b0073
cmp edx, 0x200
jae 0x4b0058
shl edx, 3
push edx
call fcn.004aadc0
mov ecx, esi
pop esi
add esp, 4
jmp 0x4b0c60
cmp edx, 0x1fffffff
jae 0x4b0062
add edx, edx
push edx
call fcn.004aadc0
mov ecx, esi
pop esi
add esp, 4
jmp 0x4b0c60
pop esi
pop ecx
ret
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 4]
cmp dword [eax], eax
je 0x4b0d91
push ebx
mov ebx, dword [eax + 4]
push ebp
push esi
mov dword [esp + 0x10], ebx
lea esp, [esp]
mov eax, dword [edi + 4]
mov esi, dword [eax]
movzx ecx, byte [esi + 8]
xor ecx, 0x811c9dc5
imul edx, ecx, 0x1000193
movzx ecx, byte [esi + 9]
xor edx, ecx
movzx ecx, byte [esi + 0xa]
imul edx, edx, 0x1000193
xor edx, ecx
movzx ecx, byte [esi + 0xb]
imul edx, edx, 0x1000193
xor edx, ecx
imul ecx, edx, 0x1000193
mov edx, dword [edi + 0x18]
and edx, ecx
lea ebp, [edx*8]
mov edx, dword [edi + 0xc]
mov ecx, dword [edx + ebp]
cmp eax, ecx
je 0x4b0cec
mov eax, dword [edx + ebp + 4]
mov eax, dword [eax]
cmp eax, ecx
je 0x4b0cec
mov edx, dword [esi + 8]
lea esp, [esp]
mov eax, dword [eax + 4]
cmp edx, dword [eax + 8]
je 0x4b0d2e
cmp eax, ecx
jne 0x4b0ce0
mov ecx, dword [esi]
cmp eax, ecx
je 0x4b0d17
mov edx, dword [esi + 4]
mov dword [edx], ecx
mov edx, dword [ecx + 4]
mov dword [edx], eax
mov edx, dword [eax + 4]
mov dword [edx], esi
mov ebx, dword [eax + 4]
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [esi + 4]
mov dword [ecx + 4], edx
mov dword [esi + 4], ebx
mov ebx, dword [esp + 0x10]
mov ecx, dword [edi + 0xc]
mov edx, dword [ecx + ebp]
cmp edx, dword [edi + 4]
jne 0x4b0d5a
mov dword [ecx + ebp], esi
mov eax, dword [edi + 0xc]
mov dword [eax + ebp + 4], esi
jmp 0x4b0d7f
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov dword [ecx], eax
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
dec dword [edi + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4b0d4d
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push 0x10
push esi
call fcn.004b22a2
add esp, 8
jmp 0x4b0d86
cmp edx, eax
jne 0x4b0d63
mov dword [ecx + ebp], esi
jmp 0x4b0d7f
mov eax, dword [ecx + ebp + 4]
mov eax, dword [eax]
mov dword [ecx + ebp + 4], eax
cmp eax, esi
je 0x4b0d7f
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx + ebp + 4]
mov eax, dword [eax + 4]
mov dword [ecx + ebp + 4], eax
mov ecx, edi
call fcn.004afff0
cmp esi, ebx
jne 0x4b0c80
pop esi
pop ebp
pop ebx
pop edi
pop ecx
ret

Function at 0x4c57d0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c564f

Function at 0x4cb8b9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004cb579
Function at 0x4d1560
Capabilities:
Get file size

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 8]
lea ebx, [edi + 0x18]
push ebx
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4d15ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
js 0x4d159f
jne 0x4d1596
mov edx, dword [esi]
mov ecx, esi
xor edi, edi
call dword [edx + 0x44]
mov eax, edi
pop edi
pop esi
pop ebx
ret
movzx edi, di
or edi, 0x83ff0000
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x44]
mov eax, edi
pop edi
pop esi
pop ebx
ret
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], ecx
test ecx, ecx
jl 0x4d15d1
jg 0x4d15c2
cmp eax, 0xffffffff
jbe 0x4d15c7
or eax, 0xffffffff
jmp 0x4d15d3
test ecx, ecx
jg 0x4d15d3
jl 0x4d15d1
test eax, eax
jae 0x4d15d3
xor eax, eax
mov ecx, dword [esi + 0x40]
cmp ecx, eax
jb 0x4d15dc
mov ecx, eax
mov dword [esi + 0x3c], ecx
cmp dword [edi + 0x28], 1
jne 0x4d1611
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x10]
test ecx, ecx
jl 0x4d1611
jg 0x4d15f5
test eax, eax
je 0x4d1611
push 0
push eax
push ecx
push 2
push 0
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [edi + 0x24], eax
test eax, eax
je 0x4d1579
mov eax, dword [esi + 0x3c]
pop edi
mov dword [esi + 0x44], eax
xor eax, eax
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x38], 0
pop esi
pop ebx
ret
Function at 0x4d1940
Capabilities:
Read file via mapping

Disassembly:
push ecx
push ebx
mov ebx, ecx
push ebp
push edi
mov ebp, dword [ebx + 8]
test ebp, ebp
je 0x4d1a31
cmp dword [ebp + 0x20], 0xffffffff
je 0x4d1a31
test byte [ebp + 0x28], 2
mov edi, dword [ebp + 0x24]
jne 0x4d196c
test edi, edi
je 0x4d1a31
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.004d1810
mov esi, dword [ebp + 0x10]
mov ecx, eax
mov eax, dword [ebp + 0x14]
sub esi, ecx
mov dword [esp + 0x18], ecx
sbb eax, edx
mov dword [esp + 0x10], edx
js 0x4d199c
jg 0x4d1997
cmp esi, 0xffffffff
jbe 0x4d199c
or esi, 0xffffffff
jmp 0x4d19a8
test eax, eax
jg 0x4d19a8
jl 0x4d19a6
test esi, esi
jae 0x4d19a8
xor esi, esi
mov eax, dword [ebx + 0x40]
cmp esi, eax
jbe 0x4d19b1
mov esi, eax
push esi
push ecx
push edx
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebx + 0x38], eax
test eax, eax
jne 0x4d19e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
js 0x4d19d8
je 0x4d1a27
movzx eax, ax
or eax, 0x83ff0000
pop esi
pop edi
pop ebp
pop ebx
pop ecx
ret 8
mov ecx, dword [esp + 0x18]
mov eax, dword [ebx + 0x10]
mov edx, dword [esp + 0x10]
sub eax, ecx
mov dword [ebx + 0x30], ecx
mov ecx, dword [ebx + 0x14]
sbb ecx, edx
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x3c], esi
js 0x4d1a16
jg 0x4d1a04
cmp eax, 0xffffffff
jbe 0x4d1a16
or eax, 0xffffffff
sub esi, eax
xor eax, eax
mov dword [ebx + 0x44], esi
pop esi
pop edi
pop ebp
pop ebx
pop ecx
ret 8
test ecx, ecx
jg 0x4d1a22
jl 0x4d1a20
test eax, eax
jae 0x4d1a22
xor eax, eax
sub esi, eax
mov dword [ebx + 0x44], esi
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
pop edi
pop ebp
mov eax, 0x82020010
pop ebx
pop ecx
ret 8

Function at 0x4d3aa0
Capabilities:
Clear file content

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 8]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x2c], 0
test esi, esi
je 0x4d3b7f
mov eax, dword [edi + 0x20]
push ebx
xor ebx, ebx
test eax, eax
je 0x4d3af2
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [edi + 0x20], ebx
mov ebx, 1
mov eax, dword [esi + 0x24]
test eax, eax
je 0x4d3b08
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], 0
inc ebx
cmp dword [esi + 0x20], 0
je 0x4d3b48
test byte [esi + 0x28], 2
je 0x4d3b37
mov edi, dword [edi + 8]
push 0
push 0
push dword [esi + 0x1c]
push dword [esi + 0x18]
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4d3b37
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x20], 0
inc ebx
mov eax, ebx
mov dword [esi + 0x18], 0
pop ebx
pop edi
mov dword [esi + 0x1c], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x4d3ea0
Capabilities:
Get file size

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, dword [edi + 8]
lea esi, [ebx + 0x18]
push esi
push dword [ebx + 0x20]
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x4d3ef3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
js 0x4d3ee5
jne 0x4d3edc
mov edx, dword [edi]
mov ecx, edi
xor esi, esi
call dword [edx + 0x44]
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret
movzx esi, si
or esi, 0x83ff0000
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x44]
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret
xor eax, eax
cmp dword [ebx + 0x28], 1
push ebp
sete al
lea eax, [eax*2 + 2]
mov dword [ebx + 0x2c], eax
xor eax, eax
cmp dword [ebx + 0x28], 1
setne al
lea eax, [eax*2 + 2]
mov dword [ebx + 0x30], eax
jne 0x4d3f23
mov ebp, dword [esi]
mov eax, dword [esi + 4]
jmp 0x4d3f48
mov esi, dword [0x6f558c]
mov ebp, dword [ebx + 0x18]
push 0
push esi
push dword [ebx + 0x1c]
push ebp
call fcn.004b2c40
mov ecx, dword [esp + 0x10]
sub ebp, eax
mov eax, dword [ecx + 4]
sbb eax, edx
add ebp, esi
adc eax, 0
mov dword [ebx + 0x10], ebp
mov dword [ebx + 0x14], eax
test eax, eax
jl 0x4d3f68
jg 0x4d3f59
cmp ebp, 0xffffffff
jbe 0x4d3f5e
or ebp, 0xffffffff
jmp 0x4d3f6a
test eax, eax
jg 0x4d3f6a
jl 0x4d3f68
test ebp, ebp
jae 0x4d3f6a
xor ebp, ebp
mov eax, dword [edi + 0x28]
cmp eax, ebp
jb 0x4d3f73
mov eax, ebp
mov dword [edi + 0x24], eax
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x10]
pop ebp
test ecx, ecx
jl 0x4d3fa4
jg 0x4d3f87
test eax, eax
je 0x4d3fa4
push 0
push eax
push ecx
push dword [ebx + 0x30]
push 0
push dword [ebx + 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebx + 0x24], eax
test eax, eax
je 0x4d3ebe
mov eax, dword [edi + 0x24]
mov dword [edi + 0x2c], eax
xor eax, eax
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x20], 0
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4d5b50
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63f8c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x14], 0
push edi
mov dword [ebp - 0x10], esp
test esi, esi
je 0x4d5b97
mov edx, esi
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4d5b86
sub edx, edi
sar edx, 1
jmp 0x4d5b99
xor edx, edx
lea eax, [ebp - 0x14]
push eax
push edx
push esi
call fcn.0044a670
add esp, 0xc
mov edi, eax
cmp dword [ebp - 0x14], 0
mov dword [ebp + 8], edi
je 0x4d5d14
test edi, edi
je 0x4d5d14
mov eax, dword [ebx + 0x1c]
lea ecx, [ebx + 0x1c]
mov dword [ebp - 0x24], ecx
mov ecx, dword [ecx + 4]
sub ecx, eax
mov dword [ebp - 0x18], eax
mov eax, 0x92492493
imul ecx
add edx, ecx
lea ecx, [ebp + 8]
sar edx, 4
mov eax, edx
mov dword [ebp - 0x20], ecx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x1c], eax
mov ebx, eax
jne 0x4d5bf7
or esi, 0xffffffff
jmp 0x4d5c91
xor ecx, ecx
cmp eax, 2
jl 0x4d5c38
mov edi, edi
lea eax, [ecx + ebx]
cdq
sub eax, edx
mov edx, dword [ebp - 0x18]
mov esi, eax
sar esi, 1
lea eax, [esi*8]
sub eax, esi
mov eax, dword [edx + eax*4]
cmp eax, edi
je 0x4d5c89
sbb eax, eax
and eax, 0xfffffffe
inc eax
test eax, eax
jle 0x4d5c2b
mov ebx, esi
jmp 0x4d5c2d
mov ecx, esi
mov eax, ebx
sub eax, ecx
cmp eax, 2
jge 0x4d5c00
jmp 0x4d5c3b
mov edx, dword [ebp - 0x18]
lea eax, [ecx*8]
sub eax, ecx
mov eax, dword [edx + eax*4]
cmp eax, edi
je 0x4d5c87
sbb eax, eax
and eax, 0xfffffffe
inc eax
test eax, eax
jle 0x4d5c5b
mov esi, ecx
not esi
jmp 0x4d5c89
lea esi, [ecx + 1]
cmp esi, dword [ebp - 0x1c]
jge 0x4d5c83
lea eax, [esi*8]
sub eax, esi
lea ecx, [ebp - 0x20]
lea eax, [edx + eax*4]
push eax
call fcn.004d5b30
test eax, eax
je 0x4d5c89
jle 0x4d5c82
not esi
jmp 0x4d5c89
inc esi
not esi
jmp 0x4d5c89
mov esi, ecx
test esi, esi
jns 0x4d5d14
xor eax, eax
push 0x10
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x64]
push eax
push 0x59
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
call edi
push 0x10
lea eax, [ebp - 0x44]
push eax
push 0x5a
push dword [ebp + 8]
call edi
mov edx, dword [ebp - 0x24]
inc esi
mov dword [ebp - 4], 0
mov eax, dword [edx]
lea ecx, [esi*8]
sub ecx, esi
shl ecx, 2
sub eax, ecx
lea ecx, [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
lea eax, [ebp - 0x24]
mov ecx, edx
push eax
call fcn.004d5750
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4d6230
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x4d62b3
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x18]
sub ebp, edi
jmp 0x4d6250
inc byte [ecx + 0x100]
lea edi, [edi + 1]
movzx esi, byte [ecx + 0x100]
movzx eax, byte [esi + ecx]
add byte [ecx + 0x101], al
movzx eax, byte [ecx + 0x101]
mov dl, byte [esi + ecx]
movzx eax, byte [eax + ecx]
mov byte [esi + ecx], al
movzx eax, byte [ecx + 0x101]
mov byte [eax + ecx], dl
movzx eax, byte [ecx + 0x100]
movzx edx, byte [eax + ecx]
movzx eax, byte [ecx + 0x101]
movzx eax, byte [eax + ecx]
add edx, eax
movzx eax, dl
movzx eax, byte [eax + ecx]
xor al, byte [edi + ebp - 1]
mov byte [edi - 1], al
sub ebx, 1
jne 0x4d6250
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x4de770
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x63fc8e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6eed24]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ebx, [edi + 4]
mov dword [ebx], 0
mov dword [edi], fcn.00431460
mov dword [edi + 8], 0
lea esi, [edi + 0xc]
mov dword [ebp - 4], 0
push esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x18], 0
mov eax, dword [ebp + 8]
mov dword [edi], fcn.00431460
mov dword [edi + 0x28], 0
mov byte [ebp - 4], 1
mov edx, dword [eax]
mov dword [edi + 0x30], edx
mov ecx, dword [eax + 4]
mov dword [edi + 0x34], ecx
test edx, edx
je 0x4de7f1
mov eax, dword [ecx]
push edx
call dword [eax]
mov dword [edi + 0x38], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x3c], 0
mov edx, dword [edi + 0x30]
mov byte [ebp - 4], 2
test edx, edx
je 0x4de81c
mov ecx, dword [edi + 0x34]
push edx
mov eax, dword [ecx]
call dword [eax + 8]
jmp 0x4de81e
xor eax, eax
mov ecx, edi
mov dword [edi + 0x2c], eax
call fcn.004decc0
lock inc dword [ebx]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4efa50
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x224
mov eax, dword [0x6eed24]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
mov ebx, dword [esp + 0x234]
lea eax, [esp + 8]
push ebp
push esi
push edi
mov edi, dword [esp + 0x238]
xor esi, esi
push esi
push esi
push esi
push esi
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x38], ebx
push eax
push esi
push edi
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4efb8b
mov ebp, dword [esp + 0x23c]
lea esp, [esp]
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x10], eax
test ebp, ebp
je 0x4efb16
lea eax, [esp + 0x10]
push eax
push ebp
push ecx
lea eax, [esp + 0x34]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
sub eax, 0
je 0x4efb04
sub eax, 2
jne 0x4efb60
mov eax, dword [0x6f9c80]
test al, 1
jne 0x4efb60
or eax, 1
push str.IEShims
mov dword [0x6f9c80], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
setne byte [0x6f9c7c]
jmp 0x4efb60
push dword [esp + 0x10]
call fcn.004efd80
mov ecx, eax
add esp, 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebx + 0x24]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x20], eax
test ecx, ecx
je 0x4efbb1
mov eax, dword [ecx]
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x20]
push edx
mov eax, dword [eax + 8]
lea edx, [esp + 0x28]
push edx
call eax
mov ecx, dword [esp + 0x10]
mov bl, al
test ecx, ecx
je 0x4efb58
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x4efb96
mov ebx, dword [esp + 0x24]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x104
push eax
lea eax, [esp + 0x3c]
inc esi
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4efab0
cmp eax, 0x103
jne 0x4efb96
mov al, 1
jmp 0x4efb98
xor al, al
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004b2558
add esp, 0x224
ret
call fcn.004b1836
int3