joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4049cd
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 [0x40af24]
push edi
jae 0x404b94
mov eax, esi
sar eax, 5
lea ebx, [eax*4 + 0x40af40]
mov eax, dword [ebx]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x404b94
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp + 0xc]
mov ecx, edi
je 0x404a73
test dl, 2
jne 0x404a73
test dl, 0x48
je 0x404a3d
mov al, byte [eax + 5]
cmp al, 0xa
je 0x404a3d
dec dword [ebp + 0x10]
mov byte [edi], al
mov eax, dword [ebx]
lea ecx, [edi + 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 [ebx]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404a86
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x404a6e
mov dword [0x40aaf4], ecx
jmp 0x404b9b
cmp eax, 0x6d
jne 0x404a7a
xor eax, eax
jmp 0x404ba8
push eax
call fcn.004066ed
pop ecx
jmp 0x404ba5
mov eax, dword [ebx]
mov edx, dword [ebp - 0x10]
add dword [ebp - 0xc], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x404b8f
test edx, edx
je 0x404aa9
cmp byte [edi], 0xa
jne 0x404aa9
or al, 4
jmp 0x404aab
and al, 0xfb
mov byte [ecx], al
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 0x404b89
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x404b79
cmp al, 0xd
je 0x404adf
mov byte [edi], al
inc edi
inc dword [ebp - 8]
jmp 0x404b6b
dec ecx
cmp dword [ebp - 8], ecx
jae 0x404af9
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x404af4
add dword [ebp - 8], 2
jmp 0x404b4d
mov dword [ebp - 8], eax
jmp 0x404b67
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404b21
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x404b67
cmp dword [ebp - 0x10], 0
je 0x404b67
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x48
je 0x404b42
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x404b4d
mov byte [edi], 0xd
mov ecx, dword [ebx]
mov byte [ecx + esi + 5], al
jmp 0x404b6a
cmp edi, dword [ebp + 0xc]
jne 0x404b52
cmp byte [ebp - 1], 0xa
jne 0x404b52
mov byte [edi], 0xa
jmp 0x404b6a
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00404eed
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x404b6b
mov byte [edi], 0xd
inc edi
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x404ac3
jmp 0x404b89
mov eax, dword [ebx]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x404b89
or al, 2
mov byte [esi], al
sub edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov eax, dword [ebp - 0xc]
jmp 0x404ba8
and dword [0x40aaf4], 0
mov dword [0x40aaf0], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40508f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x40a748]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x40af24]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
jae 0x40521f
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x40af40]
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 - 0x18], ebx
je 0x40521f
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
jne 0x4050ee
xor eax, eax
jmp 0x405233
test al, 0x20
je 0x4050ff
push 2
push edi
push edi
push ecx
call fcn.00406916
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4051bb
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
jbe 0x4051f3
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
cmp ecx, dword [ebp + 0x10]
jae 0x405155
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x405146
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x18]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x40512b
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405195
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
cmp eax, edi
jl 0x40519e
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x40511f
jmp 0x4051a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x40521a
cmp dword [ebp + 8], edi
je 0x4051f3
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x4051e8
mov dword [0x40aaf4], eax
jmp 0x405226
push edi
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4051dd
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
jmp 0x4051a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x4051a0
push dword [ebp + 8]
call fcn.004066ed
pop ecx
jmp 0x405230
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x405208
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x4050e7
mov dword [0x40aaf0], 0x1c
mov dword [0x40aaf4], edi
jmp 0x405230
sub eax, dword [ebp - 0x14]
jmp 0x405233
and dword [0x40aaf4], 0
mov dword [0x40aaf0], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.004062a7
leave
ret
Function at 0x40555a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x40a748]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40a610]
je 0x405587
inc eax
cmp eax, 0x12
jb 0x405578
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40a610]
jne 0x4056bb
mov eax, dword [0x40ab4c]
cmp eax, 1
je 0x405696
cmp eax, edx
jne 0x4055b7
cmp dword [0x40a5f4], 1
je 0x405696
cmp ecx, 0xfc
je 0x4056bb
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4055f0
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00401b10
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.004026d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x405632
lea eax, [ebp - 0x10c]
push eax
call fcn.004026d0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x408938
push edi
call fcn.00402140
add esp, 0x10
push edi
call fcn.004026d0
push dword [esi + 0x40a614]
mov ebx, eax
call fcn.004026d0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00405cc0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00401b10
push edi
push ebx
call fcn.00401b20
push 0x408918
push ebx
call fcn.00401b20
push dword [esi + 0x40a614]
push ebx
call fcn.00401b20
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00406c85
add esp, 0x2c
jmp 0x4056bb
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x40a614]
push dword [esi]
call fcn.004026d0
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 - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004062a7
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406118
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00405cc0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4061ad
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x40aafc]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4061ad
cmp eax, 1
je 0x4061c5
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4061ad
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x406182
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4061a9
xor eax, eax
inc eax
jmp 0x4061e1
cmp esi, ebx
jae 0x4061b1
xor eax, eax
jmp 0x4061e1
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40aafc]
jmp 0x4061c7
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406c85
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40aca0], ebx
push esi
push edi
jne 0x406d05
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x406d40
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40aca0], eax
je 0x406d40
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40aca4], eax
call esi
cmp dword [0x40aafc], 2
mov dword [0x40aca8], eax
jne 0x406d05
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40acb0], eax
je 0x406d05
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40acac], eax
mov eax, dword [0x40acac]
test eax, eax
je 0x406d4a
call eax
test eax, eax
je 0x406d31
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40acb0]
test eax, eax
je 0x406d31
test byte [ebp - 8], 1
jne 0x406d4a
cmp dword [0x40ab08], 4
jb 0x406d44
or byte [ebp + 0x12], 0x20
jmp 0x406d69
xor eax, eax
jmp 0x406d79
or byte [ebp + 0x12], 4
jmp 0x406d69
mov eax, dword [0x40aca4]
test eax, eax
je 0x406d69
call eax
mov ebx, eax
test ebx, ebx
je 0x406d69
mov eax, dword [0x40aca8]
test eax, eax
je 0x406d69
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40aca0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407455
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00405cc0
mov eax, dword [0x40a748]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x40af24]
mov dword [ebp - 4], eax
jae 0x407595
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x40af40]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x407595
push 1
push esi
push ebx
call fcn.00404eed
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40759f
push 2
push esi
push ebx
call fcn.00404eed
add esp, 0xc
cmp eax, 0xffffffff
je 0x40759f
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x407542
push 0x1000
lea eax, [ebp - 0x1008]
push esi
push eax
call fcn.00405ea0
push 0x8000
push ebx
call fcn.00407774
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x407501
mov eax, edi
push eax
lea eax, [ebp - 0x1008]
push eax
push ebx
call fcn.0040508f
add esp, 0xc
cmp eax, 0xffffffff
je 0x40751f
sub edi, eax
test edi, edi
jg 0x4074f6
jmp 0x407535
cmp dword [0x40aaf4], 5
jne 0x407532
mov dword [0x40aaf0], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.00407774
pop ecx
pop ecx
jmp 0x407582
jge 0x407582
push 0
push dword [ebp + 0xc]
push ebx
call fcn.00404eed
push ebx
call fcn.004068da
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 0x407582
mov dword [0x40aaf0], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x40aaf4], eax
push 0
push dword [ebp - 8]
push ebx
call fcn.00404eed
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4075a2
mov dword [0x40aaf0], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.004062a7
leave
ret
Function at 0x1018870e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10203090]
jne 0x10188718
repz ret
jmp fcn.1018962c

Function at 0x1018a82b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10187ac4
and dword [ebp - 4], 0
cmp dword [0x102049bc], 0
mov ebx, eax
jne 0x1018a8dc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1018a98d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1018a98d
push eax
call fcn.10187a52
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x102049bc], eax
call esi
push eax
call fcn.10187a52
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x102049c0], eax
call esi
push eax
call fcn.10187a52
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x102049c4], eax
call esi
push eax
call fcn.10187a52
pop ecx
mov dword [0x102049cc], eax
test eax, eax
je 0x1018a8dc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10187a52
pop ecx
mov dword [0x102049c8], eax
mov eax, dword [0x102049c8]
cmp eax, ebx
je 0x1018a934
cmp dword [0x102049cc], ebx
je 0x1018a934
push eax
call fcn.10187acd
push dword [0x102049cc]
mov esi, eax
call fcn.10187acd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1018a934
test edi, edi
je 0x1018a934
call esi
test eax, eax
je 0x1018a92b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1018a92b
test byte [ebp - 0xc], 1
jne 0x1018a934
or dword [ebp + 0x10], 0x200000
jmp 0x1018a96d
mov eax, dword [0x102049c0]
cmp eax, ebx
je 0x1018a96d
push eax
call fcn.10187acd
pop ecx
test eax, eax
je 0x1018a96d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1018a96d
mov eax, dword [0x102049c4]
cmp eax, ebx
je 0x1018a96d
push eax
call fcn.10187acd
pop ecx
test eax, eax
je 0x1018a96d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x102049bc]
call fcn.10187acd
pop ecx
test eax, eax
je 0x1018a98d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1018a98f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1018b96e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.1018c99b
xor ecx, ecx
mov edx, eax
mov esi, dword [0x102028d4]
add esi, 0x1e9f
mov dword [0x102028d8], esi
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x1018b9bc
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov dword [0x102028d4], 0x1ee2
mov esi, dword [edx + eax + 0x18]
cmp esi, 0
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
je 0x1018ba0f
jmp 0x1018ba1a
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], edx
jmp 0x1018ba2e
mov eax, dword [ebp - 0x30]
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
jmp 0x1018b9f3
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov edx, dword [ebp - 0x44]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x4d], bh
mov byte [ebp - 0x4e], cl
je 0x1018ba7f
mov eax, dword [ebp - 0x4c]
add eax, 1
mov cl, byte [ebp - 0x4d]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x4e]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x48], eax
jne 0x1018ba2e
mov al, byte [ebp - 0x4e]
test al, 1
jne 0x1018bab5
jmp 0x1018ba88
xor eax, eax
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov edx, dword [ebp - 0x40]
add edx, 2
mov esi, dword [ebp - 0x2c]
cmp ecx, esi
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x30], eax
jb 0x1018b9f3
jmp 0x1018ba0f
mov eax, dword [ebp - 0x40]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov dword [0x102028d4], 0xe82
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [ebp - 0x30], edi
jmp 0x1018ba0f
Function at 0x1018bba4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [0x102028d4], 0x1094
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x30]
mov ecx, eax
add ecx, 1
mov dl, byte [eax + 0x1019a8c0]
mov dh, byte [eax + 0x1019a891]
sub dh, dl
mov byte [ebp + eax - 0x24], dh
cmp ecx, 0xe
mov dword [ebp - 0x30], ecx
jne 0x1018bbc6
lea eax, [ebp - 0x24]
mov dword [0x102028d8], 0x2682
mov dword [0x102028d4], 0x1830
mov dword [ebp - 0x34], eax
call fcn.1018baf4
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.1018b844
cmp eax, 0
mov dword [ebp - 0x38], eax
je 0x1018bcd4
mov eax, dword [ebp - 0x38]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [0x102028d4], 0x1666
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x3c], eax
call fcn.1018c4cc
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x3c], ecx
mov dword [0x102028d8], 0x225e
mov ecx, dword [ebp - 0x3c]
mov dword [edx + 0x4c], ecx
mov dword [0x102028d4], 0x6c0
add ecx, 0x248e
mov esi, dword [ebp - 0x3c]
cmp esi, 0
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], eax
je 0x1018bccb
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
add esp, 0x50
pop esi
pop ebp
ret
xor eax, eax
add esp, 0x50
pop esi
pop ebp
ret
Function at 0x1018bf12
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [0x102028d8], 0x350
mov dword [ebp - 4], 0
mov dword [0x102028d4], 0x1212
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x1018bfbe
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x1018c04a
jmp 0x1018bf7e
mov eax, 1
mov dword [0x102028d8], 0xeaf
mov dword [ebp - 0x18], eax
jmp 0x1018c062
xor eax, eax
mov dword [0x102028d4], 0xda6
mov dword [ebp - 0x18], eax
jmp 0x1018c062
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0xe], 0x6c
je 0x1018bf67
jmp 0x1018bf7e
mov dword [0x102028d4], 0xb66
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x1018bf52
jmp 0x1018bf7e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
je 0x1018bfeb
mov eax, dword [ebp - 0x1c]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x20], eax
jl 0x1018bfbe
mov eax, dword [ebp - 0x20]
mov dword [0x102028d8], 0x17f8
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
jne 0x1018bf7e
mov dword [0x102028d4], 0xf85
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x1018bf7e
mov dword [0x102028d4], 0x2175
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x1018bfa3
jmp 0x1018bf7e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x1018bf92
jmp 0x1018bf7e
mov eax, dword [ebp - 0x18]
add esp, 0x20
pop ebp
ret
Function at 0x1018c73e
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x102028d4], 0x1f4f
mov dword [0x102028e0], 0
mov byte [0x102028e4], 0
mov dword [0x102028dc], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1018c7a8
xor eax, eax
mov ecx, dword [0x102028d4]
add ecx, 0x1879
mov dword [0x102028d8], ecx
mov dword [0x102028dc], 0
mov dword [ebp - 0x20], eax
jmp 0x1018c7d0
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x102028dc]
add eax, 1
mov dword [0x102028dc], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1018c7a8
jmp 0x1018c785
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x102028e8], 0
mov edi, dword [0x102028e0]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x102028e8], esi
mov eax, esi
cdq
idiv ecx
mov dword [0x102028e0], edx
mov dword [0x102028d8], 0x9a3
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x102028e4], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov cl, byte [0x102028e4]
mov esi, dword [0x102028e0]
mov byte [ebx + esi], cl
mov esi, dword [0x102028dc]
add esi, 1
mov dword [0x102028dc], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x1018c7d0
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret