joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5d2c7e
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.005cd210
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x5d2d19
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 [0x63e0e8]
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 0x5d2d19
cmp eax, 1
je 0x5d2d3a
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 0x5d2d19
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x5d2ce6
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x5d2d15
xor eax, eax
inc eax
jmp 0x5d2d59
cmp edi, eax
jae 0x5d2d1d
xor eax, eax
jmp 0x5d2d59
cmp eax, esi
jae 0x5d2d24
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 [0x63e0e8]
jmp 0x5d2d3d
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 0x5d4114
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x5d42e8
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x6beb20]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x5d42e8
test cl, 0x48
je 0x5d417f
cmp byte [eax + 5], 0xa
je 0x5d417f
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5d41d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x5d41b9
call fcn.005cb1f5
mov dword [eax], 9
call fcn.005cb1fe
mov dword [eax], esi
jmp 0x5d41c9
cmp eax, 0x6d
je 0x5d42e8
push eax
call fcn.005cb207
pop ecx
or eax, 0xffffffff
jmp 0x5d42ea
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x5d42e3
test eax, eax
je 0x5d41f8
cmp byte [ebx], 0xa
jne 0x5d41f8
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x5d4201
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x5d42dd
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x5d42cd
cmp al, 0xd
je 0x5d4233
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x5d42bf
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x5d424d
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x5d4248
add dword [ebp + 0x10], 2
jmp 0x5d42a1
mov dword [ebp + 0x10], eax
jmp 0x5d42bb
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
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 0x5d4275
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5d42bb
cmp dword [ebp - 0xc], 0
je 0x5d42bb
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x5d4296
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x5d42a1
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x5d42be
cmp ebx, dword [ebp + 0xc]
jne 0x5d42a6
cmp byte [ebp - 1], 0xa
jne 0x5d42a6
mov byte [ebx], 0xa
jmp 0x5d42be
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005d3db4
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x5d42bf
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x5d4217
jmp 0x5d42dd
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x5d42dd
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x5d42ea
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5d6998
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x61fb00]
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 + 0x620170]
je 0x5d69cd
inc eax
cmp eax, 0x13
jb 0x5d69be
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x620170]
jne 0x5d6af3
mov eax, dword [0x63e23c]
cmp eax, 1
je 0x5d6acb
cmp eax, edx
jne 0x5d69fd
cmp dword [0x61fa4c], 1
je 0x5d6acb
cmp ecx, 0xfc
je 0x5d6af3
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 0x5d6a33
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.005d2aa0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.005d2ba0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x5d6a67
mov eax, edi
push eax
call fcn.005d2ba0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x5ef344
push edi
call fcn.005c8ba0
add esp, 0x10
push edi
call fcn.005d2ba0
push dword [esi + 0x620174]
mov ebx, eax
call fcn.005d2ba0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.005cd210
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.005d2aa0
push edi
push ebx
call fcn.005d2ab0
push 0x5fe138
push ebx
call fcn.005d2ab0
push dword [esi + 0x620174]
push ebx
call fcn.005d2ab0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.005dc62c
add esp, 0x2c
jmp 0x5d6af3
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x620174]
push dword [esi]
call fcn.005d2ba0
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.005ce175
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x5d9c1f
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 0x5d9c4d
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 0x5d9c54
cmp ebx, dword [eax + 4]
jae 0x5d9c54
xor eax, eax
jmp 0x5d9e44
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x5d9c65
xor eax, eax
inc eax
jmp 0x5d9e43
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x5d9c7b
cmp ecx, edx
jae 0x5d9dc0
cmp dword [eax + 4], 0
je 0x5d9c84
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x5d9c6c
cmp dword [ebp + 8], 0
je 0x5d9ca6
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x5d9dc0
cmp eax, esi
jae 0x5d9dc0
mov eax, dword [0x63e678]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x5d9ccb
cmp dword [esi*4 + 0x63e680], edi
je 0x5d9dc4
inc esi
cmp esi, eax
jl 0x5d9cb9
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x5d9e40
cmp dword [ebp - 8], 0x1000000
jne 0x5d9e40
test byte [ebp - 0xc], 0xcc
je 0x5d9d49
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x5d9e40
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x5d9e40
cmp word [eax + 0x18], 0x10b
jne 0x5d9e40
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x5d9e40
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x5d9d49
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x5d9d49
test byte [ecx + 0x27], 0x80
jne 0x5d9dc0
push 1
push 0x63e6c0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x5d9c5d
mov ecx, dword [0x63e678]
test ecx, ecx
mov edx, ecx
jle 0x5d9d7d
lea eax, [ecx*4 + 0x63e67c]
cmp dword [eax], edi
je 0x5d9d7d
dec edx
sub eax, 4
test edx, edx
jg 0x5d9d71
test edx, edx
jne 0x5d9dae
push 0xf
pop ebx
cmp ecx, ebx
jg 0x5d9d8a
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x5d9da2
lea eax, [edx*4 + 0x63e680]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x5d9d90
cmp ecx, 0x10
jge 0x5d9dae
inc ecx
mov dword [0x63e678], ecx
push 0
push 0x63e6c0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x5d9c5d
xor eax, eax
jmp 0x5d9e43
test esi, esi
jle 0x5d9c5d
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x63e6c0
call ebx
test eax, eax
jne 0x5d9c5d
cmp dword [esi*4 + 0x63e680], edi
je 0x5d9e1a
mov eax, dword [0x63e678]
lea esi, [eax - 1]
test esi, esi
jl 0x5d9e08
cmp dword [esi*4 + 0x63e680], edi
je 0x5d9e04
dec esi
jns 0x5d9df8
test esi, esi
jge 0x5d9e18
cmp eax, 0x10
jge 0x5d9e13
inc eax
mov dword [0x63e678], eax
lea esi, [eax - 1]
jmp 0x5d9e1a
je 0x5d9e32
xor ecx, ecx
test esi, esi
jl 0x5d9e32
lea eax, [ecx*4 + 0x63e680]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x5d9e20
push 0
push 0x63e6c0
call ebx
jmp 0x5d9c5d
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5dc62c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x63e6e0], ebx
push esi
push edi
jne 0x5dc6ac
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x5dc6e7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5f3554
push edi
call esi
test eax, eax
mov dword [0x63e6e0], eax
je 0x5dc6e7
push 0x5f3544
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x63e6e4], eax
call esi
cmp dword [0x63e0e8], 2
mov dword [0x63e6e8], eax
jne 0x5dc6ac
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x63e6f0], eax
je 0x5dc6ac
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x63e6ec], eax
mov eax, dword [0x63e6ec]
test eax, eax
je 0x5dc6f1
call eax
test eax, eax
je 0x5dc6d8
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x63e6f0]
test eax, eax
je 0x5dc6d8
test byte [ebp - 8], 1
jne 0x5dc6f1
cmp dword [0x63e0f4], 4
jb 0x5dc6eb
or byte [ebp + 0x12], 0x20
jmp 0x5dc710
xor eax, eax
jmp 0x5dc720
or byte [ebp + 0x12], 4
jmp 0x5dc710
mov eax, dword [0x63e6e4]
test eax, eax
je 0x5dc710
call eax
mov ebx, eax
test ebx, ebx
je 0x5dc710
mov eax, dword [0x63e6e8]
test eax, eax
je 0x5dc710
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x63e6e0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5dcadd
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.005cd210
mov eax, dword [0x61fb00]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.005d3db4
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x5dcc10
push 2
push esi
push dword [ebp + 8]
call fcn.005d3db4
add esp, 0xc
cmp eax, ebx
je 0x5dcc10
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x5dcbb0
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.005d52e0
push 0x8000
push dword [ebp + 8]
call fcn.005dd6cf
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x5dcb66
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.005cede7
add esp, 0xc
cmp eax, 0xffffffff
je 0x5dcb86
sub edi, eax
test edi, edi
jg 0x5dcb5e
jmp 0x5dcb9e
call fcn.005cb1fe
cmp dword [eax], 5
jne 0x5dcb9b
call fcn.005cb1f5
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.005dd6cf
pop ecx
pop ecx
jmp 0x5dcbf8
jge 0x5dcbf8
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005d3db4
push dword [ebp + 8]
call fcn.005d6396
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, ebx
jne 0x5dcbf8
call fcn.005cb1f5
mov dword [eax], 0xd
call fcn.005cb1fe
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.005d3db4
add esp, 0xc
mov eax, esi
pop edi
jmp 0x5dcc12
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.005ce175
leave
ret
Function at 0x5dd16c
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x5f3570
call fcn.005cf2a0
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x63e6fc], edi
jne 0x5dd1b0
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5dd19b
mov dword [0x63e6fc], ebx
jmp 0x5dd1b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x5dd1b0
mov dword [0x63e6fc], 2
mov eax, dword [0x63e6fc]
cmp eax, ebx
jne 0x5dd1d0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x5dd293
cmp eax, 2
je 0x5dd1d9
cmp eax, edi
jne 0x5dd201
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x5dd1ec
mov eax, dword [0x63e528]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x5dd208
xor eax, eax
jmp 0x5dd293
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.005cd210
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x5dd23b
cmp esi, edi
jne 0x5dd251
push dword [ebp - 0x20]
call fcn.005cde04
pop ecx
mov esi, eax
cmp esi, edi
je 0x5dd201
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x5dd284
cmp dword [ebp + 0x14], edi
jne 0x5dd26e
push edi
push edi
jmp 0x5dd274
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x5dd290
push esi
call fcn.005cdbb7
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.005cf2db
ret
Function at 0x5dd29c
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x5f3580
call fcn.005cf2a0
xor esi, esi
cmp dword [0x63e700], esi
jne 0x5dd2e0
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5dd2cb
mov dword [0x63e700], edi
jmp 0x5dd2e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x5dd2e0
mov dword [0x63e700], 2
mov eax, dword [0x63e700]
cmp eax, 2
je 0x5dd3c1
cmp eax, esi
je 0x5dd3c1
cmp eax, 1
jne 0x5dd325
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x5dd30e
mov eax, dword [0x63e528]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x5dd32c
xor eax, eax
jmp 0x5dd3d3
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.005cd210
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x5dd362
cmp edi, esi
jne 0x5dd37d
lea eax, [ebx + ebx]
push eax
call fcn.005cde04
pop ecx
mov edi, eax
cmp edi, esi
je 0x5dd325
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5dd3b0
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x5dd39a
push esi
push esi
jmp 0x5dd3a0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x5dd3bc
push edi
call fcn.005cdbb7
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x5dd3d3
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.005cf2db
ret
Function at 0x5ddb89
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 0x5ddba2
or eax, 0xffffffff
jmp 0x5ddc03
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x5ddbff
push 0x3d
push esi
call fcn.005ddd5e
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x5ddbff
cmp esi, eax
je 0x5ddbff
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x63e108]
sete cl
cmp eax, dword [0x63e10c]
mov dword [ebp - 8], ecx
jne 0x5ddbe5
mov edi, eax
call fcn.005ddb28
mov dword [0x63e108], eax
cmp eax, ebx
jne 0x5ddc3e
cmp dword [ebp + 0xc], ebx
je 0x5ddc07
cmp dword [0x63e110], ebx
je 0x5ddc07
call fcn.005dcc6c
test eax, eax
je 0x5ddc3e
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x5ddc10
xor eax, eax
jmp 0x5ddc02
push 4
call fcn.005cde04
cmp eax, ebx
pop ecx
mov dword [0x63e108], eax
je 0x5ddbff
mov dword [eax], ebx
cmp dword [0x63e110], ebx
jne 0x5ddc3e
push 4
call fcn.005cde04
cmp eax, ebx
pop ecx
mov dword [0x63e110], eax
je 0x5ddbff
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x63e108]
call fcn.005ddadb
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x5ddc9f
cmp dword [esi], ebx
je 0x5ddc9f
lea esi, [esi + edi*4]
push dword [esi]
call fcn.005cdbb7
cmp dword [ebp - 8], ebx
pop ecx
jne 0x5ddc82
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x5ddce0
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x5ddc79
mov eax, edi
shl eax, 2
push eax
push dword [0x63e108]
call fcn.005ce250
cmp eax, ebx
pop ecx
pop ecx
je 0x5ddce0
jmp 0x5ddcdb
cmp dword [ebp - 8], ebx
jne 0x5ddd4b
cmp edi, ebx
jge 0x5ddcae
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x63e108]
call fcn.005ce250
cmp eax, ebx
pop ecx
pop ecx
je 0x5ddbff
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 [0x63e108], eax
cmp dword [ebp + 0xc], ebx
je 0x5ddd35
push dword [ebp - 4]
call fcn.005d2ba0
inc eax
inc eax
push eax
call fcn.005cde04
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x5ddd35
push dword [ebp - 4]
push esi
call fcn.005d2aa0
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 0x5ddd2e
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.005cdbb7
pop ecx
cmp dword [ebp - 8], ebx
je 0x5ddd43
push dword [ebp - 4]
call fcn.005cdbb7
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x5ddc02
push dword [ebp - 4]
call fcn.005cdbb7
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x5ddc0c
Function at 0x408a5e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41c024]
jne 0x408a68
repz ret
jmp fcn.00409f9e

Function at 0x40e275
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41c024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040a39b
and dword [ebp - 0x14], 0
cmp dword [0x41de78], 0
mov dword [ebp - 0x18], eax
jne 0x40e328
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40e3d0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40e3d0
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41de78], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41de7c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41de80], eax
call edi
push eax
call esi
mov dword [0x41de88], eax
test eax, eax
je 0x40e328
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41de84], eax
mov eax, dword [0x41de84]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40e381
cmp dword [0x41de88], ecx
je 0x40e381
push eax
call esi
push dword [0x41de88]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40e381
test ebx, ebx
je 0x40e381
call edi
test eax, eax
je 0x40e378
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40e378
test byte [ebp - 8], 1
jne 0x40e381
or dword [ebp + 0x10], 0x200000
jmp 0x40e3b4
mov eax, dword [0x41de7c]
cmp eax, dword [ebp - 0x18]
je 0x40e3b4
push eax
call esi
test eax, eax
je 0x40e3b4
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40e3b4
mov eax, dword [0x41de80]
cmp eax, dword [ebp - 0x18]
je 0x40e3b4
push eax
call esi
test eax, eax
je 0x40e3b4
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41de78]
call esi
test eax, eax
je 0x40e3d0
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40e3d2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408a5e
leave
ret