joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4127c8
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
push ecx
mov dword [ebp - 0xc], esi
call dword [sym.imp.msvcrt.dll__get_osfhandle]
cmp byte [0x44805c], 0
pop ecx
mov dword [ebp - 4], eax
jne 0x41d705
push edi
mov edi, dword [ebp + 0xc]
mov eax, 0x2000
cmp esi, eax
ja 0x41d718
test esi, esi
je 0x41283f
push 0
push 0
push eax
push 0x42d620
push 0xffffffffffffffff
push ebx
push 0
push dword [0x433854]
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
push 0
push edi
lea esi, [eax - 1]
push esi
push 0x42d620
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
je 0x412850
cmp dword [edi], esi
jne 0x412850
mov eax, dword [ebp - 0xc]
mov dword [edi], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
jmp 0x412847
push 0
push dword [ebp + 0xc]
push esi
push ebx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
jmp 0x412848
push 0
push 0
push eax
push 0x42d620
push 0x1000
push ebx
push 0
push dword [0x433854]
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
push 0
push edi
push eax
push 0x42d620
push dword [ebp - 4]
mov ecx, 0x2000
mov dword [ebp - 8], eax
add ebx, ecx
sub esi, ecx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
je 0x412850
mov eax, dword [ebp - 8]
cmp dword [edi], eax
jne 0x412850
jmp 0x4127f6

Function at 0x4129bb
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x42d0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x3a
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xc], cx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
cmp ecx, eax
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
neg eax
call fcn.00416fd0
mov esp, ebp
pop ebp
ret
Function at 0x413121
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x654
mov eax, dword [0x42d0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, 0x104
mov byte [ebp - 0x22c], 1
push eax
xor ebx, ebx
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x438]
mov dword [ebp - 0x230], ebx
push ebx
push eax
mov esi, edx
mov edi, ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x18], ebx
mov eax, 0x104
mov byte [ebp - 0x14], 1
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0x220]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x448], ebx
mov eax, 0x104
mov byte [ebp - 0x444], 1
mov dword [ebp - 0x440], eax
push eax
lea eax, [ebp - 0x650]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
lea ecx, [ebp - 0x438]
add esp, 0xc
cmp byte [ebp - 0x22c], al
sete al
dec eax
and eax, 0x7ee3
add eax, 0x104
push eax
call fcn.00410c70
test eax, eax
js 0x41dbf0
xor eax, eax
lea ecx, [ebp - 0x220]
cmp byte [ebp - 0x14], al
sete al
dec eax
and eax, 0x7ee3
add eax, 0x104
push eax
call fcn.00410c70
test eax, eax
js 0x41dbf0
xor eax, eax
lea ecx, [ebp - 0x220]
cmp byte [ebp - 0x14], al
sete al
dec eax
and eax, 0x7ee3
add eax, 0x104
push eax
call fcn.00410c70
test eax, eax
js 0x41dbf0
mov eax, dword [ebp - 0x448]
mov dword [0x443cf0], ebx
test eax, eax
jne 0x41323f
lea eax, [ebp - 0x650]
push dword [ebp - 0x440]
mov edx, esi
mov ecx, edi
push eax
call fcn.00414c89
test al, al
je 0x4132d9
mov eax, dword [ebp - 0x448]
test eax, eax
jne 0x413267
lea eax, [ebp - 0x650]
push eax
lea ecx, [ebp - 0x220]
call fcn.00410d89
push 0x4021e8
lea ecx, [ebp - 0x220]
call fcn.00410cf2
mov ecx, dword [ebp - 0x230]
test ecx, ecx
je 0x41dbb6
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x413310
push dword [ebp - 0x228]
push ecx
push ebx
lea ecx, [ebp - 0x654]
push ecx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumeInformationW]
test eax, eax
je 0x41dbd3
mov eax, dword [ebp - 0x230]
test eax, eax
je 0x413318
push 0x4024f4
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x41dbc1
push dword [ebp - 0x448]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
push dword [ebp - 0x230]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416fd0
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x220]
jmp 0x413298
lea eax, [ebp - 0x438]
jmp 0x4132c3
lea ecx, [ebp - 0x438]
jmp 0x413291
cmp dword [ebp - 0x654], 0xc
jne 0x4132d9
xor eax, eax
inc eax
jmp 0x41dbfc
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
lea ecx, [eax - 0x90]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [0x443cf0], ecx
jmp 0x4132d9
mov dword [0x443cf0], 8
mov al, bl
mov bl, al
jmp 0x4132d9
Function at 0x4136cb
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [0x42d0b4]
xor eax, esp
mov dword [esp + 0xc], eax
cmp word [ebp + 8], 0
push esi
push edi
mov edi, edx
mov esi, ecx
jne 0x41370b
push esi
push edi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetCurrentDirectoryW]
xor eax, eax
mov ecx, dword [esp + 0x14]
pop edi
pop esi
xor ecx, esp
call fcn.00416fd0
mov esp, ebp
pop ebp
ret 4
push 0x3d
pop eax
push dword [ebp + 8]
mov word [esp + 0x10], ax
call dword [sym.imp.msvcrt.dll_towupper]
pop ecx
mov word [esp + 0xe], ax
lea ecx, [esp + 0xc]
push 0x3a
pop eax
mov word [esp + 0x10], ax
xor eax, eax
mov word [esp + 0x12], ax
call fcn.0040cfbc
test eax, eax
je 0x41ddbf
push eax
mov edx, edi
mov ecx, esi
call fcn.00411040
jmp 0x4136f6
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_towupper]
pop ecx
mov word [esi], ax
push 0x3a
pop eax
mov word [esi + 2], ax
push 0x5c
pop eax
mov word [esi + 4], ax
xor eax, eax
mov word [esi + 6], ax
inc eax
jmp 0x4136f8
Function at 0x413a50
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebx
xor ebx, ebx
mov byte [0x437896], bl
push esi
test edx, edx
je 0x413a7c
mov esi, edx
push edi
lea edi, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x413a66
sub esi, edi
sar esi, 1
neg esi
pop edi
sbb esi, esi
and edx, esi
push edx
push ecx
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SetEnvironmentVariableW]
push dword [0x433834]
mov esi, eax
push ebx
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
call fcn.00413aae
mov dword [0x433834], eax
xor eax, eax
test esi, esi
pop esi
sete al
pop ebx
ret

Function at 0x413aae
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
push edi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetEnvironmentStringsW]
mov esi, eax
xor edi, edi
test esi, esi
je 0x413af3
push ebx
mov ecx, esi
call fcn.00413b00
mov ebx, eax
push ebx
push 8
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x413aeb
push ebx
push esi
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x413b5d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x42d0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
mov byte [ebp - 0x14], 1
xor ebx, ebx
mov dword [ebp - 0x10], esi
push esi
lea eax, [ebp - 0x220]
mov dword [ebp - 0x18], ebx
push ebx
push eax
mov edi, ecx
call sub.msvcrt.dll_memset
xor eax, eax
lea ecx, [ebp - 0x220]
add esp, 0xc
cmp byte [ebp - 0x14], al
sete al
dec eax
and eax, 0x7ee3
add eax, esi
push eax
call fcn.00410c70
test eax, eax
js 0x413cf0
push 0x24
pop ecx
call fcn.004100b0
mov esi, eax
test esi, esi
je 0x41e009
mov ecx, esi
mov dword [esi], edi
call fcn.0040c923
mov eax, dword [esi + 0x18]
mov ecx, 0xffce
mov edi, dword [esi + 0xc]
mov dword [ebp - 0x22c], eax
mov eax, dword [esi]
mov dword [ebp - 0x224], eax
call fcn.004100b0
test eax, eax
je 0x41e009
push ebx
mov edx, 0x7fe7
mov dword [0x443cec], eax
mov ecx, eax
call fcn.004136cb
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x41e01b
push dword [ebp - 0x224]
mov edx, dword [ebp - 0x10]
call fcn.00412d22
test eax, eax
jne 0x413cf0
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x41e026
push 0x5c
pop eax
mov edx, eax
call fcn.00412349
xor ecx, ecx
mov word [eax + 2], cx
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41e031
push eax
mov ecx, 0x443ab0
call fcn.00410d89
test edi, edi
je 0x413d10
movzx eax, word [edi]
push 0x3a
pop edx
cmp ax, dx
je 0x413d10
push 0x5c
pop ecx
cmp ax, cx
jne 0x413cb1
mov eax, dword [ebp - 0x224]
cmp edi, eax
je 0x413d22
cmp word [eax], bx
je 0x41e03c
mov ecx, eax
add eax, 2
cmp eax, edi
jne 0x413c8f
movzx eax, word [ecx]
cmp ax, dx
je 0x413d22
push 0x5c
pop ecx
cmp ax, cx
je 0x413d22
movzx eax, word [edi]
push dword [ebp - 0x224]
mov dword [ebp - 0x228], eax
xor eax, eax
mov word [edi], ax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x413cd8
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov eax, dword [ebp - 0x228]
mov dword [0x443cf0], ebx
mov word [edi], ax
cmp dword [0x443cf0], 0
je 0x413d10
xor esi, esi
inc esi
push dword [ebp - 0x18]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416fd0
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0040c923
mov eax, dword [ebp - 0x22c]
mov dword [esi + 0x18], eax
jmp 0x413cf3
add edi, 2
jmp 0x413cb1
call fcn.00429287
push 1
push 0x43b8b8
call dword [sym.imp.msvcrt.dll_longjmp]
lea ecx, [ebp - 0x220]
jmp 0x413c1b
lea ecx, [ebp - 0x220]
jmp 0x413c3c
lea eax, [ebp - 0x220]
jmp 0x413c57
mov ecx, ebx
jmp 0x413ca1
Function at 0x4168ba
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x42d0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 2
push 0
xor eax, eax
mov dword [ebp - 8], ecx
push 0
push dword [ebp + 0x10]
xor bl, bl
cmp dword [ebp + 0xc], eax
sete al
push eax
push edx
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindFirstFileExW]
mov esi, dword [ebp + 0x14]
mov edi, eax
mov dword [esi], edi
cmp edi, 0xffffffff
je 0x41696a
push dword [ebp + 8]
mov eax, dword [ebp - 8]
push dword [ebp + 0x10]
cmp eax, fcn.00416a00
jne 0x416998
call fcn.00416a00
test eax, eax
je 0x4169d6
and dword [0x443cf0], 0
mov bl, 1
cmp edi, 0xffffffff
je 0x416951
mov ecx, dword [0x443cf4]
test ecx, ecx
je 0x416977
mov edx, dword [0x42d5dc]
cmp edx, dword [0x443cf8]
jge 0x4169ac
test ecx, ecx
je 0x41694f
mov eax, dword [esi]
mov dword [ecx + edx*4], eax
inc edx
mov dword [0x42d5dc], edx
mov bl, 1
test bl, bl
je 0x41696a
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416fd0
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [0x443cf0], eax
jmp 0x416955
push 0x14
push 0
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
mov ecx, eax
mov edx, dword [0x42d5dc]
mov dword [0x443cf4], ecx
jmp 0x41693f
mov ecx, eax
call dword [0x4494b4]
mov ecx, dword [ebp - 8]
call ecx
mov edi, dword [esi]
jmp 0x416911
lea eax, [edx*4 + 4]
push eax
push ecx
push 0
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapReAlloc]
mov ecx, eax
test ecx, ecx
je 0x421547
inc dword [0x443cf8]
jmp 0x41698a
push dword [ebp + 0x10]
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindNextFileW]
test eax, eax
je 0x4169eb
mov edi, dword [esi]
jmp 0x4168f3
push dword [esi]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
or dword [esi], 0xffffffff
or edi, 0xffffffff
jmp 0x416922
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
push dword [esi]
mov dword [0x443cf0], eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_FindClose]
or dword [esi], 0xffffffff
xor al, al
jmp 0x416957
Function at 0x416a96
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x42d0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, 0x104
mov byte [ebp - 0x1c], 1
xor esi, esi
mov dword [ebp - 0x18], ebx
push ebx
lea eax, [ebp - 0x228]
mov dword [ebp - 0x20], esi
push esi
push eax
mov di, cx
call sub.msvcrt.dll_memset
xor eax, eax
lea ecx, [ebp - 0x228]
add esp, 0xc
cmp byte [ebp - 0x1c], al
sete al
dec eax
and eax, 0x7ee3
add eax, ebx
push eax
call fcn.00410c70
test eax, eax
js 0x416b4c
push 0x3a
pop eax
mov word [ebp - 0xe], ax
push 0x5c
pop eax
mov word [ebp - 0xc], ax
xor eax, eax
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x10]
push eax
mov word [ebp - 0x10], di
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x416b71
cmp eax, 2
je 0x416b4c
cmp eax, 5
je 0x416b4c
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x416b69
push esi
push esi
push esi
push esi
lea ecx, [ebp - 0x230]
push ecx
push dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_GetVolumeInformationW]
test eax, eax
je 0x421564
push dword [ebp - 0x20]
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416fd0
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x228]
jmp 0x416b2b
xor esi, esi
inc esi
jmp 0x416b4c
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 5
jne 0x416b4c
jmp 0x416b71

Function at 0x417324
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x42beb8
call fcn.00417678
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x417384
cmp eax, 0xffffffff
je 0x417384
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x41737d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x41737d
cmp edx, 0x10000000
jae 0x41737d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x41737a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.004176bd
ret 4

Function at 0x4173d0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x41740e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x417406
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x417410
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4173f6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4174e0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4174f6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x417511
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
Function at 0x422bf0
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x42d0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ecx
mov esi, 0x104
mov dword [ebx], 0
mov edx, esi
mov dword [ebx + 4], 0
lea ecx, [ebp - 0x20c]
call fcn.00411040
mov edx, esi
lea eax, [ebp - 0x20c]
cmp word [eax], 0
je 0x422c41
add eax, 2
sub edx, 1
jne 0x422c33
mov eax, esi
mov ecx, edx
sub eax, edx
neg ecx
sbb ecx, ecx
and ecx, eax
test edx, edx
je 0x422c97
lea eax, [ebp - 0x20c]
lea eax, [eax + ecx*2]
sub esi, ecx
je 0x422c8f
mov edx, 0x4035fc
mov ecx, 0x7ffffffe
sub edx, eax
lea ebx, [ebx]
test ecx, ecx
je 0x422c8b
movzx edi, word [edx + eax]
test di, di
je 0x422c8b
mov word [eax], di
dec ecx
add eax, 2
sub esi, 1
jne 0x422c70
jmp 0x422c8f
test esi, esi
jne 0x422c92
sub eax, 2
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x1f0003
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov esi, eax
mov dword [ebp - 0x210], esi
test esi, esi
jne 0x422cde
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x422d22
mov ecx, dword [ebp + 4]
mov edx, 0xc8
push 0x40321c
call fcn.00422913
mov esi, dword [ebp - 0x210]
mov edi, eax
jmp 0x422d24
lea edx, [ebp - 0x214]
mov dword [ebp - 0x214], 0
mov ecx, esi
call fcn.0042213a
mov edi, eax
test edi, edi
jns 0x422d16
mov ecx, dword [ebp + 4]
mov edx, 0xce
push edi
push 0x40321c
call fcn.0042292c
mov esi, dword [ebp - 0x210]
jmp 0x422d24
mov eax, dword [ebp - 0x214]
cdq
mov dword [ebx], eax
mov dword [ebx + 4], edx
xor edi, edi
test esi, esi
je 0x422d41
push esi
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
jne 0x422d41
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0x879
call fcn.00422d56
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416fd0
mov esp, ebp
pop ebp
ret 8
Function at 0x42396e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 1
push 0
mov esi, ecx
mov dword [ebp - 0x18], edx
push 0
push esi
mov dword [ebp - 0x10], esi
mov ebx, 0x42d620
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
mov dword [ebp - 0xc], eax
mov eax, 0x1fff
cmp dword [ebp + 8], eax
jb 0x4239a3
mov dword [ebp + 8], eax
mov edi, 0x447f20
push edi
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockShared]
mov eax, dword [ebp + 0xc]
push 0
push eax
push dword [ebp + 8]
push ebx
push esi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
push edi
mov esi, eax
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
test esi, esi
jne 0x4239d4
xor eax, eax
jmp 0x423a9b
mov esi, dword [ebp + 0xc]
mov edi, dword [esi]
test edi, edi
je 0x4239cd
cmp dword [0x433854], 0xfde9
mov ecx, edi
mov dword [ebp - 4], edi
jne 0x423a26
cmp dword [ebp - 0xc], 0
jne 0x423a26
cmp dword [ebp + 8], 3
jbe 0x423a26
push 3
push 0x403270
push ebx
call sub.msvcrt.dll_memcmp
add esp, 0xc
mov ecx, edi
test eax, eax
jne 0x423a26
add edi, 0xfffffffd
mov dword [ebp - 0xc], 3
mov ebx, 0x42d623
mov dword [esi], edi
mov dword [ebp - 4], edi
mov ecx, edi
mov dword [ebp - 8], ebx
test edi, edi
jle 0x423a75
cmp ecx, 3
jl 0x423a4f
mov dl, byte [ebx]
cmp dl, 0xa
jne 0x423a3f
cmp byte [ebx + 1], 0xd
je 0x423aa4
mov dword [ebp - 0x14], ecx
mov eax, ecx
cmp dl, 0xd
jne 0x423a4f
cmp byte [ebx + 1], 0xa
je 0x423aa4
movzx eax, byte [ebx]
cmp byte [eax + 0x447f30], 0
je 0x423a68
cmp ecx, 1
je 0x423ac6
push 2
add ecx, 0xfffffffe
pop eax
jmp 0x423a6c
xor eax, eax
dec ecx
inc eax
add ebx, eax
mov dword [ebp - 4], ecx
test ecx, ecx
jg 0x423a2d
mov ebx, dword [ebp - 8]
mov ecx, dword [0x433854]
call fcn.00410638
push dword [ebp + 8]
neg eax
push dword [ebp - 0x18]
sbb eax, eax
push edi
push ebx
neg eax
push eax
push ecx
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
mov dword [esi], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov edi, ebx
push eax
mov byte [ebx + 2], al
mov ebx, dword [ebp - 8]
sub edi, ebx
push eax
mov eax, dword [ebp - 0xc]
add edi, 2
add eax, edi
push eax
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_SetFilePointer]
jmp 0x423a78
push 0x447f20
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_AcquireSRWLockShared]
push 0
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebx + 1]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_ReadFile]
push 0x447f20
mov esi, eax
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ReleaseSRWLockShared]
test esi, esi
je 0x423b06
cmp dword [ebp - 4], 0
je 0x423b06
mov esi, dword [ebp + 0xc]
inc edi
jmp 0x423a75
mov eax, dword [ebp + 0xc]
and dword [eax], 0
jmp 0x4239cd
Function at 0x424478
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebx
mov ebx, 0x402220
push esi
mov ecx, ebx
call fcn.00413320
mov esi, eax
test esi, esi
jne 0x42449c
pop esi
mov ecx, ebx
mov edx, 0x402518
pop ebx
jmp fcn.00413a50
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4244a1
sub ecx, edx
sar ecx, 1
push edi
lea ebx, [ecx + 4]
lea ecx, [ebx + ebx]
call fcn.004100b0
mov edi, eax
test edi, edi
jne 0x4244c5
inc eax
jmp 0x424502
push esi
mov edx, ebx
mov ecx, edi
call fcn.00411040
push 0x402178
mov edx, ebx
mov ecx, edi
call fcn.004118c0
push 0x402518
mov edx, ebx
mov ecx, edi
call fcn.004118c0
mov edx, edi
mov ecx, 0x402220
call fcn.00413a50
mov ecx, edi
mov esi, eax
call fcn.00410040
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x4246a5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov esi, edx
mov ecx, dword [edi + 0x3c]
test ecx, ecx
je 0x4246c1
call fcn.0040def9
movzx eax, word [eax]
jmp 0x4246c3
mov eax, ebx
test ax, ax
je 0x4246ce
cmp ax, 0xa
jne 0x4246f8
mov ecx, dword [edi + 0x3c]
push 0x3b
pop edx
call fcn.0040d7d4
test eax, eax
je 0x4246f8
mov ecx, 0x401f94
test esi, esi
jne 0x4246eb
mov ecx, 0x403464
mov edx, 0x4024ac
pop edi
pop esi
pop ebx
jmp fcn.00413a50
mov ecx, dword [edi + 0x3c]
mov edx, 0x4021c4
push 5
call fcn.0040ea40
cmp word [eax], bx
je 0x42471e
mov ecx, 0x401f94
test esi, esi
jne 0x42471a
mov ecx, 0x403464
mov edx, eax
jmp 0x4246f0
mov edi, 0x401f94
mov eax, 0x403464
mov ecx, edi
test esi, esi
jne 0x424732
mov ecx, eax
mov edi, eax
call fcn.0040cfbc
push eax
push edi
push 0x40392c
call fcn.004125d9
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
ret