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

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40e818], esi
push edi
jne 0x4044b1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40e814], esi
mov byte [0x40e810], al
jne 0x404517
mov ecx, dword [0x40edf0]
test ecx, ecx
je 0x4044f8
mov eax, dword [0x40edec]
sub eax, 4
cmp eax, ecx
jmp 0x4044f1
mov eax, dword [eax]
test eax, eax
je 0x4044e3
call eax
mov eax, dword [0x40edec]
sub eax, 4
cmp eax, dword [0x40edf0]
mov dword [0x40edec], eax
jae 0x4044db
mov eax, 0x40e020
mov esi, 0x40e02c
cmp eax, esi
mov edi, eax
jae 0x404517
mov eax, dword [edi]
test eax, eax
je 0x404510
call eax
add edi, 4
cmp edi, esi
jb 0x404508
mov eax, 0x40e030
mov esi, 0x40e034
cmp eax, esi
mov edi, eax
jae 0x404536
mov eax, dword [edi]
test eax, eax
je 0x40452f
call eax
add edi, 4
cmp edi, esi
jb 0x404527
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x404550
push dword [ebp + 8]
mov dword [0x40e818], 1
call fcn.004043f7
pop ebp
ret
Function at 0x404ac3
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x40c098
call fcn.00404e38
mov edi, 0x94
mov eax, edi
call fcn.00407770
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40e7d8], ecx
mov eax, dword [esi + 4]
mov dword [0x40e7e4], eax
mov edx, dword [esi + 8]
mov dword [0x40e7e8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40e7dc], esi
cmp ecx, 2
je 0x404b23
or esi, 0x8000
mov dword [0x40e7dc], esi
shl eax, 8
add eax, edx
mov dword [0x40e7e0], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x404b5c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404b5c
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x404b74
cmp eax, 0x20b
je 0x404b61
mov dword [ebp - 0x1c], edi
jmp 0x404b88
cmp dword [ecx + 0x84], 0xe
jbe 0x404b5c
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x404b82
cmp dword [ecx + 0x74], 0xe
jbe 0x404b5c
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.00404fa7
pop ecx
test eax, eax
jne 0x404bb4
cmp dword [0x40e824], 2
je 0x404ba1
call fcn.004071cf
push 0x1c
call fcn.00407058
push 0xff
call fcn.004043f7
pop ecx
pop ecx
call fcn.00406b68
mov dword [ebp - 4], edi
call fcn.004065e7
test eax, eax
jge 0x404bcd
push 0x1b
call fcn.00404a9e
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40ede4], eax
call fcn.0040764e
mov dword [0x40e81c], eax
call fcn.004075ac
test eax, eax
jge 0x404bf3
push 8
call fcn.00404a9e
pop ecx
call fcn.00407379
test eax, eax
jge 0x404c04
push 9
call fcn.00404a9e
pop ecx
push 1
call fcn.00404427
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x404c1a
push eax
call fcn.00404a9e
pop ecx
mov eax, dword [0x40e7f8]
mov dword [0x40e7fc], eax
push eax
push dword [0x40e7f0]
push dword [0x40e7ec]
call fcn.004033c0
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x404c49
push esi
call fcn.00404552
call fcn.00404574
jmp 0x404c7b
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.00404e73
ret
Function at 0x406865
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x40eca0]
mov eax, dword [0x40e090]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x406a2b
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x40ecc0]
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 0x406a2b
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x4068cf
xor eax, eax
jmp 0x406a3f
test al, 0x20
je 0x4068e0
push 2
push edi
push edi
push ecx
call fcn.00408b45
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4069b5
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x4069fc
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x406942
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x406933
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 0x406915
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 0x406982
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x40698e
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x406909
jmp 0x406990
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x406a26
cmp dword [ebp + 0x3a4], edi
je 0x4069fc
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x4069ee
mov dword [0x40e7d0], eax
jmp 0x406a32
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 0x4069e0
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x406990
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x406990
push dword [ebp + 0x3a4]
call fcn.00408ae6
pop ecx
jmp 0x406a3c
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x406a14
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x4068c8
mov dword [0x40e7cc], 0x1c
mov dword [0x40e7d0], edi
jmp 0x406a3c
sub eax, dword [ebp - 0x7c]
jmp 0x406a3f
and dword [0x40e7d0], 0
mov dword [0x40e7cc], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0040406d
add ebp, 0x39c
leave
ret
Function at 0x407058
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40e090]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40e360]
je 0x40708d
inc eax
cmp eax, 0x13
jb 0x40707e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40e360]
jne 0x4071b3
mov eax, dword [0x40e824]
cmp eax, 1
je 0x40718b
cmp eax, edx
jne 0x4070bd
cmp dword [0x40e334], 1
je 0x40718b
cmp ecx, 0xfc
je 0x4071b3
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4070f3
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004078b0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00405b80
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x407127
mov eax, edi
push eax
call fcn.00405b80
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c0dc
push edi
call fcn.00404620
add esp, 0x10
push edi
call fcn.00405b80
push dword [esi + 0x40e364]
mov ebx, eax
call fcn.00405b80
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00407770
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004078b0
push edi
push ebx
call fcn.004078c0
push 0x40c0d8
push ebx
call fcn.004078c0
push dword [esi + 0x40e364]
push ebx
call fcn.004078c0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004077ad
add esp, 0x2c
jmp 0x4071b3
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40e364]
push dword [esi]
call fcn.00405b80
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040406d
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4077ad
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40e954], ebx
push esi
push edi
jne 0x40782d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x407868
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40e954], eax
je 0x407868
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40e958], eax
call esi
cmp dword [0x40e7d8], 2
mov dword [0x40e95c], eax
jne 0x40782d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40e964], eax
je 0x40782d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40e960], eax
mov eax, dword [0x40e960]
test eax, eax
je 0x407872
call eax
test eax, eax
je 0x407859
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40e964]
test eax, eax
je 0x407859
test byte [ebp - 8], 1
jne 0x407872
cmp dword [0x40e7e4], 4
jb 0x40786c
or byte [ebp + 0x12], 0x20
jmp 0x407891
xor eax, eax
jmp 0x4078a1
or byte [ebp + 0x12], 4
jmp 0x407891
mov eax, dword [0x40e958]
test eax, eax
je 0x407891
call eax
mov ebx, eax
test ebx, ebx
je 0x407891
mov eax, dword [0x40e95c]
test eax, eax
je 0x407891
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40e954]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4079a8
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 0x4079d6
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 0x4079dd
cmp ebx, dword [eax + 4]
jae 0x4079dd
xor eax, eax
jmp 0x407bcd
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4079ee
xor eax, eax
inc eax
jmp 0x407bcc
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x407a04
cmp ecx, edx
jae 0x407b49
cmp dword [eax + 4], 0
je 0x407a0d
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4079f5
cmp dword [ebp + 8], 0
je 0x407a2f
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x407b49
cmp eax, esi
jae 0x407b49
mov eax, dword [0x40e968]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x407a54
cmp dword [esi*4 + 0x40e970], edi
je 0x407b4d
inc esi
cmp esi, eax
jl 0x407a42
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407bc9
cmp dword [ebp - 8], 0x1000000
jne 0x407bc9
test byte [ebp - 0xc], 0xcc
je 0x407ad2
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x407bc9
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407bc9
cmp word [eax + 0x18], 0x10b
jne 0x407bc9
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x407bc9
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x407ad2
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x407ad2
test byte [ecx + 0x27], 0x80
jne 0x407b49
push 1
push 0x40e9b0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4079e6
mov ecx, dword [0x40e968]
test ecx, ecx
mov edx, ecx
jle 0x407b06
lea eax, [ecx*4 + 0x40e96c]
cmp dword [eax], edi
je 0x407b06
dec edx
sub eax, 4
test edx, edx
jg 0x407afa
test edx, edx
jne 0x407b37
push 0xf
pop ebx
cmp ecx, ebx
jg 0x407b13
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x407b2b
lea eax, [edx*4 + 0x40e970]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x407b19
cmp ecx, 0x10
jge 0x407b37
inc ecx
mov dword [0x40e968], ecx
push 0
push 0x40e9b0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4079e6
xor eax, eax
jmp 0x407bcc
test esi, esi
jle 0x4079e6
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40e9b0
call ebx
test eax, eax
jne 0x4079e6
cmp dword [esi*4 + 0x40e970], edi
je 0x407ba3
mov eax, dword [0x40e968]
lea esi, [eax - 1]
test esi, esi
jl 0x407b91
cmp dword [esi*4 + 0x40e970], edi
je 0x407b8d
dec esi
jns 0x407b81
test esi, esi
jge 0x407ba1
cmp eax, 0x10
jge 0x407b9c
inc eax
mov dword [0x40e968], eax
lea esi, [eax - 1]
jmp 0x407ba3
je 0x407bbb
xor ecx, ecx
test esi, esi
jl 0x407bbb
lea eax, [ecx*4 + 0x40e970]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x407ba9
push 0
push 0x40e9b0
call ebx
jmp 0x4079e6
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408753
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x40876c
or eax, 0xffffffff
jmp 0x4087cd
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4087c9
push 0x3d
push esi
call fcn.00409e53
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4087c9
cmp esi, eax
je 0x4087c9
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x40e7f8]
sete cl
cmp eax, dword [0x40e7fc]
mov dword [ebp - 8], ecx
jne 0x4087af
mov edi, eax
call fcn.004086f2
mov dword [0x40e7f8], eax
cmp eax, ebx
jne 0x408808
cmp dword [ebp + 0xc], ebx
je 0x4087d1
cmp dword [0x40e800], ebx
je 0x4087d1
call fcn.00405c0b
test eax, eax
je 0x408808
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x4087da
xor eax, eax
jmp 0x4087cc
push 4
call fcn.00404125
cmp eax, ebx
pop ecx
mov dword [0x40e7f8], eax
je 0x4087c9
mov dword [eax], ebx
cmp dword [0x40e800], ebx
jne 0x408808
push 4
call fcn.00404125
cmp eax, ebx
pop ecx
mov dword [0x40e800], eax
je 0x4087c9
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x40e7f8]
call fcn.004086a5
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x408869
cmp dword [esi], ebx
je 0x408869
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0040407b
cmp dword [ebp - 8], ebx
pop ecx
jne 0x40884c
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4088aa
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x408843
mov eax, edi
shl eax, 2
push eax
push dword [0x40e7f8]
call fcn.00408dae
cmp eax, ebx
pop ecx
pop ecx
je 0x4088aa
jmp 0x4088a5
cmp dword [ebp - 8], ebx
jne 0x408915
cmp edi, ebx
jge 0x408878
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x40e7f8]
call fcn.00408dae
cmp eax, ebx
pop ecx
pop ecx
je 0x4087c9
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x40e7f8], eax
cmp dword [ebp + 0xc], ebx
je 0x4088ff
push dword [ebp - 4]
call fcn.00405b80
inc eax
inc eax
push eax
call fcn.00404125
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4088ff
push dword [ebp - 4]
push esi
call fcn.004078b0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4088f8
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0040407b
pop ecx
cmp dword [ebp - 8], ebx
je 0x40890d
push dword [ebp - 4]
call fcn.0040407b
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4087cc
push dword [ebp - 4]
call fcn.0040407b
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x4087d6
Function at 0x409250
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x40eca0]
push edi
jae 0x409425
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x40ecc0]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x409425
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x4092fb
test dl, 2
jne 0x4092fb
test dl, 0x48
je 0x4092c5
cmp byte [eax + 5], 0xa
je 0x4092c5
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40930e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x4092f6
mov dword [0x40e7d0], ecx
jmp 0x40942c
cmp eax, 0x6d
jne 0x409302
xor eax, eax
jmp 0x409439
push eax
call fcn.00408ae6
pop ecx
jmp 0x409436
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x409420
test eax, eax
je 0x409335
cmp byte [ebx], 0xa
jne 0x409335
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x40933e
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x40941a
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x40940a
cmp al, 0xd
je 0x409370
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x4093fc
dec ecx
cmp dword [ebp - 8], ecx
jae 0x40938a
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x409385
add dword [ebp - 8], 2
jmp 0x4093de
mov dword [ebp - 8], eax
jmp 0x4093f8
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4093b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4093f8
cmp dword [ebp - 0x10], 0
je 0x4093f8
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4093d3
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4093de
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4093fb
cmp ebx, dword [ebp + 0xc]
jne 0x4093e3
cmp byte [ebp - 1], 0xa
jne 0x4093e3
mov byte [ebx], 0xa
jmp 0x4093fb
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00408f48
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4093fc
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x409354
jmp 0x40941a
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x40941a
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x409439
and dword [0x40e7d0], 0
mov dword [0x40e7cc], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409989
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.00407770
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x409a24
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 [0x40e7d8]
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 0x409a24
cmp eax, 1
je 0x409a45
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 0x409a24
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4099f1
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x409a20
xor eax, eax
inc eax
jmp 0x409a64
cmp edi, eax
jae 0x409a28
xor eax, eax
jmp 0x409a64
cmp eax, esi
jae 0x409a2f
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 [0x40e7d8]
jmp 0x409a48
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 0x40a7c0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00407770
mov eax, dword [0x40e090]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x40eca0]
mov dword [ebp - 4], eax
jae 0x40a903
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x40ecc0]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x40a903
push 1
push esi
push ebx
call fcn.00408f48
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x40a90d
push 2
push esi
push ebx
call fcn.00408f48
add esp, 0xc
cmp eax, 0xffffffff
je 0x40a90d
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x40a8ad
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00408a30
push 0x8000
push ebx
call fcn.004048ed
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x40a86c
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.00406865
add esp, 0xc
cmp eax, 0xffffffff
je 0x40a88a
sub edi, eax
test edi, edi
jg 0x40a861
jmp 0x40a8a0
cmp dword [0x40e7d0], 5
jne 0x40a89d
mov dword [0x40e7cc], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.004048ed
pop ecx
pop ecx
jmp 0x40a8ed
jge 0x40a8ed
push 0
push dword [ebp + 0xc]
push ebx
call fcn.00408f48
push ebx
call fcn.00408d72
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x40a8ed
mov dword [0x40e7cc], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x40e7d0], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.00408f48
add esp, 0xc
mov eax, esi
pop edi
jmp 0x40a910
mov dword [0x40e7cc], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0040406d
leave
ret
Function at 0xa1a370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xa1a38e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xa43074
push ecx
mov edi, eax
call fcn.00a2e198
mov esi, eax
add esp, 8
test esi, esi
jne 0xa1a3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00a2e02e
push esi
call fcn.00a2dfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret