joyce8/EMBER2024-capa huggingface dataset:
Function at 0x521660
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x521747
cmp word [ebx], 0
je 0x521747
test edi, edi
je 0x521747
push esi
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x5216bb
pop esi
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret 8
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
mov dword [ebp - 0x230], 0x22c
call fcn.004ba010
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push esi
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
je 0x521723
lea esp, [esp]
lea edx, [ebp - 0x20c]
push ebx
push edx
call fcn.004bb2ef
add esp, 8
test eax, eax
jne 0x521712
lea eax, [ebp - 0x228]
push eax
mov ecx, edi
call fcn.00449f80
lea ecx, [ebp - 0x230]
push ecx
push esi
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x5216f0
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, dword [edi]
xor eax, eax
cmp edx, dword [edi + 4]
pop esi
pop edi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor al, al
pop ebx
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret 8

Function at 0x521960
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532c3b
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov eax, 1
mov dword [ebp - 0x224], ebx
test byte [0x596a10], al
jne 0x5219d0
or dword [0x596a10], eax
xor eax, eax
push 0x538470
mov dword [0x596a08], 7
mov dword [0x596a04], ebx
mov word [0x5969f4], ax
call fcn.004b9fdc
add esp, 4
cmp dword [0x596a04], ebx
jne 0x521a66
lea ecx, [ebp - 0x21d]
call fcn.005218b0
push 0x208
lea edx, [ebp - 0x21a]
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 4], ebx
mov word [ebp - 0x21c], cx
call fcn.004ba010
add esp, 0xc
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x21c]
push ecx
mov dword [ebp - 0x224], 0x105
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x521a30
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x21c]
push edx
mov ecx, 0x5969f4
call fcn.00402460
mov dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x21d], bl
je 0x521a66
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push 0xffffffffffffffff
push ebx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push 0x5969f4
mov ecx, esi
mov word [esi], ax
call fcn.00402240
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
Function at 0x521af0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532cd5
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x590cc0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
lea ecx, [ebp - 0x2ba]
mov dword [ebp - 0x2c4], esi
mov dword [ebp - 0x2c0], ebx
call fcn.005218b0
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov dword [ebp - 4], 1
mov word [ebp - 0x218], ax
call fcn.004ba010
lea edx, [ebp - 0x250]
push edx
call fcn.0051f550
add esp, 0x10
push eax
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 2
call fcn.00411d70
mov edi, 8
mov byte [ebp - 4], 4
cmp dword [ebp - 0x23c], edi
jb 0x521b97
mov eax, dword [ebp - 0x250]
push eax
call fcn.004b9008
add esp, 4
xor ecx, ecx
xor edx, edx
mov eax, 7
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x240], ecx
mov word [ebp - 0x250], dx
cmp byte [0x5969f0], cl
jne 0x521c60
mov dword [ebp - 0x220], eax
push 0x23
mov dword [ebp - 0x224], ecx
xor eax, eax
push str.Support_GetWinSpecialFoldersFromReg
lea ecx, [ebp - 0x234]
mov word [ebp - 0x234], ax
call fcn.00402460
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x26c]
mov ebx, 1
push edx
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 5
mov dword [ebp - 0x2c0], ebx
call fcn.00412500
mov eax, dword [ebp - 0x26c]
cmp dword [ebp - 0x258], edi
jae 0x521c22
lea eax, [ebp - 0x26c]
push 0x53db0c
push eax
call fcn.004bb2ef
add esp, 8
test eax, eax
sete byte [ebp - 0x2b9]
cmp dword [ebp - 0x258], edi
jb 0x521c50
mov eax, dword [ebp - 0x26c]
push eax
call fcn.004b9008
add esp, 4
cmp byte [ebp - 0x2b9], 0
mov byte [ebp - 0x2b9], 0
je 0x521c67
mov byte [ebp - 0x2b9], 1
mov dword [ebp - 4], 4
test bl, 1
je 0x521c93
and ebx, 0xfffffffe
mov dword [ebp - 0x2c0], ebx
cmp dword [ebp - 0x220], edi
jb 0x521c93
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.004b9008
add esp, 4
cmp byte [ebp - 0x2b9], 0
je 0x521cbb
push 0xa
push 0xffffffffffffffff
lea edx, [ebp - 0x218]
push 0x104
push edx
mov edx, dword [ebp + 8]
xor ecx, ecx
call fcn.005211f0
add esp, 0x10
jmp 0x521cd0
mov eax, dword [ebp + 8]
push 0
push eax
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
lea eax, [ebp - 0x218]
mov word [esi], dx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x521cf0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00402460
or ebx, 2
lea ecx, [ebp - 0x2b8]
mov dword [ebp - 0x2c0], ebx
mov byte [ebp - 4], 1
call fcn.004131e0
cmp byte [ebp - 0x2ba], 0
je 0x521d35
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b9ff3
mov esp, ebp
pop ebp
ret
Function at 0x5238b6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x5238dd
call fcn.004bfbe1
mov dword [eax], esi
call fcn.004bfbce
push 0x16
pop esi
mov dword [eax], esi
call fcn.004c3f45
mov eax, esi
jmp 0x523932
test dword [ebp + 0xc], 0xfffffff9
jne 0x5238c3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x52390a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.004bfbf4
pop ecx
call fcn.004bfbce
mov eax, dword [eax]
jmp 0x523932
test al, 0x10
jne 0x523930
test al, 1
je 0x523930
test byte [ebp + 0xc], 2
je 0x523930
call fcn.004bfbe1
mov dword [eax], 5
call fcn.004bfbce
mov dword [eax], 0xd
jmp 0x523901
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4b3320
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x71000]
push edi
jmp 0x4b333a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b3341
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b3330
mov eax, 1
add ebx, ebx
jne 0x4b3353
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b3364
jne 0x4b3383
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b3383
dec eax
add ebx, ebx
jne 0x4b3370
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b3348
add ebx, ebx
jne 0x4b337f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b33d5
xor ecx, ecx
sub eax, 3
jb 0x4b339b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b340a
sar eax, 1
mov ebp, eax
jmp 0x4b33a6
add ebx, ebx
jne 0x4b33a6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b3374
inc ecx
add ebx, ebx
jne 0x4b33b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b3374
add ebx, ebx
jne 0x4b33c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b33b6
jne 0x4b33d2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b33b6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b33f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b33e6
jmp 0x4b3336
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b33f4
add edi, ecx
jmp 0x4b3336
pop esi
mov edi, esi
mov ecx, 0x3726
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b3412
cmp byte [edi], 0x22
jne 0x4b3412
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4b3417
lea edi, [esi + 0xaf000]
mov eax, dword [edi]
or eax, eax
je 0x4b348f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb61e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb633c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b3444
mov ecx, edi
jns 0x4b3473
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb6340]
or eax, eax
je 0x4b3489
mov dword [ebx], eax
add ebx, 4
jmp 0x4b3461
call dword [esi + 0xb6350]
mov ebp, dword [esi + 0xb6344]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4b34c3
sub esp, 0xffffff80
jmp 0x416781
Function at 0x402954
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x48d030], 0x8088405
inc edx
mov dword [0x48d030], edx
mul edx
mov eax, edx
ret

Function at 0x419a4c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x419a52
ret

Function at 0x430010
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
ret

Function at 0x434a54
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov bl, 1
mov eax, dword [ebp + 8]
mov esi, dword [eax - 0x18]
dec esi
test esi, esi
jl 0x434c00
inc esi
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x10]
mov edx, 5
call fcn.004338a8
pop ecx
test al, al
jne 0x434a99
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.00434d34
xor ebx, ebx
jmp 0x434c00
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x20]
cmp eax, dword [ebp - 0x10]
ja 0x434ab8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 2
call fcn.00434d34
xor ebx, ebx
jmp 0x434c00
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x34]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x10]
mov edx, dword [eax + edx*4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x3c]
call fcn.00446328
test eax, eax
jne 0x434af0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 2
call fcn.00434d34
xor ebx, ebx
jmp 0x434c00
test byte [ebp - 0xc], 1
je 0x434bf9
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 4]
mov edx, 4
call fcn.004338a8
pop ecx
test al, al
jne 0x434b24
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.00434d34
xor ebx, ebx
jmp 0x434c00
mov edx, 0x43188c
mov eax, 0xc
call fcn.00403b98
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x434bcc
push dword fs:[eax]
mov dword fs:[eax], esp
mov edi, dword [ebp - 8]
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.004038bc
mov eax, dword [ebp + 8]
push eax
mov eax, edi
call fcn.0040375c
mov edx, dword [ebp - 4]
call fcn.004338a8
pop ecx
test al, al
jne 0x434b8f
mov edx, 0x43188c
mov eax, dword [ebp - 8]
call fcn.00403bac
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov dl, 0xd
call fcn.00434d34
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x434c00
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.00430d34
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x3c]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 8]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov eax, dword [eax + 0x30]
mov edx, dword [ebp - 8]
call fcn.00430fcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x434bf9
dec esi
jne 0x434a6f
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44f874
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x48d768
mov eax, esi
mov edx, 8
test al, 1
je 0x44f890
shr eax, 1
xor eax, 0xedb88320
jmp 0x44f892
shr eax, 1
dec edx
jne 0x44f883
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x44f87c
pop esi
ret

Function at 0x44f8a8
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x48d764], 0
jne 0x44f8cb
call fcn.0044f874
push 1
push 0x48d764
call fcn.0040589c
mov eax, edi
test esi, esi
je 0x44f8f6
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x48d768]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x44f8d1
mov eax, ebx
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x48d764], 0
jne 0x44f8cb
call fcn.0044f874
push 1
push 0x48d764
call fcn.0040589c
mov eax, edi
test esi, esi
je 0x44f8f6
mov edx, ebx
and dx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x48d768]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x44f8d1
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
je 0x433072
nop
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x4c470d9e
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x76546251
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x40ddf4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax + 4]
push edi
mov edi, ecx
test esi, esi
jns 0x40de22
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
and eax, 0xfffffffe
and esi, 0x7fffffff
push eax
add esi, edx
push esi
call fcn.0040dea3
add esp, 0xc
jmp 0x40de9f
push ebx
mov ecx, 0x7fffffff
and esi, ecx
add esi, edx
lea eax, [ebp + 8]
mov ebx, dword [esi]
and dword [ebp + 8], 0
push eax
push 4
push dword [esi + 4]
and ebx, ecx
add ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40de9e
mov eax, dword [ebp + 0x10]
push 0xffffffffffffffff
mov ecx, dword [eax + 0x1c]
push 0
sub ecx, edi
test byte [ebp + 0xc], 0x40
pop eax
setne al
lea eax, [eax*2 - 1]
push eax
mov eax, dword [0x652d84]
imul eax, dword [esi]
push eax
mov eax, dword [0x652d8c]
imul eax, dword [esi]
push eax
mov eax, dword [0x652d80]
mov edx, dword [esi + 4]
xor eax, ecx
push eax
mov ecx, ebx
call fcn.0040e416
add esp, 0x14
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push dword [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x40e3c6
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
push ebx
mov ebx, dword [ecx + 0x3c]
add ebx, ecx
push ebp
movzx eax, word [ebx + 0x14]
lea ebp, [ebx + 0x18]
add ebp, eax
push esi
xor eax, eax
xor esi, esi
push edi
mov dword [esp + 0x10], edx
cmp ax, word [ebx + 6]
jae 0x40e406
mov edi, ebp
push edi
push edx
call fcn.0041e1a6
pop ecx
pop ecx
test eax, eax
je 0x40e40e
movzx eax, word [ebx + 6]
mov edx, dword [esp + 0x10]
inc esi
add edi, 0x28
cmp esi, eax
jb 0x40e3e9
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
imul esi, esi, 0x28
lea eax, [esi + ebp]
jmp 0x40e408
Function at 0x40e4a7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x429ce7
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
mov esi, ecx
push edi
mov ebx, edx
test esi, esi
je 0x40e56f
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi + 0x7c], 0
je 0x40e56f
mov eax, dword [edi + 0x78]
add eax, esi
mov dword [esp + 0x18], eax
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
add ecx, esi
mov dword [esp + 0x24], ecx
mov ecx, dword [eax + 0x24]
add ecx, esi
add edx, esi
cmp byte [ebx], 0xff
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], edx
je 0x40e52a
push ebx
call fcn.0041da40
push eax
push ebx
call fcn.00411c7f
mov edx, dword [esp + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
add esp, 0xc
jmp 0x40e534
mov ecx, dword [ebx + 1]
xor ecx, dword [ebp + 0xc]
mov dword [esp + 0x10], ecx
xor ebx, ebx
cmp dword [eax + 0x18], ebx
jbe 0x40e56f
mov eax, dword [edx + ebx*4]
test eax, eax
je 0x40e565
add eax, esi
push eax
mov dword [esp + 0x20], eax
call fcn.0041da40
push eax
push dword [esp + 0x24]
call fcn.00411c7f
add esp, 0xc
cmp dword [esp + 0x10], eax
je 0x40e583
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc ebx
cmp ebx, dword [eax + 0x18]
jb 0x40e53b
xor eax, eax
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
movzx eax, word [eax + ebx*2]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [edi + 0x78]
jb 0x40e67f
mov eax, dword [edi + 0x7c]
add eax, dword [edi + 0x78]
cmp ecx, eax
jae 0x40e67f
lea eax, [ecx + esi]
push eax
lea ecx, [esp + 0x2c]
call fcn.00402125
xor ebx, ebx
mov dword [esp + 0x64], ebx
push 1
push ecx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x18], 0x2e
call fcn.00402296
mov esi, eax
cmp esi, 0xffffffff
je 0x40e66c
push esi
push ebx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x34]
call fcn.00410cf1
mov byte [esp + 0x64], 1
cmp dword [eax + 0x14], 0x10
jb 0x40e5fa
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov byte [esp + 0x64], bl
lea ecx, [esp + 0x40]
call fcn.00402152
test edi, edi
je 0x40e66c
push 0xffffffffffffffff
lea ecx, [esi + 1]
push ecx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x34]
call fcn.00410cf1
mov byte [esp + 0x64], 2
cmp dword [eax + 0x14], 0x10
jb 0x40e635
mov eax, dword [eax]
push ebx
push dword [ebp + 0xc]
mov edx, eax
push dword [ebp + 8]
mov ecx, edi
call fcn.0040e4a7
add esp, 0xc
mov esi, eax
mov byte [esp + 0x64], bl
lea ecx, [esp + 0x40]
call fcn.00402152
or dword [esp + 0x64], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.00402152
mov eax, esi
jmp 0x40e571
or dword [esp + 0x64], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.00402152
jmp 0x40e56f
lea eax, [ecx + esi]
jmp 0x40e571
Function at 0x40ef16
Capabilities:
Parse pe header

Disassembly:
push 8
push 0x436b18
call fcn.00428c70
mov esi, ecx
and dword [ebp - 4], 0
lea edi, [esi + 0x80]
push dword [ebp + 0xc]
push 0x40
push 0
push edi
call dword [ebp + 8]
add esp, 0x10
test al, al
je 0x40f017
or dword [ebp - 4], 0xffffffff
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x40f006
mov eax, dword [esi + 0xbc]
test eax, eax
je 0x40f006
mov dword [ebp - 4], 1
lea edi, [esi + 0xc0]
push dword [ebp + 0xc]
push 0xf8
push eax
push edi
call dword [ebp + 8]
add esp, 0x10
test al, al
je 0x40f017
or dword [ebp - 4], 0xffffffff
cmp dword [edi], 0x4550
jne 0x40f006
mov eax, 0x10b
cmp word [esi + 0xd8], ax
jne 0x40f006
movzx eax, word [esi + 0xc6]
test ax, ax
je 0x40f006
mov edi, eax
imul edi, edi, 0x28
movzx ecx, word [esi + 0xd4]
mov ebx, dword [esi + 0xbc]
add ecx, 0x18
add ebx, ecx
push edi
call fcn.0041e2b8
pop ecx
mov dword [esi + 0x1b8], eax
test eax, eax
jne 0x40efdb
push 8
jmp 0x40f01d
mov dword [ebp - 4], 2
push dword [ebp + 0xc]
push edi
push ebx
push eax
call dword [ebp + 8]
add esp, 0x10
test al, al
je 0x40f017
or dword [ebp - 4], 0xffffffff
lea eax, [ebx + edi]
mov dword [esi + 0x18], eax
xor eax, eax
jmp 0x40f01e
push 0xb
jmp 0x40f01d
or dword [ebp - 4], 0xffffffff
push 0x1e
pop eax
call fcn.00428cab
ret 8

Function at 0x411c7f
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov ecx, 0xff077af4
test edi, edi
je 0x411cb8
movzx eax, byte [ebx]
cdq
push 0
xor esi, edx
push 0x1000193
xor ecx, eax
push esi
push ecx
inc ebx
call fcn.00428640
xor esi, esi
mov ecx, eax
dec edi
jne 0x411c9a
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411cc1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [0x6561f8]
or eax, dword [0x6561fc]
push ebx
push esi
mov ebx, edx
push edi
mov dword [esp + 0xc], ebx
mov edi, ecx
jne 0x411d21
xor esi, esi
mov eax, esi
push 8
cdq
pop ebx
mov ecx, eax
shrd eax, edx, 1
and ecx, 1
shr edx, 1
or ecx, 0
je 0x411d03
xor eax, 0xd7870f42
xor edx, 0xc96c5795
dec ebx
jne 0x411ce8
mov dword [esi*8 + 0x655a00], eax
mov dword [esi*8 + 0x655a04], edx
inc esi
cmp esi, 0x100
jl 0x411ce2
mov ebx, dword [esp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
not ecx
not edx
test edi, edi
je 0x411d52
movzx eax, byte [edi]
xor eax, ecx
shrd ecx, edx, 8
and eax, 0xff
shr edx, 8
xor ecx, dword [eax*8 + 0x655a00]
xor edx, dword [eax*8 + 0x655a04]
inc edi
dec ebx
jne 0x411d2f
pop edi
not ecx
pop esi
not edx
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret