joyce8/EMBER2024-capa huggingface dataset:
Function at 0xb937aa
Capabilities:
Encode data using xor

Disassembly:
jmp 0xb8a2ca
jmp 0xb8abdb
xor al, al
jmp 0xb87d60
jmp 0xb8a2ca
cmp word [edi], 0
jmp 0xbac8ed
jmp 0xb8ace5
add esp, 4
jmp 0xb937e2
sub esp, 4
mov dword [esp], ebx
push ecx
mov ecx, 0xac7e88b
mov dword [esp + 4], ecx
pop ecx
mov dword [esp], ebx
pop eax
push eax
sub esp, 4
mov dword [esp], ebx
mov ebx, 0x560fce82
mov dword [esp + 4], ebx
pop ebx
mov dword [esp], ebx
pop eax
push ecx
mov dword [esp], ebx
mov ebx, dword [esp]
sub esp, 4
mov dword [esp], esi
mov esi, esp
add esi, 4
add esi, 4
xchg dword [esp], esi
pop esp
push ecx
mov dword [esp], ebx
push dword [esp]
mov eax, dword [esp]
add esp, 4
add esp, 4
jmp 0xb9370a
call dword [ecx - 1]
xor al, 0x24
pop edx
push ecx
mov ecx, esp
add ecx, 4
add ecx, 4
xchg dword [esp], ecx
mov esp, dword [esp]
push esi
mov dword [esp], ebx
mov eax, dword [esp]
push ebp
mov ebp, esp
add ebp, 4
push eax
mov eax, 4
add ebp, eax
pop eax
xchg dword [esp], ebp
pop esp
push ebx
push dword [esp]
mov ebx, dword [esp]
add esp, 4
push esi
mov esi, esp
add esi, 4
add esi, 4
xchg dword [esp], esi
pop esp
jmp 0xb93715
jmp 0xbaec32
jmp 0x6e4393
jmp 0xba7e4d
push eax
push 2
pop eax
add edi, eax
push dword [esp]
pop eax
push edi
mov edi, esp
add edi, 4
add edi, 4
xchg dword [esp], edi
pop esp
jmp 0xba7ecd
jmp 0xb9e9e1
je 0x757820
jmp 0xba7daf
jmp 0xbaeca1
xor ebx, 0x1785ecb8
add ecx, ebx
pop ebx
sub ecx, 4
xchg dword [esp], ecx
jmp 0xbaed2a
sub esp, 4
mov dword [esp], ecx
mov ecx, esp
push ebx
mov ebx, 0x2fab946c
and ebx, 0x7fff53fa
not ebx
xor ebx, 0x6c7b8a4d
jge 0xbaeca1
jmp 0xbaed1b
shr ebx, 3
inc ebx
jp 0xbaed2a
jmp 0xbaec8a
pop esp
mov dword [esp], edi
pop ebx
jmp 0xbaed94
jmp 0xb87c48
Function at 0x401160
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41212f
mov eax, dword fs:[0]
push eax
mov eax, 0x13b8
call fcn.00411dd0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x13c0], esi
mov dword [ebp - 0x13b8], esi
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x13c4], esi
mov dword [ebp - 0x13bc], 0
push 0x40
movups xmmword [ebp - 0x2c], xmm0
call fcn.00402eef
movups xmm0, xmmword [str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov ecx, eax
mov dword [ebp - 0x1c], 0x3e
add esp, 4
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x18], 0x3f
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x41805c]
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [0x41806c]
movups xmmword [ecx + 0x20], xmm0
movq xmm0, qword [0x41807c]
movq qword [ecx + 0x30], xmm0
mov eax, dword [0x418084]
mov dword [ecx + 0x38], eax
mov ax, word [0x418088]
mov word [ecx + 0x3c], ax
mov byte [ecx + 0x3e], 0
mov dword [ebp - 4], 1
call fcn.00402d76
mov edx, eax
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x13b0], edx
mov ecx, 1
nop dword [eax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [ebp + ecx*4 - 0x13b0], edx
inc ecx
cmp ecx, 0x270
jb 0x401240
xorps xmm0, xmm0
mov dword [ebp - 0x13b4], 0x270
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov dword [ebp - 0x13bc], 1
mov edi, 0xa
nop dword [eax]
lea ecx, [ebp - 0x13b4]
call fcn.00402c00
mov ecx, 0x3e
mul ecx
cmp eax, ecx
jae 0x4012d8
cmp eax, 4
jae 0x4012d8
mov esi, ecx
nop dword [eax]
lea ecx, [ebp - 0x13b4]
call fcn.00402c00
mul esi
cmp eax, 4
jb 0x4012c0
mov esi, dword [ebp - 0x13c0]
mov ecx, dword [ebp - 0x2c]
lea eax, [edx - 0x80000000]
mov edx, dword [esi + 0x14]
xor eax, 0x80000000
mov al, byte [eax + ecx]
mov ecx, dword [esi + 0x10]
mov byte [ebp - 0x14], al
cmp ecx, edx
jae 0x401312
lea eax, [ecx + 1]
mov dword [esi + 0x10], eax
mov eax, esi
cmp edx, 0xf
jbe 0x401305
mov eax, dword [esi]
add eax, ecx
mov cl, byte [ebp - 0x14]
mov byte [eax + 1], 0
mov byte [eax], cl
jmp 0x40132a
push dword [ebp - 0x14]
mov byte [ebp - 0x13b8], 0
push dword [ebp - 0x13b8]
push ecx
mov ecx, esi
call fcn.00402620
sub edi, 1
jne 0x4012a0
push 0x40
push dword [ebp - 0x2c]
call fcn.00402f1f
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00402ee1
mov esp, ebp
pop ebp
ret
Function at 0x401550
Capabilities:
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
mov esi, dword [ecx + 0x10]
mov eax, 0x7ffffffe
push edi
mov edi, dword [edx + 0x10]
sub eax, esi
cmp eax, edi
jb 0x401603
cmp dword [ecx + 0x14], 7
jbe 0x401583
mov ecx, dword [ecx]
cmp dword [edx + 0x14], 7
jbe 0x40158b
mov edx, dword [edx]
push edi
push edx
push esi
push ecx
push ecx
push dword [esp + 0x1c]
lea ecx, [esp + 0x24]
call fcn.00402880
cmp dword [esp + 0x20], 7
lea eax, [esp + 0xc]
push 0
cmova eax, dword [esp + 0x10]
push 0
push 0
push eax
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov ecx, dword [esp + 0x20]
cmp ecx, 7
jbe 0x4015f2
mov edx, dword [esp + 0xc]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4015e8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401608
push ecx
push edx
call fcn.00402f1f
add esp, 8
mov ecx, dword [esp + 0x24]
pop edi
pop esi
xor ecx, esp
call fcn.00402ee1
mov esp, ebp
pop ebp
ret
call fcn.00401150
call fcn.00406317
int3
Function at 0x402c00
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x402c5d
lea edx, [esi + 8]
mov edi, eax
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x402c20
mov eax, dword [esi]
jmp 0x402d3b
cmp eax, 0x4e0
jb 0x402d3b
lea edi, [esi + 0x9c4]
mov esi, 0xe3
push ebx
mov ebx, dword [edi]
lea edx, [edi]
mov eax, ebx
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, ebx
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x634]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x402c76
mov edi, dword [ebp - 4]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
mov eax, ebx
lea edx, [edi]
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx - 0xd4c]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x402cc1
mov esi, dword [ebp - 4]
pop ebx
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40376a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4037a9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4037a9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4037a9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4037a9
cmp dword [ecx + 0x74], 0xe
jbe 0x4037a9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4097d2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x414a94
push 0x414a8c
push str.FlsAlloc
push 0x1f
call fcn.00409691
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409806
push dword [ebp + 8]
mov ecx, esi
call dword [0x413138]
call esi
jmp 0x40980c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x409850
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x414aa4
push 0x414a9c
push str.FlsGetValue
push 0x21
call fcn.00409691
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409887
push dword [ebp + 8]
mov ecx, esi
call dword [0x413138]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40988f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x414aac
push 0x414aa4
push str.FlsSetValue
push 0x22
call fcn.00409691
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4098c9
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x413138]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40ae4e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40aeeb
push ebx
push esi
call fcn.0040ae17
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040adab
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40ae98
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40aeea
push edi
push eax
call fcn.00409a34
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40aeb8
call fcn.00407e32
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40aee9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040adab
add esp, 0x20
test eax, eax
jne 0x40aed7
push edi
call fcn.00407e32
jmp 0x40aedf
push ebx
call fcn.00407e32
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40aeee
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x40aeff
pop esi
ret
push ebx
push edi
push esi
call fcn.0040ae17
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00409a34
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40af27
push ebx
push esi
push edi
call fcn.004058d0
add esp, 0xc
push 0
call fcn.00407e32
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40b684
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040b19f
Function at 0x411cf0
Capabilities:
Parse pe header

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

Function at 0x4c5f51
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4cd390
cmp edx, dword [eax]
je 0x4c5f73
add eax, 8
inc ecx
cmp eax, 0x4cd420
jl 0x4c5f64
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4cd390]
jne 0x4c60a1
mov eax, dword [0x4d2dc0]
cmp eax, 1
je 0x4c607b
test eax, eax
jne 0x4c5fa4
cmp dword [0x4cd2bc], 1
je 0x4c607b
cmp edx, 0xfc
je 0x4c60a1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c5fdb
lea eax, [ebp - 0x1a4]
push 0x4cb6b8
push eax
call fcn.004c6930
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c6dc0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c601e
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c6dc0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4cb6b4
push edi
call fcn.004c8c90
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4cb698
push eax
call fcn.004c6930
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c6940
lea eax, [ebp - 0xa0]
push 0x4cb694
push eax
call fcn.004c6940
push dword [esi + 0x4cd394]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c6940
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4cb66c
push eax
call fcn.004c8c04
add esp, 0x2c
pop edi
jmp 0x4c60a1
lea eax, [ebp + 8]
lea esi, [esi + 0x4cd394]
push 0
push eax
push dword [esi]
call fcn.004c6dc0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10001640
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x100016af
mov esi, dword [edi + 0x3c]
add esi, edi
cmp dword [esi], 0x4550
jne 0x100016af
test esi, esi
je 0x100016af
push 0
push dword [esi + 0x50]
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x100016af
cmp ebx, 0xffffffff
je 0x100016af
push dword [esi + 0x50]
push 0
push 0
push 2
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x100016c2
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10001b8a
mov esp, ebp
pop ebp
ret
push dword [esi + 0x54]
push edi
push eax
call fcn.10004680
movzx edx, word [esi + 0x14]
xor eax, eax
add edx, esi
add esp, 0xc
xor ebx, ebx
mov dword [ebp - 0x18], edx
cmp ax, word [esi + 6]
jae 0x1000170d
movzx eax, bx
lea ecx, [eax + eax*4]
push dword [edx + ecx*8 + 0x28]
mov eax, dword [edx + ecx*8 + 0x2c]
add eax, edi
push eax
mov eax, dword [edx + ecx*8 + 0x24]
add eax, dword [ebp - 0x14]
push eax
call fcn.10004680
mov edx, dword [ebp - 0x18]
inc ebx
add esp, 0xc
cmp bx, word [esi + 6]
jb 0x100016e2
mov edi, dword [esi + 0x50]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
test edi, edi
je 0x10001788
cmp edi, 0x7fffffff
ja 0x10001814
cmp edi, 0x1000
jb 0x10001766
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x10001819
push eax
call fcn.10001b98
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x1000181e
lea eax, [ecx + 0x23]
and eax, 0xffffffe0
mov dword [eax - 4], ecx
jmp 0x1000176f
push edi
call fcn.10001b98
add esp, 4
push edi
push dword [ebp - 0x14]
lea esi, [eax + edi]
mov dword [ebp - 0x10], eax
push eax
mov dword [ebp - 8], esi
call fcn.10004680
add esp, 0xc
mov dword [ebp - 0xc], esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0xc]
sub esi, dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x10]
mov esi, eax
test esi, esi
je 0x100017d4
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push ecx
push esi
call fcn.10004680
mov ecx, dword [ebp - 0x10]
add esp, 0xc
cmp ecx, dword [ebp - 0xc]
je 0x100017d4
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x10001801
mov edx, dword [ebp - 8]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x100017f7
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000181e
push edx
push ecx
call fcn.10001bcd
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001b8a
mov esp, ebp
pop ebp
ret
call fcn.10001a90
call fcn.100011a0
call fcn.10006e5a
int3
Function at 0x10002172
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x100021a7
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x100021a4
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x100021b0
add edx, 0x28
cmp edx, esi
jne 0x10002192
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x100021ad

Function at 0x10007417
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10007456
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10007456
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10007456
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10007456
cmp dword [ecx + 0x74], 0xe
jbe 0x10007456
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1000bd96
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000be33
push ebx
push esi
call fcn.1000bd5f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000bcf5
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000bde0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000be32
push edi
push eax
call fcn.100089d0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000be00
call fcn.10008080
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000be31
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000bcf5
add esp, 0x20
test eax, eax
jne 0x1000be1f
push edi
call fcn.10008080
jmp 0x1000be27
push ebx
call fcn.10008080
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x1000f57b
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x1000f595
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x1000f5ac
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x1000f604
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.1000d35b
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x1000f604
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1000f604
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1000f604
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x1000f5fe
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x1000f600
xor bl, bl
mov al, bl
jmp 0x1000f606
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x100137d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100137fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100137fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403a90
Capabilities:
Encode data using xor

Disassembly:
fist word [eax - 0x74aa6f70]
in al, dx
sub esp, 0x14
dec edi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0xc]
test eax, eax

Function at 0x404e00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
in al, dx
in al, dx
or al, 0x53
mov ebx, dword [ebp + 8]
push esi
push edi
lea esi, [ebx - 0x40]
push esi
call 0xa4056f0
mov eax, dword [ebx + 0x73]
add esp, 0xffffff8b
test eax, eax
or eax, 0xc706
add bh, al
xor al, 0x3c
add byte [eax], al
add byte [eax], al
je 0x404e02
push eax
call 0x5f3f6d00
mov esp, dword [esi + 0x75f485df]
scasb al, byte es:[edi]
invalid
Function at 0x4038e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x460643
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x47b748]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], vtable.std::locale::_Locimp.0
push esi
mov dword [esp + 0x18], 1
call fcn.0044d74c
add esp, 4
cmp dword [esi + 0x30], 0x10
jb 0x403931
mov eax, dword [esi + 0x1c]
push eax
call fcn.00416dc5
add esp, 4
xor eax, eax
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], eax
mov byte [esi + 0x1c], al
mov dword [esi], vtable.std::locale::facet.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x403be0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x45fa43
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebp
push esi
push edi
mov eax, dword [0x47b748]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, dword [esp + 0x34]
mov ecx, esi
call fcn.0041b696
xor edi, edi
mov dword [esp + 0x2c], edi
lea ebp, [esi + 0x10]
mov dword [esi], vtable.CMemDC.0
mov dword [ebp + 4], edi
mov dword [ebp], vtable.CBitmap.0
mov byte [esp + 0x2c], 1
xor eax, eax
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], ebx
cmp dword [ebx + 0xc], edi
sete al
cmp eax, edi
mov dword [esi + 0x30], eax
je 0x403cf0
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.0041baeb
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
lea edi, [esi + 0x20]
je 0x403c8d
mov edx, dword [ebx]
mov eax, dword [edx + 0x50]
push edi
mov ecx, ebx
call eax
jmp 0x403ca8
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov dword [edi], ecx
mov ecx, dword [esp + 0x44]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
mov eax, dword [edi + 0xc]
sub eax, dword [edi + 4]
mov ecx, dword [edi + 8]
sub ecx, dword [edi]
mov edx, dword [ebx + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebp
call fcn.0041bdb2
test ebp, ebp
je 0x403cce
mov ebp, dword [ebp + 4]
mov eax, dword [esi + 4]
push ebp
push eax
call fcn.0041be37
mov ecx, dword [esi + 0x24]
mov edx, dword [edi]
push ecx
mov dword [esi + 0x18], eax
push edx
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.0041b7aa
jmp 0x403d02
mov ecx, dword [ebx + 0xc]
mov dword [esi + 0xc], ecx
mov edx, dword [ebx + 4]
mov dword [esi + 4], edx
mov eax, dword [ebx + 8]
mov dword [esi + 8], eax
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x20
ret 0x14