joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406840
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x41dbfb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4045bc
call fcn.004093b4
push 4
mov dword [esp + 0x18], 0
call fcn.0040aa56
mov edi, eax
add esp, 4
test edi, edi
je 0x4068b4
push ebx
call fcn.004091af
mov dword [edi], eax
call fcn.00408f6e
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00409375
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4068a8
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.0040939d
pop ebx
jmp 0x4068b6
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x40b54e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4213dc]
jne 0x40b558
repz ret
jmp fcn.004114ec
Function at 0x416be3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4213dc]
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.0040f9ce
and dword [ebp - 0x14], 0
cmp dword [0x81d7f4], 0
mov dword [ebp - 0x18], eax
jne 0x416c96
push 0x403ff0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x416d3e
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403fe4
push ebx
call edi
test eax, eax
je 0x416d3e
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403fd4
push ebx
mov dword [0x81d7f4], eax
call edi
push eax
call esi
push 0x403fc0
push ebx
mov dword [0x81d7f8], eax
call edi
push eax
call esi
push 0x403fa4
push ebx
mov dword [0x81d7fc], eax
call edi
push eax
call esi
mov dword [0x81d804], eax
test eax, eax
je 0x416c96
push 0x403f8c
push ebx
call edi
push eax
call esi
mov dword [0x81d800], eax
mov eax, dword [0x81d800]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x416cef
cmp dword [0x81d804], ecx
je 0x416cef
push eax
call esi
push dword [0x81d804]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x416cef
test ebx, ebx
je 0x416cef
call edi
test eax, eax
je 0x416ce6
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x416ce6
test byte [ebp - 8], 1
jne 0x416cef
or dword [ebp + 0x10], 0x200000
jmp 0x416d22
mov eax, dword [0x81d7f8]
cmp eax, dword [ebp - 0x18]
je 0x416d22
push eax
call esi
test eax, eax
je 0x416d22
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x416d22
mov eax, dword [0x81d7fc]
cmp eax, dword [ebp - 0x18]
je 0x416d22
push eax
call esi
test eax, eax
je 0x416d22
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x81d7f4]
call esi
test eax, eax
je 0x416d3e
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x416d40
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b54e
leave
ret
Function at 0x401000
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x434f14]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
push 0x412170
call fcn.00401400
add esp, 8
cmp dword [ebp - 0x2c], 4
jge 0x40103d
xor al, al
jmp 0x40103f
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040143a
mov esp, ebp
pop ebp
ret
Function at 0x44fb30
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor eax, eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
push ecx
call fcn.0044fb20
add esp, 4
mov dword [ebp - 0xc], eax
call fcn.004a2460
mov edx, 4
imul ecx, edx, 5
mov edx, dword [eax + ecx]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x22
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov eax, 2
imul ecx, eax, 0
movzx edx, word [ebp + ecx - 4]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0x30
je 0x44fb95
cmp dword [ebp - 8], 0x31
je 0x44fb9c
cmp dword [ebp - 8], 0x32
je 0x44fba3
jmp 0x44fbaa
mov eax, 2
jmp 0x44fbac
mov eax, 1
jmp 0x44fbac
mov eax, 3
jmp 0x44fbac
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x465320
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00464f40
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x465352
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 [0x4f71c0]
call dword [ebp - 8]
jmp 0x46535c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret
Function at 0x4c73b0
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x2c]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0x28]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0x24]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop ebp
ret

Function at 0x4cad60
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.004ca400
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4cad94
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 [0x4f71c0]
call dword [ebp - 8]
jmp 0x4cad9a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esp, ebp
pop ebp
ret 4

Function at 0x4cadf0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.004ca440
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4cae24
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 [0x4f71c0]
call dword [ebp - 8]
jmp 0x4cae2e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret 4

Function at 0x4cae40
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.004ca460
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4cae78
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 [0x4f71c0]
call dword [ebp - 8]
jmp 0x4cae86
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 0x4caf50
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.004ca500
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4caf90
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 [0x4f71c0]
call dword [ebp - 8]
jmp 0x4cafae
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.004cb310
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4d1f00
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.004efa80
mov eax, dword [0x527040]
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 + 0x529dd8]
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 0x4d20d8
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 0x4d2027
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x4d2027
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 0x4d2005
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 0x4d1f89
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 0x4d2091
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 0x4d20f8
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 0x4d20d3
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 0x4d20f8
jmp 0x4d1f62
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.00450d40
mov esp, ebp
pop ebp
ret
Function at 0x4d2110
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.004efa80
mov eax, dword [0x527040]
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 + 0x529dd8]
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 - 0x141c], ecx
mov edx, dword [ebp - 0x141c]
cmp edx, dword [ebp - 0x1424]
jae 0x4d22fb
lea eax, [ebp - 6]
mov dword [ebp - 0x1430], eax
lea ecx, [ebp - 0x1404]
mov dword [ebp - 0x1414], ecx
mov edx, dword [ebp - 0x1414]
cmp edx, dword [ebp - 0x1430]
jae 0x4d2246
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x1424]
jae 0x4d2246
mov ecx, dword [ebp - 0x141c]
mov dx, word [ecx]
mov word [ebp - 0x141e], dx
mov eax, dword [ebp - 0x141c]
add eax, 2
mov dword [ebp - 0x141c], eax
mov cx, word [ebp - 0x141e]
mov word [ebp - 0x1418], cx
movzx edx, word [ebp - 0x1418]
cmp edx, 0xa
jne 0x4d2222
mov eax, dword [ebp - 0x1408]
add eax, 2
mov dword [ebp - 0x1408], eax
mov ecx, 0xd
mov edx, dword [ebp - 0x1414]
mov word [edx], cx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
mov ecx, dword [ebp - 0x1414]
mov dx, word [ebp - 0x1418]
mov word [ecx], dx
mov eax, dword [ebp - 0x1414]
add eax, 2
mov dword [ebp - 0x1414], eax
jmp 0x4d2199
mov ecx, dword [ebp - 0x1414]
lea edx, [ebp - 0x1404]
sub ecx, edx
sar ecx, 1
shl ecx, 1
mov dword [ebp - 0x142c], ecx
push 0
lea eax, [ebp - 0x1428]
push eax
mov ecx, dword [ebp - 0x142c]
push ecx
lea edx, [ebp - 0x1404]
push edx
mov eax, dword [ebp - 0x1434]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4d22b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1410], eax
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 0x4d231b
mov eax, dword [ebp - 0x140c]
add eax, dword [ebp - 0x1428]
mov dword [ebp - 0x140c], eax
mov ecx, dword [ebp - 0x1428]
cmp ecx, dword [ebp - 0x142c]
jae 0x4d22f6
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1410]
mov dword [edx], eax
mov ecx, dword [ebp - 0x140c]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x1408]
mov dword [edx + 8], eax
mov eax, dword [ebp + 8]
jmp 0x4d231b
jmp 0x4d2172
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]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450d40
mov esp, ebp
pop ebp
ret
Function at 0x4dce10
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.004dccb0
lea ecx, [ebp - 4]
call fcn.004dcde0
movzx eax, al
test eax, eax
jne 0x4dce4d
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 4]
call fcn.004dccd0
mov eax, dword [ebp - 0x18]
jmp 0x4dcf75
lea ecx, [ebp - 4]
call fcn.004dcdb0
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004dcd70
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.004dcdb0
push eax
push 0
push 0
call fcn.004d7240
add esp, 0x20
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4dceb3
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 4]
call fcn.004dccd0
mov eax, dword [ebp - 0x20]
jmp 0x4dcf75
push 0x66
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
push 2
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004695b0
add esp, 0x10
push eax
lea ecx, [ebp - 8]
call fcn.00455e20
lea ecx, [ebp - 8]
call fcn.00455ea0
movzx edx, al
test edx, edx
jne 0x4dcefc
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 8]
call fcn.00455e60
lea ecx, [ebp - 4]
call fcn.004dccd0
mov eax, dword [ebp - 0x24]
jmp 0x4dcf75
lea ecx, [ebp - 8]
call fcn.00455f60
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 4]
call fcn.004dcdb0
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.004d7240
add esp, 0x20
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4dcf57
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 8]
call fcn.00455e60
lea ecx, [ebp - 4]
call fcn.004dccd0
mov eax, dword [ebp - 0x34]
jmp 0x4dcf75
lea ecx, [ebp - 8]
call fcn.004a64e0
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 8]
call fcn.00455e60
lea ecx, [ebp - 4]
call fcn.004dccd0
mov eax, dword [ebp - 0x38]
mov esp, ebp
pop ebp
ret
Function at 0x4dcf80
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.004dccb0
lea ecx, [ebp - 4]
call fcn.004dccf0
movzx eax, al
test eax, eax
jne 0x4dcfbd
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 4]
call fcn.004dccd0
mov eax, dword [ebp - 0x14]
jmp 0x4dd077
lea ecx, [ebp - 4]
call fcn.004dcdb0
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.004dcd70
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.004695b0
add esp, 0x10
push eax
lea ecx, [ebp - 8]
call fcn.0046c800
lea ecx, [ebp - 8]
call fcn.0046c840
movzx ecx, al
test ecx, ecx
jne 0x4dd02d
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 8]
call fcn.0046c820
lea ecx, [ebp - 4]
call fcn.004dccd0
mov eax, dword [ebp - 0x1c]
jmp 0x4dd077
lea ecx, [ebp - 4]
call fcn.004dcdb0
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 8]
call fcn.0046c860
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.00454400
add esp, 0xc
lea ecx, [ebp - 8]
call fcn.004ae6e0
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 8]
call fcn.0046c820
lea ecx, [ebp - 4]
call fcn.004dccd0
mov eax, dword [ebp - 0x28]
mov esp, ebp
pop ebp
ret
Function at 0x4e8450
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70
lea ecx, [ebp - 0x70]
call fcn.004ad680
lea ecx, [ebp - 0x58]
call fcn.004ad680
lea ecx, [ebp - 0x40]
call fcn.004ad680
call fcn.004c1570
push eax
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004ad5d0
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4e84b6
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x40]
call fcn.004ad720
lea ecx, [ebp - 0x58]
call fcn.004ad720
lea ecx, [ebp - 0x70]
call fcn.004ad720
mov eax, dword [ebp - 0xc]
jmp 0x4e85b9
call fcn.004c1570
push eax
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004ad5d0
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4e84fc
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x40]
call fcn.004ad720
lea ecx, [ebp - 0x58]
call fcn.004ad720
lea ecx, [ebp - 0x70]
call fcn.004ad720
mov eax, dword [ebp - 0x14]
jmp 0x4e85b9
mov dword [ebp - 4], 0
cmp dword [ebp + 0x24], 0
je 0x4e8557
call fcn.004c1570
push eax
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp + 0x24]
push edx
call fcn.004ad5d0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4e854c
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x40]
call fcn.004ad720
lea ecx, [ebp - 0x58]
call fcn.004ad720
lea ecx, [ebp - 0x70]
call fcn.004ad720
mov eax, dword [ebp - 0x1c]
jmp 0x4e85b9
lea ecx, [ebp - 0x40]
call fcn.004ada10
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x58]
call fcn.004ada10
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x70]
call fcn.004ada10
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x2c]
push eax
mov ecx, dword [ebp + 0x28]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x40]
call fcn.004ad720
lea ecx, [ebp - 0x58]
call fcn.004ad720
lea ecx, [ebp - 0x70]
call fcn.004ad720
mov eax, dword [ebp - 0x28]
mov esp, ebp
pop ebp
ret
Function at 0x4ec060
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
lea ecx, [ebp - 0x4c]
call fcn.004ad680
lea ecx, [ebp - 0x34]
call fcn.004ad680
call fcn.004c1570
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004ad5d0
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4ec0b3
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x34]
call fcn.004ad720
lea ecx, [ebp - 0x4c]
call fcn.004ad720
mov eax, dword [ebp - 8]
jmp 0x4ec128
call fcn.004c1570
push eax
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004ad5d0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4ec0ee
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x34]
call fcn.004ad720
lea ecx, [ebp - 0x4c]
call fcn.004ad720
mov eax, dword [ebp - 0x10]
jmp 0x4ec128
lea ecx, [ebp - 0x34]
call fcn.004ada10
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x4c]
call fcn.004ada10
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.004ad720
lea ecx, [ebp - 0x4c]
call fcn.004ad720
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret