joyce8/EMBER2024-capa huggingface dataset:
Function at 0x52f7f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x60ef40]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x14], 0x42
mov byte [ebp - 0x13], 0xa
mov byte [ebp - 0x12], 0x23
mov byte [ebp - 0x11], 0x36
mov byte [ebp - 0x10], 0x23
mov byte [ebp - 0xf], 0x62
mov byte [ebp - 0xe], 9
mov byte [ebp - 0xd], 0x2d
mov byte [ebp - 0xc], 0x26
mov byte [ebp - 0xb], 0x37
mov byte [ebp - 0xa], 0x62
mov byte [ebp - 9], 0x10
mov byte [ebp - 8], 0x76
mov byte [ebp - 7], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov edx, dword [ebp - 0x10]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 8], ecx
mov dx, word [ebp - 8]
mov word [eax + 0xc], dx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534c20
mov esp, ebp
pop ebp
ret 4

Function at 0x530770
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3b2d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x60ef40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0045a680
add esp, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0045a680
add esp, 4
push eax
lea edx, [ebp - 0x1c]
push edx
call fcn.005308a0
add esp, 0xc
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.004b9110
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00530930
mov dword [ebp - 0x20], 0x5306d0
mov ecx, dword [ebp - 0x10]
add ecx, 4
push ecx
push 0
lea ecx, [ebp - 0x14]
call fcn.004262c0
push eax
mov edx, dword [ebp - 0x20]
push edx
push 0
push 0
call fcn.00564380
add esp, 0x18
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0
je 0x53081c
lea ecx, [ebp - 0x14]
call fcn.004fef60
jmp 0x53082d
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
push 6
call fcn.00534140
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00530930
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x53af20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.0053ab40
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x53af52
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 [0x5a5440]
call dword [ebp - 8]
jmp 0x53af5c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret
Function at 0x5634b0
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
call fcn.00563200
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x38]
call fcn.00563130
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00563100
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x563506
call fcn.00569530
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00563180
mov eax, dword [ebp - 0x10]
jmp 0x56358d
lea ecx, [ebp - 0x50]
call fcn.00563130
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x50]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00563100
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x563551
call fcn.00569530
mov edx, dword [ebp - 0xc]
mov dword [eax], edx
mov dword [ebp - 0x14], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.00563180
lea ecx, [ebp - 0x38]
call fcn.00563180
mov eax, dword [ebp - 0x14]
jmp 0x56358d
lea ecx, [ebp - 0x50]
call fcn.00563390
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x38]
call fcn.00563390
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.00566fe0
add esp, 8
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x50]
call fcn.00563180
lea ecx, [ebp - 0x38]
call fcn.00563180
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret

Function at 0x570a40
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.005701a0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x570a74
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 [0x5a5440]
call dword [ebp - 8]
jmp 0x570a7a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esp, ebp
pop ebp
ret 4

Function at 0x570ad0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.005701e0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x570b04
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 [0x5a5440]
call dword [ebp - 8]
jmp 0x570b0e
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esp, ebp
pop ebp
ret 4

Function at 0x570b20
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00570200
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x570b58
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 [0x5a5440]
push esp
pop edx
add bh, bh
push ebp
clc
jmp 0x570b66
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 0x570b70
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.00570280
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x570bb0
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 [0x5a5440]
call dword [ebp - 8]
jmp 0x570bce
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.00570dc0
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5750b0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.00535a10
mov eax, dword [0x60ef40]
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 + 0x61ebb0]
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 0x575288
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 0x5751d7
mov eax, dword [ebp - 0x1420]
cmp eax, dword [ebp - 0x1424]
jae 0x5751d7
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 0x5751b5
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 0x575139
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 0x575241
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 0x5752a8
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 0x575283
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 0x5752a8
jmp 0x575112
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.00534c20
mov esp, ebp
pop ebp
ret
Function at 0x5752c0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1434
call fcn.00535a10
mov eax, dword [0x60ef40]
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 + 0x61ebb0]
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 0x5754ab
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 0x5753f6
mov eax, dword [ebp - 0x141c]
cmp eax, dword [ebp - 0x1424]
jae 0x5753f6
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 0x5753d2
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 0x575349
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 0x575464
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 0x5754cb
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 0x5754a6
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 0x5754cb
jmp 0x575322
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.00534c20
mov esp, ebp
pop ebp
ret
Function at 0x586240
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x586267
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00569480
add esp, 4
or eax, 0xffffffff
jmp 0x586269
xor eax, eax
pop ebp
ret

Function at 0x587be0
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x60ef40]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x20a
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.00537090
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0x104
ja 0x587c43
lea edx, [ebp - 0x210]
push edx
call fcn.00587b90
add esp, 4
jmp 0x587d21
push 0x25
push str.minkernelcrtsucrt_srcdesktopcrtmiscdrive.cpp
push 2
push 2
mov eax, dword [ebp - 0x218]
add eax, 1
push eax
call fcn.00561f60
add esp, 0x14
push eax
lea ecx, [ebp - 0x214]
call fcn.0053b0e0
lea ecx, [ebp - 0x214]
call fcn.0053b120
test eax, eax
jne 0x587ca3
call fcn.00569530
mov dword [eax], 0xc
mov dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x214]
call fcn.0053b100
mov eax, dword [ebp - 0x21c]
jmp 0x587d21
lea ecx, [ebp - 0x214]
call fcn.0053b120
push eax
mov ecx, dword [ebp - 0x218]
add ecx, 1
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x587cf6
call fcn.00569530
mov dword [eax], 0xc
mov dword [ebp - 0x224], 0
lea ecx, [ebp - 0x214]
call fcn.0053b100
mov eax, dword [ebp - 0x224]
jmp 0x587d21
lea ecx, [ebp - 0x214]
call fcn.0053b120
push eax
call fcn.00587b90
add esp, 4
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x214]
call fcn.0053b100
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534c20
mov esp, ebp
pop ebp
ret
Function at 0x58e1d0
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.0053b0e0
lea ecx, [ebp - 4]
call fcn.0058e1a0
movzx eax, al
test eax, eax
jne 0x58e20d
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 4]
call fcn.0058e0c0
mov eax, dword [ebp - 0x18]
jmp 0x58e335
lea ecx, [ebp - 4]
call fcn.0053b120
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0058e160
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.0053b120
push eax
push 0
push 0
call fcn.0058c050
add esp, 0x20
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x58e273
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 4]
call fcn.0058e0c0
mov eax, dword [ebp - 0x20]
jmp 0x58e335
push 0x66
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
push 2
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00562080
add esp, 0x10
push eax
lea ecx, [ebp - 8]
call fcn.004d24e0
lea ecx, [ebp - 8]
call fcn.005348d0
movzx edx, al
test edx, edx
jne 0x58e2bc
mov dword [ebp - 0x24], 0
lea ecx, [ebp - 8]
call fcn.005348b0
lea ecx, [ebp - 4]
call fcn.0058e0c0
mov eax, dword [ebp - 0x24]
jmp 0x58e335
lea ecx, [ebp - 8]
call fcn.004262c0
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 4]
call fcn.0053b120
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.0058c050
add esp, 0x20
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x58e317
mov dword [ebp - 0x34], 0
lea ecx, [ebp - 8]
call fcn.005348b0
lea ecx, [ebp - 4]
call fcn.0058e0c0
mov eax, dword [ebp - 0x34]
jmp 0x58e335
lea ecx, [ebp - 8]
call fcn.0053b140
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 8]
call fcn.005348b0
lea ecx, [ebp - 4]
call fcn.0058e0c0
mov eax, dword [ebp - 0x38]
mov esp, ebp
pop ebp
ret
Function at 0x58e340
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.0053b0e0
lea ecx, [ebp - 4]
call fcn.0058e0e0
movzx eax, al
test eax, eax
jne 0x58e37d
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 4]
call fcn.0058e0c0
mov eax, dword [ebp - 0x14]
jmp 0x58e437
lea ecx, [ebp - 4]
call fcn.0053b120
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0058e160
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.00562080
add esp, 0x10
push eax
lea ecx, [ebp - 8]
call fcn.0053b0e0
lea ecx, [ebp - 8]
call fcn.0055fb60
movzx ecx, al
test ecx, ecx
jne 0x58e3ed
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 8]
call fcn.0053b100
lea ecx, [ebp - 4]
call fcn.0058e0c0
mov eax, dword [ebp - 0x1c]
jmp 0x58e437
lea ecx, [ebp - 4]
call fcn.0053b120
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 8]
call fcn.0053b120
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.00536b10
add esp, 0xc
lea ecx, [ebp - 8]
call fcn.0053b140
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 8]
call fcn.0053b100
lea ecx, [ebp - 4]
call fcn.0058e0c0
mov eax, dword [ebp - 0x28]
mov esp, ebp
pop ebp
ret
Function at 0x5978e0
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x70
lea ecx, [ebp - 0x70]
call fcn.00563130
lea ecx, [ebp - 0x58]
call fcn.00563130
lea ecx, [ebp - 0x40]
call fcn.00563130
call fcn.00563200
push eax
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00563100
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x597946
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x40]
call fcn.00563180
lea ecx, [ebp - 0x58]
call fcn.00563180
lea ecx, [ebp - 0x70]
call fcn.00563180
mov eax, dword [ebp - 0xc]
jmp 0x597a49
call fcn.00563200
push eax
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00563100
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x59798c
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x40]
call fcn.00563180
lea ecx, [ebp - 0x58]
call fcn.00563180
lea ecx, [ebp - 0x70]
call fcn.00563180
mov eax, dword [ebp - 0x14]
jmp 0x597a49
mov dword [ebp - 4], 0
cmp dword [ebp + 0x24], 0
je 0x5979e7
call fcn.00563200
push eax
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp + 0x24]
push edx
call fcn.00563100
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x5979dc
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x40]
call fcn.00563180
lea ecx, [ebp - 0x58]
call fcn.00563180
lea ecx, [ebp - 0x70]
call fcn.00563180
mov eax, dword [ebp - 0x1c]
jmp 0x597a49
lea ecx, [ebp - 0x40]
call fcn.00563390
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x58]
call fcn.00563390
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x70]
call fcn.00563390
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.00563180
lea ecx, [ebp - 0x58]
call fcn.00563180
lea ecx, [ebp - 0x70]
call fcn.00563180
mov eax, dword [ebp - 0x28]
mov esp, ebp
pop ebp
ret
Function at 0x5980b0
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x60ef40]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x1a
jbe 0x598146
call fcn.00569500
mov dword [eax], 0xf
xor eax, eax
je 0x5980e0
mov dword [ebp - 0x14], 1
jmp 0x5980e7
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jne 0x598116
push str.__Invalid_Drive_Index___0_
push 0x5d6740
push 0
push 0x1f
push str.minkernelcrtsucrt_srcdesktopcrtmiscgetcwd.cpp
push 2
call fcn.0055b7b0
add esp, 0x18
cmp eax, 1
jne 0x598116
int3
cmp dword [ebp - 0x18], 0
jne 0x598146
call fcn.00569530
mov dword [eax], 0xd
push 0
push 0x1f
push str.minkernelcrtsucrt_srcdesktopcrtmiscgetcwd.cpp
push str.is_valid_drive
push str.__Invalid_Drive_Index___0_
call fcn.0055ab90
add esp, 0x14
xor eax, eax
jmp 0x59819f
cmp dword [ebp + 8], 0
jne 0x598153
mov eax, 1
jmp 0x59819f
mov eax, dword [ebp + 8]
add eax, 0x40
mov word [ebp - 0x10], ax
mov cx, word [ebp - 0x10]
mov word [ebp - 0xc], cx
mov edx, 0x3a
mov word [ebp - 0xa], dx
mov eax, 0x5c
mov word [ebp - 8], ax
xor ecx, ecx
mov word [ebp - 6], cx
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x598196
cmp dword [ebp - 0x1c], 1
jne 0x59819a
xor eax, eax
jmp 0x59819f
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00534c20
mov esp, ebp
pop ebp
ret
Function at 0x598a70
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
lea ecx, [ebp - 0x4c]
call fcn.00563130
lea ecx, [ebp - 0x34]
call fcn.00563130
call fcn.00563200
push eax
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00563100
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x598ac3
mov dword [ebp - 8], 0
lea ecx, [ebp - 0x34]
call fcn.00563180
lea ecx, [ebp - 0x4c]
call fcn.00563180
mov eax, dword [ebp - 8]
jmp 0x598b38
call fcn.00563200
push eax
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00563100
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x598afe
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x34]
call fcn.00563180
lea ecx, [ebp - 0x4c]
call fcn.00563180
mov eax, dword [ebp - 0x10]
jmp 0x598b38
lea ecx, [ebp - 0x34]
call fcn.00563390
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x4c]
call fcn.00563390
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.00563180
lea ecx, [ebp - 0x4c]
call fcn.00563180
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0xd53370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xd5338e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xd7c074
push ecx
mov edi, eax
call fcn.00d67198
mov esi, eax
add esp, 8
test esi, esi
jne 0xd533cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00d6702e
push esi
call fcn.00d66fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret