joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5d13f3
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x5d1421
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x5d1426
cmp eax, 1
je 0x5d1426
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x5d142a
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x70e4ec]
push ebx
mov ebx, dword [ebp + 0x98]
xor eax, ebp
test ebx, ebx
push edi
mov edi, dword [ebp + 0x9c]
mov dword [ebp + 0x8c], eax
je 0x5d14bc
push ebx
call fcn.005d13f3
test eax, eax
pop ecx
jne 0x5d1491
call fcn.005d58a3
mov dword [eax], 0xf
call fcn.005d589a
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp + 0x8c]
pop edi
xor ecx, ebp
pop ebx
call fcn.005d0efa
add ebp, 0x90
leave
ret
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x104
lea eax, [ebp - 0x7c]
add bl, 0x40
push eax
mov byte [ebp - 0x7c], bl
mov byte [ebp - 0x7b], 0x3a
mov byte [ebp - 0x7a], 0x2e
mov byte [ebp - 0x79], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x5d14cb
lea eax, [ebp - 0x78]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x5d1478
inc eax
cmp eax, 0x104
ja 0x5d1478
test edi, edi
mov ecx, edi
jne 0x5d1508
cmp eax, dword [ebp + 0xa0]
jg 0x5d14eb
mov eax, dword [ebp + 0xa0]
push eax
call fcn.005cfade
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x5d1520
call fcn.005d589a
mov dword [eax], 0xc
jmp 0x5d1478
cmp eax, dword [ebp + 0xa0]
jle 0x5d1520
call fcn.005d589a
mov dword [eax], 0x22
jmp 0x5d1478
lea eax, [ebp - 0x78]
push eax
push ecx
call fcn.005d6350
pop ecx
pop ecx
jmp 0x5d147a
Function at 0x5d17c3
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push 0x128
push 0x6d6728
call fcn.005d2ad0
mov eax, dword [0x70e4ec]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x124]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
or dword [ebp - 0x12c], 0xffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x5d18d3
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x134], esi
cmp esi, 0x104
jle 0x5d1884
mov dword [ebp - 4], ebx
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.005cd2a0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x138], edi
jmp 0x5d1871
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x5d18d3
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, ebx
je 0x5d18d3
mov al, byte [edi]
cmp al, 0x5c
je 0x5d1892
cmp al, 0x2f
jne 0x5d1897
cmp al, byte [edi + 1]
je 0x5d18cd
mov byte [ebp - 0x128], 0x3d
movzx eax, byte [edi]
push eax
call fcn.005dc882
pop ecx
mov byte [ebp - 0x127], al
mov byte [ebp - 0x126], 0x3a
mov byte [ebp - 0x125], bl
push edi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x5d18d3
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005d58ac
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x5d18ef
push edi
call fcn.005cfaf0
pop ecx
mov eax, dword [ebp - 0x12c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.005d0efa
call fcn.005d2b0b
ret
Function at 0x5d5e97
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.005cd2a0
mov eax, dword [0x70e4ec]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.005cd610
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x5d5fcc
push 2
push esi
push dword [ebp + 8]
call fcn.005cd610
add esp, 0xc
cmp eax, ebx
je 0x5d5fcc
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x5d5f6c
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.005dceb0
push 0x8000
push dword [ebp + 8]
call fcn.005de9fb
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x5d5f22
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.005d0c62
add esp, 0xc
cmp eax, 0xffffffff
je 0x5d5f42
sub edi, eax
test edi, edi
jg 0x5d5f1a
jmp 0x5d5f5a
call fcn.005d58a3
cmp dword [eax], 5
jne 0x5d5f57
call fcn.005d589a
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.005de9fb
pop ecx
pop ecx
jmp 0x5d5fb4
jge 0x5d5fb4
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005cd610
push dword [ebp + 8]
call fcn.005d5c18
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 0x5d5fb4
call fcn.005d589a
mov dword [eax], 0xd
call fcn.005d58a3
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.005cd610
add esp, 0xc
mov eax, esi
pop edi
jmp 0x5d5fce
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005d0efa
leave
ret
Function at 0x5da2a6
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 0x5da2d4
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 0x5da2db
cmp ebx, dword [eax + 4]
jae 0x5da2db
xor eax, eax
jmp 0x5da4cb
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x5da2ec
xor eax, eax
inc eax
jmp 0x5da4ca
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x5da302
cmp ecx, edx
jae 0x5da447
cmp dword [eax + 4], 0
je 0x5da30b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x5da2f3
cmp dword [ebp + 8], 0
je 0x5da32d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x5da447
cmp eax, esi
jae 0x5da447
mov eax, dword [0x224f0c0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x5da352
cmp dword [esi*4 + 0x224f0c8], edi
je 0x5da44b
inc esi
cmp esi, eax
jl 0x5da340
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x5da4c7
cmp dword [ebp - 8], 0x1000000
jne 0x5da4c7
test byte [ebp - 0xc], 0xcc
je 0x5da3d0
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x5da4c7
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x5da4c7
cmp word [eax + 0x18], 0x10b
jne 0x5da4c7
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x5da4c7
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x5da3d0
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x5da3d0
test byte [ecx + 0x27], 0x80
jne 0x5da447
push 1
push 0x224f108
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x5da2e4
mov ecx, dword [0x224f0c0]
test ecx, ecx
mov edx, ecx
jle 0x5da404
lea eax, [ecx*4 + 0x224f0c4]
cmp dword [eax], edi
je 0x5da404
dec edx
sub eax, 4
test edx, edx
jg 0x5da3f8
test edx, edx
jne 0x5da435
push 0xf
pop ebx
cmp ecx, ebx
jg 0x5da411
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x5da429
lea eax, [edx*4 + 0x224f0c8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x5da417
cmp ecx, 0x10
jge 0x5da435
inc ecx
mov dword [0x224f0c0], ecx
push 0
push 0x224f108
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x5da2e4
xor eax, eax
jmp 0x5da4ca
test esi, esi
jle 0x5da2e4
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x224f108
call ebx
test eax, eax
jne 0x5da2e4
cmp dword [esi*4 + 0x224f0c8], edi
je 0x5da4a1
mov eax, dword [0x224f0c0]
lea esi, [eax - 1]
test esi, esi
jl 0x5da48f
cmp dword [esi*4 + 0x224f0c8], edi
je 0x5da48b
dec esi
jns 0x5da47f
test esi, esi
jge 0x5da49f
cmp eax, 0x10
jge 0x5da49a
inc eax
mov dword [0x224f0c0], eax
lea esi, [eax - 1]
jmp 0x5da4a1
je 0x5da4b9
xor ecx, ecx
test esi, esi
jl 0x5da4b9
lea eax, [ecx*4 + 0x224f0c8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x5da4a7
push 0
push 0x224f108
call ebx
jmp 0x5da2e4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5db857
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x70e4ec]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x70ee30]
je 0x5db88e
inc eax
cmp eax, 0x13
jb 0x5db87f
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x70ee30]
jne 0x5db9b1
mov eax, dword [0x224ee40]
cmp eax, 1
je 0x5db98c
cmp eax, edx
jne 0x5db8be
cmp dword [0x70e4d4], 1
je 0x5db98c
cmp ecx, 0xfc
je 0x5db9b1
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5db8f4
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.005d6350
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.005d4cf0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x5db928
mov eax, edi
push eax
call fcn.005d4cf0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x6bfb38
push edi
call fcn.005cd0f0
add esp, 0x10
push edi
call fcn.005d4cf0
push dword [esi + 0x70ee34]
mov ebx, eax
call fcn.005d4cf0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.005cd2a0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.005d6350
push edi
push ebx
call fcn.005d6360
push 0x6dab18
push ebx
call fcn.005d6360
push dword [esi + 0x70ee34]
push ebx
call fcn.005d6360
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.005e02eb
add esp, 0x2c
jmp 0x5db9b1
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x70ee34]
push dword [esi]
call fcn.005d4cf0
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]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.005d0efa
add ebp, 0x90
leave
ret

Function at 0x5dc671
Capabilities:
Get common file path

Disassembly:
push 0x120
push 0x6dad20
call fcn.005d2ad0
mov eax, dword [0x70e4ec]
xor eax, ebp
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
and dword [ebp - 0x128], 0
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x12c], esi
cmp esi, 0x104
jle 0x5dc717
and dword [ebp - 4], 0
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.005cd2a0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x130], edi
jmp 0x5dc704
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x5dc717
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x5dc732
cmp byte [edi + 1], 0x3a
jne 0x5dc732
movzx eax, byte [edi]
push eax
call fcn.005cfa15
pop ecx
mov ebx, eax
sub ebx, 0x40
cmp dword [ebp - 0x128], 0
je 0x5dc742
push edi
call fcn.005cfaf0
pop ecx
mov eax, ebx
lea esp, [ebp - 0x13c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.005d0efa
call fcn.005d2b0b
ret
Function at 0x5e02eb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x224f2c0], ebx
push esi
push edi
jne 0x5e036b
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x5e03a6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6dbc00
push edi
call esi
test eax, eax
mov dword [0x224f2c0], eax
je 0x5e03a6
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x224f2c4], eax
call esi
cmp dword [0x224ede8], 2
mov dword [0x224f2c8], eax
jne 0x5e036b
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x224f2d0], eax
je 0x5e036b
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x224f2cc], eax
mov eax, dword [0x224f2cc]
test eax, eax
je 0x5e03b0
call eax
test eax, eax
je 0x5e0397
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x224f2d0]
test eax, eax
je 0x5e0397
test byte [ebp - 8], 1
jne 0x5e03b0
cmp dword [0x224edf4], 4
jb 0x5e03aa
or byte [ebp + 0x12], 0x20
jmp 0x5e03cf
xor eax, eax
jmp 0x5e03df
or byte [ebp + 0x12], 4
jmp 0x5e03cf
mov eax, dword [0x224f2c4]
test eax, eax
je 0x5e03cf
call eax
mov ebx, eax
test ebx, ebx
je 0x5e03cf
mov eax, dword [0x224f2c8]
test eax, eax
je 0x5e03cf
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x224f2c0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5e0f68
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x6dbc38
call fcn.005d2ad0
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x224f2dc], edi
jne 0x5e0fac
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5e0f97
mov dword [0x224f2dc], ebx
jmp 0x5e0fac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x5e0fac
mov dword [0x224f2dc], 2
mov eax, dword [0x224f2dc]
cmp eax, ebx
jne 0x5e0fcc
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x5e108f
cmp eax, 2
je 0x5e0fd5
cmp eax, edi
jne 0x5e0ffd
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x5e0fe8
mov eax, dword [0x224f258]
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 0x5e1004
xor eax, eax
jmp 0x5e108f
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.005cd2a0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x5e1037
cmp esi, edi
jne 0x5e104d
push dword [ebp - 0x20]
call fcn.005cfade
pop ecx
mov esi, eax
cmp esi, edi
je 0x5e0ffd
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 0x5e1080
cmp dword [ebp + 0x14], edi
jne 0x5e106a
push edi
push edi
jmp 0x5e1070
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 0x5e108c
push esi
call fcn.005cfaf0
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.005d2b0b
ret
Function at 0x5e1098
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x6dbc48
call fcn.005d2ad0
xor esi, esi
cmp dword [0x224f2e0], esi
jne 0x5e10dc
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5e10c7
mov dword [0x224f2e0], edi
jmp 0x5e10dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x5e10dc
mov dword [0x224f2e0], 2
mov eax, dword [0x224f2e0]
cmp eax, 2
je 0x5e11bd
cmp eax, esi
je 0x5e11bd
cmp eax, 1
jne 0x5e1121
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x5e110a
mov eax, dword [0x224f258]
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 0x5e1128
xor eax, eax
jmp 0x5e11cf
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.005cd2a0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x5e115e
cmp edi, esi
jne 0x5e1179
lea eax, [ebx + ebx]
push eax
call fcn.005cfade
pop ecx
mov edi, eax
cmp edi, esi
je 0x5e1121
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 0x5e11ac
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x5e1196
push esi
push esi
jmp 0x5e119c
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 0x5e11b8
push edi
call fcn.005cfaf0
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x5e11cf
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.005d2b0b
ret
Function at 0x5e1695
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 0x5e16ae
or eax, 0xffffffff
jmp 0x5e170f
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x5e170b
push 0x3d
push esi
call fcn.005e1896
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x5e170b
cmp esi, eax
je 0x5e170b
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x224ee08]
sete cl
cmp eax, dword [0x224ee0c]
mov dword [ebp - 4], ecx
jne 0x5e16f1
mov edi, eax
call fcn.005e1634
mov dword [0x224ee08], eax
cmp eax, ebx
jne 0x5e174a
cmp dword [ebp + 0xc], ebx
je 0x5e1713
cmp dword [0x224ee10], ebx
je 0x5e1713
call fcn.005e0c14
test eax, eax
je 0x5e174a
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x5e171c
xor eax, eax
jmp 0x5e170e
push 4
call fcn.005cfade
cmp eax, ebx
pop ecx
mov dword [0x224ee08], eax
je 0x5e170b
mov dword [eax], ebx
cmp dword [0x224ee10], ebx
jne 0x5e174a
push 4
call fcn.005cfade
cmp eax, ebx
pop ecx
mov dword [0x224ee10], eax
je 0x5e170b
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x224ee08]
sub edi, esi
push esi
call fcn.005e15e7
mov edi, eax
test edi, edi
pop ecx
jl 0x5e17b1
cmp dword [ebx], 0
je 0x5e17b1
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.005cfaf0
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x5e1791
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x5e17f2
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x5e1788
mov eax, edi
shl eax, 2
push eax
push dword [0x224ee08]
call fcn.005d020a
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x5e17f2
jmp 0x5e17ed
cmp dword [ebp - 4], 0
jne 0x5e1859
test edi, edi
jge 0x5e17c1
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x224ee08]
call fcn.005d020a
test eax, eax
pop ecx
pop ecx
je 0x5e170b
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x224ee08], eax
cmp dword [ebp + 0xc], 0
je 0x5e1844
push esi
call fcn.005d4cf0
inc eax
inc eax
push eax
call fcn.005cfade
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x5e1844
push esi
push edi
call fcn.005d6350
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x5e183d
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.005cfaf0
pop ecx
cmp dword [ebp - 4], 0
je 0x5e1851
push esi
call fcn.005cfaf0
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x5e170e
push esi
call fcn.005cfaf0
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x5e1718
Function at 0x5ece1f
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x5ecf42
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x5ecf26
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x5ece78
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x5ece56
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18
Function at 0x5ed1fe
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, ecx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x20]
push ebx
mov ebx, dword [edx + 0x20]
push esi
mov esi, dword [edx + 0x6c]
imul esi, dword [edx + 0x60]
add esi, ebx
cmp ebx, esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], esi
jae 0x5ed32c
mov eax, 0xf81f
push edi
mov edi, dword [edx + 0x60]
mov edx, dword [edx + 0x68]
lea edx, [ebx + edx*2]
add edi, ebx
cmp ebx, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x20], edx
jae 0x5ed30c
movzx ecx, word [edi]
movzx edx, word [edi + 2]
movzx esi, word [ebx + 2]
mov dword [ebp - 4], ecx
movzx ecx, word [ebx]
mov ebx, ecx
and bx, ax
mov edi, edx
and di, ax
mov dword [ebp - 0x1c], ecx
and ecx, 0xffff07e0
add edi, ebx
mov ebx, dword [ebp - 4]
and bx, ax
add edi, ebx
mov ebx, esi
and bx, ax
lea edi, [edi + ebx + 0x1002]
mov ebx, edx
and ebx, 0xffff07e0
add ebx, ecx
mov ecx, dword [ebp - 4]
and ecx, 0xffff07e0
add ebx, ecx
mov ecx, esi
and ecx, 0xffff07e0
lea ecx, [ebx + ecx + 0x40]
mov ebx, dword [ebp - 0xc]
shr ecx, 2
shr edi, 2
xor edi, ecx
mov ecx, dword [ebp - 0x1c]
and ecx, eax
and edx, eax
add edx, ecx
mov ecx, dword [ebp - 4]
and ecx, eax
add edx, ecx
and esi, eax
and edi, 0xffff07e0
lea ecx, [edx + esi + 0x1002]
shr ecx, 2
xor edi, ecx
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 2
mov word [ecx], di
mov edi, dword [ebp - 0x10]
add ebx, 4
add edi, 4
cmp ebx, dword [ebp - 0x20]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
jb 0x5ed257
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov edi, dword [edx + 4]
add ecx, dword [edi + 0x60]
mov edx, dword [edx]
mov edi, dword [edx + 0x60]
lea ebx, [ebx + edi*2]
cmp ebx, esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
jb 0x5ed238
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret