joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1e4bccc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
cmp dword [ebp + 0x14], 0
jne 0x1e4bcdf
xor eax, eax
jmp 0x1e4be63
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
and dword [ebp - 0x24], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
movzx eax, word [eax + 4]
cmp eax, 0x14c
jne 0x1e4bd1d
mov eax, dword [ebp - 8]
add eax, 0xf8
mov dword [ebp - 0xc], eax
jmp 0x1e4bd36
mov eax, dword [ebp - 8]
movzx eax, word [eax + 4]
cmp eax, 0x8664
jne 0x1e4bd36
mov eax, dword [ebp - 8]
add eax, 0x108
mov dword [ebp - 0xc], eax
and dword [ebp - 0x10], 0
jmp 0x1e4bd43
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x10], eax
je 0x1e4bd7c
imul eax, dword [ebp - 0x10], 0x28
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x24]
push eax
push 0x40
imul eax, dword [ebp - 0x10], 0x28
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 8]
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1e4bd3c
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x2c]
jae 0x1e4be1c
mov eax, dword [ebp + 0xc]
add eax, 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
sub eax, 8
shr eax, 1
mov dword [ebp - 0x30], eax
and dword [ebp - 4], 0
jmp 0x1e4bdac
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x30]
je 0x1e4be0b
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
test eax, eax
jne 0x1e4bdc4
jmp 0x1e4bda5
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
and eax, 0xfff
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
add ecx, eax
add ecx, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
sar eax, 0xc
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 3
je 0x1e4bdfc
jmp 0x1e4be09
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
add eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x20]
mov dword [ecx], eax
jmp 0x1e4bda5
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 4]
mov dword [ebp + 0xc], ecx
jmp 0x1e4bd7c
and dword [ebp - 0x14], 0
jmp 0x1e4be29
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax + 6]
cmp dword [ebp - 0x14], eax
je 0x1e4be61
imul eax, dword [ebp - 0x14], 0x28
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x38], edx
push 0
push dword [ebp - 0x24]
imul eax, dword [ebp - 0x14], 0x28
mov ecx, dword [ebp - 0xc]
push dword [ecx + eax + 8]
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x1e4be22
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1e4c00a
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x6c
mov eax, dword [esp + 0x70]
push ebx
push esi
push edi
mov esi, dword [eax]
xor edi, edi
call fcn.01e4bfcd
push esi
call fcn.01e4c1bb
push dword [esp + 0x84]
mov esi, eax
call fcn.01e4c1bb
push 0x58
mov dword [esp + 0x20], eax
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.01e44142
lea eax, [esp + 0x34]
push eax
push 5
push esi
call fcn.01e4bee7
mov ebx, eax
add esp, 0x20
cmp ebx, 5
jb 0x1e4c1a2
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push esi
call fcn.01e4c1f0
mov edi, eax
add esp, 0x14
test edi, edi
je 0x1e4c1a2
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [esp + 0x14], 0
mov ebp, eax
and dword [esp + 0x10], 0
lea eax, [esp + 0x14]
push eax
push 0x40
push ebx
push esi
push ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1e4c185
lea eax, [esp + 0x10]
push eax
push 0x40
push 0x6c
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1e4c16a
xor edx, edx
lea ecx, [edi + 0x2c]
test ebx, ebx
je 0x1e4c0eb
mov ebp, esi
sub ebp, ecx
mov al, byte [ecx + ebp]
mov byte [ecx], al
mov byte [edi + edx + 0x4c], al
inc edx
inc ecx
cmp edx, ebx
jb 0x1e4c0d5
mov ebp, dword [esp + 0x20]
lea ecx, [edi + 0x2c]
lea eax, [ebx + esi]
push eax
lea eax, [ecx + ebx]
push eax
call fcn.01e4bf88
mov edx, dword [esp + 0x20]
mov eax, edx
pop ecx
pop ecx
mov ecx, esi
sub eax, esi
sub ecx, edx
cmp edx, esi
cmovb eax, ecx
cmp eax, 0x7fff0000
jbe 0x1e4c134
lea eax, [edi + 0xc]
push edx
push eax
call fcn.01e4bf88
pop ecx
sub eax, edi
pop ecx
sub eax, 0xc
push eax
lea eax, [edi + 0xc]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [edi + 0xc]
jmp 0x1e4c136
mov eax, edx
push eax
push esi
call fcn.01e4bf88
mov eax, dword [esp + 0x20]
pop ecx
pop ecx
mov dword [edi + 8], eax
lea eax, [edi + 0x2c]
push ebx
push eax
push ebp
mov dword [edi + 4], ebx
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push 0x6c
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x18]
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp dword [edi], 0
pop ebp
je 0x1e4c196
mov ecx, dword [esp + 0x7c]
lea eax, [edi + 0x2c]
mov dword [ecx], eax
jmp 0x1e4c1a2
push 1
push edi
call fcn.01e4c2e4
pop ecx
pop ecx
xor edi, edi
push 0x1e50d40
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
add esp, 0x6c
ret
Function at 0x1e4c1f0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x40
push ebx
xor ebx, ebx
cmp dword [0x1e50d34], 0x40
jae 0x1e4c2dd
mov ecx, dword [esp + 0x48]
push ebp
push esi
mov esi, dword [esp + 0x54]
mov ebp, 0xfff80000
add esi, ecx
add ecx, dword [esp + 0x5c]
push edi
cmp ecx, 0x80000000
lea edi, [esp + 0x2c]
push 9
lea eax, [ecx + 0x7ff80000]
cmovb ebp, eax
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
lea edi, [esi - 0x7fff0000]
inc eax
cmp esi, 0x80000000
cmovb edi, eax
cmp edi, ebp
jae 0x1e4c2da
push 0x1c
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1e4c2b5
cmp dword [esp + 0x20], 0x10000
jne 0x1e4c2a7
mov eax, dword [esp + 0x1c]
cmp eax, 0x6c
jb 0x1e4c2ab
mov ecx, dword [esp + 0x48]
cmp eax, ecx
jb 0x1e4c2ab
lea eax, [ecx - 1]
xor edx, edx
add eax, edi
div ecx
push 0x20
imul eax, ecx
push 0x3000
push 0x6c
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
jne 0x1e4c2b9
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
add edi, eax
cmp edi, ebp
jb 0x1e4c258
test ebx, ebx
je 0x1e4c2da
xor eax, eax
cmp dword [eax*4 + 0x1e50d58], 0
je 0x1e4c2cd
inc eax
cmp eax, 0x40
jb 0x1e4c2bb
jmp 0x1e4c2da
inc dword [0x1e50d34]
mov dword [eax*4 + 0x1e50d58], ebx
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x40
ret
Function at 0x1e4d94c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x10c
push ebp
mov ebp, dword [esp + 0x118]
push edi
lea edi, [eax + ebp]
cmp eax, 8
ja 0x1e4d96f
push 0xffffffffffffffe2
pop eax
jmp 0x1e4db04
push ebx
mov ebx, dword [esp + 0x11c]
push esi
push 0x800
lea esi, [ebp + 8]
lea eax, [ebx + 0x5410]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [ebx + 0x140c]
push esi
push eax
call fcn.01e4fc43
add esp, 0x14
cmp eax, 0xffffff88
ja 0x1e4daff
add esi, eax
mov dword [esp + 0x18], 0x1c
mov eax, edi
sub eax, esi
push eax
push esi
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.01e4db6e
add esp, 0x14
mov dword [esp + 0x10], eax
cmp eax, 0xffffff88
ja 0x1e4daff
cmp dword [esp + 0x14], 8
ja 0x1e4daff
push dword [esp + 0x14]
lea eax, [esp + 0x30]
push dword [esp + 0x1c]
push eax
lea eax, [ebx + 0x804]
push eax
call fcn.01e4e029
add esp, 0x10
cmp eax, 0xffffff88
ja 0x1e4daff
add esi, dword [esp + 0x10]
mov eax, edi
sub eax, esi
mov dword [esp + 0x20], 0x34
push eax
push esi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0xc0]
push eax
call fcn.01e4db6e
add esp, 0x14
mov dword [esp + 0x10], eax
cmp eax, 0xffffff88
ja 0x1e4daff
cmp dword [esp + 0x1c], 9
ja 0x1e4daff
push dword [esp + 0x1c]
lea eax, [esp + 0xb4]
push dword [esp + 0x24]
push eax
lea eax, [ebx + 0xc08]
push eax
call fcn.01e4e029
add esp, 0x10
cmp eax, 0xffffff88
ja 0x1e4daff
add esi, dword [esp + 0x10]
mov eax, edi
sub eax, esi
mov dword [esp + 0x10], 0x23
push eax
push esi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x78]
push eax
call fcn.01e4db6e
add esp, 0x14
mov dword [esp + 0x28], eax
cmp eax, 0xffffff88
ja 0x1e4daff
cmp dword [esp + 0x24], 9
ja 0x1e4daff
push dword [esp + 0x24]
lea eax, [esp + 0x6c]
push dword [esp + 0x14]
push eax
push ebx
call fcn.01e4e029
add esp, 0x10
cmp eax, 0xffffff88
ja 0x1e4daff
add esi, dword [esp + 0x28]
lea eax, [esi + 0xc]
cmp eax, edi
ja 0x1e4daff
sub edi, esi
xor edx, edx
sub edi, 0xc
add ebx, 0x5c10
mov ecx, dword [esi]
add esi, 4
test ecx, ecx
je 0x1e4daff
cmp ecx, edi
jae 0x1e4daff
mov dword [ebx], ecx
inc edx
add ebx, 4
cmp edx, 3
jl 0x1e4dae1
sub esi, ebp
mov eax, esi
jmp 0x1e4db02
push 0xffffffffffffffe2
pop eax
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x10c
ret
Function at 0x10004377
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x10004386
pop dword [ebp - 0xc]
mov eax, 0xc9af1e30
add eax, 0x46512556
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0xca7e2be9
add dword [ebp - 0x1c], 0x83d41962
mov dword [ebp - 0x18], 0xba48255f
add dword [ebp - 0x18], 0x77eb26e6
mov dword [ebp - 0x14], 0xab25df22
sub dword [ebp - 0x14], 0x5ed99af4
mov dword [ebp - 0x10], 0xa7bccc97
sub dword [ebp - 0x10], 0xa7bccc97
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xc939faec
add dword [ebp - 0x1c], 0xab386e6a
mov dword [ebp - 0x18], 0xee673f2
add dword [ebp - 0x18], 0x3285ed83
mov dword [ebp - 0x14], 0x8e1b13c5
add dword [ebp - 0x14], 0xd55458a7
mov dword [ebp - 0x10], 0xa7316ec
add dword [ebp - 0x10], 0xf58ce914
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x377bc
push 0
call eax
mov ecx, 0x32b6fb00
add ecx, 0xcd4950bd
mov esi, eax
mov edx, 0x48314217
add edx, 0xc7cf65e9
add edx, dword [ebp - 0xc]
mov ebx, 0x712c61ea
add ebx, 0x5aeede6c
xor dword [ebp - 4], eax
mov edi, dword [edx]
add dword [ebp - 8], 0x70023420
add edi, ebx
mov dword [esi], edi
add dword [ebp - 4], edi
add esi, 4
add edx, 4
loop 0x1000449e
add eax, 0x121c7
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xe5d7ad75
add ecx, 0x2a28528b
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x10027b15
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x10027b24
pop dword [ebp - 0x2c]
mov eax, 0x686710d7
add eax, 0xa79b6a4d
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x33154f04
add dword [ebp - 0x3c], 0x1b3cf647
mov dword [ebp - 0x38], 0xfb4aac39
add dword [ebp - 0x38], 0x36e8a00c
mov dword [ebp - 0x34], 0x4784fbec
sub dword [ebp - 0x34], 0xfb38b7be
mov dword [ebp - 0x30], 0xbbe39e01
add dword [ebp - 0x30], 0x441c61ff
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x8a87c71e
add eax, 0x857b19d2
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xc5839886
sub dword [ebp - 0x3c], 0x51112f30
mov dword [ebp - 0x38], 0xf7926078
add dword [ebp - 0x38], 0x49da00fd
mov dword [ebp - 0x34], 0x2ac6b4d7
sub dword [ebp - 0x34], 0xc757486b
mov dword [ebp - 0x30], 0xea3fb22e
sub dword [ebp - 0x30], 0xea3fb22e
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0x526ac33
add eax, 0xadc3435
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x40a98
push 0
call eax
mov ecx, 0x43756f4a
sub ecx, 0x4375392c
mov edi, eax
mov esi, 0x837acd42
sub esi, 0x73766b42
add esi, dword [ebp - 0x2c]
mov ebx, 0x43885b07
add ebx, 0x49b7e1ef
add dword [ebp - 8], edi
mov edx, dword [esi]
xor edx, ebx
add dword [ebp - 0x24], 0x8e583fa8
mov dword [edi], edx
xor dword [ebp - 0xc], 0xc569fdbe
add edi, 0x8c3608db
add edi, 0x73c9f729
add esi, 4
loop 0x10027c46
add eax, 0xba5d1815
add eax, 0x45a3b336
mov ebx, eax
add eax, 0x5e9dfc49
sub eax, 0x5e9dfc44
mov ecx, 0x6f81e725
sub ecx, 0x5f81e725
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x532090
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xdb000]
push edi
jmp 0x5320aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5320b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5320a0
mov eax, 1
add ebx, ebx
jne 0x5320c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5320d4
jne 0x5320f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5320f3
dec eax
add ebx, ebx
jne 0x5320e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5320b8
add ebx, ebx
jne 0x5320ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x532145
xor ecx, ecx
sub eax, 3
jb 0x53210b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x53217a
sar eax, 1
mov ebp, eax
jmp 0x532116
add ebx, ebx
jne 0x532116
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5320e4
inc ecx
add ebx, ebx
jne 0x532124
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5320e4
add ebx, ebx
jne 0x532131
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x532126
jne 0x532142
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x532126
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x532164
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x532156
jmp 0x5320a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x532164
add edi, ecx
jmp 0x5320a6
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x532182
cmp byte [edi], 0x11
jne 0x532182
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 0x532187
lea edi, [esi + 0x12b000]
mov eax, dword [edi]
or eax, eax
je 0x5321ff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x18b5a0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18b71c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5321b4
mov ecx, edi
jns 0x5321e3
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 + 0x18b720]
or eax, eax
je 0x5321f9
mov dword [ebx], eax
add ebx, 4
jmp 0x5321d1
call dword [esi + 0x18b730]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x532230
cmp al, 0xef
ja 0x532223
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x532205
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x532212
mov ebp, dword [esi + 0x18b724]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x532264
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x10003ae0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov ecx, dword [esi + 4]
sub ecx, 1
js 0x10003b0b
mov eax, dword [esi + 8]
lea edx, [eax + ecx*4]
mov eax, dword [edx]
movzx eax, word [eax + 6]
cmp eax, 4
je 0x10003b1e
cmp eax, 0xd
je 0x10003b1e
sub edx, 4
sub ecx, 1
jns 0x10003af3
mov eax, dword [esi]
sub eax, 1
je 0x10003b2c
sub eax, 2
je 0x10003b25
mov eax, 2
pop esi
ret
mov eax, 1
pop esi
ret
mov edx, 0x100040e0
jmp 0x10003b31
mov edx, 0x10004020
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0x18]
sub edx, eax
sub edx, 0xa
mov dword [ecx + 1], eax
mov eax, dword [esp + 0x10]
mov byte [ecx], 0xb8
mov byte [ecx + 5], 0xe9
mov dword [ecx + 6], edx
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + 0xc], esi
mov dword [ecx + 0x14], eax
xor eax, eax
pop esi
ret

Function at 0x10004c6f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x10004c7e
pop dword [ebp - 0x18]
mov eax, 0x10004c7e
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x329e6
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0xbb15fdaf
sub ecx, 0xbb15c537
xor edx, edx
add edx, eax
mov edi, 0x10007400
add edi, dword [ebp - 0x18]
mov esi, 0xc9e9b5e0
sub esi, 0xe6de0406
mov dword [ebp - 0xc], 0xa248d76b
mov ebx, dword [edi]
xor dword [ebp - 0xc], 0xf024f3cf
sub ebx, esi
xor dword [ebp - 0x10], edi
mov dword [edx], ebx
xor dword [ebp - 0x10], 0xbaa9279b
add edx, 0x3515c19e
sub edx, 0x3515c19a
add edi, 4
loop 0x10004ccf
add eax, 0x15727c1e
add eax, 0xea8e5895
xor ebx, ebx
add ebx, eax
add eax, 0xba19908e
sub eax, 0xba199089
mov ecx, 0x8e80b7dc
sub ecx, 0x7e80b7dc
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x401310
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4276e7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [esp + 0xc], 0
lea eax, [esp + 0x30]
push 0x43205c
lea ecx, [esp + 0x18]
push eax
push ecx
mov dword [esp + 0x2c], 2
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
lea ecx, [esp + 0x2c]
push eax
mov byte [esp + 0x24], 3
call sub.MFC42.DLL_CString::Find
lea ecx, [esp + 0x14]
mov edi, eax
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString
cmp edi, 0xffffffff
jne 0x401390
mov esi, dword [esp + 0x28]
push 0x434328
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov ebx, 1
mov dword [esp + 0xc], ebx
jmp 0x4013e3
lea edx, [esp + 0x30]
push 0x432058
lea eax, [esp + 0x18]
push edx
push eax
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
lea ecx, [esp + 0x2c]
push eax
mov byte [esp + 0x24], 4
call sub.MFC42.DLL_CString::Find
lea ecx, [esp + 0x14]
mov esi, eax
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString
cmp esi, 0xffffffff
jne 0x401414
mov esi, dword [esp + 0x28]
push 0x434328
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov ebx, 1
mov dword [esp + 0xc], ebx
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
push ebp
mov ebp, dword [ecx - 8]
mov eax, dword [edx - 8]
sub eax, ebp
lea ecx, [esp + 0x30]
sub eax, edi
sub eax, 3
push eax
lea eax, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CString::Right
sub esi, ebp
lea ecx, [esp + 0x14]
sub esi, edi
mov byte [esp + 0x24], 5
sub esi, 3
push esi
push ecx
mov ecx, eax
call sub.MFC42.DLL_CString::Left
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 7
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x2c]
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov ebx, 1
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], ebx
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc

Function at 0x4014c0
Capabilities:
Hash data using crc32b

Disassembly:
mov eax, dword [esp + 8]
or ecx, 0xffffffff
mov edx, eax
push esi
mov esi, dword [esp + 8]
and edx, reloc.FTD2XX.dll_Ordinal_3
jns 0x4014db
dec edx
or edx, 0xfffffffc
inc edx
je 0x4014f1
push 0
push 0
push str.crc32_error
call sub.MFC42.DLL_AfxMessageBox
xor eax, eax
pop esi
ret 8
cdq
and edx, 3
add eax, edx
sar eax, 2
mov edx, eax
dec eax
test edx, edx
je 0x40152a
lea edx, [eax + 1]
mov eax, dword [esi]
add esi, 4
xor ecx, eax
mov eax, 0x20
test ecx, 0x80000000
je 0x401522
add ecx, ecx
xor ecx, 0x4c11db7
jmp 0x401524
shl ecx, 1
dec eax
jne 0x401510
dec edx
jne 0x401504
mov eax, ecx
pop esi
ret 8
Function at 0x402220
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, 0x4154
call fcn.004273a0
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [esp + 0x416c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ecx
call ebp
lea edx, [esp + 0x118]
mov ecx, ebx
push edx
call fcn.004021c0
mov esi, dword [esp + 0x4168]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov dword [esp + 0x160], edx
mov edi, edx
mov edx, ecx
push 0x105
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x164]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x160], 1
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
mov ecx, 0x41
xor eax, eax
mov dword [esp + 0x16c], edi
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, 0x432dc8
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x164]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x118]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [ebx + 0x14]
lea ecx, [esp + 0x118]
push ecx
mov ecx, ebx
call fcn.00402180
lea edx, [esp + 0x10]
push edx
call ebp
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x4154
ret 8