joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42747a
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x448014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x401494
push 0x400
lea eax, [ebp - 0x804]
xor esi, esi
push eax
lea eax, [ebp - 0x808]
mov dword [ebp - 0x808], esi
push eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wgetenv_s]
add esp, 0x10
test eax, eax
jne 0x43bdb4
cmp dword [ebp - 0x808], esi
jbe 0x43bdb4
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4274d4
sub ecx, edx
sar ecx, 1
push 0x5c
pop edx
movzx eax, word [ebp + ecx*2 - 0x806]
cmp ax, dx
je 0x42751e
cmp eax, 0x3a
je 0x42751e
cmp eax, 0x2f
je 0x42751e
mov word [ebp + ecx*2 - 0x804], dx
lea ecx, [ecx*2 + 2]
cmp ecx, 0x800
jae 0x42753d
xor eax, eax
mov word [ebp + ecx - 0x804], ax
lea ecx, [ebp - 0x804]
call fcn.00427435
mov ecx, eax
call 0x427542
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042e014
leave
ret
call fcn.0042e149
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor eax, eax
mov esi, edi
cmp word [edi], ax
je 0x42755d
add esi, 2
cmp word [esi], ax
jne 0x427555
sub esi, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 4
push dword [0x44a0d8]
lea ebx, [esi - 2]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x43bdc3
mov edx, ebx
xor ebx, ebx
movzx ecx, byte [ebp + ebx - 8]
mov eax, ecx
shr ecx, 4
and eax, 0xf
inc ebx
mov ax, word [eax*2 + 0x41ee90]
mov word [edx], ax
lea edx, [edx - 4]
mov ax, word [ecx*2 + 0x41ee90]
mov word [edx + 2], ax
cmp ebx, 4
jl 0x427584
push 0x4014cc
mov edx, esi
mov ecx, edi
call fcn.0042765c
pop ecx
test eax, eax
jne 0x43bdd3
push 0x4014c4
mov edx, esi
mov ecx, edi
call fcn.0042765c
pop ecx
test eax, eax
jne 0x43bdd3
push 0x4014bc
mov edx, esi
mov ecx, edi
call fcn.0042765c
pop ecx
test eax, eax
jne 0x43bdd3
push 0x4014b4
mov edx, esi
mov ecx, edi
call fcn.0042765c
pop ecx
test eax, eax
jne 0x43bdd3
push 0x4014ac
mov edx, esi
mov ecx, edi
call fcn.0042765c
pop ecx
test eax, eax
jne 0x43bdd3
push 0x4014a4
mov edx, esi
mov ecx, edi
call fcn.0042765c
pop ecx
test eax, eax
jne 0x43bdd3
push 0x40149c
mov edx, esi
mov ecx, edi
call fcn.0042765c
pop ecx
test eax, eax
jne 0x43bdd3
mov word [esi], ax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
mov ecx, 0x401474
call fcn.004276f3
jmp 0x427529
push 0x1f65
call fcn.00422168
pop ecx
jmp 0x427580
mov ebx, dword [ebp - 4]
inc ebx
mov dword [ebp - 4], ebx
cmp ebx, 0x64
jl 0x427563
push 0x1f65
call fcn.00422168
pop ecx
xor eax, eax
jmp 0x427657
Function at 0x427542
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x448014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x401494
push 0x400
lea eax, [ebp - 0x804]
xor esi, esi
push eax
lea eax, [ebp - 0x808]
mov dword [ebp - 0x808], esi
push eax
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wgetenv_s]
add esp, 0x10
test eax, eax
jne 0x43bdb4
cmp dword [ebp - 0x808], esi
jbe 0x43bdb4
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x4274d4
sub ecx, edx
sar ecx, 1
push 0x5c
pop edx
movzx eax, word [ebp + ecx*2 - 0x806]
cmp ax, dx
je 0x42751e
cmp eax, 0x3a
je 0x42751e
cmp eax, 0x2f
je 0x42751e
mov word [ebp + ecx*2 - 0x804], dx
lea ecx, [ecx*2 + 2]
cmp ecx, 0x800
jae 0x42753d
xor eax, eax
mov word [ebp + ecx - 0x804], ax
lea ecx, [ebp - 0x804]
call fcn.00427435
mov ecx, eax
call 0x427542
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042e014
leave
ret
call fcn.0042e149
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor eax, eax
mov esi, edi
cmp word [edi], ax
je 0x42755d
add esi, 2
cmp word [esi], ax
jne 0x427555
sub esi, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 4
push dword [0x44a0d8]
lea ebx, [esi - 2]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x43bdc3
mov edx, ebx
xor ebx, ebx
movzx ecx, byte [ebp + ebx - 8]
mov eax, ecx
shr ecx, 4
and eax, 0xf
inc ebx
mov ax, word [eax*2 + 0x41ee90]
mov word [edx], ax
lea edx, [edx - 4]
mov ax, word [ecx*2 + 0x41ee90]
mov word [edx + 2], ax
cmp ebx, 4
jl 0x427584
push 0x4014cc
mov edx, esi
mov ecx, edi
call fcn.0042765c
pop ecx
test eax, eax
jne 0x43bdd3
push 0x4014c4
mov edx, esi
mov ecx, edi
call fcn.0042765c
pop ecx
test eax, eax
jne 0x43bdd3
push 0x4014bc
mov edx, esi
mov ecx, edi
call fcn.0042765c
pop ecx
test eax, eax
jne 0x43bdd3
push 0x4014b4
mov edx, esi
mov ecx, edi
call fcn.0042765c
pop ecx
test eax, eax
jne 0x43bdd3
push 0x4014ac
mov edx, esi
mov ecx, edi
call fcn.0042765c
pop ecx
test eax, eax
jne 0x43bdd3
push 0x4014a4
mov edx, esi
mov ecx, edi
call fcn.0042765c
pop ecx
test eax, eax
jne 0x43bdd3
push 0x40149c
mov edx, esi
mov ecx, edi
call fcn.0042765c
pop ecx
test eax, eax
jne 0x43bdd3
mov word [esi], ax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
mov ecx, 0x401474
call fcn.004276f3
jmp 0x427529
push 0x1f65
call fcn.00422168
pop ecx
jmp 0x427580
mov ebx, dword [ebp - 4]
inc ebx
mov dword [ebp - 4], ebx
cmp ebx, 0x64
jl 0x427563
push 0x1f65
call fcn.00422168
pop ecx
xor eax, eax
jmp 0x427657
Function at 0x427711
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x448014]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xa
lea eax, [ebp - 0x18]
push eax
push 0x4014d4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x42777a
mov ecx, 0x4014fc
lea eax, [ebp - 0x18]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42777e
test dx, dx
je 0x427760
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42777e
add eax, 4
add ecx, 4
test dx, dx
jne 0x42773e
xor ecx, ecx
xor eax, eax
test ecx, ecx
sete al
mov dword [0x44c190], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e014
leave
ret
xor eax, eax
jmp 0x42776e
sbb ecx, ecx
or ecx, 1
jmp 0x427762
Function at 0x429890
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
mov eax, 0x1fffffff
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 0x18], ebx
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x43cf42
lea eax, [ecx - 1]
mov esi, dword [ebx + 4]
or eax, edi
mov dword [ebp + 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
mov dword [ebp - 8], ecx
lea eax, [edi + edi]
push eax
call fcn.00429726
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, eax
lea ecx, [ecx]
cmp eax, esi
je 0x4299b3
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ebx, dword [ebx + 0x18]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
mov ecx, dword [ecx]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
imul edx, edi, 0x1000193
and ebx, edx
mov edx, dword [ebp - 8]
mov edi, dword [edx]
cmp dword [edi + ebx*8], esi
jne 0x42994b
mov dword [edi + ebx*8], eax
mov dword [edi + ebx*8 + 4], eax
mov ebx, dword [ebp - 0x18]
mov eax, ecx
jmp 0x4298f0
mov edx, dword [edi + ebx*8 + 4]
mov esi, dword [eax + 8]
cmp esi, dword [edx + 8]
mov esi, dword [ebp + 8]
je 0x43cf4d
mov edi, edi
lea esi, [edx + 4]
mov dword [ebp - 4], esi
cmp dword [edi + ebx*8], edx
jne 0x4299a1
mov esi, dword [eax + 4]
mov dword [ebp - 0x10], esi
mov dword [esi], ecx
mov esi, dword [ecx + 4]
mov dword [ebp - 0x14], esi
mov dword [esi], edx
mov edx, dword [ebp - 4]
mov esi, dword [edx]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0xc], esi
mov dword [esi], eax
mov esi, dword [ebp - 4]
mov dword [esi], edx
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov dword [ecx + 4], edx
mov dword [eax + 4], esi
mov dword [edi + ebx*8], eax
mov esi, dword [ebp + 8]
jmp 0x429944
mov edx, dword [ebp - 4]
mov esi, dword [eax + 8]
mov edx, dword [edx]
cmp esi, dword [edx + 8]
jne 0x429960
jmp 0x43cf92
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x40f6a0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x43cf89
mov edx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebp - 0x10], edx
mov dword [edx], ecx
mov edx, dword [ecx + 4]
mov dword [ebp - 0xc], edx
mov dword [edx], esi
mov edx, dword [esi + 4]
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
mov dword [edx], eax
mov edx, dword [ebp - 4]
mov dword [edx + 4], esi
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 4], esi
mov esi, dword [ebp + 8]
mov dword [eax + 4], edx
mov dword [edi + ebx*8 + 4], eax
jmp 0x429944
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 0x14], edx
mov esi, dword [ebp - 0x14]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x42999c
Function at 0x429a40
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp esi, dword [ebp + 0xc]
je 0x429b11
lea ebx, [ebx]
movzx eax, byte [esi]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 1]
xor ecx, eax
movzx eax, byte [esi + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edi
push eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push esi
push eax
call fcn.00429b50
cmp dword [esp + 0x14], 0
jne 0x429b05
cmp dword [edi + 8], 0x71c71c7
je 0x43cfb7
mov ecx, 0x24
call fcn.00426640
mov ecx, dword [esi]
lea edx, [esi + 4]
mov ebx, eax
push edx
mov dword [ebx + 8], ecx
lea ecx, [ebx + 0xc]
mov dword [ecx], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00429bb0
mov ecx, edi
call fcn.00429cd0
test al, al
jne 0x429b1a
mov ecx, dword [esp + 0x10]
push ebx
push ecx
push dword [esp + 0x14]
mov ecx, edi
call fcn.00429c70
add esi, 0x1c
cmp esi, dword [ebp + 0xc]
jne 0x429a60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.004299bc
push dword [esp + 0xc]
lea eax, [ebx + 8]
mov ecx, edi
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00429b50
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x429af8
push 0x40f684
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
int3
Function at 0x42ada4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x448014]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x44c1a0], 0
jne 0x42adf9
push 0x14
lea eax, [ebp - 0x2c]
push eax
push 0x401690
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x43dc82
push 0x44c1a0
lea eax, [ebp - 0x2c]
push 0x401688
push eax
call fcn.0042ae05
add esp, 0xc
dec eax
neg eax
sbb eax, eax
not eax
and dword [0x44c1a0], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e014
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
push eax
push eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_RaiseException]

Function at 0x42ae3e
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov edi, eax
mov ecx, edi
call fcn.0042af00
mov ecx, esi
mov ebx, eax
call fcn.0042af00
add ebx, eax
lea ecx, [ebx*2 + 2]
call fcn.00426640
push esi
lea edx, [ebx - 1]
mov dword [ebp - 4], eax
mov ecx, eax
call fcn.0042aea0
mov ecx, eax
sub ecx, dword [ebp - 4]
sar ecx, 1
sub ebx, ecx
mov ecx, eax
push edi
lea edx, [ebx - 1]
call fcn.0042aea0
pop ecx
pop ecx
pop edi
xor ecx, ecx
pop esi
mov word [eax], cx
mov eax, dword [ebp - 4]
pop ebx
leave
ret

Function at 0x42af27
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x448014]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x44c1a0], 0
je 0x42af8d
push esi
push 0x14
lea eax, [ebp - 0x2c]
push eax
push 0x401690
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor esi, esi
test eax, eax
je 0x43dcbd
cmp dword [0x448e18], esi
je 0x42af8c
push esi
push 0x401764
lea edx, [ebp - 0x2c]
mov ecx, 0x40174c
call fcn.004256d0
pop ecx
pop ecx
mov ecx, dword [0x448df4]
jmp 0x42af84
lea ecx, [edx + 4]
mov edx, dword [ecx]
test edx, edx
jne 0x42af81
mov dword [ecx], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e014
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push esi
push esi
push 1
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x42bbba
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x448014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push 2
pop eax
mul dword [ebp + 0xc]
mov esi, eax
test edx, edx
jne 0x43e14a
cmp esi, 0xffffffff
ja 0x43e14a
push edx
lea eax, [ebp - 0x38]
push eax
push esi
push edi
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43e117
cmp dword [ebp - 0x38], esi
jne 0x43e15f
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042e014
leave
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, 0x420e74
lea ecx, [ebp - 0x10]
call fcn.00446d9c
mov dword [esp], 0x447820
jmp 0x43e145
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x10]
call fcn.0042c4a9
push 0x447820
lea eax, [ebp - 0x10]
jmp 0x43e159
mov dword [ebp - 0x3c], 1
lea eax, [ebp - 0x3c]
push 0x447908
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 0x420e80
lea ecx, [ebp - 0x34]
call fcn.004468a2
mov edx, dword [ebp - 0x38]
lea ecx, [ebp - 0x1c]
call fcn.00446848
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x34]
call fcn.00446c82
lea ecx, [ebp - 0x1c]
call fcn.00446b74
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
jb 0x43e137
jmp 0x43e134
Function at 0x42c314
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0x201
push edi
push 0x4018b8
push 0x80000001
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42c38a
push ebx
push esi
mov esi, dword [ebp - 4]
lea eax, [ebp - 8]
push 8
pop ebx
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], edi
push eax
push edi
push 0x40
push 0x4019fc
push edi
push esi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x42c390
cmp dword [ebp - 8], ebx
jne 0x42c390
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
test esi, esi
je 0x42c381
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov edx, ebx
mov eax, edi
pop ebx
pop edi
leave
ret
xor eax, eax
xor edx, edx
jmp 0x42c387
mov ebx, edi
jmp 0x42c376

Function at 0x42c3bb
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0x4019b8
mov esi, ecx
push 1
push 0
and dword [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x43e592
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x43e5d8
mov eax, esi
pop esi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, 0x420bd4
jmp 0x43e5ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, 0x420bc0
lea ecx, [ebp - 0xc]
call fcn.00446d9c
mov dword [esp], 0x447820
jmp 0x43e5cf
push 0x420be0
lea ecx, [ebp - 0xc]
call fcn.0042c4a9
push 0x447820
lea eax, [ebp - 0xc]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 0x3e8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x42c3f1
cmp eax, 0x80
je 0x42c3f1
cmp eax, 0x102
je 0x43e5bd
jmp 0x43e5a0

Function at 0x42c3f6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x448014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0xd0]
xor ebx, ebx
push eax
push 0x201
push ebx
push 0x401948
push 0x80000002
mov dword [ebp - 0xd0], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42c4a5
push esi
mov esi, dword [ebp - 0xd0]
lea eax, [ebp - 0xd4]
push edi
push eax
lea eax, [ebp - 0xcc]
mov edi, 0xc8
push eax
push ebx
push 2
push 0x401934
push ebx
push esi
mov dword [ebp - 0xd4], edi
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x42c489
cmp dword [ebp - 0xd4], edi
ja 0x42c489
lea eax, [ebp - 0xcc]
push 0x40192c
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
setns bl
test esi, esi
je 0x42c494
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042e014
leave
ret
xor al, al
jmp 0x42c498
Function at 0x42cb69
Capabilities:
Create thread

Disassembly:
push 0x14
push 0x447708
call fcn.0042e9d0
mov esi, ecx
or dword [ebp - 0x24], 0xffffffff
or dword [ebp - 0x20], 0xffffffff
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x10
pop ecx
call fcn.00426640
mov edi, eax
test edi, edi
je 0x43e794
mov dword [edi], esi
mov ecx, dword [ebp + 8]
mov dword [edi + 4], ecx
mov dword [edi + 8], 4
mov dword [edi + 0xc], ebx
lea eax, [ebp - 0x1c]
push eax
push ebx
push edi
push 0x42848b
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x43e79b
mov eax, dword [esi + 4]
mov dword [ebp - 0x20], eax
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x24]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, ebx
jne 0x42cc1e
mov esi, dword [edi + 0xc]
push 0x10
push edi
call fcn.0042e475
pop ecx
pop ecx
test esi, esi
je 0x42cc1e
mov dword [ebp - 4], 0xfffffffe
call fcn.0042cc0e
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 8
push ebx
push ebx
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_RaiseException]
mov edi, ebx
jmp 0x42cba8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push ebx
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x42d5bd
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [0x4482e8]
dec esi
mov ebx, esi
mov dword [ebp - 0x14], esi
shr ebx, 6
mov eax, esi
and eax, 0x3f
mov dword [ebp - 0xc], ebx
add eax, ebx
mov dword [ebp - 4], eax
push edi
cmp eax, 0x40
ja 0x43e956
xor ecx, ecx
mov eax, esi
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042e483
mov edi, eax
xor eax, eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
pop ecx
test esi, esi
je 0x42d640
xor ebx, ebx
push ebx
push 0x10000
lea esi, [eax + 1]
push esi
push fcn.004284d8
push 0x100000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov dword [edi + ecx*4], eax
mov eax, esi
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 0x14]
jb 0x42d612
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042e483
pop ecx
xor ecx, ecx
mov esi, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], ecx
test ebx, ebx
jne 0x43e962
mov eax, dword [ebp - 4]
sub eax, ebx
mov dword [ebp - 0x20], eax
je 0x42d69f
mov edx, ebx
lea eax, [esi + ebx*4]
shl edx, 8
mov ebx, eax
push 4
add edx, edi
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp - 0x20]
pop esi
mov eax, dword [edx]
add edx, esi
mov dword [ebx], eax
add ebx, esi
sub edi, 1
jne 0x42d689
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
push ecx
call fcn.004284d8
mov eax, dword fs:[0x2c]
push 0xffffffffffffffff
push 1
push esi
mov eax, dword [eax]
push dword [ebp - 4]
or dword [eax + 8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test ebx, ebx
jne 0x42d6fb
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x42d6e0
xor esi, esi
push dword [edi + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, ebx
jb 0x42d6cf
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x42d6eb
push esi
call fcn.0042e022
pop ecx
test edi, edi
je 0x42d6f6
push edi
call fcn.0042e022
pop ecx
pop edi
pop esi
pop ebx
leave
ret
xor edi, edi
jmp 0x43e9d7
inc ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
jmp 0x42d5eb
mov dword [ebp - 8], edi
xor edi, edi
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x14]
push 0x40
pop edx
sub eax, ecx
mov dword [ebp - 0x18], edx
cmp eax, edx
jae 0x43e97c
mov dword [ebp - 0x18], eax
push 8
pop ecx
call fcn.00426640
test eax, eax
je 0x43e995
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 4], ecx
jmp 0x43e997
mov eax, edi
push edi
push 0x10000
push eax
push 0x444e80
push 0x100000
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
add dword [ebp - 8], 0x100
add ecx, 0x40
mov dword [ebp - 0x20], ecx
mov dword [esi + edx*4], eax
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, ebx
jb 0x43e96a
mov edi, dword [ebp - 0x10]
xor ecx, ecx
jmp 0x42d66a
push dword [esi + edi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, ebx
jb 0x43e9d7
mov edi, dword [ebp - 0x10]
jmp 0x42d6c6
Function at 0x42d952
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x448014]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x401b60
lea eax, [ebp - 0x22c]
push 0x100
push eax
call fcn.0042ad58
and dword [ebp - 0x234], 0
lea eax, [ebp - 0x22c]
add esp, 0x10
mov dword [ebp - 0x238], 0xc
mov dword [ebp - 0x230], 1
push eax
push 0
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push eax
push 0x401b54
mov dword [0x44c1a0], eax
lea eax, [ebp - 0x2c]
push 0x14
push eax
call fcn.0042ad58
add esp, 0x10
lea eax, [ebp - 0x2c]
push eax
push 0x401690
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e014
leave
ret

Function at 0x43f6bc
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x448014]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
push 0xb
lea eax, [esp + 0x20]
push eax
push 0x41f518
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x43f757
xor esi, esi
mov dword [esp + 0x18], 7
lea ecx, [esp + 0x1c]
mov dword [esp + 4], esi
mov dword [esp + 0x14], esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x43f700
sub ecx, edx
lea eax, [esp + 0x1c]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0xc]
call fcn.0042b412
test byte [0x44d700], 0x80
je 0x43f74c
push ecx
lea ecx, [esp + 8]
call fcn.00441b64
pop ecx
push dword [0x44cc2c]
mov edx, eax
mov ecx, 0x41fdb0
push dword [0x44cc28]
call fcn.00441ff9
pop ecx
pop ecx
lea ecx, [esp + 4]
call fcn.0042baf9
jmp 0x43f77a
test byte [0x44d700], 0x80
je 0x43f77a
push dword [0x44cc2c]
xor edx, edx
mov ecx, 0x41fdb0
push dword [0x44cc28]
call fcn.00441ff9
pop ecx
pop ecx
mov ecx, dword [esp + 0x34]
pop esi
xor ecx, esp
call fcn.0042e014
mov esp, ebp
pop ebp
ret
Function at 0x440121
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x448014]
xor eax, esp
mov dword [esp + 0x48], eax
push esi
lea esi, [esp + 0x4a]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
mov eax, ecx
xor edx, edx
push 0xa
pop ecx
div ecx
sub esi, 2
mov ecx, eax
lea eax, [edx + 0x30]
mov word [esi], ax
test ecx, ecx
jne 0x440142
push ecx
lea eax, [esp + 0x4e]
push eax
push esi
lea ecx, [esp + 0x14]
call fcn.0042b3e1
cmp dword [esp + 0x1c], 8
lea eax, [esp + 8]
jb 0x440179
mov eax, dword [esp + 8]
push eax
push 0x41f518
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea ecx, [esp + 8]
call fcn.0042baf9
mov ecx, dword [esp + 0x4c]
pop esi
xor ecx, esp
call fcn.0042e014
mov esp, ebp
pop ebp
ret