joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e982
Capabilities:
Accept command line arguments

Disassembly:
push 0x48
mov eax, 0x616a84
call fcn.00429e48
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
test edi, edi
je 0x40e9ee
mov eax, dword [0x6cec90]
lea ecx, [ebp - 0x54]
push str._firstsetup
mov eax, dword [eax]
mov esi, dword [eax + 0x18]
call fcn.00411838
lea eax, [ebp - 0x54]
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x3c], 1
mov ecx, esi
push dword [ebp - 0x14]
push edi
call dword [0x63a7a0]
mov ecx, dword [0x6cec90]
call esi
mov byte [ebp - 0x35], 1
test al, al
jne 0x40e9f1
mov byte [ebp - 0x35], bl
or dword [ebp - 4], 0xffffffff
test byte [ebp - 0x3c], 1
je 0x40ea03
lea ecx, [ebp - 0x54]
call fcn.0041395f
call fcn.004c574b
mov edi, eax
mov eax, dword [edi]
mov esi, dword [eax + 0x1f0]
mov ecx, esi
call dword [0x63a7a0]
mov ecx, edi
call esi
test al, al
je 0x40ea2f
mov edi, dword [0x6ceaf4]
mov eax, dword [edi]
mov esi, dword [eax + 0x3c]
jmp 0x40ea3b
call fcn.004c574b
mov edi, eax
mov eax, dword [edi]
mov esi, dword [eax + 0x38]
mov ecx, esi
call dword [0x63a7a0]
mov ecx, edi
call esi
cmp byte [ebp - 0x35], 0
mov byte [ebp - 0x36], al
jne 0x40eac8
call fcn.004c574b
mov edi, eax
mov eax, dword [edi]
mov esi, dword [eax + 0x208]
mov ecx, esi
call dword [0x63a7a0]
mov ecx, edi
call esi
test al, al
je 0x40eac8
cmp byte [ebp - 0x36], 0
jne 0x40eac8
push ebx
push 3
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov eax, 0x68ac34
push eax
push eax
call fcn.0045943a
test eax, eax
js 0x40eac3
push ebx
push 2
push 1
push 0xa4c4e40a
push 0x68d384
push str.StandaloneUpdater::HandleZeroExhaustPolicy
push 0x61e
push str.D:dbs_shodct0219_230508_0cmdwclientonedriveProductStandaloneUpdaterStandaloneUpdaterLibStandaloneUpdater.cpp
lea ecx, [ebp - 0x34]
call fcn.00458a4c
push ebx
lea eax, [ebp - 0x34]
push eax
call fcn.0045974a
call fcn.004594ba
mov ebx, 0x8004ee06
mov eax, ebx
call fcn.00429df7
ret
Function at 0x40ed23
Capabilities:
Accept command line arguments

