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

Disassembly:
mov dword [0x82ca59e4], eax
inc esi
pushfd
xchg byte [ecx], dh
and ebp, eax
adc eax, 0xbe2a9e6
mov ah, 0xc3
dec ebp
mov al, 0xd5
out dx, eax
cwde
mov cl, 0xbd
fild qword [edi + 0x79]
push edx
jns 0x6056ed
loope 0x605699
fld xword [edx]
int1
mov ebx, 0xa72ba876
inc ebp
push edx
movsd dword es:[edi], dword [esi]
pop eax
inc esp
pop ds
or dword [ebp + 0x136e1b9], 0x12c71b24
daa
jl 0x6056bf
cmp eax, 0x919417ba
shr esi, 1
int1
or al, 0x93
xchg ebp, eax
jno 0x6056f8
push ebx
dec esp
cmp al, 0xd6
cmpsb byte [esi], byte es:[edi]
fdivr dword [ecx]
adc eax, ebx
shl bl, cl
sbb bh, cl
arpl word [eax + 0x762ca77d], si
sub al, 0x76
adc cl, byte [ebx]
sub eax, 0xa9347dae
cmpsb byte [esi], byte es:[edi]
jne 0x60567e
int1
dec ecx
imul esp, dword [ecx], 0xffffffb7
sub edx, ebp
inc esp
push esi
sbb esp, dword [edi]
daa
push 0x6c57e1cb
mov dword [0xd3fc5c74], eax
movsb byte es:[edi], byte [esi]
sub ch, dh
aaa
shr dword [edx - 0x33], cl
fldenv [edi - 0x53]
adc ebx, dword [esi]
pop edi
lodsb al, byte [esi]
mov edi, 0x33fa8089
and dword [esi - 0x80], edx
retf 0xd95d
jge 0x6056d6
xchg esi, eax
cmp eax, 0x8400d119
jg 0x605762
mov esi, 0x67804b49
imul ebp, dword [esi - 0x208cfc77], 0x1a9c5a6d
inc eax
pop edi
outsb dx, byte [esi]
cli
mov edx, 0x40ce8f69
push esp
sub eax, dword [esi - 0x294c2219]
inc edx
in eax, 0x2f
lodsd eax, dword [esi]
daa
fmul st(4), st(0)
inc edx
imul ebp, dword [ecx + 0x1a], 0x56b6a03a
xor ebp, dword [0x3b4b472d]
sbb bh, byte [edx]
mov al, byte [0x2d3356b6]
sub eax, 0x9d3b4b47
popfd

Function at 0x61f586
Capabilities:
Encode data using xor

Disassembly:
xchg ebp, eax
inc esp
push ss
in eax, 0x14
dec eax
retf
sbb esi, ecx
mov edx, 0xbac804a1
scasd eax, dword es:[edi]
sahf
sub ax, 0x8a66
imul di, word [ebx - 0x2dd12dfa], 0xffba
adc dword [ebp - 0x71b52e19], eax
in eax, 0xae
jp 0x61f4b1
or cl, byte [edx]
iretd
scasb al, byte es:[edi]
dec si
daa
mov esi, esp
pop ss
out 0x46, al
push ebx
das
fdiv dword gs:[ebx - 3]
mov dh, dl
cld
adc dh, ah
lcall 0xbf3f, 0xe6785821
imul edi, edx, 0x33
arpl word [ebx + eax*2 + 0x1964ad6a], di
dec ebx
mov ebx, 0x3550e0da
or esi, dword [ebx + 0x66925600]
and ch, ch
pop esp
xchg byte [ebx], ah
aaa
int 0x8e
cmp al, 0x11
js 0x61f515
aas
mov edi, 0x6333fa6b
mov esp, 0x64ad6a43
sbb dword [ebx - 0x45], ecx
invalid
dec ebx
popal
pop esp
jecxz 0x61f4e8
mov dl, byte [edx + 0x38302c86]
add byte [ebx - 0x1a], 0x9a
push ebx
stosb byte es:[edi], al
and byte [edi], 0x63
in eax, dx
xor esp, edi
movsb byte es:[edi], byte [esi]
loope 0x61f55c
leave
pop eax
add al, 0x1b
invalid
jge 0x61f551
je 0x61f52d
push es
sub dword [esi - 0x4fe5d682], esp
sbb edx, eax
cmpsd dword [esi], dword es:[edi]
push eax
invalid
Function at 0x623733
Capabilities:
Encode data using xor

Disassembly:
je 0x623797
cdq
invalid
mov bl, byte [ecx + 0x4c]
dec ebx
inc ebx
jnp 0x6237c7
dec ebp
pop ds
inc edx
aaa
out 0x1e, eax
cmp ch, byte [0x3b563cf1]
add dh, byte [ebx + 0x531fcb7e]
lodsd eax, dword [esi]
inc eax
push esi
cld
or al, 0xd4
sbb edx, dword [ebx + 0x7b]
adc ebx, esi
mov esi, 0x593bda7f
imul esp, dword [ecx + 0x571daec5], 0xa6c30a7d
push 0xffffffffffffff84
clc
add al, 0x19
add eax, 0x74e1bc3d
jg 0x623773
cmp ebx, dword [ecx + 0x69]
mov eax, dword [0x571daec5]
jge 0x6237ad
ret
loope 0x623823
adc dword [esi - 0xae066], ecx
sbb eax, 0xc953b7e5
mov bh, 0x53
leave
xchg edx, eax
cmp eax, 0xa4171664
or eax, 0xdf7c1dda
inc ebp
mov dl, 0x3e
lodsd eax, dword [esi]
lodsd eax, dword ds:[esi]
xor ebp, esi
jns 0x6237f1
loop 0x623779
sub byte [eax], bl
sub eax, 0x5d624322
xchg ebx, eax
jns 0x623835
sbb eax, 0x678b0c9a
sub dword [edx - 0x40], ebp
les esi, [edi + 0x4484d196]
inc bx
adc dword es:[ecx - 0x4b908367], ebp
adc dword [ecx - 0x4b908367], ebp
test dword [esi - 0x24], 0x23edbc6a
push cs
inc esi
fsubr qword [edx - 0x44]
in eax, dx
and ecx, dword [esi]
jne 0x62377c
push dword [edi]
jmp 0x62382d
jecxz 0x623876
div byte [eax + esi*4 - 0x6d84dcbb]
jnp 0x6237b7
mov bh, 0xc8
adc eax, 0x66ccf8a4
cmp esp, dword [esi + 0x71ded50d]
push es
cmpsb byte [esi], byte es:[edi]
or eax, 0x671ded5
int3
loopne 0x6237ea
mov cl, 0xd1
fisttp dword [ebp + 0x339e46cd]
pop ecx
mov al, byte [0x9681c6a7]
dec esp
cmovl edx, dword [ebx - 0x39]
pop ds
jle 0x62388b
sbb dword [edx + ebp], edx
jbe 0x6237f8
imul edx, ebp, 0xffffff8e
in eax, 0xb5
inc esi
xchg edi, eax
dec eax
inc eax
jo 0x62381c
mov esi, 0xf94e92be
jne 0x623886
mov esi, 0x75f94e92
and bh, byte [edi]
aas
pop ebp
int 0x97
jo 0x62385d
xor esp, dword [edi + ebp*8 + 0x1b979921]
ljmp 0x93a2
mov byte [0x367e7693], al
cld
lea esp, [ecx + eax*8 + 0x47]
add al, 0xcf
push esi
call 0x83b2205d
or bl, byte [edx + 0x21]
dec edi
or dword [edx], 0x5a
and dword [esi + ebp*8 + 0x1f], esp
out dx, al
pop ds
and cl, al
das
enter 0xfffffffffffffce8, 0xffffffffffffffa3
idiv byte [ebx]
pop ds
add edi, dword [eax]
add byte [eax - 0x44be8dc8], dl
adc ebp, dword [eax + 0x69]
or bh, cl
dec ebx
dec edx
sub eax, 0x142a170a
and eax, 0x51878f66
push ss
push cs
pop esp
adc ebp, dword [edi]
or dword [edi - 0x638618fc], edx
jns 0x623858
mov ah, 0x2b
imul dh
lock xchg dword [ecx + edx*8 - 0x5a], edi
sahf
mov ebx, 0xf6d078c4
out dx, eax
and cl, cl
fmul qword [edi + ebp*8]
test byte [ebp - 0x4a8b955e], dh
dec eax
lcall 0xfe55, 0x6bf751ad
mov cl, 0x27
mov al, 0x4e
sub eax, dword [ecx + 0x44]
xor edi, dword [esp + ebp*2 - 0x69fa7763]
and byte [ebp - 0x66], 0x5b
sal byte [esi], 0xf0
jbe 0x6238ba
mov bh, 0x41
mov eax, dword [0x92e127f1]
adc al, 0xb0
inc esp
dec esi
retf 0x8635
Function at 0x628595
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x62f3d0
cmp edx, dword [eax]
je 0x6285b7
add eax, 8
inc ecx
cmp eax, 0x62f460
jl 0x6285a8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x62f3d0]
jne 0x6286e5
mov eax, dword [0x637d78]
cmp eax, 1
je 0x6286bf
test eax, eax
jne 0x6285e8
cmp dword [0x62f2f8], 1
je 0x6286bf
cmp edx, 0xfc
je 0x6286e5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x62861f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00628f80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00629410
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x628662
lea eax, [ebp - 0x1a4]
push eax
call fcn.00629410
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62d6e4
push edi
call fcn.0062b2e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00628f80
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00628f90
lea eax, [ebp - 0xa0]
push 0x62d6c4
push eax
call fcn.00628f90
push dword [esi + 0x62f3d4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00628f90
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062b254
add esp, 0x2c
pop edi
jmp 0x6286e5
lea eax, [ebp + 8]
lea esi, [esi + 0x62f3d4]
push 0
push eax
push dword [esi]
call fcn.00629410
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 0x66be20
Capabilities:
Write file on windows

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

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x670070]
test esi, esi
jle 0x66bfa0
mov eax, dword [0x670074]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x66beb4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x66bf37
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x66bea0
mov dword [esp], ebx
call fcn.0066c870
mov edi, eax
test eax, eax
je 0x66bfc7
mov eax, dword [0x670074]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0066c9b0
mov edx, dword [0x670074]
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 0x66bfa7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x66bf30
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x66bf40
add dword [0x670070], 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 [0x670074]
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 0x66bf30
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0066be20
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x66bebe
mov eax, dword [0x670074]
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.0066be20
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0066be20
lea esi, [esi]
nop
Function at 0x66c4e0
Capabilities:
Get thread local storage value

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

Function at 0x66c870
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x66c895
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x66c8a0
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x66c895
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 si, si
je 0x66c8e8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x66c8de
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x66c8ea
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x66c8d0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x4da008], 0x8088405
inc edx
mov dword [ebx + 0x4da008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41d2ec
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d31d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d305
add dl, dl
jne 0x41d328
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d379
xor eax, eax
add dl, dl
jne 0x41d335
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d416
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d35a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d365
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d36f
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d314
mov eax, 1
add dl, dl
jne 0x41d387
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d392
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d37e
sub eax, ebx
mov ebx, 1
jne 0x41d3c5
mov ecx, 1
add dl, dl
jne 0x41d3ab
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3b6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3a2
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d314
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d3dc
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3e7
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3d3
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d314
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d437
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d314
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f504
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x4bd9f2
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f553
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f572
mov ecx, edx
add ecx, ebx
jmp 0x41f572
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f572
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f5e4
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f5cd
test esi, esi
jbe 0x41f5e4
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088f4
test eax, eax
jne 0x41f5bf
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f5e4
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f59c
jmp 0x41f5e4
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f5e4
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bd9f9
ret
Function at 0x420750
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x4bed6b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x42078b
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4207a4
lea eax, [ebp - 0x10]
mov edx, dword [0x4dc73c]
mov edx, dword [edx]
mov edx, dword [edx + 0x14]
call fcn.00404d30
jmp 0x4207b7
lea eax, [ebp - 0x10]
mov edx, dword [0x4dc73c]
mov edx, dword [edx]
mov edx, dword [edx + 0x18]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4207c3
adc edx, 0
mov edx, dword [edx*4 + 0x4db538]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x42093d
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420930
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dec
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420930
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x4208ce
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x4208ce
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x4208ce
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x4208ce
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420930
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420930
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d8c
test eax, eax
je 0x420930
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420930
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420955
inc ebx
cmp ebx, 0x19
jne 0x42077d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bed72
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x4010e0
Capabilities:
Allocate or change rwx memory
Terminate process

Disassembly:
push ebx
push esi
push edi
push 4
push 0x3000
mov esi, 0x1e5d70
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
push eax
cmp eax, 0x11
je 0x4010ad
mov eax, eax
cld
test ecx, ecx
or eax, eax
clc
pop eax
test edi, edi
je 0x4010dc
nop
mov al, al
push 0xf1b30
push 0
push edi
call fcn.004236e0
add esp, 0xc
push ebx
mov cl, cl
mov cl, cl
cld
pop ebx
push 0x8000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
pop ebx
ret
push 0
push 0x40
push 0x3000
push 0x7d0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocExNuma]
test eax, eax
jne 0x401108
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
jmp 0x401088

Function at 0x401274
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x43c078]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004236e0
push esi
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004236e0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 0x18
push 0x439a98
lea eax, [ebp - 0x20c]
push eax
call esi
push 0x439a9c
lea eax, [ebp - 0x20c]
push eax
call esi
push 0x439aa0
lea eax, [ebp - 0x20c]
push eax
call esi
push 0x439aa4
lea eax, [ebp - 0x20c]
push eax
call esi
push 0x439aa8
lea eax, [ebp - 0x20c]
push eax
call esi
push 0x439aac
lea eax, [ebp - 0x20c]
push eax
call esi
push 0x439ab0
lea eax, [ebp - 0x108]
push eax
call esi
push 0x439ab4
lea eax, [ebp - 0x108]
push eax
call esi
push 0x439ab8
lea eax, [ebp - 0x108]
push eax
call esi
push 0x439abc
lea eax, [ebp - 0x108]
push eax
call esi
push 0x439ac0
lea eax, [ebp - 0x108]
push eax
call esi
push 0x439ac4
lea eax, [ebp - 0x108]
push eax
call esi
push 0x439ac8
lea eax, [ebp - 0x108]
push eax
call esi
lea esi, [ebp - 0x20c]
call fcn.00410ed8
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x401395
test cl, cl
je 0x401391
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x401395
add eax, 2
add esi, 2
test cl, cl
jne 0x401375
xor eax, eax
jmp 0x40139a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4013d9
lea esi, [ebp - 0x108]
call fcn.00410ea6
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x4013c9
test cl, cl
je 0x4013c5
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x4013c9
add eax, 2
add esi, 2
test cl, cl
jne 0x4013a9
xor eax, eax
jmp 0x4013ce
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4013d9
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041cae4
leave
ret

Function at 0x40147a
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
mov eax, dword fs:[0x30]
push ecx
mov ecx, dword [eax + 2]
mov dword [ebp - 4], ecx
pop ecx
leave
ret
Function at 0x40149d
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push edi
push eax
nop
nop
nop
nop
mov eax, dword fs:[0x30]
nop
nop
nop
nop
mov dword [ebp - 4], eax
nop
nop
pop eax
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0xc]
add esi, 0x14
mov edi, dword [esi]
jmp 0x4014db
push dword [ebp + 8]
push dword [edi + 0x28]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4014e5
mov edi, dword [edi]
cmp edi, esi
jne 0x4014c9
xor al, al
pop edi
pop esi
leave
ret
mov al, 1
jmp 0x4014e1

Function at 0x401656
Capabilities:
Get common file path
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x43c078]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x20c]
push eax
xor edi, edi
push 0x104
mov dword [ebp - 0x62c], edi
mov dword [ebp - 0x628], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4017f9
push str.delays.tmp
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov dword [ebp - 0x624], edi
mov esi, 0xfffff
push edi
push 0x100
push 2
push edi
push edi
push 0x40000000
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x620], eax
cmp eax, 0xffffffff
je 0x4017f9
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push edi
mov ebx, eax
call dword [sym.imp.msvcrt.dll__time64]
push eax
call dword [sym.imp.msvcrt.dll_srand]
pop ecx
pop ecx
push esi
call dword [sym.imp.msvcrt.dll_rand]
cdq
mov ecx, 0xff
idiv ecx
push edx
push ebx
call fcn.004236e0
add esp, 0xc
push edi
lea eax, [ebp - 0x628]
push eax
push esi
push ebx
push dword [ebp - 0x620]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4017f9
cmp dword [ebp - 0x628], esi
jne 0x4017f9
push esi
push edi
push ebx
call fcn.004236e0
add esp, 0xc
push dword [ebp - 0x620]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0x4000100
push 3
push edi
push edi
push SysReAllocString
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x620], eax
cmp eax, 0xffffffff
je 0x4017f9
push edi
lea ecx, [ebp - 0x62c]
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4017f9
cmp dword [ebp - 0x62c], esi
jne 0x4017f9
push esi
push edi
push ebx
call fcn.004236e0
add esp, 0xc
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x620]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x624]
cmp dword [ebp - 0x624], 0x3e8
jb 0x4016c0
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041cae4
leave
ret
xor eax, eax
jmp 0x4017ea