joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5850ec
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
or edi, 0xffffffff
cmp edx, 0x40
jl 0x585145
mov ecx, eax
cmp word [ecx], 0x5a4d
jne 0x585145
mov ecx, eax
mov esi, dword [ecx + 0x3c]
mov ebx, esi
add ebx, 0x78
cmp edx, ebx
jl 0x585145
add eax, esi
mov ecx, dword [eax]
mov edx, ecx
and edx, 0xffff
cmp edx, 0x454e
jne 0x585129
mov edi, 0xca
jmp 0x585145
cmp edx, 0x454c
jne 0x585138
mov edi, 0xc9
jmp 0x585145
cmp ecx, 0x4550
jne 0x585145
mov edi, 0xc8
mov eax, edi
pop edi
pop esi
pop ebx
ret

Function at 0x59c530
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x59c60c
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebx + 0xc], eax
mov byte [ebx + 0x10], 0
mov eax, dword [ebp - 4]
mov dword [ebx], eax
mov eax, dword [0x5c637c]
mov eax, dword [eax + 0x34]
mov dword [ebx + 0x24], eax
mov eax, dword [0x5c637c]
mov eax, dword [eax + 0x38]
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x50], 0x40
mov dword [ebx + 0x14], esi
mov dword [ebx + 0x18], edi
mov ecx, dword [ebx + 0x50]
mov eax, esi
cdq
idiv ecx
imul ecx
add eax, ecx
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], edi
xor eax, eax
mov dword [ebx + 0x30], eax
mov eax, dword [ebx + 0x38]
dec eax
mov dword [ebx + 0x34], eax
xor eax, eax
mov dword [ebx + 0x40], eax
xor eax, eax
mov dword [ebx + 0x44], eax
xor eax, eax
mov dword [ebx + 0x48], eax
xor eax, eax
mov dword [ebx + 0x4c], eax
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x50]
cdq
idiv ecx
imul ecx
add eax, ecx
mov dword [ebx + 0x3c], eax
xor eax, eax
mov dword [ebx + 0x58], eax
xor eax, eax
mov dword [ebx + 0x54], eax
mov byte [ebx + 0x5c], 1
mov edx, ebx
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0058d478
xor eax, eax
mov dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x38]
dec eax
imul dword [ebx + 0x50]
dec eax
mov dword [ebx + 0x4c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59c613
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dl, 1
call fcn.00422080
ret

Function at 0x5a299c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
pushal
mov ecx, edx
dec ecx
test ecx, ecx
jl 0x5a29fc
inc ecx
mov dword [ebp - 4], 0x136c9856
mov dword [ebp - 8], 0x9abfb3b6
mov dword [ebp - 0xc], 0x7f6a0dbb
mov esi, eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
rol eax, 7
rol edx, 0x1b
xor eax, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp - 0xc]
xor eax, ebx
push ecx
mov ecx, eax
rol ebx, cl
pop ecx
ror eax, 0xf
xor edx, eax
xor edx, ebx
push ecx
mov ecx, edx
ror ebx, cl
pop ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], edx
mov ebx, dword [ebp - 4]
xor bl, byte [esi]
mov byte [esi], bl
inc esi
dec ecx
jne 0x5a29c2
popal
mov esp, ebp
pop ebp
ret
Function at 0x10015116
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x10015125
pop dword [ebp - 0x18]
mov eax, 0xc7b46a42
sub eax, 0xb7b3191d
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xbbbaf028
sub dword [ebp - 0x28], 0x6d68aadd
mov dword [ebp - 0x24], 0x2cf7ed7a
sub dword [ebp - 0x24], 0xfac4a135
mov dword [ebp - 0x20], 0x69ce0a05
add dword [ebp - 0x20], 0xe27e3a29
mov dword [ebp - 0x1c], 0x1697adda
add dword [ebp - 0x1c], 0xe9685226
lea eax, [ebp - 0x28]
push eax
mov eax, 0xe99e626a
add eax, 0x2663ee1a
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x71a117c
add dword [ebp - 0x28], 0x6d5857da
mov dword [ebp - 0x24], 0x704a9fa9
sub dword [ebp - 0x24], 0x2ede3e34
mov dword [ebp - 0x20], 0xdd1d9de4
sub dword [ebp - 0x20], 0x79ae3178
mov dword [ebp - 0x1c], 0x626b6389
add dword [ebp - 0x1c], 0x9d949c77
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x38b04
push 0
call eax
mov ecx, 0x58ed1a44
add ecx, 0xa71322f4
xor edx, edx
add edx, eax
mov ebx, 0x15456b48
add ebx, 0xfabda0b8
add ebx, dword [ebp - 0x18]
mov esi, 0x514c95b2
add dword [ebp - 0x10], 0x40478d6a
mov edi, dword [ebx]
xor dword [ebp - 0x14], esi
sub edi, esi
mov dword [edx], edi
add dword [ebp - 0x14], 0xd9f4db15
add edx, 0xdeb58546
sub edx, 0xdeb58542
add ebx, 0xaa4f309
add ebx, 0xf55b0cfb
loop 0x1001523e
add eax, 0x30a11fab
add eax, 0xcf5fc808
mov ebx, eax
add eax, 0x5916931e
sub eax, 0x59169319
mov ecx, 0x3fc01f31
sub ecx, 0x2fc01f31
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x1001c6a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 0x2d], 0
jne 0x1001c73b
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push esi
push 0
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov esi, dword [ebp - 4]
cmp esi, ebx
je 0x1001c6f2
mov byte [edi + 0x2d], 0xff
test esi, esi
je 0x1001c6f2
cmp esi, ebx
jge 0x1001c6f2
mov eax, ebx
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x18], 0
je 0x1001c735
add dword [edi + 0x1c], ebx
cmp dword [edi + 0x1c], 0xffff
jle 0x1001c735
xor eax, eax
mov word [edi + 0x1e], ax
mov eax, dword [edi]
push edi
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x100252e4]
call esi
mov ecx, dword [edi + 0x18]
push 1
push dword [edi + 0x20]
mov esi, dword [ecx]
push eax
push ecx
mov ecx, dword [esi + 0xc]
call dword [0x100252e4]
call dword [esi + 0xc]
mov esi, dword [ebp - 4]
mov eax, esi
pop esi
pop ebx
jmp 0x1001c74d
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop edi
leave
ret 0xc
Function at 0x42210b
Capabilities:
Parse pe header

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

Function at 0x4347a0
Capabilities:
Parse pe header

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

Function at 0x4015a0
Capabilities:
Terminate process

Disassembly:
call fcn.00401940
jmp fcn.004012d0

Function at 0x4015b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x403008]
jne 0x4015ba
repz ret
jmp fcn.004019f0
Function at 0x40e2f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
or ebp, 0xffffffff
jmp 0x40e312
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40e319
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40e308
mov eax, 1
add ebx, ebx
jne 0x40e32b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40e320
jne 0x40e33c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40e320
xor ecx, ecx
sub eax, 3
jb 0x40e350
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40e3c2
mov ebp, eax
add ebx, ebx
jne 0x40e35b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40e368
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40e38c
inc ecx
add ebx, ebx
jne 0x40e378
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40e36d
jne 0x40e389
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40e36d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40e3ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40e39d
jmp 0x40e30e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40e3ac
add edi, ecx
jmp 0x40e30e
pop esi
mov edi, esi
mov ecx, 0xa7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40e3ca
cmp byte [edi], 2
jne 0x40e3ca
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 0x40e3cf
lea edi, [esi + 0xc000]
mov eax, dword [edi]
or eax, eax
je 0x40e447
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe680]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe6bc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40e3fc
mov ecx, edi
jns 0x40e42b
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 + 0xe6c0]
or eax, eax
je 0x40e441
mov dword [ebx], eax
add ebx, 4
jmp 0x40e419
call dword [esi + 0xe6d0]
mov ebp, dword [esi + 0xe6c4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
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 0x40e47b
sub esp, 0xffffff80
jmp 0x401d64

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x20003481
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x200034a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.200038a6
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x200034c4
test byte [esp + 8], 2
je 0x200034c4
call fcn.20003919
mov dword [eax], 0xd
call fcn.20003922
mov dword [eax], 5
jmp 0x2000349d
xor eax, eax
ret

Function at 0x2000488d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x20008708
cmp edx, dword [eax]
je 0x200048af
add eax, 8
inc ecx
cmp eax, 0x20008798
jl 0x200048a0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x20008708]
jne 0x200049dd
mov eax, dword [0x20008b00]
cmp eax, 1
je 0x200049b7
test eax, eax
jne 0x200048e0
cmp dword [0x20008194], 1
je 0x200049b7
cmp edx, 0xfc
je 0x200049dd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x20004917
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.200032c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.200033b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x2000495a
lea eax, [ebp - 0x1a4]
push eax
call fcn.200033b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x200074c0
push edi
call fcn.20006000
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.200032c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.200032d0
lea eax, [ebp - 0xa0]
push 0x200074a0
push eax
call fcn.200032d0
push dword [esi + 0x2000870c]
lea eax, [ebp - 0xa0]
push eax
call fcn.200032d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.20005f75
add esp, 0x2c
pop edi
jmp 0x200049dd
lea eax, [ebp + 8]
lea esi, [esi + 0x2000870c]
push 0
push eax
push dword [esi]
call fcn.200033b0
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 0x41cc52
Capabilities:
Encode data using xor

Disassembly:
mov dword [esi], eax
ficom dword [ecx + esi*4]
mov byte [0x4179ec9e], al
mov dword [0x9e8713c5], eax
add esi, dword [edi]
mov edi, 0xdc2c7443
invalid
in al, 0x3e
xchg dword ss:[eax + 0x2e], ebx
in al, 0x7f
pop eax
in al, 0x7f
int 0xaf
movsb byte es:[edi], byte [esi]
adc eax, edx
cmp byte [0x3a84cf84], 0x1f
or ch, al
mov esi, 0x348d2f7f
call 0xaa9c4eb6
xchg edi, eax
jle 0x41cbfa
rcr eax, cl
in al, 0x82
loope 0x41cbd8
push esp
in al, dx
ret
out 0xe9, al
lea ebp, [esi - 0x2ff95f70]
fucompp
or esi, edx
and al, 0x14
xor byte [ebx + 0xee9da50], ah
dec edx
loop 0x41ccc9
xor bl, byte [eax - 0x7a0b4a07]
add byte [esi], dh
xchg bh, dl
dec eax
push eax
add ebp, dword [eax + 0x6d]
je 0x41cbfe
add al, byte [edx - 0x5b94bcd9]
sub byte [ecx], al
mov ecx, 0xfa86f4b5
jg 0x41cc73
sahf
mov bl, 0xce
pop ebp
sal dword [esi], cl
dec ebx
pop edx
cmpsb byte [esi], byte es:[edi]
pop edi
invalid
and ah, ch
invalid
Function at 0x6d001906
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
jmp 0x6d001963
mov dword [ebp - 8], 0
jmp 0x6d001959
mov eax, dword [ebp - 4]
lea edx, [eax*4]
mov eax, dword [ebp + 8]
add edx, eax
mov eax, dword [ebp - 8]
add eax, edx
movzx eax, byte [eax]
movzx eax, al
mov edx, dword [ebp - 4]
lea ecx, [edx*4]
mov edx, dword [ebp + 8]
add ecx, edx
movzx eax, byte [eax + str.cw]
mov edx, dword [ebp - 8]
add edx, ecx
mov byte [edx], al
add dword [ebp - 8], 1
cmp dword [ebp - 8], 3
jle 0x6d00191e
add dword [ebp - 4], 1
cmp dword [ebp - 4], 3
jle 0x6d001915
mov eax, 0
leave
ret

Function at 0x6d001970
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
jmp 0x6d0019cd
mov dword [ebp - 8], 0
jmp 0x6d0019c3
mov eax, dword [ebp - 4]
lea edx, [eax*4]
mov eax, dword [ebp + 8]
add edx, eax
mov eax, dword [ebp - 8]
add eax, edx
movzx eax, byte [eax]
movzx eax, al
mov edx, dword [ebp - 4]
lea ecx, [edx*4]
mov edx, dword [ebp + 8]
add ecx, edx
movzx eax, byte [eax + 0x6d004140]
mov edx, dword [ebp - 8]
add edx, ecx
mov byte [edx], al
add dword [ebp - 8], 1
cmp dword [ebp - 8], 3
jle 0x6d001988
add dword [ebp - 4], 1
cmp dword [ebp - 4], 3
jle 0x6d00197f
mov eax, 0
leave
ret

Function at 0x6d002670
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.6d0031f0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.6d0031f0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
Function at 0x6d0026d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x6d007050]
test esi, esi
jle 0x6d0027f0
mov eax, dword [0x6d007054]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x6d002704
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x6d002787
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x6d0026f0
mov dword [esp], ebx
call fcn.6d002ec0
mov edi, eax
test eax, eax
je 0x6d002817
mov eax, dword [0x6d007054]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.6d003000
mov edx, dword [0x6d007054]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6d0027f7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x6d002780
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x6d002790
add dword [0x6d007050], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x6d007054]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x6d002780
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6d002670
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x6d00270e
mov eax, dword [0x6d007054]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.6d002670
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6d002670
lea esi, [esi]
nop

Function at 0x6d002b30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6d007060
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6d007058]
sub esp, 4
test ebx, ebx
je 0x6d002b85
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6d002b7e
test esi, esi
je 0x6d002b7e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6d002b60
mov dword [esp], 0x6d007060
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x6d002ec0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x6d000000], 0x5a4d
jne 0x6d002ee5
mov ecx, dword [0x6d00003c]
cmp dword [ecx + 0x6d000000], 0x4550
lea edx, [ecx + 0x6d000000]
je 0x6d002ef0
ret
cmp word [ecx + 0x6d000018], 0x10b
jne 0x6d002ee5
push esi
movzx eax, word [ecx + 0x6d000014]
push ebx
movzx esi, word [ecx + 0x6d000006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x6d000000
test si, si
je 0x6d002f38
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6d002f2e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x6d002f3a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x6d002f20
xor eax, eax
pop ebx
pop esi
ret
Function at 0x40d2ce
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419440]
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.00407cfb
mov dword [ebp - 0x14], eax
cmp dword [0x4ad5d8], esi
jne 0x40d3c1
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d34e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d4a1
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d4a1
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d4a1
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4ad5d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4ad5dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4ad5e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ad5e8], eax
test eax, eax
je 0x40d3be
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ad5e4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d3e6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d3d9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d3fb
push 4
pop eax
jmp 0x40d4a3
cmp dword [ebp - 0x14], esi
je 0x40d3fb
push dword [0x4ad5d8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d3e0
mov eax, dword [0x4ad5e4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d459
cmp dword [0x4ad5e8], edi
je 0x40d459
push eax
call ebx
push dword [0x4ad5e8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d459
test eax, eax
je 0x40d459
call ecx
test eax, eax
je 0x40d44e
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 0x40d44e
test byte [ebp - 8], 1
jne 0x40d459
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d489
mov eax, dword [0x4ad5dc]
cmp eax, edi
je 0x40d486
push eax
call ebx
test eax, eax
je 0x40d486
call eax
mov esi, eax
test esi, esi
je 0x40d486
mov eax, dword [0x4ad5e0]
cmp eax, edi
je 0x40d486
push eax
call ebx
test eax, eax
je 0x40d486
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4ad5d8]
call ebx
test eax, eax
je 0x40d4a1
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d4a3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040440e
mov esp, ebp
pop ebp
ret
Function at 0x41beb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a5ed0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4d9378]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov edi, edx
sbb ecx, ecx
mov dword [ebp - 4], 0
and ecx, 0xfffffffc
xor al, al
push edx
mov ecx, dword [ecx + esi + 0x30]
rep stosb byte es:[edi], al
call fcn.004358b0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
cmp eax, ecx
mov edx, dword [esi + 0x24]
mov edi, edx
cmovb ecx, eax
mov dword [ebp - 4], 1
xor al, al
rep stosb byte es:[edi], al
push edx
call fcn.004358b0
mov ecx, dword [esi + 0xc]
add esp, 8
test ecx, ecx
je 0x41bf2c
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x41bf3d
push 0x40
push esi
call fcn.0046510e
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x41f090
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4d9378]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x41f14a
cmp byte [esi + 0x3d], 0
je 0x41f14a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x41f138
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x41f100
sub eax, 1
je 0x41f104
sub eax, 2
jne 0x41f138
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046537b
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x41f121
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0048b20b
add esp, 0x10
cmp edi, eax
jne 0x41f138
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046537b
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046537b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0046537b
mov esp, ebp
pop ebp
ret