joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44720e
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x496ec8]
push ebx
cmp dword [0x496ecc], eax
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_malloc]
jne 0x447275
add eax, 0xa
mov dword [0x496ec8], eax
lea esi, [eax + eax*2]
shl esi, 2
call sym.ruby187g.exc_rb_w32_enter_critical
cmp dword [0x496ecc], 0
push esi
jle 0x44725d
push dword [0x495e9c]
call dword [sym.imp.MSVCRT.dll_realloc]
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x447267
mov dword [0x495e9c], esi
jmp 0x447267
call edi
pop ecx
mov dword [0x495e9c], eax
mov esi, eax
call sym.ruby187g.exc_rb_w32_leave_critical
test esi, esi
jne 0x447275
jmp sym.ruby187g.exc_rb_memerror
mov ebx, 0x2710
call sym.ruby187g.exc_rb_w32_enter_critical
mov eax, dword [0x486310]
lea eax, [eax + eax*4 + 5]
shl eax, 2
push eax
call edi
pop ecx
mov esi, eax
call sym.ruby187g.exc_rb_w32_leave_critical
test esi, esi
jne 0x4472af
cmp dword [0x486310], ebx
je 0x4472aa
mov dword [0x486310], ebx
jmp 0x44727a
jmp sym.ruby187g.exc_rb_memerror
mov eax, dword [0x496ecc]
mov ecx, dword [0x495e9c]
push 0x14
xor edx, edx
lea eax, [eax + eax*2]
mov dword [ecx + eax*4], esi
mov eax, esi
pop ecx
div ecx
test edx, edx
jne 0x4472d5
inc dword [0x486310]
jmp 0x4472dc
push 0x14
pop eax
sub eax, edx
add esi, eax
mov eax, dword [0x496ecc]
mov ecx, dword [0x495e9c]
lea eax, [eax + eax*2]
mov dword [ecx + eax*4 + 4], esi
mov eax, dword [0x496ecc]
mov edx, dword [0x495e9c]
mov ecx, dword [0x486310]
lea eax, [eax + eax*2]
mov dword [edx + eax*4 + 8], ecx
mov eax, dword [0x486310]
lea eax, [eax + eax*4]
lea edi, [esi + eax*4]
mov eax, dword [0x495e90]
test eax, eax
je 0x44731e
cmp eax, esi
jbe 0x447324
mov dword [0x495e90], esi
cmp dword [0x496ea8], edi
jae 0x447332
mov dword [0x496ea8], edi
fild dword [0x486310]
inc dword [0x496ecc]
fmul qword [0x475da8]
call sub.MSVCRT.dll__ftol
test eax, eax
mov dword [0x486310], eax
jg 0x447358
mov dword [0x486310], ebx
cmp esi, edi
jae 0x447372
and dword [esi], 0
mov eax, dword [0x496ec0]
mov dword [esi + 4], eax
mov dword [0x496ec0], esi
add esi, 0x14
jmp 0x447358
pop edi
pop esi
pop ebx
ret

Function at 0x447ad8
Capabilities:
Terminate process

Disassembly:
cmp dword [sym.ruby187g.exc_rb_gc_stack_start], 0
jne 0x447ae9
push 0
call sym.ruby187g.exc_Init_stack
pop ecx
jmp fcn.0044720e

Function at 0x454c8b
Capabilities:
Terminate process

Disassembly:
push dword [sym.ruby187g.exc_ruby_copyright]
call dword [sym.imp.MSVCRT.dll_puts]
pop ecx
push 0
call dword [sym.imp.MSVCRT.dll_exit]

Function at 0x45689e
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
dec dword [0x487a34]
jne 0x4568ab
call fcn.004568df
mov eax, dword [0x498c68]
mov ecx, dword [eax]
add dword [0x498c68], 4
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and ax, 0xdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret
Function at 0x4568df
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ecx
cmp dword [0x498c6c], 0
push ebx
push ebp
push esi
push edi
mov esi, 0x4982a8
jne 0x4568fd
push 0x1571
call fcn.004569b0
pop ecx
mov dword [0x487a34], 0x270
mov dword [0x498c68], esi
mov dword [esp + 0x10], 0xe3
mov edi, bind
mov ecx, 0x9908b0df
mov edx, dword [esi]
mov ebp, dword [esi + 4]
lea eax, [esi + 4]
mov ebx, edx
xor ebx, ebp
and ebx, edi
xor ebx, edx
mov edx, ebp
and dl, 1
shr ebx, 1
neg dl
sbb edx, edx
and edx, ecx
xor ebx, edx
xor ebx, dword [eax + 0x630]
dec dword [esp + 0x10]
mov dword [esi], ebx
mov esi, eax
jne 0x45691f
mov dword [esp + 0x10], 0x18c
mov edx, dword [esi]
mov ebp, dword [esi + 4]
lea eax, [esi + 4]
mov ebx, edx
xor ebx, ebp
and ebx, edi
xor ebx, edx
mov edx, ebp
and dl, 1
shr ebx, 1
neg dl
sbb edx, edx
and edx, ecx
xor ebx, edx
xor ebx, dword [esi - 0x38c]
dec dword [esp + 0x10]
mov dword [esi], ebx
mov esi, eax
jne 0x456956
mov eax, dword [esi]
mov edx, dword [0x4982a8]
mov ebx, eax
xor ebx, edx
and dl, 1
and ebx, edi
pop edi
xor ebx, eax
shr ebx, 1
neg dl
sbb edx, edx
and edx, ecx
xor ebx, edx
xor ebx, dword [esi - 0x38c]
mov dword [esi], ebx
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4569b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
push 1
pop esi
mov dword [0x4982a8], eax
mov edx, esi
mov eax, 0x4982a8
mov ecx, dword [eax]
add eax, 4
mov edi, ecx
shr edi, 0x1e
xor edi, ecx
imul edi, edi, 0x6c078965
add edi, edx
inc edx
mov dword [eax], edi
cmp eax, 0x498c64
jl 0x4569c5
mov dword [0x487a34], esi
mov dword [0x498c6c], esi
pop edi
pop esi
ret
Function at 0x45ef19
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor ecx, ecx
movzx eax, byte [ebx]
shl eax, 1
je 0x45ef2f
inc ebx
mov byte [ebp + ecx - 0x10], al
inc ecx
cmp ecx, 8
jl 0x45ef27
lea eax, [ebp - 0x10]
push eax
call sym.ruby187g.exc_des_setkey
test eax, eax
pop ecx
jne 0x45f03a
mov edi, dword [ebp + 0xc]
mov esi, 0x49a678
cmp byte [edi], 0x5f
je 0x45ef67
push 2
mov dword [ebp + 8], 0x19
pop eax
jmp 0x45efef
cmp byte [ebx], 0
je 0x45efb0
push 1
lea eax, [ebp - 0x10]
push 0
push eax
lea eax, [ebp - 0x10]
push eax
call sym.ruby187g.exc_des_cipher
add esp, 0x10
test eax, eax
jne 0x45f03a
xor ecx, ecx
movzx eax, byte [ebx]
shl eax, 1
je 0x45ef92
inc ebx
xor byte [ebp + ecx - 0x10], al
inc ecx
cmp ecx, 8
jl 0x45ef8a
lea eax, [ebp - 0x10]
push eax
call sym.ruby187g.exc_des_setkey
test eax, eax
pop ecx
jne 0x45f03a
jmp 0x45ef67
mov al, byte [edi]
push 3
inc edi
and dword [ebp + 8], 0
mov byte [0x49a678], al
pop ecx
movzx eax, byte [ecx + edi]
test eax, eax
jne 0x45efca
push 0x2e
pop eax
mov edx, dword [ebp + 8]
mov byte [ecx + 0x49a679], al
movzx eax, byte [eax + 0x49c350]
shl edx, 6
or eax, edx
dec ecx
mov dword [ebp + 8], eax
jns 0x45efbf
push 4
mov esi, 0x49a67d
pop eax
add edi, eax
mov dword [ebp + 0xc], eax
xor ebx, ebx
dec eax
test eax, eax
jl 0x45f01e
lea ecx, [esi + eax]
sub edi, esi
lea edx, [eax + 1]
movzx eax, byte [edi + ecx]
test eax, eax
jne 0x45f00c
push 0x2e
pop eax
mov byte [ecx], al
movzx eax, byte [eax + 0x49c350]
shl ebx, 6
or ebx, eax
dec ecx
dec edx
jne 0x45f001
push dword [ebp + 8]
add esi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push ebx
push eax
push 0x49a670
call sym.ruby187g.exc_des_cipher
add esp, 0x10
test eax, eax
je 0x45f041
xor eax, eax
jmp 0x45f125
movzx ecx, byte [ebp - 7]
xor eax, eax
push 0x3f
mov ah, byte [ebp - 8]
or eax, ecx
movzx ecx, byte [ebp - 6]
shl eax, 8
or eax, ecx
pop ecx
mov edx, eax
and edx, ecx
sar eax, 6
mov dl, byte [edx + 0x488310]
mov byte [esi + 3], dl
mov edx, eax
and edx, ecx
sar eax, 6
mov dl, byte [edx + 0x488310]
mov byte [esi + 2], dl
mov edx, eax
and edx, ecx
sar eax, 6
mov dl, byte [edx + 0x488310]
mov byte [esi + 1], dl
mov al, byte [eax + 0x488310]
mov byte [esi], al
add esi, 4
movzx eax, byte [ebp - 5]
movzx edx, byte [ebp - 4]
shl eax, 8
or eax, edx
movzx edx, byte [ebp - 3]
shl eax, 8
or eax, edx
mov edx, eax
and edx, ecx
sar eax, 6
mov dl, byte [edx + 0x488310]
mov byte [esi + 3], dl
mov edx, eax
and edx, ecx
sar eax, 6
mov dl, byte [edx + 0x488310]
mov byte [esi + 2], dl
mov edx, eax
and edx, ecx
sar eax, 6
mov dl, byte [edx + 0x488310]
mov byte [esi + 1], dl
mov al, byte [eax + 0x488310]
mov byte [esi], al
add esi, 4
movzx eax, byte [ebp - 2]
movzx edx, byte [ebp - 1]
shl eax, 8
or eax, edx
shl eax, 2
mov edx, eax
and edx, ecx
sar eax, 6
mov dl, byte [edx + 0x488310]
mov byte [esi + 2], dl
mov edx, eax
and edx, ecx
sar eax, 6
mov cl, byte [edx + 0x488310]
mov byte [esi + 1], cl
mov al, byte [eax + 0x488310]
and byte [esi + 3], 0
mov byte [esi], al
mov eax, 0x49a678
pop edi
pop esi
pop ebx
leave
ret
Function at 0x460835
Capabilities:
Terminate process

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
push dword [esp + 0x10]
call fcn.00460860
add esp, 0x10
test eax, eax
je 0x46085f
cmp eax, 0xffffffff
jne 0x460859
jmp sym.ruby187g.exc_rb_memerror
push eax
call sym.ruby187g.exc_rb_jump_tag
ret

Function at 0x46146b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
call sym.ruby187g.exc_rb_ary_new
mov ebx, eax
lea eax, [ebp + 8]
push eax
call sym.ruby187g.exc_rb_string_value
push dword [ebp + 8]
call sym.ruby187g.exc_rb_check_safe_obj
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
cmp dword [ecx + 8], edi
jle 0x4614e3
mov eax, dword [ecx + 0xc]
push dword [ebp + 0xc]
add eax, edi
push eax
push ebx
call fcn.004614fa
add esp, 0xc
test eax, eax
jne 0x4614ea
mov eax, dword [ebp + 8]
cmp edi, dword [eax + 8]
jge 0x4614e3
mov esi, dword [eax + 0xc]
add esi, edi
push esi
call sub.MSVCRT.dll_strlen
pop ecx
lea eax, [esi + eax + 1]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
mov esi, dword [ecx + 8]
lea edi, [edx + esi]
cmp eax, edi
jae 0x4614db
cmp byte [eax], 0
jne 0x4614db
inc eax
jmp 0x4614cf
sub eax, edx
mov edi, eax
cmp edi, esi
jl 0x461495
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret
cmp eax, 0xffffffff
jne 0x4614f4
jmp sym.ruby187g.exc_rb_memerror
push eax
call sym.ruby187g.exc_rb_jump_tag

Function at 0x461543
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
call sym.ruby187g.exc_rb_ary_new
xor ebx, ebx
mov edi, eax
cmp dword [ebp + 8], ebx
jle 0x46158f
mov esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
call sym.ruby187g.exc_rb_string_value
push dword [ebp + 0xc]
call sym.ruby187g.exc_rb_check_safe_obj
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push dword [eax + 0xc]
push edi
call fcn.004614fa
add esp, 0x14
test eax, eax
jne 0x461596
inc ebx
add esi, 4
cmp ebx, dword [ebp + 8]
jl 0x46155a
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0xffffffff
jne 0x4615a0
jmp sym.ruby187g.exc_rb_memerror
push eax
call sym.ruby187g.exc_rb_jump_tag
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp + 0xc]
push eax
push 0x47f8d4
push dword [ebp + 0xc]
push dword [ebp + 8]
call sym.ruby187g.exc_rb_scan_args
add esp, 0x14
cmp eax, 2
jne 0x4615e1
mov eax, dword [ebp - 4]
test al, 1
je 0x4615d8
sar eax, 1
mov esi, eax
jmp 0x4615e3
push eax
call sym.ruby187g.exc_rb_num2long
pop ecx
jmp 0x4615d4
xor esi, esi
push dword [ebp + 0xc]
call sym.ruby187g.exc_rb_check_array_type
cmp eax, 4
pop ecx
jne 0x4615fe
push esi
push dword [ebp + 0xc]
call fcn.0046146b
pop ecx
pop ecx
jmp 0x461616
mov dword [ebp + 8], eax
push esi
mov eax, dword [ebp + 8]
push dword [eax + 0x10]
mov eax, dword [ebp + 8]
push dword [eax + 8]
call fcn.00461543
add esp, 0xc
mov esi, eax
call sym.ruby187g.exc_rb_block_given_p
test eax, eax
je 0x46162d
push esi
call sym.ruby187g.exc_rb_ary_each
pop ecx
push 4
pop eax
jmp 0x46162f
mov eax, esi
pop esi
leave
ret
Function at 0x10001450
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x10005004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x188], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
cmp eax, 3
ja case.default.0x1000147b
jmp dword [eax*4 + 0x10001648]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.process_attached_n
call esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x800
push 0x10005390
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, eax
test ebx, ebx
je case.default.0x1000147b
push 0x10005390
call esi
xor edx, edx
nop dword [eax + eax]
inc edx
cmp byte [edx + str.Calc.ex], 0
jne 0x100014c0
xor edi, edi
test ebx, ebx
je 0x100014fe
mov eax, ebx
sub eax, edi
cmp eax, edx
jb 0x100014fe
xor esi, esi
xor ecx, ecx
test edx, edx
je 0x100014f5
mov al, byte [ecx + edi + 0x10005390]
cmp al, byte [ecx + str.Calc.ex]
jne 0x100014f5
inc ecx
inc esi
cmp ecx, edx
jb 0x100014e0
cmp esi, edx
je 0x10001524
inc edi
cmp edi, ebx
jb 0x100014d0
xor eax, eax
test eax, eax
je case.default.0x1000147b
push ecx
lea edx, [ebp - 0x84]
mov ecx, 0x60009
call fcn.10001010
add esp, 4
test eax, eax
jne 0x1000152b
xor esi, esi
jmp 0x10001550
mov eax, 1
jmp 0x10001500
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
xor ecx, ecx
nop dword [eax]
mov byte [ebp + ecx - 0x84], cl
inc ecx
cmp ecx, 0x80
jb 0x10001540
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10005384], esi
test esi, esi
jne 0x10001564
xor edi, edi
jmp 0x100015a6
push ecx
lea edx, [ebp - 0x104]
mov ecx, 0x11003f
call fcn.10001010
add esp, 4
test eax, eax
jne 0x10001580
xor edi, edi
jmp 0x100015a6
lea eax, [ebp - 0x104]
push eax
push esi
call ebx
mov edi, eax
xor ecx, ecx
nop
mov byte [ebp + ecx - 0x104], cl
inc ecx
cmp ecx, 0x80
jb 0x10001590
mov esi, dword [0x10005384]
mov dword [0x10005388], edi
test esi, esi
jne 0x100015b4
xor eax, eax
jmp 0x100015f6
push ecx
lea edx, [ebp - 0x184]
mov ecx, 0xe0051
call fcn.10001010
add esp, 4
test eax, eax
je 0x100015f6
lea eax, [ebp - 0x184]
push eax
push esi
call ebx
xor ecx, ecx
nop dword [eax + eax]
mov byte [ebp + ecx - 0x184], cl
inc ecx
cmp ecx, 0x80
jb 0x100015e0
mov edi, dword [0x10005388]
mov dword [0x10005380], eax
test edi, edi
je case.default.0x1000147b
test eax, eax
je case.default.0x1000147b
push 0
push dword [ebp - 0x188]
push 0x10001150
push 2
call edi
add esp, 0x10
mov dword [0x1000538c], eax
push str.hooked_n
jmp 0x10001628
push str.process_detached_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001658
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401b75
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x4109f8]
xor eax, ebp
mov dword [ebp - 8], eax
cmp byte [ebp + 0x10], 0
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xa0], eax
jne 0x401bc6
push 0
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401d72
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x80], eax
jne 0x401d72
jmp 0x401d56
cmp dword [ebp + 8], 0xd
jb 0x401d72
xor ebx, ebx
lea eax, [ebp - 0x90]
mov edx, edi
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x90], 0x401b5f
mov dword [ebp - 0x8c], 0x401b6a
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x6c], ebx
call fcn.00404610
sub dword [ebp + 8], 0xd
xor eax, eax
inc eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
add edi, 5
mov eax, dword [edi]
push eax
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x84], eax
call fcn.0040c637
mov esi, eax
pop ecx
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 8]
push eax
add edi, 8
push edi
lea eax, [ebp - 0x84]
push eax
push esi
lea edi, [ebp - 0x7c]
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x80], ebx
call fcn.004044c6
add esp, 0x14
push dword [ebp - 0x6c]
mov edi, eax
lea eax, [ebp - 0x90]
push eax
call dword [ebp - 0x8c]
push dword [ebp - 0x68]
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 0x6c], ebx
call dword [ebp - 0x8c]
add esp, 0x10
mov dword [ebp - 0x68], ebx
cmp edi, ebx
je 0x401c94
or edi, 0xffffffff
push esi
call fcn.0040c67b
pop ecx
mov eax, edi
jmp 0x401d75
mov ecx, dword [esi]
add esi, 4
mov edi, dword [esi]
push 4
pop eax
add esi, eax
mov ebx, dword [esi]
add esi, eax
mov edx, dword [esi]
add esi, eax
mov dword [ebp - 0x94], edx
mov edx, dword [esi]
push ecx
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x98], edx
add esi, eax
call fcn.0040c637
pop ecx
push dword [ebp - 0x80]
mov dword [ebp - 0x84], eax
push eax
push dword [ebp - 0x98]
mov eax, dword [ebp - 0x94]
push eax
lea edx, [eax + ebx]
lea eax, [ebx + edi]
add eax, esi
push eax
push ebx
lea eax, [edi + esi]
push eax
add edx, edi
push edi
add edx, esi
push esi
call fcn.0040467d
add esp, 0x24
test eax, eax
je 0x401d13
push dword [ebp - 0x84]
call fcn.0040c67b
mov esi, dword [ebp - 0x88]
xor edi, edi
pop ecx
inc edi
jmp 0x401c86
mov esi, dword [ebp - 0x80]
push 0
lea eax, [ebp - 0x9c]
push eax
push esi
push dword [ebp - 0x84]
push dword [ebp - 0xa0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401d5a
cmp dword [ebp - 0x9c], esi
jne 0x401d5a
push dword [ebp - 0x84]
call fcn.0040c67b
pop ecx
push dword [ebp - 0x88]
call fcn.0040c67b
pop ecx
xor eax, eax
jmp 0x401d75
push dword [ebp - 0x84]
call fcn.0040c67b
pop ecx
push dword [ebp - 0x88]
call fcn.0040c67b
pop ecx
or eax, 0xffffffff
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004088de
leave
ret
Function at 0x402885
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [eax]
push ebx
push esi
push edi
sub eax, 0x10
call fcn.00402625
mov esi, eax
push 0x44
xor ebx, ebx
lea eax, [ebp - 0x5c]
push ebx
add esi, 0x10
push eax
mov dword [ebp - 8], esi
call fcn.00408b70
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
or dword [ebp - 0x30], 0x81
xor eax, eax
inc eax
mov word [ebp - 0x2c], ax
cmp dword [esi - 4], eax
jle 0x4028e6
push dword [esi - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.004026d5
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push 0x400
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40291e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lea eax, [esi - 0x10]
call fcn.004010b5
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [ebp - 1], 1
cmp dword [ebp + 8], ebx
je 0x402944
push dword [ebp + 8]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
setne byte [ebp - 1]
push dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x14]
call edi
mov bl, byte [ebp - 1]
jmp 0x40290f

Function at 0x402985
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, eax
call fcn.00402a1e
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x402a16
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
cmp eax, edi
je 0x402a11
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esi + 0xc], edx
cmp edx, edi
je 0x402a08
push 6
pop ecx
mov dword [ebp - 0x1c], edi
xor eax, eax
lea edi, [ebp - 0x18]
rep stosd dword es:[edi], eax
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x402a08
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x10], eax
mov al, 1
jmp 0x402a18
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00402a1e
xor al, al
pop edi
pop esi
leave
ret 4
Function at 0x402a76
Capabilities:
Parse pe header

Disassembly:
test ecx, ecx
jne 0x402a7d
xor al, al
ret
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x402a7a
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x402a7a
mov eax, dword [eax + 0x98]
test eax, eax
je 0x402aa3
lea edx, [eax + ecx]
jmp 0x402aa5
xor edx, edx
test edx, edx
je 0x402a7a
lea eax, [edx + 8]
test eax, eax
je 0x402a7a
cmp byte [eax], 0x30
lea ecx, [eax + 1]
jne 0x402ad4
mov al, byte [ecx]
inc ecx
cmp al, 0x82
jne 0x402ad4
movzx eax, byte [ecx]
movzx ecx, byte [ecx + 1]
shl eax, 8
lea eax, [eax + ecx + 0x13]
and eax, 0xffffff8
jmp 0x402ad6
xor eax, eax
test eax, eax
je 0x402a7a
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edx
mov al, 1
ret

Function at 0x402b80
Capabilities:
Delete file

Disassembly:
push esi
xor esi, esi
cmp dword [edi + 0x10], esi
je 0x402ba3
test esi, esi
jl 0x402bb7
cmp esi, dword [edi + 0x10]
jge 0x402bb7
mov eax, dword [edi + 0xc]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, dword [edi + 0x10]
jne 0x402b88
lea esi, [edi + 0xc]
call fcn.00402307
mov eax, dword [edi + 4]
sub eax, 0x10
pop esi
jmp fcn.004010b5
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x402bc9
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4022c
call fcn.0040bd70
mov eax, dword [0x4109f8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x40220], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x40224]
push eax
mov esi, 0x200
push esi
lea eax, [ebp - 0x4020c]
push eax
push dword [edi]
mov byte [ebp - 0x4020d], 1
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402cd0
cmp dword [ebp - 0x40224], esi
jne 0x402cd0
push 4
lea eax, [ebp - 0x4010b]
push 0x40ebb4
push eax
call fcn.00409cd8
add esp, 0xc
test eax, eax
jne 0x402c4f
mov eax, dword [ebp - 0x40220]
mov byte [eax], 1
mov al, 1
jmp 0x402cd2
push 5
lea eax, [ebp - 0x4010b]
push 0x40ebac
push eax
call fcn.00409cd8
add esp, 0xc
test eax, eax
jne 0x402cd0
mov eax, dword [edi + 4]
sub eax, 0x10
call fcn.00402625
add eax, 0x10
mov dword [ebp - 0x40214], eax
push 0x40ec48
lea eax, [ebp - 0x40214]
push eax
call fcn.00402e09
lea eax, [ebp - 0x4020c]
push eax
lea eax, [ebp - 0x40214]
push eax
call fcn.00402e09
mov esi, dword [ebp - 0x40214]
push ebx
push 0x100
push 2
push ebx
push ebx
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x40220], eax
cmp eax, 0xffffffff
jne 0x402ce2
lea eax, [esi - 0x10]
call fcn.004010b5
xor al, al
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.004088de
leave
ret 4
push 8
lea eax, [ebp - 0x40190]
push ebx
push eax
call fcn.0040bfca
add esp, 0xc
push 1
push ebx
push ebx
push dword [edi]
mov esi, eax
mov dword [ebp - 0x40218], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add eax, dword [ebp - 0x40218]
neg esi
and esi, 0x1ff
add esi, eax
mov dword [ebp - 0x40228], esi
cmp dword [ebp - 0x40218], ebx
jbe 0x402d9d
mov ecx, dword [ebp - 0x40218]
mov eax, 0x40000
mov dword [ebp - 0x4021c], eax
cmp ecx, eax
jae 0x402d41
mov dword [ebp - 0x4021c], ecx
push ebx
lea eax, [ebp - 0x40224]
push eax
push dword [ebp - 0x4021c]
lea eax, [ebp - 0x4000c]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402d97
push ebx
lea eax, [ebp - 0x40224]
push eax
push dword [ebp - 0x4021c]
lea eax, [ebp - 0x4000c]
push eax
push dword [ebp - 0x40220]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402d97
mov eax, dword [ebp - 0x4021c]
sub dword [ebp - 0x40218], eax
jne 0x402d26
jmp 0x402d9d
mov byte [ebp - 0x4020d], bl
push dword [ebp - 0x40220]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x4020d], bl
je 0x402de0
cmp byte [edi + 8], bl
je 0x402dcc
lea esi, [edi + 0xc]
lea ebx, [ebp - 0x40214]
call fcn.00402291
mov esi, dword [ebp - 0x40228]
xor ebx, ebx
mov eax, dword [edi + 0x18]
cmp eax, ebx
je 0x402de0
push dword [ebp - 0x40214]
push dword [edi + 0x1c]
call eax
pop ecx
pop ecx
cmp esi, 0xffffffff
je 0x402df0
push ebx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x40214]
add eax, 0xfffffff0
call fcn.004010b5
mov al, byte [ebp - 0x4020d]
jmp 0x402cd2