joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4041a0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
sub esp, 0x40
push ebx
push esi
push edi
test ecx, ecx
jle 0x4041c8
mov eax, dword [ebp + 0x10]
lea edx, [ebp + 0x18]
dec ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0xc], eax
jmp 0x4041d6
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
test ecx, ecx
jle 0x4041ef
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x14], eax
jmp 0x4041fd
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test ecx, ecx
jle 0x404216
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x1c], eax
jmp 0x404224
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
test ecx, ecx
jle 0x40423d
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x24], eax
jmp 0x40424b
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, edx
mov dword [ebp - 0x30], 0
cdq
mov dword [ebp - 0x40], eax
mov eax, ecx
mov dword [ebp - 0x3c], edx
cdq
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov word [ebp - 8], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 4], esp
and esp, 0xfffffff0
push 0x33
call 0x404292
add dword [esp], 5
retf

Function at 0x404320
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x819efc]
sub esp, 0x11c
test eax, eax
jne 0x40441e
push ebx
push esi
push edi
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x30]
push eax
call fcn.00401b60
add esp, 0xc
xor edi, edi
xor eax, eax
lea ebx, [ebx]
mov byte [esp + eax + 0x28], al
inc eax
cmp eax, 0x100
jb 0x404370
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x28]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41e100]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x28]
mov byte [esp + esi + 0x28], al
inc esi
mov byte [esp + edi + 0x28], dl
cmp esi, 0x100
jb 0x404380
xor edi, edi
xor ebx, ebx
xor esi, esi
lea eax, [edi + 1]
movzx edi, al
mov cl, byte [esp + edi + 0x28]
movzx edx, cl
lea eax, [edx + ebx]
movzx ebx, al
movzx eax, byte [esp + ebx + 0x28]
mov byte [esp + edi + 0x28], al
mov byte [esp + ebx + 0x28], cl
movzx eax, byte [esp + edi + 0x28]
add eax, edx
movzx eax, al
movzx eax, byte [esp + eax + 0x28]
xor al, byte [esi + 0x41e104]
mov byte [esp + esi + 0xc], al
inc esi
cmp esi, 0x1a
jb 0x4043b5
xor edx, edx
lea ecx, [esp + 0xc]
call fcn.00401a00
pop edi
pop esi
pop ebx
test eax, eax
je 0x404419
mov eax, dword [eax + 0x18]
test eax, eax
je 0x404419
mov dword [0x819efc], eax
add esp, 0x11c
ret
mov eax, dword [0x819efc]
add esp, 0x11c
ret
Function at 0x41d682
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret
Function at 0x4028c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp + 0xc]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402915
lea eax, [ebp + 8]
push esi
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 8], 4
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
test esi, esi
pop esi
je 0x402918
mov eax, dword [ebp + 0x14]
leave
ret

Function at 0x40291a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 8]
push esi
push eax
lea eax, [ebp + 0xc]
xor esi, esi
push eax
push esi
push 0x20006
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40295f
lea eax, [ebp + 0x14]
push 4
push eax
push 4
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret

Function at 0x402f31
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
mov eax, dword [esi + 0x10]
lea edi, [eax + eax*2]
shl edi, 3
call fcn.00401bc4
mov ebx, dword [eax + edi + 0x10]
call fcn.00401bc4
mov ecx, dword [esi + 0x84]
mov eax, dword [eax + edi + 0x14]
cmp ecx, ebx
jae 0x402faf
sub ebx, ecx
cmp ebx, dword [esi + 0x80]
jge 0x402f6d
mov dword [esi + 0x80], ebx
add ecx, eax
lea eax, [esi + 0x88]
xor edi, edi
push eax
push edi
mov dword [esi + 0x98], edi
push dword [esi + 0x80]
mov dword [esi + 0x94], edi
mov dword [esi + 0x90], ecx
push dword [esi + 0x7c]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x402e0f
push edi
push esi
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x402fbc
mov esi, dword [esi + 0x1c]
push 0
push 1
push esi
mov eax, dword [esi]
call dword [eax + 0x1c]
pop edi
pop esi
pop ebx
ret
Function at 0x4010a8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427004]
jne 0x4010b2
repz ret
jmp fcn.00401495

Function at 0x4072a7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00401a27
and dword [ebp - 4], 0
cmp dword [0x42fdf0], 0
mov ebx, eax
jne 0x407358
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x407409
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x407409
push eax
call fcn.004019b5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42fdf0], eax
call esi
push eax
call fcn.004019b5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42fdf4], eax
call esi
push eax
call fcn.004019b5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42fdf8], eax
call esi
push eax
call fcn.004019b5
pop ecx
mov dword [0x42fe00], eax
test eax, eax
je 0x407358
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004019b5
pop ecx
mov dword [0x42fdfc], eax
mov eax, dword [0x42fdfc]
cmp eax, ebx
je 0x4073b0
cmp dword [0x42fe00], ebx
je 0x4073b0
push eax
call fcn.00401a30
push dword [0x42fe00]
mov esi, eax
call fcn.00401a30
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4073b0
test edi, edi
je 0x4073b0
call esi
test eax, eax
je 0x4073a7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4073a7
test byte [ebp - 0xc], 1
jne 0x4073b0
or dword [ebp + 0x10], 0x200000
jmp 0x4073e9
mov eax, dword [0x42fdf4]
cmp eax, ebx
je 0x4073e9
push eax
call fcn.00401a30
pop ecx
test eax, eax
je 0x4073e9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4073e9
mov eax, dword [0x42fdf8]
cmp eax, ebx
je 0x4073e9
push eax
call fcn.00401a30
pop ecx
test eax, eax
je 0x4073e9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42fdf0]
call fcn.00401a30
pop ecx
test eax, eax
je 0x407409
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40740b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x422ee0
Capabilities:
Check for software breakpoints
Get geographical location
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc4
mov eax, dword [0x427004]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x422f05
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x365ea9e0
jge 0x422f52
cmp dword [0x430c04], 0xc31
jne 0x422f22
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
cmp dword [ebp - 4], 0x176afc
jle 0x422f50
cmp dword [0x430c04], 0xa
jne 0x422f4e
push 0
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
jmp 0x422f52
jmp 0x422efc
mov dword [ebp - 0x64], 0
jmp 0x422f64
mov ecx, dword [ebp - 0x64]
add ecx, 1
mov dword [ebp - 0x64], ecx
cmp dword [ebp - 0x64], 0x5f6c74
jge 0x422f84
cmp dword [ebp - 0x64], 0x562d05
jne 0x422f82
mov edx, dword [0x427c58]
mov dword [0x430f8c], edx
jmp 0x422f5b
cmp dword [0x430c04], 0x7c
jne 0x422fb8
push 0
call dword [sym.imp.KERNEL32.dll_FindAtomA]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0
call dword [sym.imp.KERNEL32.dll_LocalUnlock]
cmp dword [0x430c04], 0x2d
jne 0x422fb8
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
cmp dword [0x430c04], 0x110a
jne 0x423091
mov dword [0x430bf0], 0
mov dword [0x430bf4], 0
cmp dword [0x430c04], 0xcc
jne 0x422ffa
push 0
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [0x4303d0], 0x14
push 0
lea ecx, [ebp - 0x480]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapValidate]
push 0
push 0
call fcn.0040111f
add esp, 8
push 0
push 0
call fcn.0040111f
add esp, 8
mov edx, dword [0x425cf4]
mov dword [ebp - 0xc88], edx
push 0x7fc
push 0
lea eax, [ebp - 0xc84]
push eax
call fcn.00403540
add esp, 0xc
lea ecx, [ebp - 0x488]
mov dword [ebp - 0x484], ecx
push 0
push 0
call fcn.0040111f
add esp, 8
push 0
call fcn.00401286
add esp, 4
push 0
call fcn.004010b7
add esp, 4
call fcn.00422330
mov dword [ebp - 0xc90], 0
jmp 0x4230b1
mov edx, dword [ebp - 0xc90]
add edx, 1
mov dword [ebp - 0xc90], edx
mov eax, dword [ebp - 0xc90]
cmp eax, dword [0x430c04]
jae 0x42310c
mov ecx, dword [0x430f8c]
mov dword [ebp - 0xc94], ecx
mov eax, 0xa231
add dword [ebp - 0xc94], eax
mov edx, dword [0x43065c]
add edx, dword [ebp - 0xc90]
mov eax, dword [ebp - 0xc94]
add eax, dword [ebp - 0xc90]
mov cl, byte [eax]
mov byte [edx], cl
cmp dword [0x430c04], 0x5ab
jne 0x42310a
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4230a2
call fcn.00422c60
call fcn.00422360
mov eax, 0x427c60
call fcn.00422ea0
mov dword [ebp - 0xc98], 0
jmp 0x42313b
mov edx, dword [ebp - 0xc98]
add edx, 1
mov dword [ebp - 0xc98], edx
cmp dword [ebp - 0xc98], 0x15a63d
jge 0x423164
cmp dword [ebp - 0xc98], 0xbd9cb
jne 0x423162
mov eax, dword [0x43065c]
add eax, 0
mov dword [0x43065c], eax
jmp 0x42312c
jmp dword [0x43065c]
Function at 0x40e280
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
jmp 0x40e29a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40e2a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40e290
mov eax, 1
add ebx, ebx
jne 0x40e2b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40e2a8
jne 0x40e2c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40e2a8
xor ecx, ecx
sub eax, 3
jb 0x40e2d8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40e34a
mov ebp, eax
add ebx, ebx
jne 0x40e2e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40e2f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40e314
inc ecx
add ebx, ebx
jne 0x40e300
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40e2f5
jne 0x40e311
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40e2f5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40e334
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40e325
jmp 0x40e296
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40e334
add edi, ecx
jmp 0x40e296
pop esi
mov edi, esi
mov ecx, 0xa8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40e352
cmp byte [edi], 5
jne 0x40e352
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 0x40e357
lea edi, [esi + 0xc000]
mov eax, dword [edi]
or eax, eax
je 0x40e3c6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x10810]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x10838]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40e384
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1083c]
or eax, eax
je 0x40e3c0
mov dword [ebx], eax
add ebx, 4
jmp 0x40e3a1
call dword [esi + 0x1084c]
mov ebp, dword [esi + 0x10840]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x40e3fa
sub esp, 0xffffff80
jmp 0x401d5b

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401690
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x10
push ebx
push esi
push edi
push edx
pop edi
push edi
push 0
push dword [section..data]
mov dword [ebp - 8], edi
push ecx
pop esi
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, edi
shr ebx, 2
mov dword [ebp - 4], eax
or ebx, ebx
je 0x4016d4
push esi
pop edi
mov ecx, eax
sub edi, eax
mov edx, ebx
mov eax, dword [edi + ecx]
mov dword [ecx], eax
lea ecx, [ecx + 4]
dec edx
jne 0x4016c3
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
shl ebx, 2
cmp ebx, edi
jae 0x4016ef
push edi
pop edx
sub esi, eax
lea ecx, [ebx + eax]
sub edx, ebx
mov al, byte [ecx + esi]
mov byte [ecx], al
lea ecx, [ecx + 1]
dec edx
jne 0x4016e4
mov eax, dword [ebp - 4]
lea esi, [edi - 8]
lea ecx, [eax - 8]
add ecx, edi
push esi
pop ebx
mov edx, dword [ecx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ecx]
shr ebx, 2
and esi, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
or ebx, ebx
je 0x401731
lea ecx, [ebx + edx]
mov edx, dword [eax]
movzx ecx, cl
ror edx, cl
mov ecx, dword [ebp - 8]
add eax, 4
xor edx, ecx
sub edx, ebx
mov dword [eax - 4], edx
mov edx, dword [ebp - 0xc]
dec ebx
jne 0x401714
test esi, esi
je 0x40173d
xor byte [eax], cl
lea eax, [eax + 1]
dec esi
jne 0x401735
mov edi, dword [ebp - 0x10]
mov edi, dword [edi - 4]
push edi
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, dword [ebp - 4]
push eax
pop esi
mov edx, esi
push ebx
pop ecx
call section..text
push ebx
push 0
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], edi
pop edi
mov dword [ecx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x7e0b597e
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x15fc17a6
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x1401150
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi - 0x10000]
movzx eax, cx
mov edi, ecx
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
jbe 0x1401218
nop dword [eax]
cmp edi, dword [section..data]
jb 0x1401198
cmp edi, dword [0x158a004]
ja 0x1401198
sub edi, 0x8000000
jmp 0x1401210
push 0x1c
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
je 0x1401218
cmp dword [ebp - 0xc], 0x10000
jne 0x14011fb
cmp dword [ebp - 0x10], 0x10000
jb 0x14011fb
push 0x40
push 0x3000
push 0x10000
push edi
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
jne 0x14012ca
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x1401218
sub edi, 0x10000
jmp 0x1401210
mov ecx, dword [ebp - 0x18]
add ecx, 0xffff0000
mov edi, ecx
movzx eax, di
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
ja 0x1401180
movzx eax, si
test eax, eax
je 0x1401227
sub esi, eax
add esi, 0x10000
mov edi, dword [ebp + 0x10]
cmp esi, edi
jae 0x14012c8
cmp esi, dword [section..data]
jb 0x140124a
cmp esi, dword [0x158a004]
ja 0x140124a
add esi, 0x8000000
jmp 0x14012c0
push 0x1c
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
je 0x14012c8
cmp dword [ebp - 0xc], 0x10000
mov ecx, dword [ebp - 0x10]
jne 0x14012ab
cmp ecx, 0x10000
jb 0x14012ab
push 0x40
push 0x3000
push 0x10000
push esi
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
jne 0x14012ca
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
je 0x14012c8
add esi, 0x10000
jmp 0x14012c0
mov esi, dword [ebp - 0x1c]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x14012c0
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, edi
jb 0x1401232
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x14015e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x15877a0
push 0x1425010
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call sub.KERNEL32.dll_VirtualQuery
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x1401683
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x1401683
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp dword [ebp + 0xc], eax
jb 0x1401683
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x1401683
mov dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1401b90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x15b60dc], eax
je 0x1401bac
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x15b60e0]
test eax, eax
jne 0x1401cc1
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x1401bcb
lea eax, [esi + 0x57]
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x1401be8
cmp dword [ebx], 0
jne 0x1401bf5
mov dword [0x15b60e0], 6
mov dword [0x15b60e4], ebx
pop ebx
mov eax, 6
pop esi
mov esp, ebp
pop ebp
ret 8
push edi
push 0x18
call fcn.014234e2
mov edi, eax
add esp, 4
test edi, edi
jne 0x1401c0e
lea esi, [eax + 8]
jmp 0x1401ca1
push 0
push dword [ebx]
call fcn.01401b00
push 0
push esi
mov dword [ebp + 0xc], eax
call fcn.01401b00
mov esi, dword [ebp + 0xc]
mov edx, eax
movzx ecx, byte [esi + 0x36]
mov eax, dword [esi + 0x40]
sub eax, ecx
mov dword [ebp + 0xc], eax
test ecx, ecx
je 0x1401c93
cmp ecx, 0x1e
ja 0x1401c93
cmp dword [esi + 0x44], edx
jne 0x1401c93
lea edx, [ebp - 4]
mov dword [ebp - 4], 0
push edx
push 0x40
push ecx
push eax
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1401c62
call sub.KERNEL32.dll_GetLastError
mov esi, eax
jmp 0x1401ca1
mov eax, dword [ebp + 0xc]
mov dword [edi + 0xc], eax
mov dword [edi + 8], ebx
mov dword [edi + 0x10], esi
mov dword [edi + 4], 1
mov eax, dword [ebp - 4]
mov dword [edi + 0x14], eax
mov eax, dword [0x15b60ec]
mov dword [edi], eax
xor eax, eax
mov dword [0x15b60ec], edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
cmp dword [0x15b60d4], 0
mov esi, 9
jne 0x1401cab
mov dword [0x15b60e0], esi
test edi, edi
je 0x1401cb6
push 0x18
push edi
call fcn.01423512
add esp, 8
pop edi
mov dword [0x15b60e4], ebx
mov eax, esi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x1401cd0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x15b60dc], 0
jne 0x1401d47
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, eax
mov edx, 0x15b60dc
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x1401d47
push esi
mov esi, dword [0x15b60cc]
mov dword [0x15b60ec], eax
mov dword [0x15b60e8], eax
mov dword [0x15b60e4], eax
test esi, esi
je 0x1401d2c
nop dword [eax]
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x1401d38
mov esi, dword [esi + 4]
test esi, esi
jne 0x1401d10
xor eax, eax
mov dword [0x15b60e0], eax
pop esi
mov esp, ebp
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov dword [0x15b60e0], eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret