joyce8/EMBER2024-capa huggingface dataset:
Function at 0x583f12
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5f0a00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0057afa6
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0057afa6
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x583f89
cmp word [ecx], dx
je 0x583f89
mov eax, dword [0x5cbe54]
push edi
dec eax
push eax
push 0x5cbd40
call fcn.00583eb1
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x583ffc
cmp word [eax], dx
je 0x583ffc
mov eax, dword [edi]
test eax, eax
je 0x583fad
cmp word [eax], dx
je 0x583fad
lea eax, [ebp - 0x10]
push eax
call fcn.00583894
jmp 0x583fb6
lea eax, [ebp - 0x10]
push eax
call fcn.0058392f
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x584026
mov eax, dword [0x5cbd3c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x5cba30
call fcn.00583eb1
add esp, 0xc
test al, al
je 0x584026
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x583ff1
cmp word [eax], di
je 0x583ff1
lea eax, [ebp - 0x10]
push eax
call fcn.00583894
pop ecx
jmp 0x584028
lea eax, [ebp - 0x10]
push eax
call fcn.0058392f
jmp 0x583fee
mov eax, dword [edi]
test eax, eax
je 0x584013
cmp word [eax], dx
je 0x584013
lea eax, [ebp - 0x10]
push eax
call fcn.00583849
pop ecx
jmp 0x584026
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x5840f1
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00583d36
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5840f1
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x5840f1
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x5840f1
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x58407e
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0057b9e3
test ebx, ebx
je 0x5840ec
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0057b9e3
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5840f1
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5840f1
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00588c45
add esp, 0x10
xor eax, eax
inc eax
jmp 0x5840f3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00551e44
leave
ret
Function at 0x5885e4
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5f0a00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x588627
call fcn.0055c066
mov dword [eax], 0xf
call fcn.0055c079
mov dword [eax], 0xd
call fcn.0055bf7b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00551e44
leave
ret
test eax, eax
jne 0x58862e
inc eax
jmp 0x58861b
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x588619
xor eax, eax
cmp ecx, 1
setne al
jmp 0x58861b

Function at 0x589710
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x58973d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x58973d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x45eb70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword fs:[0x14]
mov edx, esp
sub esp, 0x1cc
mov dword [esp], esp
mov dword [esp + 4], 0x1cc
call fcn.0045e540
lea ecx, [esp + 0x30]
mov dword fs:[0x14], ecx
mov ebx, esp
sub esp, 0xd8
mov dword [ecx], esp
mov dword [ebx], esp
mov dword [esp], esp
mov dword [esp + 4], 0xd8
call fcn.0045e540
lea ebx, [esp + 0xd8]
mov dword [esp + 0x18], ebx
lea ecx, [esp - 0x8000]
mov dword [esp], ecx
add ecx, 0xb80
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 4], edx
push eax
push dword [ebp + 0x10]
call dword [ebp + 8]
pop ecx
pop eax
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
mov esp, dword [ecx + 4]
pop dword fs:[0x14]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10490d60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [esp], esp
pushal
lea esp, [esp + 0x24]
je 0x103bf974
neg si
mov esi, dword [eax + 0x3c]
clc
bsr dx, cx
bswap dx
add esi, eax
xor dl, dh
mov edx, dword [esi + 0x78]
pushal
test al, 0xe2
clc
clc
test edx, edx
pushal
call fcn.1048f7dc
add byte [eax], al
add byte [eax], al
salc
cmp eax, 0x50be
add byte [eax], al
retf
Function at 0x4fd3ab
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [0x516864]
add edi, 0xffffe881
mov dword [0x516868], edi
mov dword [0x51686c], 0
mov dword [0x516870], 0
mov dword [0x51687c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
mov edx, eax
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
je 0x4fd52b
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x516864], 0x1751
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x51686c], edx
mov ecx, dword [ebp - 0x1c]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x30]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x516870], edx
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x516874], cl
mov edi, dword [ebp - 0x1c]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x516874]
mov edx, dword [0x516870]
mov byte [edi + edx], cl
mov edx, dword [0x51686c]
movzx edx, byte [edi + edx]
mov ebx, dword [0x516870]
movzx ebx, byte [edi + ebx]
add ebx, edx
mov dword [0x516868], 0x26fd
and ebx, 0xff
mov dword [0x51687c], ebx
mov dword [0x516864], 0x267e
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x2c]
mov ch, byte [edx + ebx]
mov dl, cl
add dl, byte [0x516881]
mov byte [0x516880], dl
mov byte [0x516881], ch
mov byte [0x516882], cl
mov dword [0x516868], 0x1b66
xor ch, cl
mov dword [0x516864], 0x1174
mov edx, dword [ebp - 0x18]
mov byte [edx + ebx], ch
add ebx, 1
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x38], ebx
je 0x4fd52b
mov eax, dword [0x51686c]
mov ecx, dword [0x516870]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], edx
jmp 0x4fd41a
mov dword [0x516868], 0x13b3
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4fd53d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x168
mov eax, dword [ebp + 8]
mov dword [ebp - 0x130], eax
xor eax, eax
mov dword [0x516864], 0x260a
mov ecx, eax
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
imul esi, eax, 0x110
mov edi, edx
add edi, esi
add edi, 0xa8
mov esi, dword [edi]
imul edi, eax, 0x110
add edx, edi
add edx, 0xa4
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x135
mov ecx, edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jne 0x4fd56c
lea eax, [0x4ff880]
mov ecx, 0xe
lea edx, [ebp - 0x12c]
mov dword [0x516868], 0x1461
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x144], ecx
call fcn.004fcead
mov dword [0x516864], 0x79e
call fcn.004fcced
mov dword [esp], eax
mov eax, dword [ebp - 0x140]
mov dword [esp + 4], eax
call fcn.004fd9f0
mov dword [0x516884], eax
mov ecx, dword [0x516864]
add ecx, 0xffffe40e
mov dword [0x516868], ecx
mov ecx, esp
mov edx, dword [ebp - 0x13c]
mov dword [ecx + 4], edx
mov dword [ecx + 0xc], 4
mov dword [ecx + 8], 0x1000
mov dword [ecx], 0
call eax
sub esp, 0x10
xor ecx, ecx
mov edx, dword [0x516864]
add edx, 0xfffffbd2
mov dword [0x516864], edx
mov edx, ecx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x150], ecx
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x14c]
lea edx, section..data
imul esi, eax, 0x110
mov edi, edx
add edi, esi
add edi, 0xa8
mov esi, dword [edi]
imul edi, eax, 0x110
mov ebx, edx
add ebx, edi
add ebx, 0x10
mov edi, dword [ebx]
imul ebx, eax, 0x110
add edx, ebx
add edx, 0xa4
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x148]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x15c], edx
call fcn.004fd154
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x158]
add eax, ecx
mov edx, dword [ebp - 0x154]
add edx, 1
cmp edx, 0x135
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], edx
jne 0x4fd684
lea eax, [0x4ff88e]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x164], ecx
call fcn.004fdb4d
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
mov ecx, dword [ebp - 0x148]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x13c]
mov dword [esp + 0xc], edx
call fcn.004fd3ab
xor eax, eax
mov ecx, dword [0x516864]
add ecx, 0x1d8e
mov dword [0x516864], ecx
mov ecx, dword [ebp - 0x148]
add ecx, 0x75a66
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [edx + 4], 0x13e600
mov ecx, dword [ebp - 0x148]
add ecx, 0x35e7f
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x1f90
mov ecx, dword [0x516864]
add ecx, 0x1a21
mov dword [0x516864], ecx
add esp, 0x168
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4fd7e2
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [ebp + 8]
mov dword [0x516864], 0x1994
mov dword [ebp - 0x10], eax
call fcn.004fd1fc
mov ecx, eax
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov esi, dword [ecx + edx + 0x78]
mov dword [0x516864], 0x2010
add ecx, dword [ecx + esi + 0x20]
mov edi, dword [ebp - 0x14]
mov ebx, dword [edi + esi + 0x18]
cmp ebx, 0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
je 0x4fd92f
jmp 0x4fd88d
mov eax, dword [ebp - 0x2c]
mov ecx, eax
mov edx, dword [ebp - 0x30]
add ecx, edx
mov esi, dword [ebp - 0x14]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x35], bh
mov byte [ebp - 0x36], cl
je 0x4fd8cd
jmp 0x4fd8a1
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
xor edx, edx
mov esi, dword [ebp - 0x24]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edx
jmp 0x4fd846
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], eax
jmp 0x4fd871
mov eax, dword [ebp - 0x34]
add eax, 1
mov cl, byte [ebp - 0x35]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x36]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x2c], eax
jne 0x4fd846
mov al, byte [ebp - 0x36]
test al, 1
jne 0x4fd900
jmp 0x4fd8d6
xor eax, eax
mov ecx, dword [ebp - 0x48]
add ecx, 2
mov edx, dword [ebp - 0x44]
add edx, 1
mov esi, dword [ebp - 0x1c]
cmp edx, esi
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x28], eax
jb 0x4fd871
jmp 0x4fd92f
mov eax, dword [ebp - 0x48]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
add eax, dword [ecx + edx*4]
mov dword [0x516868], 0x2690
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4fdb4d
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x516870], 0
mov byte [0x516874], 0
mov esi, dword [0x516864]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
xor eax, eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffac9
mov dword [0x516868], ecx
mov dword [0x51686c], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x516864], 0x1cb3
mov eax, dword [0x51686c]
add eax, 1
mov dword [0x51686c], eax
cmp eax, 0x100
mov dword [ebp - 0x20], eax
jl 0x4fdba0
mov dword [0x516864], 0x1549
mov dword [0x51686c], 0
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x4fdbeb
mov eax, dword [ebp - 0x24]
mov ecx, 0x100
mov dword [0x516878], 0
mov edx, dword [0x516870]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x28], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x516878], edi
mov dword [0x516864], 0x15b
mov eax, edi
cdq
idiv ecx
mov dword [0x516870], edx
mov dword [0x516868], 0xffffff07
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x28]
mov cl, byte [ecx + edi]
mov byte [0x516874], cl
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov ecx, dword [0x516868]
add ecx, 0xffffdd45
mov dword [0x516864], ecx
mov cl, byte [0x516874]
mov edx, dword [0x516870]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov edx, dword [0x51686c]
add edx, 1
mov dword [0x51686c], edx
cmp edx, 0x100
mov dword [ebp - 0x24], edx
jl 0x4fdbeb
mov dword [0x516868], 0x18f5
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4fdcb6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [0x4ff880]
mov esi, 0xe
lea edi, [ebp - 0x2c]
mov dword [0x516868], 0x2337
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 0xe
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], esi
call fcn.004fcead
mov dword [0x516864], 0x79e
call fcn.004fcced
mov dword [esp], eax
mov eax, dword [ebp - 0x38]
mov dword [esp + 4], eax
call fcn.004fd9f0
cmp eax, 0
sete bl
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x41], bl
xor eax, eax
mov cl, byte [ebp - 0x41]
test cl, 1
mov dword [ebp - 0x48], eax
jne 0x4fdd5d
jmp 0x4fdd68
mov eax, dword [ebp - 0x4c]
add eax, 0x2033
mov dword [ebp - 0x50], eax
mov dword [0x516864], 0x6f0
mov dword [0x516868], 0x23bd
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x40]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [0x516868], 0x1985
mov dword [esp], eax
mov ecx, dword [ebp - 0x30]
mov dword [esp + 4], ecx
mov dword [ebp - 0x4c], eax
call fcn.004fe065
xor eax, eax
mov ecx, dword [0x516864]
mov edx, dword [ebp - 0x4c]
mov word [edx], 0x5a4d
add ecx, 0xffffda01
mov dword [0x516864], ecx
mov dword [edx + 0x3c], 0xc0
mov dword [edx + 0xc0], 0x4550
add edx, 0xffc00000
mov dword [0x516868], 0x2259
mov ecx, dword [ebp - 0x34]
mov dword [ecx + 0x40], edx
mov edx, dword [ebp - 0x4c]
mov dword [ecx + 8], edx
cmp edx, 0
mov dword [ebp - 0x48], eax
je 0x4fdd5d
jmp 0x4fdd38
Function at 0x4fde06
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xb0
call fcn.00401088
cmp eax, 0
sete cl
mov byte [esp + 0x3f], cl
xor eax, eax
mov cl, byte [esp + 0x3f]
test cl, 1
mov dword [esp + 0x38], eax
jne 0x4fde38
jmp 0x4fdfe8
lea eax, [esp + 0x50]
mov dword [0x516864], 0x2038
mov dword [esp + 0x34], eax
mov dword [0x516868], 0x2318
call fcn.004fe16b
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x30], ecx
je 0x4fdecc
jmp 0x4fdfe0
mov eax, dword [esp + 0x2c]
add eax, 0xfffff000
and eax, 0xfffff000
mov ecx, dword [esp + 0x28]
add ecx, 0xffffdab2
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x20]
mov dword [0x516864], eax
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
jmp 0x4fdf5c
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
sete dl
mov dword [esp + 0x14], ecx
mov byte [esp + 0x13], dl
mov al, byte [esp + 0x13]
test al, 1
jne 0x4fdf7c
jmp 0x4fde6b
lea eax, [esp + 0x40]
mov dword [esp], eax
call fcn.004fd53d
mov ecx, dword [0x516868]
mov edx, dword [esp + 0x40]
mov dword [esp + 0x98], edx
mov dword [esp + 0x70], 0x13e600
mov edx, dword [0x516850]
mov dword [esp + 0x7c], edx
mov edx, dword [0x516854]
mov dword [esp + 0x68], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
lea eax, [0x4fdff2]
mov ecx, dword [esp + 8]
add ecx, 0xfffff8dd
mov edx, dword [0x516858]
mov dword [esp + 0x84], edx
mov edx, dword [0x51685c]
mov dword [esp + 0x8c], edx
mov edx, dword [0x516860]
mov dword [esp + 0x80], edx
mov dword [0x516864], ecx
mov dword [0x516868], 0x22a3
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
je 0x4fdea5
jmp 0x4fde6b
lea eax, [esp + 0x50]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x60], ecx
mov dword [0x516868], 0x1c92
mov dword [0x516864], 0x14d5
mov edx, dword [esp + 0x14]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x78], esi
mov esi, dword [esp + 0x48]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.004fdcb6
mov ecx, dword [0x516868]
add ecx, 0x1f82
mov dword [0x516864], ecx
mov ecx, esp
lea edx, [esp + 0x50]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x4fe16b
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], 0
mov dword [0x516864], 0xe24
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x4fe1ee
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff7
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2], 0x64
jne 0x4fe2b9
mov dword [0x516864], 0x1882
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff8
shl eax, 1
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
cmp word [eax], 0x6c
je 0x4fe296
jmp 0x4fe2b9
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edx
je 0x4fe225
mov dword [0x516868], 0xd66
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x24], eax
jl 0x4fe1ee
mov eax, dword [ebp - 0x24]
mov dword [0x516864], 0xf30
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
jne 0x4fe2b9
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
shl eax, 1
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
cmp word [eax], 0x6f
jne 0x4fe2b9
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
mov dx, word [eax + ecx*2 - 0x16]
mov word [ebp - 0x2a], dx
mov ax, word [ebp - 0x2a]
cmp ax, 0x61
jne 0x4fe2b9
mov dword [0x516864], 0x15e2
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x4fe1a1
jmp 0x4fe2b9
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0xe], 0x6c
jne 0x4fe2b9
mov eax, 1
mov dword [0x516868], 0xfeb
mov dword [ebp - 0x30], eax
jmp 0x4fe2c8
xor eax, eax
mov dword [0x516864], 0x177
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
add esp, 0x30
pop ebp
ret
Function at 0x4076c4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x42600c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], ecx
lea eax, [ebp - 0x20c]
mov esi, edx
push edi
push eax
call fcn.004095f0
add esp, 0xc
lea ecx, [ebp - 0x20c]
call fcn.004072b0
lea eax, [ebp - 0x20c]
push eax
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x407756
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_open_file_mapping_object.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x410], eax
xor eax, eax
jmp 0x407820
push 0x1e78
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x4077aa
push ecx
push str.ReadSharedMemory__:
push ecx
mov edi, 0x82
mov ecx, esi
mov edx, edi
call fcn.00403b0e
lea ecx, [esi + 0x208]
mov edx, edi
push ecx
push str.Could_not_map_view_of_file.
push ecx
call fcn.00403b0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [esi + 0x410], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40774f
mov eax, dword [ebp - 0x210]
test eax, eax
jne 0x4077c6
call fcn.0040d306
mov dword [eax], 0x16
call fcn.0040d23a
jmp 0x4077d5
push 0x1034
push edi
push eax
call fcn.00408e00
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
push str.ReadSharedMemory__:
push ecx
mov edx, 0x82
mov ecx, esi
call fcn.00403b0e
lea eax, [ebp - 0x20c]
push eax
push str.succeeded._mapping_obj_name:__s
lea eax, [esi + 0x208]
push 0x104
push eax
call fcn.00406b11
and dword [esi + 0x410], 0
xor eax, eax
add esp, 0x10
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407989
leave
ret

Function at 0x43b64e
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop edx
mov edi, eax
sub eax, eax
sub esp, 4
mov dword [esp], eax
pop edi
call fcn.0043b68f
add edi, 0xe589d667
push edi
pop edi
xor dword [esi], edx
sub edi, 0xb3efa447
sub eax, edi
push 0xbf81c5aa
pop edi
inc esi
push 0xf91d28b9
pop eax
cmp esi, ecx
jne fcn.0043b64e
add edi, 0x5ad50ca2
ret