joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461ee0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 8]
push edi
mov edi, eax
and edi, 7
je 0x461f01
cmp eax, edi
jge 0x461ef9
call fcn.004616f0
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
xor eax, eax
cmp dword [esi + 8], eax
jle 0x461f2c
lea ecx, [eax - 8]
jmp 0x461f10
mov dl, byte [esi + 0xc]
shr dword [esi + 0xc], 8
add dword [esi + 8], ecx
mov byte [esp + eax + 0xc], dl
add eax, 1
cmp dword [esi + 8], 0
jg 0x461f10
cmp eax, 4
jge 0x461f4f
mov edi, dword [esi + 4]
mov edx, dword [esi]
cmp edx, edi
jb 0x461f39
xor ecx, ecx
jmp 0x461f41
mov cl, byte [edx]
add edx, 1
movzx ecx, cl
mov byte [esp + eax + 0xc], cl
add eax, 1
cmp eax, 4
jl 0x461f31
mov dword [esi], edx
mov eax, dword [esp + 0xc]
movzx ecx, byte [esp + 0xf]
movzx edx, byte [esp + 0xe]
movzx ebx, ah
movzx eax, al
shl ebx, 8
add ebx, eax
shl ecx, 8
mov eax, ebx
add ecx, edx
xor eax, 0xffff
cmp ecx, eax
je 0x461f89
mov dword [0x49e948], str.zlib_corrupt
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov ecx, dword [esi]
add ecx, ebx
cmp ecx, dword [esi + 4]
jbe 0x461fa3
pop edi
pop esi
mov dword [0x49e948], 0x48f260
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [esi + 0x10]
add edx, ebx
cmp edx, dword [esi + 0x18]
jbe 0x461fba
mov ecx, ebx
mov edi, esi
call fcn.00461730
test eax, eax
je 0x461f82
mov edi, dword [esi]
push ebp
mov ebp, dword [esi + 0x10]
push ebx
push edi
push ebp
call fcn.0046cef0
add esp, 0xc
add edi, ebx
add ebp, ebx
mov dword [esi + 0x10], ebp
pop ebp
mov dword [esi], edi
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x464fa0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x20
push ebx
mov dword [esi + 0x18], ecx
mov eax, dword [ecx]
mov edx, dword [eax + 0xb0]
push ebp
push edi
call edx
mov ecx, dword [esi + 0x18]
mov edx, dword [eax + 4]
mov ebp, dword [eax]
mov edi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
add edx, dword [ecx + 0xd0]
add ebp, dword [ecx + 0xcc]
sub edi, dword [ecx + 0xd4]
sub ebx, dword [ecx + 0xd8]
cmp byte [ecx + 0x401], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 0x40000080
je 0x464ff6
mov dword [esp + 0xc], 0x400000a0
mov eax, dword [ecx]
mov edx, dword [eax + 0x114]
call edx
mov ecx, dword [esp + 0x14]
mov edx, dword [eax + 0x164]
sub ebx, ecx
push ebx
sub edi, ebp
push edi
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push 0
push ecx
push 0
push edx
mov eax, esi
call fcn.00432010
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx]
mov edx, dword [eax + 0x114]
call edx
mov edi, eax
call fcn.0043ced0
mov eax, dword [eax]
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 1
push eax
push 0x30
push ecx
call edi
mov edx, dword [esi + 0x18]
mov eax, dword [edx + 0x3fc]
mov ecx, dword [esi + 4]
push 0
push eax
push 0xc5
push ecx
call edi
mov eax, dword [esi + 0x18]
cmp byte [eax + 0x401], 0
je 0x465082
movzx edx, word [eax + 0x402]
mov eax, dword [esi + 4]
push 0
push edx
push 0xcc
push eax
call edi
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0x140]
lea eax, [esp + 0x10]
push eax
call edx
mov ebx, 8
cmp dword [eax + 0x18], ebx
jb 0x4650a3
mov eax, dword [eax + 4]
jmp 0x4650a6
add eax, 4
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [esp + 0x28], ebx
jb 0x4650c4
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00469d48
add esp, 4
mov edx, dword [esi + 4]
push 0
push 0
push 0xb9
push edx
call edi
mov eax, dword [esi + 4]
push 0
push 3
push 0xd3
push eax
call edi
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10c]
call eax
mov edx, dword [esi + 4]
movzx ecx, al
push ecx
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [esi + 0x18]
movzx ecx, byte [eax + 0x400]
mov edx, dword [esi + 4]
push 0
push ecx
push 0xcf
push edx
call edi
mov eax, dword [esi + 4]
push 4
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x465140
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47fae8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x49b1b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
add esi, 1
lea eax, [esi + esi]
call fcn.00479f90
mov edi, esp
test edi, edi
je 0x4651f6
mov ecx, dword [ebx + 4]
push esi
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor esi, esi
mov eax, edi
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], esi
mov word [ebp - 0x28], si
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4651b0
sub eax, edx
sar eax, 1
push eax
push edi
lea esi, [ebp - 0x2c]
call fcn.00401df0
push 0xffffffffffffffff
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0x18]
push 0
mov edx, esi
push edx
add eax, 0x2d8
call fcn.00401c40
cmp dword [ebp - 0x14], 8
jb 0x4651f6
mov eax, dword [ebp - 0x28]
push eax
call fcn.00469d48
add esp, 4
xor eax, eax
lea esp, [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00469ab5
mov esp, ebp
pop ebp
ret 4
Function at 0x4698b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x47ec80
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push ebp
push esi
push edi
mov eax, dword [0x49b1b0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x50], 0
cmp dword [eax + 0x18], 8
jb 0x4698ee
mov eax, dword [eax + 4]
jmp 0x4698f1
add eax, 4
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x24], ebx
je 0x4699a0
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x469936
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x469999
mov ecx, dword [esp + 0x14]
push 1
push 0
push 0
push ecx
call fcn.004758d0
mov edi, eax
xor eax, eax
add edi, esi
adc edx, eax
lea esi, [esp + 0x14]
mov dword [esp + 0x18], edx
call fcn.0041d3b0
mov byte [esp + 0x50], 1
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x469999
push 0
lea ecx, [esp + 0x5c]
push ecx
push edi
push ebp
push ebx
mov dword [esp + 0x6c], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x469990
cmp dword [esp + 0x58], 0
seta al
test al, al
jne 0x4699b6
push ebp
call fcn.00469cbe
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
mov esi, dword [esp + 0x5c]
call fcn.0040cb00
lea eax, [esp + 0x28]
call fcn.00411400
mov edx, esi
mov eax, dword [edx + 8]
push 0
push eax
push ebp
lea eax, [esp + 0x34]
push eax
mov eax, edi
call fcn.00411480
test al, al
lea ecx, [esp + 0x14]
jne 0x469a09
call fcn.0040ca60
lea esi, [esp + 0x24]
call fcn.00415460
xor al, al
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
call fcn.0040ca60
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret

Function at 0x469ab5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x49b1b0]
jne 0x469abf
repz ret
jmp fcn.0046cd05
Function at 0x46ae85
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x46aec2
cmp dword [ebp + 0x14], edi
je 0x46aec2
cmp ecx, edi
jne 0x46aec9
call fcn.0046ba7c
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00469ed6
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x46aedd
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x46aefe
cmp ebx, 0xffffffff
je 0x46aeed
push ebx
push edi
push ecx
call fcn.0046ce70
add esp, 0xc
cmp esi, edi
je 0x46aeaa
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x46aeaa
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x46af1a
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x46af21
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x46b012
test word [esi + 0xc], 0x10c
je 0x46af75
mov eax, dword [esi + 4]
test eax, eax
je 0x46af75
jl 0x46b073
cmp ebx, eax
mov edi, ebx
jb 0x46af46
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x46b01a
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00469c43
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x46b00a
cmp ebx, dword [ebp - 0xc]
jb 0x46afe2
cmp dword [ebp - 0xc], 0
je 0x46af9f
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x46af94
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x46af9b
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x46afaa
mov eax, SysReAllocString
cmp ebx, eax
ja 0x46afaa
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x46b046
push eax
push dword [ebp - 8]
push esi
call fcn.00470603
pop ecx
push eax
call fcn.0047284f
add esp, 0xc
test eax, eax
je 0x46b085
cmp eax, 0xffffffff
je 0x46b073
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x46b00a
push esi
call fcn.0047216e
cmp eax, 0xffffffff
pop ecx
je 0x46b077
cmp dword [ebp - 4], 0
je 0x46b046
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x46af29
mov eax, dword [ebp + 0x14]
jmp 0x46aec4
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x46b031
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0046ce70
add esp, 0xc
call fcn.0046ba7c
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x46aeba
cmp dword [ebp + 0xc], 0xffffffff
je 0x46b05c
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0046ce70
add esp, 0xc
call fcn.0046ba7c
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x46aeba
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x46aec4
or dword [esi + 0xc], 0x10
jmp 0x46b077
Function at 0x46d366
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x49b1c8]
je 0x46d381
inc edi
cmp edi, 0x17
jb 0x46d372
cmp edi, 0x17
jae 0x46d501
push ebp
push 3
call fcn.00475f76
cmp eax, 1
pop ecx
je 0x46d4cd
push 3
call fcn.00475f76
test eax, eax
pop ecx
jne 0x46d3b5
cmp dword [0x49b030], 1
je 0x46d4cd
cmp ebx, 0xfc
je 0x46d500
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x49dd88
push ebp
call fcn.0046ce09
add esp, 0xc
test eax, eax
je 0x46d3eb
push esi
push esi
push esi
push esi
push esi
call fcn.00469dda
add esp, 0x14
push 0x104
mov esi, 0x49dda1
push esi
push 0
mov byte [0x49dea5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x46d42f
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0046ce09
add esp, 0xc
test eax, eax
je 0x46d42f
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00469dda
add esp, 0x14
push esi
call fcn.0046c800
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x46d474
push esi
call fcn.0046c800
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x49e09c
push 0x483d2c
sub ecx, eax
push ecx
push eax
call fcn.00475ec3
add esp, 0x14
test eax, eax
je 0x46d474
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00469dda
add esp, 0x14
jmp 0x46d476
xor esi, esi
push 0x483d28
push ebx
push ebp
call fcn.00475e52
add esp, 0xc
test eax, eax
je 0x46d496
push esi
push esi
push esi
push esi
push esi
call fcn.00469dda
add esp, 0x14
push dword [edi*8 + 0x49b1cc]
push ebx
push ebp
call fcn.00475e52
add esp, 0xc
test eax, eax
je 0x46d4b8
push esi
push esi
push esi
push esi
push esi
call fcn.00469dda
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00475c95
add esp, 0xc
jmp 0x46d500
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x46d500
cmp ebp, 0xffffffff
je 0x46d500
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x49b1cc]
push dword [esi]
call fcn.0046c800
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x475c95
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0046d619
xor ebx, ebx
cmp dword [0x49e3f0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x475d6b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x475e4b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x475e4b
push eax
call fcn.0046d5ab
mov dword [esp], 0x483fdc
push edi
mov dword [0x49e3f0], eax
call esi
push eax
call fcn.0046d5ab
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x49e3f4], eax
call esi
push eax
call fcn.0046d5ab
mov dword [0x49e3f8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0046defb
test eax, eax
pop ecx
pop ecx
je 0x475d39
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00469dda
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x475d6b
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0046d5ab
cmp eax, ebx
pop ecx
mov dword [0x49e400], eax
je 0x475d6b
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0046d5ab
pop ecx
mov dword [0x49e3fc], eax
mov eax, dword [0x49e3fc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x475df0
cmp dword [0x49e400], ecx
je 0x475df0
push eax
call fcn.0046d622
push dword [0x49e400]
mov esi, eax
call fcn.0046d622
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x475df0
cmp edi, ebx
je 0x475df0
call esi
cmp eax, ebx
je 0x475dbd
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x475dbd
test byte [ebp - 0x18], 1
jne 0x475df0
lea eax, [ebp - 0x10]
push eax
call fcn.0046df32
test eax, eax
pop ecx
je 0x475dd8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00469dda
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x475de7
or dword [ebp + 0x10], 0x200000
jmp 0x475e2b
or dword [ebp + 0x10], 0x40000
jmp 0x475e2b
mov eax, dword [0x49e3f4]
cmp eax, dword [ebp - 8]
je 0x475e2b
push eax
call fcn.0046d622
cmp eax, ebx
pop ecx
je 0x475e2b
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x475e2b
mov eax, dword [0x49e3f8]
cmp eax, dword [ebp - 8]
je 0x475e2b
push eax
call fcn.0046d622
cmp eax, ebx
pop ecx
je 0x475e2b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x49e3f0]
call fcn.0046d622
cmp eax, ebx
pop ecx
je 0x475e4b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x475e4d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1c22fc0
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
push ebx
test eax, eax
je 0x1c234e0
test edx, edx
je 0x1c234e0
call fcn.01c22fd7
mov eax, 0xffffffff
pop ebx
pop ebp
ret

Function at 0x1c31bf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x24
mov eax, dword [0x1cff040]
xor eax, ebp
mov dword [ebp - 0xc], eax
pcmpeqd xmm0, xmm0
lea esi, [ebp - 0x28]
movdqu xmmword [esi + 4], xmm0
mov dword [esi + 0x14], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esi], fcn.01cb31b0
xor edi, edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], eax
mov byte [esi + 0x14], 0
mov dword [esi + 0x18], edi
mov ecx, esi
call fcn.01c349e0
lea esi, [ebp - 0x2c]
mov dword [esi], edi
push esi
push 0x40
push 0x80
push section..crthunk
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1c31cae
push 0x1ce9eac
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea ecx, [ebp - 0x28]
push edi
push 0x80
push section..crthunk
push 0x1c5a2b0
push edi
push str.NtMapViewOfSection
push 0x1c20000
push eax
call fcn.01c34ae0
test eax, eax
js 0x1c31cb5
push esi
push 0x20
push 0x80
push section..crthunk
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.01c87bd3
mov eax, esi
add esp, 0x24
pop esi
pop edi
pop ebp
ret
mov esi, 0xf
jmp 0x1c31c9b
mov dword [0x1d1b094], eax
mov esi, 0x10
jmp 0x1c31c9b
Function at 0x1c343e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ecx + 0x10]
test eax, eax
jne 0x1c34430
mov edx, dword [ecx + 0xc]
test edx, edx
jne 0x1c3443e
mov edx, dword [ecx]
xor eax, eax
test edx, edx
je 0x1c34430
mov dword [ecx + 0xc], edx
mov esi, dword [ecx + 4]
cmp esi, 0x40
jb 0x1c34435
movzx edi, word [edx]
cmp edi, 0x5a4d
jne 0x1c34435
mov edi, dword [edx + 0x3c]
lea ebx, [edi + 0x18]
xor eax, eax
cmp ebx, esi
ja 0x1c34430
add edx, edi
cmp dword [edx], 0x4550
jne 0x1c34430
add edx, 4
mov dword [ecx + 0x10], edx
mov eax, edx
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ecx + 0xc], 0
jmp 0x1c34430
mov esi, dword [ecx + 4]
jmp 0x1c34412

Function at 0x1c34450
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x1c34458
ret
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov edx, dword [ecx + 0xc]
mov esi, dword [ecx + 0x10]
test esi, esi
jne 0x1c344c1
test edx, edx
jne 0x1c34558
mov edx, dword [ecx]
xor eax, eax
test edx, edx
je 0x1c3451e
mov dword [ecx + 0xc], edx
mov esi, dword [ecx + 4]
mov dword [ebp - 0x10], esi
cmp esi, 0x40
jb 0x1c3453e
movzx esi, word [edx]
cmp esi, 0x5a4d
jne 0x1c3453e
mov esi, dword [edx + 0x3c]
lea edi, [esi + 0x18]
xor eax, eax
cmp edi, dword [ebp - 0x10]
ja 0x1c3451e
add esi, edx
cmp dword [esi], 0x4550
jne 0x1c3451e
add esi, 4
mov dword [ecx + 0x10], esi
jne 0x1c344c7
jmp 0x1c3451e
mov eax, dword [ecx + 4]
mov dword [ebp - 0x10], eax
lea edi, [esi + 0x14]
mov ebx, edi
sub ebx, edx
lea edx, [ebx + 2]
xor eax, eax
cmp edx, dword [ebp - 0x10]
ja 0x1c3451e
movzx edx, word [edi]
cmp edx, 0x20b
mov dword [ebp - 0x18], edi
jne 0x1c3452a
mov dl, 1
mov dword [ebp - 0x14], edx
mov edx, 2
mov dword [ecx + 8], edx
lea edx, [ebx + 0xf0]
mov edi, dword [ebp - 0x10]
cmp edx, edi
seta dl
add ebx, 0xe0
cmp ebx, edi
ja 0x1c3451e
and dl, byte [ebp - 0x14]
mov edx, dword [ebp - 0x18]
jne 0x1c3451e
cmp dword [ebp - 0x10], 0xffffffff
je 0x1c34547
mov dword [ecx + 0x14], edx
mov eax, edx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
jmp 0x1c34457
cmp edx, 0x10b
jne 0x1c3454f
xor edx, edx
inc edx
mov dword [ebp - 0x14], 0
jmp 0x1c344f0
mov dword [ecx + 0xc], 0
jmp 0x1c3451e
mov eax, dword [esi + 0x4c]
mov dword [ecx + 4], eax
jmp 0x1c34519
mov dword [ecx + 8], 0
jmp 0x1c3451e
mov eax, dword [ecx + 4]
mov dword [ebp - 0x10], eax
jmp 0x1c344a0
Function at 0x1c34590
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, ecx
mov edi, dword [ecx + 0x14]
test edi, edi
je 0x1c34605
mov ebx, dword [esi + 8]
test ebx, ebx
je 0x1c346e9
mov eax, dword [ebp + 8]
cmp ebx, 2
jne 0x1c345f6
mov ecx, 0x70
cmp dword [edi + 0x6c], eax
jle 0x1c346e2
add edi, ecx
mov ecx, dword [edi + eax*8]
mov edi, dword [edi + eax*8 + 4]
lea ebx, [ecx + edi]
mov edx, dword [esi + 4]
xor eax, eax
cmp ebx, edx
jae 0x1c345ec
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x1c345e4
mov dword [ebx], edi
mov edx, dword [esi + 4]
cmp edx, ecx
jbe 0x1c345ec
add ecx, dword [esi]
mov eax, ecx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov ecx, 0x60
cmp dword [edi + 0x5c], eax
jg 0x1c345c3
jmp 0x1c346e2
mov edx, dword [esi + 0xc]
mov edi, dword [esi + 0x10]
test edi, edi
jne 0x1c3465d
test edx, edx
jne 0x1c3470f
mov edx, dword [esi]
xor eax, eax
test edx, edx
je 0x1c345ec
mov dword [esi + 0xc], edx
mov ebx, dword [esi + 4]
cmp ebx, 0x40
jb 0x1c346f8
movzx ecx, word [edx]
cmp ecx, 0x5a4d
jne 0x1c346f8
mov edi, dword [edx + 0x3c]
lea ecx, [edi + 0x18]
xor eax, eax
cmp ecx, ebx
ja 0x1c345ec
add edi, edx
cmp dword [edi], 0x4550
jne 0x1c345ec
add edi, 4
mov dword [esi + 0x10], edi
jne 0x1c34660
jmp 0x1c345ec
mov ebx, dword [esi + 4]
mov dword [ebp - 0x18], edi
add edi, 0x14
mov ecx, edi
sub ecx, edx
lea edx, [ecx + 2]
xor eax, eax
mov dword [ebp - 0x14], ebx
cmp edx, ebx
ja 0x1c345ec
movzx edx, word [edi]
cmp edx, 0x20b
jne 0x1c346ce
mov al, 1
mov dword [ebp - 0x10], eax
mov ebx, 2
mov dword [esi + 8], ebx
lea edx, [ecx + 0xf0]
mov eax, dword [ebp - 0x14]
cmp edx, eax
seta dl
add ecx, 0xe0
cmp ecx, eax
ja 0x1c346e2
and dl, byte [ebp - 0x10]
mov eax, 0
jne 0x1c345ec
cmp dword [ebp - 0x14], 0xffffffff
je 0x1c34704
mov dword [esi + 0x14], edi
test edi, edi
jne 0x1c345ad
jmp 0x1c345ec
cmp edx, 0x10b
jne 0x1c34717
xor ebx, ebx
inc ebx
mov dword [ebp - 0x10], 0
jmp 0x1c3468f
xor eax, eax
jmp 0x1c345ec
mov ecx, esi
call fcn.01c34450
mov ebx, dword [esi + 8]
jmp 0x1c345ad
mov dword [esi + 0xc], 0
jmp 0x1c345ec
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + 0x4c]
mov dword [esi + 4], ecx
jmp 0x1c346be
mov ebx, dword [esi + 4]
jmp 0x1c3463d
mov dword [esi + 8], 0
jmp 0x1c345ec
Function at 0x1c3ac20
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x218
mov eax, dword [0x1cff040]
xor eax, ebp
mov dword [ebp - 0x10], eax
xor eax, eax
dec eax
lea esi, [ebp - 0x220]
mov dword [esi + 4], eax
mov dword [esi], eax
push esi
call sub.ntdll.dll_RtlFormatCurrentUserKeyPath
test eax, eax
js 0x1c3ad6d
mov dword [ebp - 0x224], eax
mov ebx, 0xff
mov edi, 0x1d1c0e6
push ebx
push dword [ebp - 0x21c]
push edi
call fcn.01ca10d1
add esp, 0xc
push edi
call fcn.01ca0524
add esp, 4
sub ebx, eax
push ebx
push 0x1cec316
push edi
call fcn.01ca10d1
add esp, 0xc
push esi
call sub.ntdll.dll_RtlFreeUnicodeString
lea esi, [ebp - 0x218]
push 0x208
push 0
push esi
call fcn.01c8abb0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
push 0x104
push esi
push str.PROGRAMFILES
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x1c3acdf
push eax
push esi
push edi
call fcn.01ca1116
add esp, 0xc
test eax, eax
je 0x1c3ad89
push 0x104
push esi
push str.PROGRAMFILES_X86_
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x1c3ad0a
push eax
push esi
push edi
call fcn.01ca1116
add esp, 0xc
test eax, eax
je 0x1c3ad89
xor eax, eax
mov byte [0x1d1bce5], al
mov dword [ebp - 0x218], 0
push 0x1cec040
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x1cee284
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1c3ad90
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ebx, eax
mov ecx, edi
call dword [0x1cfa1e0]
push esi
push ebx
call edi
test eax, eax
je 0x1c3ad90
cmp dword [ebp - 0x218], 0
setne cl
mov eax, dword [ebp - 0x224]
mov byte [0x1d1c2e6], cl
mov byte [0x1d1bce4], 1
test eax, eax
setns bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01c87bd3
mov eax, ebx
add esp, 0x218
pop esi
pop edi
pop ebx
pop ebp
ret
mov al, 1
jmp 0x1c3ad0c
xor ecx, ecx
jmp 0x1c3ad5a