joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101cecb
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10241c4], 0
push esi
jne 0x101ce39
call fcn.0101cd30
test eax, eax
je 0x101ce7c
mov eax, dword [0x10241c4]
cmp eax, 1
jne 0x101ce5a
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x101ce7c
pop esi
ret
push eax
call dword [0x10241cc]
test eax, eax
jne 0x101cec4
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x101ce80
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x10241c4]
call dword [0x10241cc]
mov edi, eax
test edi, edi
je 0x101cea5
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x101cec1
mov edi, esi
add esi, 0xff0
push edi
push dword [0x10241c4]
call dword [0x10241c8]
add edi, 0x10
cmp edi, esi
jb 0x101cead
mov eax, edi
pop edi
pop esi
ret
jmp 0x101ce26

Function at 0x101ced5
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1004da0
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101cf2d
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x1004ddc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101cf20
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x101cf2f
xor eax, eax
pop esi
leave
ret 4

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0x237976a0
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
mov ecx, 0x12704224
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x402090
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
xor edi, edi
push 0x2000
push edi
and ebx, 0xffff
push edi
push edi
mov esi, ecx
push ebx
push edi
mov dword [esp + 0x2c], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadImageA]
push eax
lea ecx, [esi + 4]
call fcn.0041fa81
push 2
push ebx
push edi
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x40214d
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, edi
je 0x40214d
mov eax, dword [ebx]
cmp eax, 0x28
mov dword [esp + 0x10], eax
jb 0x40214d
mov cx, word [ebx + 0xe]
cmp cx, 8
ja 0x40214d
mov ebp, dword [ebx + 0x20]
cmp ebp, edi
jne 0x402115
mov ebp, 1
shl ebp, cl
mov eax, dword [ebx + 4]
mov dword [esi + 0x14], eax
mov ecx, dword [ebx + 8]
mov dword [esi + 0x18], ecx
lea esi, [ebp*4 + 0x2c]
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
mov dword [esp + 0x1c], edi
je 0x40214d
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x402159
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
mov ecx, esi
mov esi, ebx
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebp*4 + 8]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x4021a1
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test ebp, ebp
mov word [edi], 0x300
mov word [edi + 2], bp
jle 0x4021e0
mov ecx, dword [esp + 0x10]
lea eax, [edi + 5]
lea ecx, [ecx + ebx + 2]
mov dl, byte [ecx - 2]
add ecx, 4
mov byte [eax + 1], dl
mov dl, byte [ecx - 5]
mov byte [eax], dl
mov dl, byte [ecx - 4]
mov byte [eax - 1], dl
mov byte [eax + 2], 0
add eax, 4
dec ebp
jne 0x4021c2
push 8
call fcn.00419aa4
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x4021fb
mov dword [eax + 4], ebx
mov dword [eax], 0x427964
mov ebx, eax
mov ebp, dword [esp + 0x14]
push edi
mov dword [ebp + 0xc], ebx
call dword [sym.imp.GDI32.dll_CreatePalette]
push eax
mov ecx, ebx
call fcn.0041fa81
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GlobalFree]
call esi
mov ebx, dword [esp + 0x1c]
push ebx
call edi
push ebx
call esi
mov eax, 1
pop edi
mov dword [ebp + 0x10], eax
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x417d50
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040b990
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x417e1b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x417e1b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x417dce
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x417dd9
or bh, 8
and edi, 0x8000000
je 0x417df4
mov eax, dword [0x1038b1c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x417e1b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4181f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41821b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41823f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41825a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x41cdb8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41cdfa
call fcn.00422915
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41cdfa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41cdf1
xor eax, eax
jmp 0x41ce02
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041ce08
pop edi
pop esi
pop ebx
ret 4

Function at 0x420f63
Capabilities:
Create http request

Disassembly:
mov eax, 0x425664
call fcn.0040ac2c
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x420f9b
call fcn.00422915
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x420fc0
push eax
push dword [esi + 4]
call fcn.00421c41
jmp 0x420fcc
push esi
push eax
mov ecx, 0x10354e8
call fcn.00420fdd
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x4212aa
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x4256c3
call fcn.0040ac2c
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0041dca1
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [0x1031460]
xor edi, edi
mov dword [ebx], eax
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
mov dword [esi], vtable.CInternetFile.0
call fcn.00419f25
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.00419f25
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x101383b8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [ebp + 8]
mov ecx, dword [0x101b4ef4]
add ecx, 0xf46
mov dword [0x101b4ef4], ecx
mov dword [ebp - 0x10], eax
call fcn.1013868a
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov esi, dword [eax + esi + 0x78]
mov dword [0x101b4ef4], 0x6e4
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
je 0x101384f4
jmp 0x1013844f
mov eax, dword [ebp - 0x28]
mov ecx, eax
mov edx, dword [ebp - 0x2c]
add ecx, edx
mov esi, dword [ebp - 0x1c]
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 - 0x30], eax
mov byte [ebp - 0x31], bh
mov byte [ebp - 0x32], cl
jne 0x1013847d
mov al, byte [ebp - 0x32]
test al, 1
jne 0x101384d1
jmp 0x101384ab
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov esi, dword [ebp - 0x14]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edx
jmp 0x10138419
mov eax, dword [ebp - 0x30]
add eax, 1
mov cl, byte [ebp - 0x31]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x32]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x28], eax
jne 0x10138419
jmp 0x10138442
xor eax, eax
mov ecx, dword [ebp - 0x40]
add ecx, 1
mov edx, dword [ebp - 0x44]
add edx, 2
mov esi, dword [ebp - 0x18]
cmp ecx, esi
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x24], eax
jb 0x10138461
jmp 0x101384f4
mov eax, dword [ebp - 0x44]
movzx ecx, word [eax]
mov dword [0x101b4ef4], 0x338
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [ebp - 0x24], edi
mov eax, dword [ebp - 0x24]
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10138894
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [0x101b4ef4], 0x332
mov dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
mov ecx, dword [0x101b4ef4]
add ecx, 0xfffff07e
mov dword [0x101b4ef4], ecx
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x3c]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], eax
jmp 0x10138923
mov eax, dword [ebp - 0x18]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], eax
jl 0x10138923
jmp 0x10138939
mov dword [0x101b4ef4], 0x1089
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff6
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
cmp word [eax + ecx*2], 0x64
je 0x10138991
jmp 0x101389e8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
jne 0x101388e2
mov eax, dword [ebp - 0x1c]
mov dword [0x101b4ef8], 0x346
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x20], eax
jne 0x101389e8
mov dword [0x101b4ef8], 0x1343
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x101389e8
mov dword [0x101b4ef4], 0xfffff99d
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x101388fb
jmp 0x101389e8
mov dword [0x101b4ef4], 0x1be
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x101389e8
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff8
shl eax, 1
mov ecx, dword [ebp - 0x10]
add ecx, eax
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
cmp word [eax], 0x6c
jne 0x101389e8
mov eax, 1
mov dword [0x101b4ef4], 0x9b4
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x2c], eax
je 0x101389ef
xor eax, eax
mov dword [ebp - 0x2c], eax
jmp 0x101389ef
mov eax, dword [ebp - 0x2c]
add esp, 0x2c
pop ebp
ret
Function at 0x10138b72
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov esi, dword [0x101b4ef4]
mov dword [0x101b4ef8], 0x50b
add esi, 0x58f
mov dword [0x101b4ef4], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
jmp 0x10138c63
mov eax, dword [ebp - 0x34]
mov ecx, dword [0x101b4ef4]
add ecx, 0x13a5
mov dword [0x101b4ef8], ecx
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 ecx, dword [0x101b4ef4]
add ecx, 0x1367
mov dword [0x101b4ef8], ecx
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x38], eax
call fcn.10139628
xor eax, eax
mov ecx, dword [ebp - 0x38]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xc0
mov dword [ecx + 0xc0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x48], ecx
mov ecx, dword [ebp - 0x38]
mov dword [edx + 0x3c], ecx
mov dword [0x101b4ef4], 0x51f
add ecx, 0x13a8
mov esi, dword [ebp - 0x38]
cmp esi, 0
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], eax
je 0x10138c5a
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
add esp, 0x50
pop esi
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov cl, byte [eax + 0x1014123e]
mov dl, byte [eax + 0x1014120f]
sub dl, cl
mov byte [ebp + eax - 0x24], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x30], eax
jne 0x10138c63
lea eax, [ebp - 0x24]
mov dword [0x101b4ef8], 0x43d
mov dword [ebp - 0x44], eax
call fcn.10139334
mov dword [esp], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
call fcn.101384ff
cmp eax, 0
mov dword [ebp - 0x34], eax
jne 0x10138bab
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x10138cc3
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]
xor ecx, ecx
mov edx, dword [0x101b4ef4]
add edx, 0xfffff8c9
mov dword [0x101b4ef8], edx
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
jmp 0x10138da9
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x140]
lea edx, section..data
imul esi, eax, 0x58
mov edi, edx
add edi, esi
add edi, 0x54
mov esi, dword [edi]
imul edi, eax, 0x58
mov ebx, edx
add ebx, edi
add ebx, 0x10
mov edi, dword [ebx]
imul ebx, eax, 0x58
add edx, ebx
add edx, 0x50
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x144]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], ecx
mov dword [ebp - 0x150], edx
call fcn.1013973a
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x14c]
add eax, ecx
mov edx, dword [ebp - 0x148]
add edx, 1
cmp edx, 0x314
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x13c], edx
je 0x10138ec0
jmp 0x10138cff
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
imul esi, ecx, 0x58
mov edi, edx
add edi, esi
add edi, 0x50
imul esi, ecx, 0x58
add edx, esi
add edx, 0x54
add ecx, 1
mov edx, dword [edx]
movzx esi, word [edi]
xor esi, edx
add esi, eax
cmp ecx, 0x314
mov eax, esi
mov dword [ebp - 0x154], esi
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jne 0x10138da9
xor eax, eax
mov dword [0x101b4ef4], 0x197e
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x158]
mov cl, byte [eax + 0x1014123e]
mov dl, byte [eax + 0x1014120f]
sub dl, cl
mov byte [ebp + eax - 0x12c], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x158], eax
jne 0x10138e16
lea eax, [ebp - 0x12c]
mov dword [0x101b4ef8], 0x43d
mov dword [ebp - 0x15c], eax
call fcn.10139334
mov dword [esp], eax
mov eax, dword [ebp - 0x15c]
mov dword [esp + 4], eax
call fcn.101384ff
mov dword [0x101b4f14], eax
mov dword [0x101b4ef8], 0x15d1
mov ecx, esp
mov edx, dword [ebp - 0x154]
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, ecx
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x13c], ecx
jmp 0x10138cff
lea eax, [0x1014121d]
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.1013945c
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
mov ecx, dword [ebp - 0x144]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x154]
mov dword [esp + 0xc], edx
call fcn.10139131
xor eax, eax
mov ecx, dword [ebp - 0x144]
add ecx, 0xa4fe2
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [edx + 4], 0x10be00
mov dword [0x101b4ef8], 0x309
mov ecx, dword [ebp - 0x144]
add ecx, 0x8c3e4
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x1f50
mov dword [0x101b4ef4], 0xae8
add esp, 0x168
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10138fb3
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov esi, esp
mov eax, 0x10
call fcn.101380d0
mov eax, esp
and eax, 0xfffffff8
mov esp, eax
mov dword [0x101b4ef4], 0x85f
mov dword [esi + 0x1c], eax
call fcn.10001083
xor ecx, ecx
cmp eax, 0
mov dword [esi + 0x18], ecx
je 0x10139085
jmp 0x10139126
sub esp, 4
mov eax, dword [esi + 0x1c]
mov dword [esp], eax
call fcn.10138cc3
add esp, 4
lea ecx, [0x10138b14]
mov edx, dword [esi + 0x1c]
mov edi, dword [edx]
mov dword [esi + 0x64], edi
mov dword [0x101b4ef8], 0x2662
mov dword [esi + 0x40], 0x10be00
mov edi, dword [0x101b4ee0]
mov dword [esi + 0x24], edi
mov edi, dword [0x101b4ee4]
mov dword [esi + 0x58], edi
mov edi, dword [0x101b4ee8]
mov dword [esi + 0x48], edi
mov edi, dword [0x101b4eec]
mov dword [esi + 0x74], edi
mov edi, dword [0x101b4ef0]
mov dword [esi + 0x60], edi
mov dword [0x101b4ef4], 0x18f4
mov dword [esi + 0x14], eax
mov dword [esi + 0x10], ecx
jmp 0x10139076
mov eax, dword [esi + 0xc]
mov dword [esi + 0x18], eax
jmp 0x10139126
mov eax, dword [esi + 0x10]
cmp word [eax], 0x5a4d
mov dword [esi + 8], eax
je 0x101390b4
jmp 0x101390c5
lea eax, [esi + 0x20]
mov ecx, dword [0x101b4ef8]
add ecx, 0xffffff68
mov dword [0x101b4ef8], ecx
mov dword [esi + 4], eax
call fcn.10138894
xor ecx, ecx
cmp eax, 0
mov dword [esi + 0xc], ecx
je 0x10138ffc
jmp 0x1013906b
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esi], ecx
je 0x101390d7
mov eax, dword [esi + 8]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esi + 0x10], eax
jmp 0x10139076
lea eax, [esi + 0x20]
mov ecx, dword [esi + 8]
mov dword [esi + 0x50], ecx
mov edx, dword [esi]
mov edi, dword [ecx + edx + 0x50]
mov dword [esi + 0x4c], edi
mov dword [0x101b4ef4], 0x1aa2
mov edi, dword [esi + 0x1c]
mov ebx, dword [edi + 8]
push ebx
push eax
call fcn.10138b72
add esp, 8
mov dword [0x101b4ef8], 0x80f
sub esp, 4
mov ecx, esp
lea edx, [esi + 0x20]
mov dword [ecx], edx
call eax
mov eax, 1
mov dword [esi + 0xc], eax
jmp 0x1013906b
mov eax, dword [esi + 0x18]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret