joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e64
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402e81
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402e90
mov ebx, 0x40e870
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402ea5
mov ecx, dword [0x423718]
add ecx, eax
push ecx
call fcn.0040306d
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403057
test eax, eax
je 0x403002
test byte [ebp + 0x17], 0x80
je 0x402feb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40a7e0
mov dword [ebp - 0xc], eax
call fcn.00405f72
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x40304d
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402ef5
mov esi, dword [ebp + 0x14]
mov edi, 0x40a870
push esi
push edi
call fcn.00403057
test eax, eax
je 0x403002
sub dword [ebp + 0x14], esi
mov dword [0x40a7f8], edi
mov dword [0x40a7fc], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40a7e0
mov dword [0x40a800], ebx
mov dword [0x40a804], eax
call fcn.00405f92
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x402fe3
mov esi, dword [0x40a800]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x423774], 1
mov edi, eax
je 0x402f97
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402f64
cmp dword [ebp + 0x14], 0
jne 0x402f97
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00404e52
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x402fd8
cmp dword [ebp + 0x10], eax
jne 0x402fc0
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fe7
cmp dword [ebp - 0x10], esi
jne 0x402fe7
add dword [ebp - 4], esi
jmp 0x402fcc
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40a800]
cmp dword [ebp - 0x14], 1
jne 0x402f18
jmp 0x40304d
cmp dword [ebp + 0x14], eax
jg 0x402ee8
jmp 0x40304d
push 0xfffffffffffffffc
jmp 0x403004
push 0xfffffffffffffffe
jmp 0x403004
test edi, edi
je 0x403042
cmp dword [ebp + 0x14], esi
jge 0x402ff7
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403057
test eax, eax
jne 0x40304a
push 0xfffffffffffffffd
pop eax
jmp 0x403050
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x403012
mov esi, dword [ebp + 0x14]
mov edi, 0x40a870
push esi
push edi
call fcn.00403057
test eax, eax
je 0x403002
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fe7
cmp esi, dword [ebp + 0x10]
jne 0x402fe7
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403007
jmp 0x40304d
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40531a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x4214c8], 0x44
push eax
xor eax, eax
push 0x4214c8
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405355
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4053df
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.004057d3
mov edi, eax
cmp edi, 0xffffffff
je 0x405420
test byte [esp + 0x10], 1
push esi
je 0x405402
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405408
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405411
xor eax, eax
inc eax
jmp 0x405422
test byte [esp + 0x10], 4
jne 0x405420
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405427
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.004056e5
test bl, 8
mov dword [ebp - 0xc], eax
je 0x405466
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423748], eax
jmp 0x4055f0
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405480
test eax, eax
je 0x40559e
test bl, 2
je 0x40559e
mov esi, 0x420cc8
push edi
push esi
call fcn.00405b67
cmp dword [ebp + 8], 0
je 0x40549f
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4054a5
push edi
call fcn.0040563e
cmp byte [edi], 0
jne 0x4054b3
cmp byte [0x420cc8], 0x5c
jne 0x4054be
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x405594
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405622
cmp byte [eax], 0
je 0x405504
cmp byte [ebp - 0x1c], 0
je 0x405504
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x40551a
mov al, byte [esi + 1]
test al, al
je 0x405573
cmp al, 0x2e
jne 0x40551a
cmp byte [esi + 2], 0
je 0x405573
push esi
push ebx
call fcn.00405b67
test byte [ebp - 0x14c], 0x10
je 0x40553f
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405573
push dword [ebp + 0xc]
push edi
call fcn.00405427
jmp 0x405573
push dword [ebp - 4]
push edi
call fcn.004053df
test eax, eax
jne 0x40556b
cmp dword [ebp - 4], eax
je 0x405563
push edi
push 0xfffffffffffffff1
call fcn.00404e52
push 0
push edi
call fcn.00405a1b
jmp 0x405573
inc dword [0x423748]
jmp 0x405573
push edi
push 0xfffffffffffffff2
call fcn.00404e52
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4054e2
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x40559e
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4055f0
cmp dword [ebp - 0xc], esi
jne 0x4055b2
inc dword [0x423748]
jmp 0x4055f0
push edi
call fcn.00405e6b
test eax, eax
je 0x4055f0
push edi
call fcn.004055f7
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.004053df
test eax, eax
jne 0x4055e8
cmp dword [ebp - 4], esi
je 0x4055aa
push edi
push 0xfffffffffffffff1
call fcn.00404e52
push esi
push edi
call fcn.00405a1b
jmp 0x4055f0
push edi
push 0xffffffffffffffe5
call fcn.00404e52
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4056e5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4210c8
push esi
call fcn.00405b67
push esi
call fcn.00405690
mov edi, eax
test edi, edi
jne 0x405706
xor eax, eax
jmp 0x405758
push edi
call fcn.00405dd2
test byte [0x4236d8], 0x80
je 0x40571f
mov al, byte [edi]
test al, al
je 0x405702
cmp al, 0x5c
je 0x405702
sub edi, esi
jmp 0x405737
call fcn.00405e6b
test eax, eax
je 0x405731
test byte [eax], 0x10
je 0x405702
push esi
call fcn.0040563e
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405723
call fcn.004055f7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4057d3
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4057f2
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x4057f8
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405827
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x409368]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x40586c
test edi, edi
jne 0x405832
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405866
Function at 0x40589f
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, 0x421a50
push 0x409384
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x1c]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov ebx, 0x400
je 0x4058ee
push 1
push 0
push esi
call fcn.004057f8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x405a15
cmp eax, ebx
jg 0x405a15
mov esi, 0x421e50
push ebx
push esi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x405a15
cmp eax, ebx
jg 0x405a15
push esi
push edi
push str._s_s_r_n
push 0x421650
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x4236d0]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405b89
push 4
push 0xc0000000
push esi
call fcn.004057f8
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x1c], ebp
je 0x405a15
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405a0e
push edi
push esi
push ebp
call fcn.00405870
test eax, eax
je 0x405a0e
push str._Rename__r_n
push esi
call fcn.0040575d
test eax, eax
jne 0x4059a4
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4059d9
add eax, 0xa
push 0x40936c
push eax
call fcn.0040575d
mov ebp, eax
test ebp, ebp
je 0x4059d5
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x4059c6
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x4059c0
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x4059db
mov ebp, dword [esp + 0x1c]
mov eax, edi
push ebx
add eax, esi
push 0x421650
push eax
call fcn.004057b3
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x10]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x405a4e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405abf
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405aae
cmp dword [ebp + 0x14], 1
je 0x405ab0
cmp dword [ebp + 0x14], 2
je 0x405ab0
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405f04
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422254], 0
push esi
jne 0x405f3b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f15
mov dword [ecx*4 + 0x422250], eax
inc ecx
cmp ecx, 0x100
jl 0x405f10
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f6c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422250]
xor eax, esi
inc ecx
dec edx
jne 0x405f4e
pop edi
not eax
pop esi
ret 0xc
Function at 0x4ddac0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.004fd630
mov ecx, 4
imul edx, ecx, 5
mov eax, dword [eax + edx]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4ddae6
mov eax, 2
jmp 0x4ddb39
xor ecx, ecx
mov dword [ebp - 0xc], ecx
push 2
lea edx, [ebp - 0xc]
push edx
push 0x22
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
nop
mov ecx, 2
imul edx, ecx, 0
movzx eax, word [ebp + edx - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x30
je 0x4ddb22
cmp dword [ebp - 4], 0x31
je 0x4ddb29
cmp dword [ebp - 4], 0x32
je 0x4ddb30
jmp 0x4ddb37
mov eax, 2
jmp 0x4ddb39
mov eax, 1
jmp 0x4ddb39
mov eax, 3
jmp 0x4ddb39
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4f3760
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.004f3370
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4f3792
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x585304]
call dword [ebp - 8]
jmp 0x4f379c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret
Function at 0x54c260
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.0054b900
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x54c294
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x585304]
call dword [ebp - 8]
jmp 0x54c29a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esp, ebp
pop ebp
ret 4

Function at 0x54c2f0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.0054b940
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x54c324
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x585304]
call dword [ebp - 8]
jmp 0x54c32e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret 4

Function at 0x54c340
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.0054b960
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x54c378
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
call dword [0x585304]
call dword [ebp - 8]
jmp 0x54c386
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esp, ebp
pop ebp
ret 8

Function at 0x54c450
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.0054ba00
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x54c490
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 8]
call dword [0x585304]
call dword [ebp - 8]
jmp 0x54c4ae
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.0054c810
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x55a590
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push eax
lea ecx, [ebp - 4]
call fcn.0055a430
lea ecx, [ebp - 4]
call fcn.0055a560
movzx eax, al
test eax, eax
jne 0x55a5cd
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 4]
call fcn.0055a450
mov eax, dword [ebp - 0x18]
jmp 0x55a6f5
lea ecx, [ebp - 4]
call fcn.0055a530
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0055a4f0
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x10]
sar edx, 1
mov dword [ebp - 0x14], edx
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 4]
call fcn.0055a530
push eax
push 0
push 0
call fcn.00554ff0
add esp, 0x20
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x55a633
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 4]
call fcn.0055a450
mov eax, dword [ebp - 0x20]
jmp 0x55a6f5
push 0x66
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
push 2
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004fa800
add esp, 0x10
push eax
lea ecx, [ebp - 8]
call fcn.004e4490
lea ecx, [ebp - 8]
call fcn.004e4510
movzx edx, al
test edx, edx
jne 0x55a67c
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 8]
call fcn.004e44d0
lea ecx, [ebp - 4]
call fcn.0055a450
mov eax, dword [ebp - 0x24]
jmp 0x55a6f5
lea ecx, [ebp - 8]
call fcn.004e45d0
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 4]
call fcn.0055a530
mov dword [ebp - 0x2c], eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0
call fcn.00554ff0
add esp, 0x20
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x55a6d7
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 8]
call fcn.004e44d0
lea ecx, [ebp - 4]
call fcn.0055a450
mov eax, dword [ebp - 0x34]
jmp 0x55a6f5
lea ecx, [ebp - 8]
call fcn.00536c70
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 8]
call fcn.004e44d0
lea ecx, [ebp - 4]
call fcn.0055a450
mov eax, dword [ebp - 0x38]
mov esp, ebp
pop ebp
ret
Function at 0x55a700
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push eax
lea ecx, [ebp - 4]
call fcn.0055a430
lea ecx, [ebp - 4]
call fcn.0055a470
movzx eax, al
test eax, eax
jne 0x55a73d
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 4]
call fcn.0055a450
mov eax, dword [ebp - 0x14]
jmp 0x55a7f7
lea ecx, [ebp - 4]
call fcn.0055a530
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0055a4f0
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0xc]
sar edx, 1
mov dword [ebp - 0x10], edx
push 0x40
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
push 2
mov eax, dword [ebp - 0x10]
shl eax, 1
push eax
call fcn.004fa800
add esp, 0x10
push eax
lea ecx, [ebp - 8]
call fcn.004fc880
lea ecx, [ebp - 8]
call fcn.0053df20
movzx ecx, al
test ecx, ecx
jne 0x55a7ad
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 8]
call fcn.004fc8a0
lea ecx, [ebp - 4]
call fcn.0055a450
mov eax, dword [ebp - 0x1c]
jmp 0x55a7f7
lea ecx, [ebp - 4]
call fcn.0055a530
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 8]
call fcn.004fcbb0
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x10]
shl edx, 1
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.004e25a0
add esp, 0xc
lea ecx, [ebp - 8]
call fcn.00537900
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 8]
call fcn.004fc8a0
lea ecx, [ebp - 4]
call fcn.0055a450
mov eax, dword [ebp - 0x28]
mov esp, ebp
pop ebp
ret
Function at 0x56aa50
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
lea ecx, [ebp - 0x4c]
call fcn.00536870
lea ecx, [ebp - 0x34]
call fcn.00536870
call fcn.0054a3c0
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.005367c0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x56aaa3
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x34]
call fcn.00536910
lea ecx, [ebp - 0x4c]
call fcn.00536910
mov eax, dword [ebp - 8]
jmp 0x56ab18
call fcn.0054a3c0
push eax
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.005367c0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x56aade
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x34]
call fcn.00536910
lea ecx, [ebp - 0x4c]
call fcn.00536910
mov eax, dword [ebp - 0x10]
jmp 0x56ab18
lea ecx, [ebp - 0x34]
call fcn.00536c00
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x4c]
call fcn.00536c00
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x34]
call fcn.00536910
lea ecx, [ebp - 0x4c]
call fcn.00536910
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x56c9b0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.004df730
mov eax, dword [0x8d8dc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sar eax, 6
mov ecx, dword [ebp + 0xc]
and ecx, 0x3f
imul edx, ecx, 0x38
mov eax, dword [eax*4 + 0x8dbbd8]
mov ecx, dword [eax + edx + 0x18]
mov dword [ebp - 0x1434], ecx
mov edx, dword [ebp + 0x10]
add edx, dword [ebp + 0x14]
mov dword [ebp - 0x1424], edx
xor eax, eax
mov dword [ebp - 0x1410], eax
mov dword [ebp - 0x140c], eax
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x1420], ecx
mov edx, dword [ebp - 0x1420]
cmp edx, dword [ebp - 0x1424]
jae 0x56cb88
lea eax, [ebp - 5]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1418], ecx
mov edx, dword [ebp - 0x1418]
cmp edx, dword [ebp - 0x1430]
jae 0x56cad7
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x56cad7
mov ecx, dword [ebp - 0x1420]
mov dl, byte [ecx]
mov byte [ebp - 0x1419], dl
mov eax, dword [ebp - 0x1420]
add eax, 1
mov dword [ebp - 0x1420], eax
mov cl, byte [ebp - 0x1419]
mov byte [ebp - 0x1411], cl
movsx edx, byte [ebp - 0x1411]
cmp edx, 0xa
jne 0x56cab5
mov eax, dword [ebp - 0x1408]
add eax, 1
mov dword [ebp - 0x1408], eax
mov ecx, dword [ebp - 0x1418]
mov byte [ecx], 0xd
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
mov eax, dword [ebp - 0x1418]
mov cl, byte [ebp - 0x1411]
mov byte [eax], cl
mov edx, dword [ebp - 0x1418]
add edx, 1
mov dword [ebp - 0x1418], edx
jmp 0x56ca39
mov eax, dword [ebp - 0x1418]
lea ecx, [ebp - 0x1404]
sub eax, ecx
mov dword [ebp - 0x142c], eax
push 0
lea edx, [ebp - 0x1428]
push edx
mov eax, dword [ebp - 0x142c]
push eax
lea ecx, [ebp - 0x1404]
push ecx
mov edx, dword [ebp - 0x1434]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x56cb41
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
jmp 0x56cba8
mov edx, dword [ebp - 0x140c]
add edx, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], edx
mov eax, dword [ebp - 0x1428]
cmp eax, dword [ebp - 0x142c]
jae 0x56cb83
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x1410]
mov dword [ecx], edx
mov eax, dword [ebp - 0x140c]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x1408]
mov dword [ecx + 8], edx
mov eax, dword [ebp + 8]
jmp 0x56cba8
jmp 0x56ca12
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1410]
mov dword [eax], ecx
mov edx, dword [ebp - 0x140c]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0x1408]
mov dword [eax + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004def80
mov esp, ebp
pop ebp
ret