joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44afe0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 8
jb 0x44aff2
mov esi, dword [esi]
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x44b009
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 1]
mov byte [ebp - 1], 0
push eax
push edi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.0044b700
mov ebx, dword [ebp - 0x1c]
push ebx
push edi
push dword [ebp - 0xc]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x44b08e
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
push eax
push str.VarFileInfoTranslation
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x44b08e
mov esi, dword [ebp - 8]
test esi, esi
je 0x44b08e
push 0x1c
call fcn.004cbadf
movzx ecx, word [esi + 2]
add esp, 4
push ecx
movzx ecx, word [esi]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.0044b670
mov ebx, dword [ebp - 0x1c]
mov esi, eax
jmp 0x44b090
xor esi, esi
test ebx, ebx
je 0x44b0c3
mov eax, dword [ebp - 0x14]
sub eax, ebx
cmp eax, 0x1000
jb 0x44b0ba
test bl, 0x1f
jne 0x44b0cc
mov eax, dword [ebx - 4]
cmp eax, ebx
jae 0x44b0d1
sub ebx, eax
cmp ebx, 4
jb 0x44b0d6
cmp ebx, 0x23
ja 0x44b0db
mov ebx, eax
push ebx
call fcn.004cbd7a
add esp, 4
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
int3
Function at 0x44b3d0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x51a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x228], eax
movzx eax, word [edi + 0x14]
mov word [ebp - 0x18], ax
movzx eax, word [edi + 0x16]
mov word [ebp - 0x16], ax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [ebp - 0x14], ax
mov esi, 0x4e4
movzx eax, word [edi + 0x16]
mov word [ebp - 0x12], ax
movzx eax, word [edi + 0x14]
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], si
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [ebp - 0xa], si
xor esi, esi
mov word [ebp - 0xc], ax
nop word [eax + eax]
movzx eax, word [ebp + esi*2 - 0x16]
movzx ecx, word [ebp + esi*2 - 0x18]
add esi, 2
push ebx
push eax
push ecx
push str.StringFileInfo_04x_04x_ls
push 0x104
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.00430d84
add esp, 0x1c
mov dword [ebp - 0x224], 0
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x220]
push eax
push dword [edi + 0x10]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x44b4a4
mov edx, dword [ebp - 0x224]
test edx, edx
jne 0x44b4be
cmp esi, 8
jb 0x44b440
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret 8
cmp word [edx], 0
jne 0x44b4e8
mov ecx, dword [ebp - 0x228]
xor eax, eax
push eax
push edx
call fcn.0041b8e7
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret 8
mov eax, edx
lea esi, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44b4f0
mov ecx, dword [ebp - 0x228]
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.0041b8e7
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret 8
Function at 0x44b860
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x51a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x51ed08], 0
jne 0x44b9bd
mov eax, dword [0x51ed24]
test eax, eax
jne 0x44b89f
push 0x18
call fcn.004cbadf
add esp, 4
mov ecx, eax
call fcn.0044b780
mov dword [0x51ed24], eax
test byte [0x51aa44], 1
je 0x44b9bd
cmp dword [eax + 0x14], 8
jb 0x44b8b4
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x51ed08], eax
cmp eax, 0xffffffff
je 0x44b8dc
test eax, eax
jne 0x44b9bd
xor eax, eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x44b9ad
cmp eax, 0x104
ja 0x44b9ad
cmp word [ebp - 0x20c], 0
jne 0x44b918
xor ecx, ecx
jmp 0x44b930
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44b921
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [0x51ed24]
lea eax, [ebp - 0x20c]
push eax
call fcn.0041b8e7
mov ecx, dword [0x51ed24]
call fcn.00432247
cmp word [eax], 0x5c
je 0x44b966
push 1
push 0x4ff620
call fcn.0041b9f3
mov ecx, dword [0x51ed24]
push 9
push str.debug.log
call fcn.0041b9f3
mov eax, dword [0x51ed24]
cmp dword [eax + 0x14], 8
jb 0x44b97f
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x51ed08], eax
cmp eax, 0xffffffff
je 0x44b9a3
test eax, eax
jne 0x44b9bd
mov dword [0x51ed08], 0
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret
Function at 0x44b9d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x51a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x38], 0
mov ebx, ecx
mov edi, dword [0x51ecc0]
mov ecx, edi
push 0x5050d8
call fcn.004452d0
test al, al
jne 0x44ba16
push str.vmodule
mov ecx, edi
call fcn.004452d0
test al, al
je 0x44bb2f
cmp dword [0x51ecf4], 0
je 0x44ba20
int3
mov eax, dword [0x51ed28]
push 0x10
mov dword [0x51ecf4], eax
call fcn.004cbadf
mov esi, eax
mov dword [ebp - 0x3c], str.vmodule
push ecx
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x38], 7
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x44], 0x5050d8
push eax
mov ecx, edi
mov dword [ebp - 0x40], 1
call fcn.00445380
add esp, 4
mov ecx, edi
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00445380
push eax
mov ecx, esi
call fcn.00467bf0
mov dword [0x51ed28], eax
mov eax, dword [ebp - 8]
cmp eax, 0x10
jb 0x44bac5
mov ecx, dword [ebp - 0x1c]
inc eax
cmp eax, 0x1000
jb 0x44babc
test cl, 0x1f
jne 0x44bbf8
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x44bbfd
sub ecx, eax
cmp ecx, 4
jb 0x44bc02
cmp ecx, 0x23
ja 0x44bc07
mov ecx, eax
push ecx
call fcn.004cbd7a
add esp, 4
mov eax, dword [ebp - 0x20]
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], 0
mov byte [ebp - 0x1c], 0
cmp eax, 0x10
jb 0x44bb1d
mov ecx, dword [ebp - 0x34]
inc eax
cmp eax, 0x1000
jb 0x44bb14
test cl, 0x1f
jne 0x44bc0c
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x44bc11
sub ecx, eax
cmp ecx, 4
jb 0x44bc16
cmp ecx, 0x23
ja 0x44bc1b
mov ecx, eax
push ecx
call fcn.004cbd7a
add esp, 4
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
mov eax, dword [ebx]
mov dword [0x51aa44], eax
test al, 1
jne 0x44bb4d
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret
mov eax, dword [0x51ed08]
test eax, eax
je 0x44bb67
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x51ed08], 0
mov edx, dword [0x51ed24]
test edx, edx
jne 0x44bb96
push 0x18
call fcn.004cbadf
mov edx, eax
add esp, 4
xor eax, eax
mov dword [0x51ed24], edx
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
mov esi, dword [ebx + 4]
cmp word [esi], 0
jne 0x44bba3
xor ecx, ecx
jmp 0x44bbbf
mov ecx, esi
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44bbb0
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.0041b8e7
cmp dword [ebx + 0xc], 0
jne 0x44bbe2
mov eax, dword [0x51ed24]
cmp dword [eax + 0x14], 8
jb 0x44bbdb
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.0044b860
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
int3
Function at 0x44e280
Capabilities:
Hash data using sha1

Disassembly:
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x168], 0
mov dword [ecx + 0x170], 0
mov dword [ecx + 0x174], 0
mov dword [ecx + 0x14], 0x67452301
mov dword [ecx + 0x18], 0xefcdab89
mov dword [ecx + 0x1c], 0x98badcfe
mov dword [ecx + 0x20], 0x10325476
mov dword [ecx + 0x24], 0xc3d2e1f0
ret
Function at 0x44e2f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x18
mov edx, ecx
test eax, eax
je 0x44e49d
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
nop dword [eax]
mov ecx, dword [edx + 0x168]
dec eax
mov dword [ebp + 0xc], eax
mov al, byte [ebx]
inc ebx
mov dword [ebp + 8], ebx
mov byte [ecx + edx + 0x28], al
inc dword [edx + 0x168]
cmp dword [edx + 0x168], 0x40
jb 0x44e481
lea ecx, [edx + 0x28]
mov edi, 0x10
mov esi, ecx
mov eax, dword [esi]
lea esi, [esi + 4]
bswap eax
mov dword [esi - 4], eax
sub edi, 1
jne 0x44e341
lea esi, [edi + 0x40]
mov eax, dword [ecx + 0x34]
lea ecx, [ecx + 4]
xor eax, dword [ecx + 0x1c]
xor eax, dword [ecx + 4]
xor eax, dword [ecx - 4]
rol eax, 1
mov dword [ecx + 0x3c], eax
sub esi, 1
jne 0x44e353
mov eax, dword [edx + 0x14]
mov dword [edx], eax
mov eax, dword [edx + 0x18]
mov dword [edx + 4], eax
mov eax, dword [edx + 0x1c]
mov ebx, dword [edx + 4]
mov dword [edx + 8], eax
mov eax, dword [edx + 0x20]
mov edi, dword [edx + 8]
mov dword [edx + 0xc], eax
mov eax, dword [edx + 0x24]
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x10], eax
mov dword [edx + 0x10], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0x28
mov eax, dword [edx]
mov dword [ebp - 4], eax
cmp esi, 0x14
jae 0x44e3bd
mov eax, ebx
not eax
and eax, ecx
mov ecx, ebx
and ecx, edi
or eax, ecx
jmp 0x44e3dc
cmp esi, 0x28
jb 0x44e3d6
cmp esi, 0x3c
jae 0x44e3d6
mov eax, edi
or eax, ecx
mov ecx, edi
and ecx, dword [ebp - 0xc]
and eax, ebx
or eax, ecx
jmp 0x44e3dc
mov eax, ebx
xor eax, edi
xor eax, ecx
cmp esi, 0x14
jae 0x44e3e8
mov ecx, 0x5a827999
jmp 0x44e405
cmp esi, 0x28
jae 0x44e3f4
mov ecx, 0x6ed9eba1
jmp 0x44e405
cmp esi, 0x3c
sbb ecx, ecx
and ecx, 0xc4b8fb06
add ecx, 0xca62c1d6
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
add dword [ebp - 8], 4
rol ebx, 5
add ebx, dword [esi + edx]
add ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
add ebx, ecx
mov dword [ebp - 4], ebx
mov ecx, edi
add dword [ebp - 4], eax
inc esi
mov eax, dword [ebp - 0xc]
mov ebx, dword [edx]
mov dword [ebp - 0xc], edi
mov dword [edx + 0xc], edi
mov edi, dword [ebp - 0x14]
ror edi, 2
cmp dword [ebp - 8], 0x168
mov dword [ebp - 0x10], eax
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 4]
mov dword [edx + 8], edi
mov dword [ebp - 0x14], ebx
mov dword [edx + 4], ebx
mov dword [edx], eax
mov dword [ebp - 0x18], esi
jb 0x44e3a5
add dword [edx + 0x14], eax
mov eax, ebx
add dword [edx + 0x18], eax
mov eax, edi
add dword [edx + 0x1c], eax
mov eax, dword [edx + 0xc]
add dword [edx + 0x20], eax
mov eax, dword [edx + 0x10]
add dword [edx + 0x24], eax
mov ebx, dword [ebp + 8]
mov dword [edx + 0x168], 0
add dword [edx + 0x170], 8
mov eax, dword [ebp + 0xc]
adc dword [edx + 0x174], 0
test eax, eax
jne 0x44e310
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44e5e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov edi, 0x10
lea edx, [esi + 0x28]
mov ecx, edx
mov eax, dword [ecx]
lea ecx, [ecx + 4]
bswap eax
mov dword [ecx - 4], eax
sub edi, 1
jne 0x44e5f5
lea ecx, [edi + 0x40]
mov eax, dword [edx + 0x34]
lea edx, [edx + 4]
xor eax, dword [edx + 0x1c]
xor eax, dword [edx + 4]
xor eax, dword [edx - 4]
rol eax, 1
mov dword [edx + 0x3c], eax
sub ecx, 1
jne 0x44e607
mov eax, dword [esi + 0x14]
xor edx, edx
mov dword [esi], eax
mov eax, dword [esi + 0x18]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x1c]
mov ebx, dword [esi + 4]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x20]
mov edi, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0x10], eax
mov dword [esi + 0x10], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0x28
nop dword [eax + eax]
mov eax, dword [esi]
mov dword [ebp - 4], eax
cmp edx, 0x14
jae 0x44e678
mov eax, ebx
not eax
and eax, ecx
mov ecx, ebx
and ecx, edi
or eax, ecx
jmp 0x44e697
cmp edx, 0x28
jb 0x44e691
cmp edx, 0x3c
jae 0x44e691
mov eax, edi
or eax, ecx
mov ecx, edi
and ecx, dword [ebp - 0xc]
and eax, ebx
or eax, ecx
jmp 0x44e697
mov eax, ebx
xor eax, edi
xor eax, ecx
cmp edx, 0x14
jae 0x44e6a3
mov ecx, 0x5a827999
jmp 0x44e6c0
cmp edx, 0x28
jae 0x44e6af
mov ecx, 0x6ed9eba1
jmp 0x44e6c0
cmp edx, 0x3c
sbb ecx, ecx
and ecx, 0xc4b8fb06
add ecx, 0xca62c1d6
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 4]
add dword [ebp - 8], 4
rol ebx, 5
add ebx, dword [edx + esi]
add ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
add ebx, ecx
mov dword [ebp - 4], ebx
mov ecx, edi
add dword [ebp - 4], eax
inc edx
mov eax, dword [ebp - 0xc]
mov ebx, dword [esi]
mov dword [ebp - 0xc], edi
mov dword [esi + 0xc], edi
mov edi, dword [ebp - 0x14]
ror edi, 2
cmp dword [ebp - 8], 0x168
mov dword [ebp - 0x10], eax
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 4]
mov dword [esi + 8], edi
mov dword [ebp - 0x14], ebx
mov dword [esi + 4], ebx
mov dword [esi], eax
mov dword [ebp - 0x18], edx
jb 0x44e660
add dword [esi + 0x14], eax
mov eax, ebx
add dword [esi + 0x18], eax
mov eax, edi
add dword [esi + 0x1c], eax
mov eax, dword [esi + 0xc]
add dword [esi + 0x20], eax
mov eax, dword [esi + 0x10]
add dword [esi + 0x24], eax
pop edi
mov dword [esi + 0x168], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x454100
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
mov esi, edx
cmp dword [edi + 0x14], 8
jb 0x454113
mov eax, dword [edi]
jmp 0x454115
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x45411f
mov ecx, dword [esi]
jmp 0x454121
mov ecx, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x454170
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00459b00
cmp dword [esi + 0x14], 8
jb 0x454144
mov ecx, dword [esi]
jmp 0x454146
mov ecx, esi
cmp dword [edi + 0x14], 8
jb 0x454150
mov eax, dword [edi]
jmp 0x454152
mov eax, edi
push 0
push 0
push 2
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
jne 0x454170
push eax
push edi
call fcn.00435cc0
add esp, 8
mov edi, dword [ebp + 8]
cmp dword [edi + 0x10], 0
je 0x4541ce
cmp dword [esi + 0x14], 8
jb 0x454183
mov eax, dword [esi]
jmp 0x454185
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x45418f
mov ecx, dword [edi]
jmp 0x454191
mov ecx, edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4541ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00459b00
cmp dword [edi + 0x14], 8
jb 0x4541b2
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x4541bc
mov eax, dword [esi]
jmp 0x4541be
mov eax, esi
push 0
push 0
push 2
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
push dword [ebp + 0x1c]
mov ecx, esi
push dword [ebp + 0x18]
sub esp, 8
call fcn.00453cf0
add esp, 0x10
pop edi
pop esi
pop ebp
ret
Function at 0x458960
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.004ed790
mov ecx, eax
mov eax, edx
not ecx
not eax
add ecx, 0xffffffff
mov dword [esp + 0x10], ecx
adc eax, 0xffffffff
mov dword [esp + 0xc], eax
or eax, 0xffffffff
mov edi, 8
lea ebx, [esp + 0x18]
nop dword [eax]
cmp edi, 0xffffffff
mov dword [esp + 0x14], 0xffffffff
mov esi, edi
cmova esi, eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
jne 0x4589bd
int3
add ebx, esi
mov eax, 0xffffffff
sub edi, esi
jne 0x4589a0
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0xc]
ja 0x458994
mov eax, dword [esp + 0x18]
jb 0x4589de
cmp eax, dword [esp + 0x10]
ja 0x458991
push dword [ebp + 0xc]
push dword [ebp + 8]
push ecx
push eax
call fcn.004ed790
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4593d0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x51a0a0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
sub esp, 8
cmp dword [eax + 0x14], 0x10
mov edx, esp
jb 0x4593f4
mov ecx, dword [eax]
jmp 0x4593f6
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x38]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.00437b20
mov esi, eax
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x459413
mov esi, dword [esi]
push dword [ebp + 0x10]
lea ecx, [ebp - 0x20]
push dword [ebp + 0xc]
call fcn.00437b20
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x45942c
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
mov eax, dword [ebp - 0xc]
setne bl
cmp eax, 8
jb 0x45948c
mov ecx, dword [ebp - 0x20]
inc eax
cmp eax, 0x7fffffff
ja 0x4594f3
add eax, eax
cmp eax, 0x1000
jb 0x459483
test cl, 0x1f
jne 0x4594f8
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4594fd
sub ecx, eax
cmp ecx, 4
jb 0x459502
cmp ecx, 0x23
ja 0x459507
mov ecx, eax
push ecx
call fcn.004cbd7a
add esp, 4
xor eax, eax
mov dword [ebp - 0xc], 7
mov word [ebp - 0x20], ax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], 0
cmp eax, 8
jb 0x4594df
mov ecx, dword [ebp - 0x38]
inc eax
cmp eax, 0x7fffffff
ja 0x45950c
add eax, eax
cmp eax, 0x1000
jb 0x4594d6
test cl, 0x1f
jne 0x459511
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x459516
sub ecx, eax
cmp ecx, 4
jb 0x45951b
cmp ecx, 0x23
ja 0x459520
mov ecx, eax
push ecx
call fcn.004cbd7a
add esp, 4
mov ecx, dword [ebp - 8]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret 0xc
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
int3

Function at 0x459530
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x51a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
push dword [ebp + 8]
call fcn.00437b20
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x45955a
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
mov eax, dword [ebp - 8]
setne bl
cmp eax, 8
jb 0x4595a7
mov ecx, dword [ebp - 0x1c]
inc eax
cmp eax, 0x7fffffff
ja 0x4595ba
add eax, eax
cmp eax, 0x1000
jb 0x45959e
test cl, 0x1f
jne 0x4595bf
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4595c4
sub ecx, eax
cmp ecx, 4
jb 0x4595c9
cmp ecx, 0x23
ja 0x4595ce
mov ecx, eax
push ecx
call fcn.004cbd7a
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret 8
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
call fcn.004d1350
int3
Function at 0x45b600
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x4c]
mov ecx, esi
call fcn.0044def0
lea ecx, [edi + 0x20]
call fcn.0045a150
mov ebx, eax
push esi
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
test ebx, ebx
jne 0x45b669
mov eax, dword [0x51ed5c]
test eax, eax
jne 0x45b655
push ecx
push 0x32
push 0x3e8
lea edx, [ebx + 1]
mov ecx, str.ActivityTracker.ThreadTrackers.MemLimitTrackerCount
call fcn.004385d0
add esp, 0xc
mov dword [0x51ed5c], eax
mov ecx, dword [edi + 0x1c]
mov edx, dword [eax]
push ecx
mov ecx, eax
call dword [edx + 0x10]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi]
push ebx
call fcn.0045d040
push 0x1c
mov esi, eax
call fcn.004cbadf
add esp, 4
mov ebx, eax
mov ecx, ebx
push dword [edi + 4]
push esi
call fcn.0045ac60
mov eax, dword [esp + 0xc]
mov dword [ebx], 0x514a28
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x18], esi
mov eax, dword [0x51aa4c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
test edx, edx
jne 0x45b6b3
call fcn.004686f0
mov edx, eax
mov eax, dword [edi + 0x14]
mov esi, 1
mov dword [edx + eax*8], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [edx + ecx*8 + 4], eax
lea eax, [edi + 0x1c]
lock xadd dword [eax], esi
mov eax, dword [0x51ed58]
test eax, eax
jne 0x45b6ef
push ecx
push 0x65
push 0x64
mov ecx, str.ActivityTracker.ThreadTrackers.Count
call fcn.0043a4b0
add esp, 0xc
mov dword [0x51ed58], eax
mov edx, dword [eax]
lea ecx, [esi + 1]
push ecx
mov ecx, eax
call dword [edx + 0x10]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45c1a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, dword [0x51ed64]
push edi
mov edi, ecx
test esi, esi
jne 0x45c1c8
mov dword [edi], esi
mov eax, edi
mov dword [edi + 8], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x51aa4c]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
test ecx, ecx
jne 0x45c1e1
call fcn.004686f0
mov ecx, eax
mov eax, dword [esi + 0x14]
lea ebx, [ecx + eax*8]
mov eax, dword [ebx + 4]
cmp eax, dword [esi + 0x18]
je 0x45c1f3
xor ebx, ebx
jmp 0x45c1f5
mov ebx, dword [ebx]
mov dword [edi], ebx
test ebx, ebx
je 0x45c2a3
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x38]
mov dword [esp + 0xc], eax
cmp eax, dword [ebx + 0xc]
jb 0x45c220
mov edx, dword [esp + 0xc]
lea ecx, [eax + 1]
mov eax, dword [ebx + 4]
mov dword [eax + 0x38], ecx
jmp 0x45c2a0
mov esi, eax
lea eax, [esp + 0x18]
shl esi, 7
add esi, dword [ebx + 8]
push eax
call dword [0x51aa38]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
mov eax, esp
mov dword [esp + 0x18], edx
push 0
push 0
mov dword [esp + 0x24], ecx
mov dword [eax], edx
mov dword [eax + 4], ecx
call fcn.004520e0
mov dword [esi], eax
add esp, 0x10
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], edx
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov byte [esi + 0x70], 0x20
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0xc]
lea eax, [edx + 1]
mov dword [ecx + 0x38], eax
mov dword [edi + 4], edx
mov dword [edi + 8], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8