Disassembly:
push 0x48
mov eax, 0x616b0c
call fcn.00429e48
mov edi, ecx
xor ebx, ebx
and dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
and dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x40ed94
mov eax, dword [0x6cec90]
lea ecx, [ebp - 0x3c]
push str._firstsetup
mov eax, dword [eax]
mov esi, dword [eax + 0x18]
call fcn.00411838
and dword [ebp - 4], ebx
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x14]
inc ebx
mov ecx, esi
push dword [ebp - 0x20]
mov dword [ebp - 0x24], ebx
call dword [0x63a7a0]
mov ecx, dword [0x6cec90]
call esi
mov byte [ebp - 0x15], 1
test al, al
jne 0x40ed98
mov byte [ebp - 0x15], 0
or dword [ebp - 4], 0xffffffff
test bl, 1
je 0x40edac
lea ecx, [ebp - 0x3c]
and ebx, 0xfffffffe
call fcn.0041395f
cmp dword [ebp - 0x20], 0
je 0x40edf8
mov eax, dword [0x6cec90]
lea ecx, [ebp - 0x54]
push str._allusers
mov eax, dword [eax]
mov esi, dword [eax + 0x18]
call fcn.00411838
lea eax, [ebp - 0x54]
mov dword [ebp - 4], 1
push eax
push dword [ebp - 0x14]
or ebx, 2
mov ecx, esi
push dword [ebp - 0x20]
mov dword [ebp - 0x24], ebx
call dword [0x63a7a0]
mov ecx, dword [0x6cec90]
call esi
mov byte [ebp - 0x16], 1
test al, al
jne 0x40edfc
mov byte [ebp - 0x16], 0
or dword [ebp - 4], 0xffffffff
test bl, 2
je 0x40ee0d
lea ecx, [ebp - 0x54]
call fcn.0041395f
cmp byte [ebp - 0x15], 0
je 0x40eec5
mov eax, dword [edi]
push 1
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x63a7a0]
mov ecx, edi
call esi
cmp byte [ebp - 0x16], 0
jne 0x40ee47
test al, al
jne 0x40ee4b
mov eax, dword [edi]
push 0
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x63a7a0]
mov ecx, edi
call esi
test al, al
je 0x40eec5
mov ecx, edi
mov dword [ebp - 0x1c], 0x8004ee4c
call fcn.0040ead0
test eax, eax
js 0x40eeca
xor ecx, ecx
mov esi, dword [ebp - 0x1c]
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov eax, 0x68c0d8
mov edx, 0x6b5
push eax
push eax
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push eax
push 0x68c0dc
push ecx
push ecx
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov eax, 0x68d3dc
push eax
push eax
push eax
push ecx
push ecx
push str.Failure
push esi
push str.VersionIsSetBailoutFirstSetup
push 0x68ac34
push str.StandaloneUpdater::HandleOneDriveAlreadyInstalled
mov ecx, str.D:dbs_shodct0219_230508_0cmdwclientonedriveProductStandaloneUpdaterStandaloneUpdaterLibStandaloneUpdater.cpp
call fcn.00407ee9
jmp 0x40eecf
mov esi, dword [ebp - 0x1c]
jmp 0x40eecf
mov esi, 0x8004ee4c
mov eax, esi
call fcn.00429df7
ret
Function at 0x41b525
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x24c
mov eax, 0x617b9f
call fcn.00429e48
mov edi, ecx
mov dword [ebp - 0x220], edi
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x23c], eax
xor esi, esi
mov dword [ebp - 4], esi
lea eax, [ebp + 0x18]
mov dword [edi], vtable.StandaloneUpdaterController.0
lea ecx, [edi + 4]
push eax
call fcn.00411713
mov byte [ebp - 4], 8
mov eax, dword [ebp + 8]
mov dword [edi + 0xc], eax
test eax, eax
je 0x41b585
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 4]
mov ecx, esi
call dword [0x63a7a0]
call esi
xor esi, esi
lea ecx, [edi + 0x10]
lea eax, [ebp + 0x20]
mov dword [ecx], esi
push eax
mov dword [ecx + 4], esi
call fcn.0041347e
lea eax, [ebp + 0x28]
lea ecx, [edi + 0x18]
push eax
call fcn.00411713
lea eax, [ebp + 0x30]
lea ecx, [edi + 0x20]
push eax
call fcn.00411713
mov ecx, dword [ebp + 0x3c]
mov dword [edi + 0x28], esi
mov dword [edi + 0x2c], esi
test ecx, ecx
je 0x41b5c2
lock inc dword [ecx + 4]
mov ecx, dword [ebp + 0x3c]
mov eax, dword [ebp + 0x38]
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], ecx
mov eax, dword [ebp + 0xc]
lea ecx, [edi + 0x34]
mov byte [ebp - 4], 0xd
push ebx
mov dword [edi + 0x30], eax
call fcn.00411873
lea esi, [edi + 0x4c]
xor ebx, ebx
xor eax, eax
mov dword [esi], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 0xf
lea ecx, [edi + 0x64]
push dword [ebp - 0x23c]
call fcn.00411873
push 0x208
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 0x10
push ebx
push eax
mov byte [edi + 0x7c], bl
call fcn.0042af50
add esp, 0xc
lea eax, [ebp - 0x21c]
push ebx
push 0x29
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x41b6f9
xor eax, eax
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], 7
mov word [ebp - 0x238], ax
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x238]
call fcn.00411a05
push str.OneDriveSetup.exe
lea ecx, [ebp - 0x238]
call fcn.00411a7f
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.004ca827
push eax
mov ecx, esi
call fcn.004117ff
lea ecx, [ebp - 0x258]
call fcn.0041395f
mov eax, dword [ebp - 0x224]
cmp eax, 8
jb 0x41b6f9
mov ecx, dword [ebp - 0x238]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x23c], ecx
cmp eax, 0x1000
jb 0x41b6f0
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x23c]
push eax
call fcn.00413aba
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x23c]
push eax
push ecx
call fcn.00429b68
pop ecx
pop ecx
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
je 0x41b705
call fcn.004136ae
lea ecx, [ebp + 8]
call fcn.004116c5
mov ecx, dword [ebp + 0x24]
test ecx, ecx
je 0x41b719
call fcn.004136ae
mov ecx, dword [ebp + 0x2c]
test ecx, ecx
je 0x41b725
call fcn.004136ae
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x41b731
call fcn.004136ae
mov ecx, dword [ebp + 0x3c]
test ecx, ecx
je 0x41b73d
call fcn.004136ae
mov eax, edi
call fcn.00429df7
ret 0x38
Function at 0x422cc2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x6ce008]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ebp + 0x14]
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
shl eax, 8
push esi
add eax, 0x20019
cmp dword [ecx + 0x14], 8
push edi
mov edi, dword [ebp + 0x10]
jb 0x422cf5
mov ecx, dword [ecx]
lea esi, [ebp - 0x14]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 8], 4
test eax, eax
cmovle esi, eax
test esi, esi
js 0x422d6c
cmp dword [edi + 0x14], 8
jb 0x422d25
mov edi, dword [edi]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x422d63
cmp dword [ebp - 0xc], 4
jne 0x422d5e
mov eax, dword [ebp - 0x10]
xor esi, esi
mov dword [ebx], eax
jmp 0x422d63
mov esi, 0x8007065d
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429dd5
leave
ret 0x14

Function at 0x422d82
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004cc35c

Function at 0x422d92
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x6ce008]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ebp + 0x14]
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
shl eax, 8
push esi
add eax, 0x20019
cmp dword [ecx + 0x14], 8
push edi
mov edi, dword [ebp + 0x10]
jb 0x422dc8
mov ecx, dword [ecx]
lea esi, [ebp - 0x218]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x214], 0x208
test eax, eax
cmovle esi, eax
and dword [ebp - 0x210], 0
test esi, esi
js 0x422e67
cmp dword [edi + 0x14], 8
jb 0x422e05
mov edi, dword [edi]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push edi
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x422e5b
cmp dword [ebp - 0x210], 1
jne 0x422e56
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
xor esi, esi
call fcn.00411a05
jmp 0x422e5b
mov esi, 0x8007065d
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429dd5
leave
ret 0x14
Function at 0x422e82
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x6ce008]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ebp + 0x14]
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
shl eax, 8
push esi
add eax, 0x20019
cmp dword [ecx + 0x14], 8
push edi
mov edi, dword [ebp + 0x10]
jb 0x422eb5
mov ecx, dword [ecx]
lea esi, [ebp - 0x10]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
xor edx, edx
mov dword [ebp - 0xc], edx
test esi, esi
js 0x422f60
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 8], edx
jb 0x422eec
mov eax, dword [edi]
lea ecx, [ebp - 8]
push ecx
push edx
lea ecx, [ebp - 0xc]
push ecx
push edx
push eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x422f57
cmp dword [ebp - 0xc], 3
je 0x422f1f
mov esi, 0x8007065d
jmp 0x422f57
lea eax, [ebp - 0x11]
mov ecx, ebx
push eax
push dword [ebp - 8]
call fcn.004236bd
cmp dword [edi + 0x14], 8
jb 0x422f35
mov edi, dword [edi]
lea eax, [ebp - 8]
push eax
push dword [ebx]
push 0
push 0
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429dd5
leave
ret 0x14

Function at 0x422f82
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x6ce008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, 0x20006
cmp byte [ebp + 0x18], 0
mov edx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, 0x102
cmovne ecx, edi
cmp dword [eax + 0x14], 8
jb 0x422fb6
mov eax, dword [eax]
xor ebx, ebx
lea edi, [ebp - 8]
push ebx
push edi
push ebx
push ecx
push ebx
push ebx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
jne 0x422fff
cmp dword [esi + 0x10], ebx
jne 0x422fd9
mov esi, ebx
jmp 0x422fe1
cmp dword [esi + 0x14], 8
jb 0x422fe1
mov esi, dword [esi]
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push ebx
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00429dd5
leave
ret 0x14

Function at 0x4235c2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d242f
Function at 0x4260f2
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 8], 0
jne 0x4260fc
int3
mov ecx, dword [ecx + 8]
pop ebp
jmp fcn.004c3be3

Function at 0x42a2db
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42a31a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42a31a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42a31a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42a31a
cmp dword [ecx + 0x74], 0xe
jbe 0x42a31a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x43d623
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x6ce008]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x43d66e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0043d7c2
test al, al
jne 0x43d668
sub edx, 2
cmp edx, edi
jne 0x43d64e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x43d690
lea eax, [edi + 2]
cmp edx, eax
je 0x43d690
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0043d56f
add esp, 0x10
jmp 0x43d78a
push esi
lea ecx, [ebp - 0x255]
call fcn.0043d7c2
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43d6d3
push dword [ebp - 0x25c]
jmp 0x43d680
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x43d710
cmp word [ebp - 0x226], 0
je 0x43d731
cmp word [ebp - 0x226], ax
jne 0x43d710
cmp word [ebp - 0x224], 0
je 0x43d731
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0043d56f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x43d77d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x43d6ea
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x43d765
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x43d78a
push 0x43d2d0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00446690
add esp, 0x10
jmp 0x43d75a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429dd5
leave
ret
Function at 0x43e537
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x43e548
pop esi
ret
push ebx
push edi
push esi
call fcn.0043e500
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0043fe5f
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x43e570
push ebx
push esi
push edi
call fcn.0042b130
add esp, 0xc
push 0
call fcn.0043ca08
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x43e934
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043e585

Function at 0x43edb4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x642358
push 0x642350
push str.FlsAlloc
push 0x1e
call fcn.0043ebe1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43ede8
push dword [ebp + 8]
mov ecx, esi
call dword [0x63a7a0]
call esi
jmp 0x43edee
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43ee32
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x642368
push 0x642360
push str.FlsGetValue
push 0x20
call fcn.0043ebe1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43ee69
push dword [ebp + 8]
mov ecx, esi
call dword [0x63a7a0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x44b09f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x6e6278]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x44b0df
cmp byte [ebx], 0xa
jne 0x44b0df
or byte [eax + edi + 0x28], 4
jmp 0x44b0e4
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x44b1e2
mov al, byte [edx]
cmp al, 0x1a
je 0x44b1c4
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x44b113
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x44b138
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x44b142
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x44b0f5
jmp 0x44b1e2
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44b1bf
cmp dword [ebp - 0xc], 0
je 0x44b1bf
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x6e6278]
test byte [eax + edi + 0x28], 0x48
je 0x44b199
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x44b184
mov byte [esi], dl
jmp 0x44b195
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x6e6278]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x44b1e2
cmp byte [ebp - 1], 0xa
jne 0x44b1a8
cmp esi, ebx
jne 0x44b1a8
mov byte [esi], 0xa
jmp 0x44b1e1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0044b00f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x44b1e2
mov byte [esi], 0xd
jmp 0x44b1e1
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x6e6278]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44b1de
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44b1e2
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x44b1eb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x6e6278]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x44b22e
cmp word [esi], dx
jne 0x44b22e
or byte [edi + eax + 0x28], 4
jmp 0x44b233
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x44b386
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x44b366
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x44b275
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x44b2ab
cmp eax, edx
jae 0x44b2b7
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x44b24d
jmp 0x44b386
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44b362
cmp dword [ebp - 0x14], 0
je 0x44b362
mov eax, dword [ebx*4 + 0x6e6278]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x44b33a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x44b303
mov word [esi], cx
jmp 0x44b336
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x6e6278]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x6e6278]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x6e6278]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x44b386
pop ebx
cmp word [ebp - 4], bx
jne 0x44b34b
cmp esi, dword [ebp + 0xc]
jne 0x44b34b
mov word [esi], bx
jmp 0x44b383
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0044b00f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x44b386
push 0xd
jmp 0x44b37f
mov ecx, dword [ebx*4 + 0x6e6278]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x44b37d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x44b386
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret