joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429d00
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 0x429dd1
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.00429e10
cmp dword [esp + 0x14], 0
jne 0x429dc5
cmp dword [edi + 8], 0x71c71c7
je 0x43d3f7
mov ecx, 0x24
call fcn.00426940
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.00429e70
mov ecx, edi
call fcn.00429f90
test al, al
jne 0x429dda
mov ecx, dword [esp + 0x10]
push ebx
push ecx
push dword [esp + 0x14]
mov ecx, edi
call fcn.00429f30
add esi, 0x1c
cmp esi, dword [ebp + 0xc]
jne 0x429d20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.00429c4c
push dword [esp + 0xc]
lea eax, [ebx + 8]
mov ecx, edi
push eax
lea eax, [esp + 0x20]
push eax
call fcn.00429e10
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x429db8
push 0x40f73c
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
int3
Function at 0x42b044
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x449014]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x44d1b0], 0
jne 0x42b099
push 0x14
lea eax, [ebp - 0x2c]
push eax
push 0x401644
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x43e0c3
push 0x44d1b0
lea eax, [ebp - 0x2c]
push 0x40163c
push eax
call fcn.0042b0a5
add esp, 0xc
dec eax
neg eax
sbb eax, eax
not eax
and dword [0x44d1b0], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e434
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 0x42b0de
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.0042b1a0
mov ecx, esi
mov ebx, eax
call fcn.0042b1a0
add ebx, eax
lea ecx, [ebx*2 + 2]
call fcn.00426940
push esi
lea edx, [ebx - 1]
mov dword [ebp - 4], eax
mov ecx, eax
call fcn.0042b140
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.0042b140
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 0x42b1c7
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x449014]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x44d1b0], 0
je 0x42b22d
push esi
push 0x14
lea eax, [ebp - 0x2c]
push eax
push 0x401644
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor esi, esi
test eax, eax
je 0x43e0fe
cmp dword [0x449e18], esi
je 0x42b22c
push esi
push 0x401718
lea edx, [ebp - 0x2c]
mov ecx, 0x401700
call fcn.00425930
pop ecx
pop ecx
mov ecx, dword [0x449df4]
jmp 0x42b224
lea ecx, [edx + 4]
mov edx, dword [ecx]
test edx, edx
jne 0x42b221
mov dword [ecx], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e434
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 0x42b492
Capabilities:
Resolve path using msvcrt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x44d1b4], 0
push edi
mov edi, ecx
je 0x42b4b0
call fcn.00427a11
test eax, eax
je 0x42b4b0
pop edi
leave
ret
mov eax, dword [0x449df4]
xor edx, edx
push ebx
mov dword [ebp - 4], edx
xor ebx, ebx
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x42b608
imul eax, dword [ecx + 0x14], 0xc
inc ebx
cmp dword [eax + 0x41f394], 0
jne 0x42b4da
inc edx
mov dword [ebp - 4], edx
mov ecx, dword [ecx]
test ecx, ecx
jne 0x42b4c8
test ebx, ebx
je 0x42b608
push esi
lea eax, [ebp - 4]
mov dword [ebp - 0x10], 0x1080b
push eax
lea eax, [ebp - 0x10]
lea esi, [edi + 4]
push eax
mov ecx, esi
call fcn.0042b73d
sub ebx, dword [ebp - 4]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
push eax
mov ecx, esi
mov dword [ebp - 0xc], 0x1080c
call fcn.0042b73d
mov eax, dword [edi + 8]
mov ebx, 0x40172c
mov dword [ebp - 0xc], 0x1080f
push ebx
cmp eax, dword [edi + 0xc]
jne 0x43e198
lea ecx, [ebp - 0xc]
push ecx
push eax
mov ecx, esi
call fcn.0042b60e
mov eax, dword [edi + 8]
mov dword [ebp - 0xc], 0x1080e
push ebx
cmp eax, dword [edi + 0xc]
jne 0x43e1a8
lea ecx, [ebp - 0xc]
push ecx
push eax
mov ecx, esi
call fcn.0042b60e
test byte [0x44e700], 2
jne 0x43e1b8
mov eax, dword [edi + 8]
mov dword [ebp - 0xc], 0x1080a
push 0x449520
cmp eax, dword [edi + 0xc]
jne 0x43e1ed
lea ecx, [ebp - 0xc]
push ecx
push eax
mov ecx, esi
call fcn.0042b2c5
and dword [ebp - 0x10], 0
lea eax, [ebp - 0xc]
and dword [ebp - 0xc], 0
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__get_wpgmptr]
pop ecx
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.0042a898
mov edx, 0x40174c
mov ecx, eax
call fcn.00428f08
cmp dword [ebp - 0x10], 0
mov ebx, eax
pop ecx
mov dword [ebp - 8], 0x401734
je 0x42b5d9
mov ecx, ebx
call fcn.00423780
mov dword [ebp - 8], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x10], 0x1080d
cmp eax, dword [edi + 0xc]
je 0x43e1fd
lea eax, [ebp - 8]
mov ecx, esi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0042b384
pop esi
test ebx, ebx
je 0x42b608
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
pop ebx
jmp 0x42b4ad
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.0043f2cd
jmp 0x42b543
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.0043f2cd
jmp 0x42b563
mov eax, dword [edi + 8]
mov dword [ebp - 0xc], 0x10810
push 0x401f90
cmp eax, dword [edi + 0xc]
je 0x43e1dc
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.0043f2cd
jmp 0x42b570
lea ecx, [ebp - 0xc]
push ecx
push eax
mov ecx, esi
call fcn.0043f448
jmp 0x42b570
lea eax, [ebp - 0xc]
mov ecx, esi
push eax
call fcn.0043f298
jmp 0x42b594
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
mov ecx, esi
call fcn.0043f323
jmp 0x42b5fb
Function at 0x42bb94
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x449014]
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 0x43e3d9
cmp esi, 0xffffffff
ja 0x43e3d9
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 0x43e3a6
cmp dword [ebp - 0x38], esi
jne 0x43e3ee
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042e434
leave
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, 0x421374
lea ecx, [ebp - 0x10]
call fcn.0044736c
mov dword [esp], 0x447df0
jmp 0x43e3d4
mov eax, dword [ebp - 0x34]
push eax
lea ecx, [ebp - 0x10]
call fcn.00446f56
push 0x447df0
lea eax, [ebp - 0x10]
jmp 0x43e3e8
mov dword [ebp - 0x3c], 1
lea eax, [ebp - 0x3c]
push 0x447ed8
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 0x421380
lea ecx, [ebp - 0x34]
call fcn.00446e3c
mov edx, dword [ebp - 0x38]
lea ecx, [ebp - 0x1c]
call fcn.00446de2
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x34]
call fcn.00447252
lea ecx, [ebp - 0x1c]
call fcn.00447144
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x34]
jb 0x43e3c6
jmp 0x43e3c3

Function at 0x42c0c5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x449014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x260]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x42c14a
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
test eax, eax
jne 0x42c14a
push 0x28
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x270]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
je 0x42c14a
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x260]
push eax
push 0x401854
push esi
push 0x44d578
call fcn.0042aff8
add esp, 0x14
cmp eax, 0xffffffff
je 0x42c14a
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042e434
leave
ret
xor al, al
jmp 0x42c13d

Function at 0x42c14e
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x449014]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x40186c
lea eax, [ebp - 0x22c]
push 0x100
push eax
call fcn.0042aff8
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 0x401860
mov dword [0x44d1b0], eax
lea eax, [ebp - 0x2c]
push 0x14
push eax
call fcn.0042aff8
add esp, 0x10
lea eax, [ebp - 0x2c]
push eax
push 0x401644
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e434
leave
ret
Function at 0x42c857
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 0x4018e0
push 0x80000001
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x43eaa9
xor eax, eax
xor edx, edx
pop edi
leave
ret
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 0x421138
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 0x43eae3
cmp dword [ebp - 8], ebx
jne 0x43eae3
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
jmp 0x43eae5
mov ebx, edi
test esi, esi
je 0x43eaf0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov edx, ebx
mov eax, edi
pop ebx
jmp 0x42c889

Function at 0x42c8b3
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0x4019e0
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 0x43eb20
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x43eb66
mov eax, esi
pop esi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, 0x421094
jmp 0x43eb3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, 0x421080
lea ecx, [ebp - 0xc]
call fcn.0044736c
mov dword [esp], 0x447df0
jmp 0x43eb5d
push 0x4210a0
lea ecx, [ebp - 0xc]
call fcn.00446f56
push 0x447df0
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 0x42c8e9
cmp eax, 0x80
je 0x42c8e9
cmp eax, 0x102
je 0x43eb4b
jmp 0x43eb2e

Function at 0x42c8ee
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
mov eax, dword [0x449014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0xd0]
xor ebx, ebx
push eax
push 0x201
push ebx
push 0x401970
push 0x80000002
mov dword [ebp - 0xd0], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42c99d
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 0x40195c
push ebx
push esi
mov dword [ebp - 0xd4], edi
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x42c981
cmp dword [ebp - 0xd4], edi
ja 0x42c981
lea eax, [ebp - 0xcc]
push 0x401954
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 0x42c98c
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.0042e434
leave
ret
xor al, al
jmp 0x42c990
Function at 0x42d019
Capabilities:
Create thread

Disassembly:
push 0x14
push 0x447cd8
call fcn.0042edf0
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.00426940
mov edi, eax
test edi, edi
je 0x43ed22
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 0x428788
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x43ed29
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 0x42d0ce
mov esi, dword [edi + 0xc]
push 0x10
push edi
call fcn.0042e895
pop ecx
pop ecx
test esi, esi
je 0x42d0ce
mov dword [ebp - 4], 0xfffffffe
call fcn.0042d0be
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 0x42d058
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push ebx
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x42da6d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [0x4492e8]
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 0x43eee4
xor ecx, ecx
mov eax, esi
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042e8a3
mov edi, eax
xor eax, eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
pop ecx
test esi, esi
je 0x42daf0
xor ebx, ebx
push ebx
push 0x10000
lea esi, [eax + 1]
push esi
push fcn.004287d5
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 0x42dac2
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.0042e8a3
pop ecx
xor ecx, ecx
mov esi, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x1c], ecx
test ebx, ebx
jne 0x43eef0
mov eax, dword [ebp - 4]
sub eax, ebx
mov dword [ebp - 0x20], eax
je 0x42db4f
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 0x42db39
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
push ecx
call fcn.004287d5
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 0x42dbab
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x42db90
xor esi, esi
push dword [edi + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, ebx
jb 0x42db7f
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x42db9b
push esi
call fcn.0042e442
pop ecx
test edi, edi
je 0x42dba6
push edi
call fcn.0042e442
pop ecx
pop edi
pop esi
pop ebx
leave
ret
xor edi, edi
jmp 0x43ef65
inc ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
jmp 0x42da9b
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 0x43ef0a
mov dword [ebp - 0x18], eax
push 8
pop ecx
call fcn.00426940
test eax, eax
je 0x43ef23
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 4], ecx
jmp 0x43ef25
mov eax, edi
push edi
push 0x10000
push eax
push 0x44541a
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 0x43eef8
mov edi, dword [ebp - 0x10]
xor ecx, ecx
jmp 0x42db1a
push dword [esi + edi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, ebx
jb 0x43ef65
mov edi, dword [ebp - 0x10]
jmp 0x42db76
Function at 0x43fc5c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x449014]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
push 0xb
lea eax, [esp + 0x20]
push eax
push 0x41f9d8
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x43fcf7
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 0x43fca0
sub ecx, edx
lea eax, [esp + 0x1c]
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0xc]
call fcn.0042b8ba
test byte [0x44e700], 0x80
je 0x43fcec
push ecx
lea ecx, [esp + 8]
call fcn.00442104
pop ecx
push dword [0x44dc3c]
mov edx, eax
mov ecx, 0x420270
push dword [0x44dc38]
call fcn.00442596
pop ecx
pop ecx
lea ecx, [esp + 4]
call fcn.0042bf89
jmp 0x43fd1a
test byte [0x44e700], 0x80
je 0x43fd1a
push dword [0x44dc3c]
xor edx, edx
mov ecx, 0x420270
push dword [0x44dc38]
call fcn.00442596
pop ecx
pop ecx
mov ecx, dword [esp + 0x34]
pop esi
xor ecx, esp
call fcn.0042e434
mov esp, ebp
pop ebp
ret
Function at 0x4406c1
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x449014]
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 0x4406e2
push ecx
lea eax, [esp + 0x4e]
push eax
push esi
lea ecx, [esp + 0x14]
call fcn.0042b889
cmp dword [esp + 0x1c], 8
lea eax, [esp + 8]
jb 0x440719
mov eax, dword [esp + 8]
push eax
push 0x41f9d8
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea ecx, [esp + 8]
call fcn.0042bf89
mov ecx, dword [esp + 0x4c]
pop esi
xor ecx, esp
call fcn.0042e434
mov esp, ebp
pop ebp
ret
Function at 0x440816
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push ebx
push esi
push edi
push 0x401508
mov edi, edx
push 0
push eax
mov dword [ebp - 0x14], edi
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wdupenv_s]
mov ecx, dword [edi]
add esp, 0xc
mov esi, edi
test ecx, ecx
je 0x440935
push 2
pop edi
movzx eax, word [ecx]
xor edx, edx
test ax, ax
je 0x440925
mov ebx, eax
push 0x22
pop eax
cmp bx, ax
jne 0x440879
inc edx
mov eax, ecx
cmp ecx, dword [esi]
je 0x440879
push 0x5c
pop ebx
sub eax, edi
cmp word [eax], bx
jne 0x440879
inc edx
cmp eax, dword [esi]
jne 0x44086d
add ecx, edi
movzx eax, word [ecx]
mov ebx, eax
test ax, ax
jne 0x44085b
test edx, edx
je 0x440925
sub ecx, dword [esi]
lea edi, [edx + 1]
sar ecx, 1
add edi, ecx
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042e8a3
mov ebx, eax
mov dword [ebp - 0x10], ebx
pop ecx
test ebx, ebx
jne 0x4408c1
push 0x1f6a
call fcn.00422658
pop ecx
mov edx, dword [esi]
lea eax, [ebx + edi*2]
mov dword [ebp - 8], eax
mov ecx, ebx
cmp ebx, eax
jae 0x440920
mov ebx, eax
movzx eax, word [edx]
mov edi, eax
push 0x22
mov dword [ebp - 0xc], edi
pop edi
push 2
cmp ax, di
pop edi
jne 0x44090d
mov eax, edx
cmp edx, dword [esi]
je 0x440900
push 0x5c
pop ebx
sub eax, edi
cmp word [eax], bx
jne 0x4408fd
mov word [ecx], bx
add ecx, edi
cmp eax, dword [esi]
jne 0x4408ed
mov ebx, dword [ebp - 8]
push 0x5c
pop eax
mov word [ecx], ax
add ecx, edi
movzx eax, word [edx]
jmp 0x440910
mov eax, dword [ebp - 0xc]
mov word [ecx], ax
add edx, edi
add ecx, edi
cmp ecx, ebx
jb 0x4408d1
mov ebx, dword [ebp - 0x10]
jmp 0x440923
push 2
pop edi
mov dword [esi], ebx
add esi, 4
mov ecx, dword [esi]
test ecx, ecx
jne 0x44084b
mov edi, dword [ebp - 0x14]
cmp dword [0x44c934], 0
jne 0x44094f
push 0x41fc08
push dword [ebp - 4]
mov edx, edi
call fcn.004409a0
pop ecx
pop ecx
push 0x41fca8
push dword [ebp - 4]
mov edx, edi
call fcn.004409a0
cmp dword [ebp - 4], 0
pop ecx
pop ecx
je 0x440980
push dword [ebp - 4]
push 0x401508
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wputenv_s]
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0xc
test byte [0x44e700], 0x80
je 0x440997
push ecx
push ecx
mov ecx, 0x406df8
call fcn.0044257e
pop ecx
pop ecx
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x4409a0
Capabilities:
Resolve path using msvcrt
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 4], edx
xor edi, edi
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
cmp ax, di
jne 0x4409b2
mov esi, dword [ebp + 8]
sub ebx, ecx
sar ebx, 1
add ebx, 2
test esi, esi
je 0x4409e1
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x4409d0
sub ecx, edx
sar ecx, 1
add ebx, ecx
lea eax, [ebx + ebx]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
jne 0x4409fd
push 0x1f6a
call fcn.00422658
pop ecx
test esi, esi
je 0x440a28
push esi
push ebx
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
push 0x401340
push ebx
push edi
call esi
push dword [ebp + 0xc]
push ebx
push edi
call esi
mov esi, dword [ebp + 8]
add esp, 0x24
jmp 0x440a36
push dword [ebp + 0xc]
push ebx
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
mov ebx, dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wputenv_s]
push edi
push 0x401508
call ebx
mov eax, dword [ebp - 4]
mov dword [eax], 0x40174c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p__wpgmptr]
push dword [ebp - 4]
push dword [eax]
push 0
call dword [sym.imp.api_ms_win_crt_process_l1_1_0.dll__wspawnv]
add esp, 0x14
test eax, eax
je 0x440a94
test esi, esi
je 0x440a75
push esi
push 0x401508
call ebx
pop ecx
pop ecx
test byte [0x44e700], 0x80
je 0x440a8c
push ecx
push ecx
mov ecx, 0x406df8
call fcn.0044257e
pop ecx
pop ecx
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
pop edi
pop esi
pop ebx
leave
ret