joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f100
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x44
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
push esi
push edi
push ebx
push 0x40
lea eax, [esp + 0x1c]
push 0
push eax
mov dword [esp + 0x20], 0
call fcn.0040fe30
mov ebp, dword [esp + 0x68]
mov edi, dword [esp + 0x74]
add esp, 0x10
cmp ebp, 0x40
push ebx
jbe 0x41f18a
mov edx, dword [esp + 0x64]
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
call dword [edi + 0x10]
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x41f223
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x10]
push ebx
push ecx
push ebp
push edx
call dword [edi + 0x14]
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x41f223
lea eax, [esp + 0x14]
push ebx
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [edi + 0x18]
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x41f223
jmp 0x41f19d
mov edx, dword [esp + 0x60]
push ebp
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.0040fdf0
add esp, 0x10
mov ecx, dword [esp + 0x60]
mov edx, dword [edi + 0xc]
lea ebp, [edi + 4]
push ebx
push ebp
push ecx
push edx
call dword [edi + 0x10]
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x41f223
mov cl, byte [esp + eax + 0x14]
xor cl, 0x36
mov byte [esp + eax + 0x14], cl
inc eax
cmp eax, 0x40
jl 0x41f1b7
mov ecx, dword [ebp]
lea eax, [esp + 0x14]
push ebx
push eax
push 0x40
push ecx
call dword [edi + 0x14]
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x41f223
mov edx, dword [esp + 0x60]
mov eax, dword [edi + 0xc]
lea ebp, [edi + 8]
push ebx
push ebp
push edx
push eax
call dword [edi + 0x10]
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x41f223
mov cl, byte [esp + eax + 0x14]
xor cl, 0x6a
mov byte [esp + eax + 0x14], cl
inc eax
cmp eax, 0x40
jl 0x41f1fa
mov edx, dword [ebp]
lea ecx, [esp + 0x14]
push ebx
push ecx
push 0x40
push edx
call dword [edi + 0x14]
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41f264
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41f23c
lea eax, [esp + 0x14]
push ebx
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [edi + 0x18]
add esp, 0xc
mov ecx, dword [edi + 4]
lea eax, [edi + 4]
test ecx, ecx
je 0x41f250
push ebx
push 0
push eax
call dword [edi + 0x18]
add esp, 0xc
mov ecx, dword [edi + 8]
lea eax, [edi + 8]
test ecx, ecx
je 0x41f264
push ebx
push 0
push eax
call dword [edi + 0x18]
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret
Function at 0x42bdb7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.0042fd2c
xor esi, esi
inc esi
cmp dword [0x44e204], esi
pop ecx
jne 0x42bddf
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 [0x44e200], esi
mov byte [0x44e1fc], al
jne 0x42be45
mov ecx, dword [0x44fa0c]
test ecx, ecx
je 0x42be26
mov eax, dword [0x44fa08]
sub eax, 4
cmp eax, ecx
jmp 0x42be1f
mov eax, dword [eax]
test eax, eax
je 0x42be11
call eax
mov eax, dword [0x44fa08]
sub eax, 4
cmp eax, dword [0x44fa0c]
mov dword [0x44fa08], eax
jae 0x42be09
mov eax, 0x449030
mov esi, 0x449038
cmp eax, esi
mov edi, eax
jae 0x42be45
mov eax, dword [edi]
test eax, eax
je 0x42be3e
call eax
add edi, 4
cmp edi, esi
jb 0x42be36
mov eax, 0x44903c
mov esi, 0x449044
cmp eax, esi
mov edi, eax
jae 0x42be64
mov eax, dword [edi]
test eax, eax
je 0x42be5d
call eax
add edi, 4
cmp edi, esi
jb 0x42be55
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x42be75
push 8
call fcn.0042fc98
jmp 0x42be87
push dword [ebp + 8]
mov dword [0x44e204], 1
call fcn.0042bd10
pop ecx
pop ebp
ret

Function at 0x42dda4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42ddc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042d639
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x42dde7
test byte [esp + 8], 2
je 0x42dde7
call fcn.0042d627
mov dword [eax], 0xd
call fcn.0042d630
mov dword [eax], 5
jmp 0x42ddc0
xor eax, eax
ret
Function at 0x42e6f8
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 0x42e8be
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x44e680]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x42e8be
test cl, 0x48
je 0x42e75e
mov al, byte [eax + 5]
cmp al, 0xa
je 0x42e75e
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 0x42e7b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x42e798
call fcn.0042d627
mov dword [eax], 9
call fcn.0042d630
mov dword [eax], esi
jmp 0x42e7a8
cmp eax, 0x6d
je 0x42e8be
push eax
call fcn.0042d639
pop ecx
or eax, 0xffffffff
jmp 0x42e8c0
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x42e8b9
test edx, edx
je 0x42e7d3
cmp byte [ebx], 0xa
jne 0x42e7d3
or al, 4
jmp 0x42e7d5
and al, 0xfb
mov byte [ecx], al
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 0x42e8b3
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x42e8a3
cmp al, 0xd
je 0x42e809
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x42e895
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x42e823
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x42e81e
add dword [ebp + 0x10], 2
jmp 0x42e877
mov dword [ebp + 0x10], eax
jmp 0x42e891
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 0x42e84b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x42e891
cmp dword [ebp - 0xc], 0
je 0x42e891
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x42e86c
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x42e877
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x42e894
cmp ebx, dword [ebp + 0xc]
jne 0x42e87c
cmp byte [ebp - 1], 0xa
jne 0x42e87c
mov byte [ebx], 0xa
jmp 0x42e894
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004327e7
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x42e895
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x42e7ed
jmp 0x42e8b3
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x42e8b3
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x42e8c0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e99f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x44d180]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x42e9c8
xor eax, eax
jmp 0x42eb36
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x44e680]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x42e9fb
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.0042df08
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x42eacd
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x42eb08
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x42ea56
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x42ea47
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x42ea2a
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42ea96
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x42ea9f
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x42ea1b
jmp 0x42eaa1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x42eb31
cmp dword [ebp - 8], edi
je 0x42eb08
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x42eafa
call fcn.0042d627
mov dword [eax], 9
call fcn.0042d630
mov dword [eax], esi
jmp 0x42eb03
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42eaef
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x42eaa1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x42eaa1
push dword [ebp - 8]
call fcn.0042d639
pop ecx
or eax, 0xffffffff
jmp 0x42eb34
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x42eb1d
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x42eb1d
xor eax, eax
jmp 0x42eb34
call fcn.0042d627
mov dword [eax], 0x1c
call fcn.0042d630
mov dword [eax], edi
jmp 0x42eb03
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.004327d9
leave
ret
Function at 0x432548
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x44e3ac], ebx
push esi
push edi
jne 0x4325c8
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x432603
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x446e64
push edi
call esi
test eax, eax
mov dword [0x44e3ac], eax
je 0x432603
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x44e3b0], eax
call esi
cmp dword [0x44e1c4], 2
mov dword [0x44e3b4], eax
jne 0x4325c8
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x44e3bc], eax
je 0x4325c8
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x44e3b8], eax
mov eax, dword [0x44e3b8]
test eax, eax
je 0x43260d
call eax
test eax, eax
je 0x4325f4
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x44e3bc]
test eax, eax
je 0x4325f4
test byte [ebp - 8], 1
jne 0x43260d
cmp dword [0x44e1d0], 4
jb 0x432607
or byte [ebp + 0x12], 0x20
jmp 0x43262c
xor eax, eax
jmp 0x43263c
or byte [ebp + 0x12], 4
jmp 0x43262c
mov eax, dword [0x44e3b0]
test eax, eax
je 0x43262c
call eax
mov ebx, eax
test ebx, ebx
je 0x43262c
mov eax, dword [0x44e3b4]
test eax, eax
je 0x43262c
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x44e3ac]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x432906
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x44d180]
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 + 0x44d188]
je 0x432933
inc eax
cmp eax, 0x12
jb 0x432924
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x44d188]
jne 0x432a67
mov eax, dword [0x44e214]
cmp eax, 1
je 0x432a42
cmp eax, edx
jne 0x432963
cmp dword [0x44cbe8], 1
je 0x432a42
cmp ecx, 0xfc
je 0x432a67
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 0x43299c
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.004326b0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.0042f0b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4329de
lea eax, [ebp - 0x10c]
push eax
call fcn.0042f0b0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4468d0
push edi
call fcn.0042c210
add esp, 0x10
push edi
call fcn.0042f0b0
push dword [esi + 0x44d18c]
mov ebx, eax
call fcn.0042f0b0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0042d1c0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004326b0
push edi
push ebx
call fcn.004326c0
push 0x4468cc
push ebx
call fcn.004326c0
push dword [esi + 0x44d18c]
push ebx
call fcn.004326c0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00432548
add esp, 0x2c
jmp 0x432a67
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x44d18c]
push dword [esi]
call fcn.0042f0b0
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.004327d9
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433d73
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0042d1c0
mov eax, dword [0x44d180]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.004327e7
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x433e9d
push 2
push esi
push dword [ebp + 8]
call fcn.004327e7
add esp, 0xc
cmp eax, ebx
je 0x433e9d
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x433e40
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.00434e50
push 0x8000
push dword [ebp + 8]
call fcn.0043623f
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x433df9
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0042e99f
add esp, 0xc
cmp eax, 0xffffffff
je 0x433e19
sub edi, eax
test edi, edi
jg 0x433df1
jmp 0x433e31
call fcn.0042d630
cmp dword [eax], 5
jne 0x433e2e
call fcn.0042d627
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0043623f
pop ecx
pop ecx
jmp 0x433e88
jge 0x433e88
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004327e7
push dword [ebp + 8]
call fcn.0042e4d5
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 0x433e88
call fcn.0042d627
mov dword [eax], 0xd
call fcn.0042d630
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004327e7
add esp, 0xc
mov eax, esi
pop edi
jmp 0x433e9f
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.004327d9
leave
ret
Function at 0x4352b6
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.0042d1c0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43534b
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 [0x44e1c4]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x43534b
cmp eax, 1
je 0x435363
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 0x43534b
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x435320
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x435347
xor eax, eax
inc eax
jmp 0x43537f
cmp esi, ebx
jae 0x43534f
xor eax, eax
jmp 0x43537f
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x44e1c4]
jmp 0x435365
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 0x4357db
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x435846
push 0x3d
push dword [ebp + 8]
call fcn.00436384
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x435846
cmp dword [ebp + 8], esi
je 0x435846
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x44e1e4]
cmp eax, dword [0x44e1e8]
jne 0x43582c
mov edi, eax
call fcn.0043577a
mov dword [0x44e1e4], eax
cmp eax, ebx
jne 0x435885
cmp dword [ebp + 0xc], ebx
je 0x43584e
cmp dword [0x44e1ec], ebx
je 0x43584e
call fcn.00431eee
test eax, eax
je 0x435885
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x435989
push 4
call fcn.0042b9f4
cmp eax, ebx
pop ecx
mov dword [0x44e1e4], eax
je 0x435846
mov dword [eax], ebx
cmp dword [0x44e1ec], ebx
jne 0x435885
push 4
call fcn.0042b9f4
cmp eax, ebx
pop ecx
mov dword [0x44e1ec], eax
je 0x435846
mov dword [eax], ebx
mov ebx, dword [0x44e1e4]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.0043572d
mov edi, eax
test edi, edi
pop ecx
jl 0x4358de
cmp dword [ebx], 0
je 0x4358de
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0042b8dc
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4358c6
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x435914
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x4358bd
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.0042d7c5
test eax, eax
pop ecx
pop ecx
je 0x435914
jmp 0x43590f
cmp dword [ebp - 4], 0
jne 0x435982
test edi, edi
jge 0x4358ee
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.0042d7c5
test eax, eax
pop ecx
pop ecx
je 0x435846
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x44e1e4], eax
cmp dword [ebp + 0xc], 0
je 0x43596b
push dword [ebp + 8]
call fcn.0042f0b0
inc eax
inc eax
push eax
call fcn.0042b9f4
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x43596b
push dword [ebp + 8]
push esi
call fcn.004326b0
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
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 0x435964
or dword [ebp - 8], 0xffffffff
push esi
call fcn.0042b8dc
pop ecx
cmp dword [ebp - 4], 0
je 0x43597a
push dword [ebp + 8]
call fcn.0042b8dc
pop ecx
mov eax, dword [ebp - 8]
jmp 0x435849
push esi
call fcn.0042b8dc
pop ecx
xor eax, eax
jmp 0x435849
Function at 0x435bb5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x44d180]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x435c30
push ebx
call fcn.00435b7e
test eax, eax
pop ecx
jne 0x435c02
call fcn.0042d630
mov dword [eax], 0xf
call fcn.0042d627
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.004327d9
leave
ret
and byte [ebp + 0xb], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x435c42
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x435bf2
inc eax
cmp eax, 0x104
ja 0x435bf2
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x435c7a
cmp eax, dword [ebp + 0x10]
jg 0x435c5d
mov eax, dword [ebp + 0x10]
push eax
call fcn.0042b9f4
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x435c8f
call fcn.0042d627
mov dword [eax], 0xc
jmp 0x435bf2
cmp eax, dword [ebp + 0x10]
jle 0x435c8f
call fcn.0042d627
mov dword [eax], 0x22
jmp 0x435bf2
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.004326b0
pop ecx
pop ecx
jmp 0x435bf4
Function at 0x10001000
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
mov cl, 0x6c
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov al, 0x65
mov byte [esp + 0x21], cl
mov byte [esp + 0x26], cl
mov byte [esp + 0x27], cl
mov cl, 0x74
mov byte [esp + 0x1d], al
mov byte [esp + 0x20], al
mov byte [esp + 0xe], al
mov byte [esp + 0x11], al
mov byte [esp + 0x14], al
mov byte [esp + 0x10], cl
mov byte [esp + 0x16], cl
lea eax, [esp + 0xc]
push edi
lea ecx, [esp + 0x20]
mov dl, 0x6e
xor ebx, ebx
push eax
push ecx
mov dword [esi], 0x1001a3e8
mov byte [esp + 0x28], 0x6b
mov byte [esp + 0x2a], 0x72
mov byte [esp + 0x2b], dl
mov byte [esp + 0x2e], 0x33
mov byte [esp + 0x2f], 0x32
mov byte [esp + 0x30], 0x2e
mov byte [esp + 0x31], 0x64
mov byte [esp + 0x34], bl
mov byte [esp + 0x18], 0x43
mov byte [esp + 0x19], 0x72
mov byte [esp + 0x1b], 0x61
mov byte [esp + 0x1e], 0x45
mov byte [esp + 0x1f], 0x76
mov byte [esp + 0x21], dl
mov byte [esp + 0x23], 0x41
mov byte [esp + 0x24], bl
call ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WINMM.dll
mov edi, eax
call ebp
push ebx
push ebx
push ebx
push ebx
mov dword [0x10020970], eax
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x24], eax
call edi
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 4], 0x3e8
mov byte [esi + 0x44], bl
mov byte [esi + 0x45], bl
lea edi, [esi + 0x30]
mov ebp, 2
mov edx, dword [esi + 4]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push 0x20
mov dword [edi - 0x28], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [edi], eax
mov eax, dword [esi + 4]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push 0x20
mov dword [edi - 0x20], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov dword [edi + 8], eax
add esp, 0x10
add edi, 4
dec ebp
jne 0x100010e4
lea eax, [esi + 0x46]
xor ecx, ecx
mov edx, eax
pop edi
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov word [eax], 0x31
mov word [esi + 0x48], 1
mov dword [esi + 0x4a], 0x1f40
mov dword [esi + 0x4e], 0x659
mov word [esi + 0x52], 0x41
mov word [esi + 0x54], bx
mov word [esi + 0x56], 2
mov word [esi + 0x58], 0x140
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret