joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1209920
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x125b7f2
mov eax, dword fs:[0]
push eax
mov eax, 0x201c
call fcn.01255d50
mov eax, dword [0x1286d50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x2020], eax
mov edi, edx
push eax
mov dword [ebp - 0x2018], ecx
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], eax
push 0x1263064
mov ecx, esi
mov dword [ebp - 0x2024], esi
mov word [esi], dx
call fcn.011f1740
lea eax, [ebp - 0x2014]
push eax
push 0x20019
push 0
push ebx
mov dword [ebp - 4], 0
push edi
mov dword [ebp - 0x2020], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x12099e8
lea ecx, [ebp - 0x201c]
push ecx
mov ecx, dword [ebp - 0x2018]
lea edx, [ebp - 0x2010]
push edx
mov edx, dword [ebp - 0x2014]
lea eax, [ebp - 0x2028]
push eax
push edi
push ecx
push edx
mov dword [ebp - 0x201c], 0x2000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov eax, dword [ebp - 0x2014]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x1209a20
lea eax, [ebp - 0x2010]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1209a02
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x2010]
push ecx
mov ecx, esi
call fcn.011f1740
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0123e488
mov esp, ebp
pop ebp
ret

Function at 0x1209a40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1209aaa
test esi, esi
je 0x1209a79
push 0x1000
push esi
call fcn.01240f59
add esp, 8
mov ecx, dword [ebp + 8]
lea edx, [eax + eax + 2]
mov eax, dword [ebp + 0xc]
push edx
mov edx, dword [ebp - 4]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1209ab4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1209ac0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push ecx
push edx
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1209b1b
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1209b25
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1209b30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf013f
push 0
push 0
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1209b86
mov edx, dword [ebp + 8]
push 4
push edx
push 3
push eax
mov eax, dword [ebp - 4]
push 0x1269368
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1209b90
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x121bd90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x125c39b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x1286d50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x218]
mov edi, edx
push eax
xor ebx, ebx
push edi
mov esi, ecx
mov dword [ebp - 0x238], ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, ebx
jne 0x121bf00
cmp dword [ebp + 0xc], ebx
je 0x121bee9
xor ecx, ecx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], cx
push 0x43
push 0x127cd00
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], ebx
call fcn.011f1740
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x121be21
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea esi, [ebp - 0x234]
call fcn.01202040
push 0x17
mov eax, 0x127cd88
call fcn.01202040
push 0x127cdb8
push ecx
push edi
push 0x128ae58
call fcn.01204730
add esp, 0xc
push eax
call fcn.01204730
add esp, 8
mov esi, eax
push esi
call fcn.0121ee30
mov edx, dword [esi]
mov eax, dword [edx + 4]
xor edi, edi
test byte [eax + esi + 0xc], 6
jne 0x121be94
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x121be94
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
cmp edi, ebx
je 0x121beb3
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], ebx
jne 0x121beac
or eax, 4
push ebx
push eax
call fcn.011f2d10
mov edx, dword [ebp + 8]
cmp dword [edx + 0x354], ebx
jne 0x121bee2
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x121bed3
lea eax, [ebp - 0x234]
push 0x40
push 0x1274af4
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
push 1
call fcn.012416a6
xor eax, eax
push ebx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], ax
push 0x1263064
jmp 0x121bf17
xor ecx, ecx
push eax
lea edx, [ebp - 0x218]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], cx
push edx
mov ecx, esi
call fcn.011f1740
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0123e488
mov esp, ebp
pop ebp
ret
Function at 0x121c8d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x24]
sub esp, 8
push ebx
mov ebx, 8
push esi
push edi
cmp dword [ebp + 0x38], ebx
jae 0x121c8e9
lea eax, [ebp + 0x24]
push eax
push 0x40
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x121c936
cmp dword [ebp + 0x1c], ebx
jb 0x121c90c
mov eax, dword [ebp + 8]
push eax
call fcn.0123e60d
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], edi
mov word [ebp + 8], cx
cmp dword [ebp + 0x38], ebx
jb 0x121c92d
mov edx, dword [ebp + 0x24]
push edx
call fcn.0123e60d
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x121c8fb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
cmp eax, edi
je 0x121c8fb
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 4], esi
cmp esi, edi
jne 0x121c97a
lea ecx, [ebp + 8]
call fcn.011f1500
lea ecx, [ebp + 0x24]
call fcn.011f1500
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], ebx
jae 0x121c985
lea eax, [ebp + 8]
push edi
push 0x80
push 2
push edi
push edi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push esi
push edi
push 4
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
cmp esi, edi
je 0x121c961
push edi
push edi
push edi
push 2
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [ebp - 8]
mov edi, eax
mov eax, dword [ebp - 4]
push eax
push ecx
push edi
call fcn.012440f0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
lea ecx, [ebp + 8]
call fcn.011f1500
lea ecx, [ebp + 0x24]
call fcn.011f1500
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x121cc40
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1286d50]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x121cc88
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x121cc99
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0123e488
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
mov ecx, dword [ebp - 0x228]
cmp ecx, dword [ebx + 0x348]
je 0x121ccd5
lea edx, [ebp - 0x230]
push edx
push esi
call edi
test eax, eax
jne 0x121cca0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0123e488
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
pop edi
xor ecx, ebp
pop esi
call fcn.0123e488
mov esp, ebp
pop ebp
ret
Function at 0x121d3d0
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1286d50]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push 1
push edi
push edi
mov esi, ecx
mov dword [ebp - 0x24], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x28], ebx
test ebx, ebx
jne 0x121d416
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0123e488
mov esp, ebp
pop ebp
ret
push 0x24
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x121d431
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x121d501
mov esi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x20]
push eax
push edi
call esi
cmp dword [ebp - 0x1c], 4
jne 0x121d4f7
lea ecx, [ebp - 0x20]
push ecx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x121d46a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x426
jne 0x121d4fa
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x2c], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea edx, [ebp - 0x20]
push edx
push edi
call esi
test eax, eax
je 0x121d4e8
mov ebx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x1c]
cmp ecx, 1
je 0x121d4e4
cmp dword [ebp - 0x2c], 0
je 0x121d4af
mov esi, dword [ebp - 0xc]
mov ebx, ecx
mov dword [ebp - 0x2c], 0
jmp 0x121d4c3
cmp ebx, ecx
je 0x121d4ba
mov esi, dword [ebp - 0xc]
mov ebx, ecx
jmp 0x121d4c3
mov eax, dword [ebp - 0xc]
cmp eax, esi
jbe 0x121d4e8
mov esi, eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x20]
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x121d493
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x121d4f7
test eax, eax
jne 0x121d4f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x121d4f7
mov dword [ebp - 0x24], 1
mov ebx, dword [ebp - 0x28]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x24]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0123e488
mov esp, ebp
pop ebp
ret

Function at 0x121d520
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, 8
cmp dword [ebp + 0x1c], esi
jae 0x121d534
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x121d556
cmp dword [ebp + 0x1c], esi
jb 0x121d551
mov eax, dword [ebp + 8]
push eax
call fcn.0123e60d
add esp, 4
xor eax, eax
pop esi
pop ebp
ret
test al, 4
jne 0x121d570
mov ecx, dword [ebp + 8]
cmp dword [ebp + 0x1c], esi
jae 0x121d565
lea ecx, [ebp + 8]
and eax, 0xfffffffd
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp + 0x1c], esi
jb 0x121d581
mov ecx, dword [ebp + 8]
push ecx
call fcn.0123e60d
add esp, 4
mov eax, 1
pop esi
pop ebp
ret
Function at 0x121fac0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x125bd12
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1286d50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [edi], 0x127d370
mov dword [edi + 0x10], 0x127d380
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 0x18]
push esi
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x10], 1
call fcn.012210e0
mov dword [ebp - 4], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
call fcn.01221b50
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], bl
mov byte [esi + 0x49], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x128df00]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ebx
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
jb 0x121fb98
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.01221190
test eax, eax
jne 0x121fbc1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 0xc]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x121fbba
or eax, 4
push ebx
push eax
call fcn.011f2d10
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1221360
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x125ae08
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x1286d50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x1221480
cmp byte [edi + 0x49], bl
je 0x1221480
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x1221474
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x12213d4
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x12213ec
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x1221415
dec eax
je 0x1221419
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x122146f
jmp 0x122147b
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x1221429
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x1221452
cmp ebx, 0x10
jae 0x1221438
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.012409aa
add esp, 0x10
cmp esi, eax
jne 0x122146c
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x1221478
test esi, esi
jne 0x12213e0
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.012002f0
jmp 0x12213da
lea ecx, [ebp - 0x2c]
call fcn.011fe0d0
xor al, al
jmp 0x1221482
lea ecx, [ebp - 0x2c]
call fcn.011fe0d0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0123e488
mov esp, ebp
pop ebp
ret
Function at 0x1221b50
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x125aa9b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1286d50]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0122df02
push 4
mov dword [ebp - 4], 0
call fcn.0123e9d2
mov edi, eax
add esp, 4
test edi, edi
je 0x1221bcc
call fcn.0122a1b1
mov dword [edi], eax
call fcn.0122a06b
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.01229fa0
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x1221bc2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.01229fc8
jmp 0x1221bce
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x123e488
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1286d50]
jne 0x123e492
repz ret
jmp fcn.0124882e

Function at 0x1240170
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x1240197
call fcn.01244c03
mov dword [eax], esi
call fcn.01244bf0
push 0x16
pop esi
mov dword [eax], esi
call fcn.01248cf5
mov eax, esi
jmp 0x12401ec
test dword [ebp + 0xc], 0xfffffff9
jne 0x124017d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x12401c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01244c16
pop ecx
call fcn.01244bf0
mov eax, dword [eax]
jmp 0x12401ec
test al, 0x10
jne 0x12401ea
test al, 1
je 0x12401ea
test byte [ebp + 0xc], 2
je 0x12401ea
call fcn.01244c03
mov dword [eax], 5
call fcn.01244bf0
mov dword [eax], 0xd
jmp 0x12401bb
xor eax, eax
pop esi
pop ebp
ret

Function at 0x1250225
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x125024c
call fcn.01244c03
mov dword [eax], esi
call fcn.01244bf0
push 0x16
pop esi
mov dword [eax], esi
call fcn.01248cf5
mov eax, esi
jmp 0x12502a1
test dword [ebp + 0xc], 0xfffffff9
jne 0x1250232
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1250279
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01244c16
pop ecx
call fcn.01244bf0
mov eax, dword [eax]
jmp 0x12502a1
test al, 0x10
jne 0x125029f
test al, 1
je 0x125029f
test byte [ebp + 0xc], 2
je 0x125029f
call fcn.01244c03
mov dword [eax], 5
call fcn.01244bf0
mov dword [eax], 0xd
jmp 0x1250270
xor eax, eax
pop esi
pop ebp
ret
Function at 0x1255b57
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1286d50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0124903e
and dword [ebp - 0x14], 0
cmp dword [0x128beb4], 0
mov dword [ebp - 0x18], eax
jne 0x1255c0a
push 0x1262b30
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1255cb2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1262b24
push ebx
call edi
test eax, eax
je 0x1255cb2
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x1262b14
push ebx
mov dword [0x128beb4], eax
call edi
push eax
call esi
push 0x1262b00
push ebx
mov dword [0x128beb8], eax
call edi
push eax
call esi
push 0x1262ae4
push ebx
mov dword [0x128bebc], eax
call edi
push eax
call esi
mov dword [0x128bec4], eax
test eax, eax
je 0x1255c0a
push 0x1262acc
push ebx
call edi
push eax
call esi
mov dword [0x128bec0], eax
mov eax, dword [0x128bec0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1255c63
cmp dword [0x128bec4], ecx
je 0x1255c63
push eax
call esi
push dword [0x128bec4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1255c63
test ebx, ebx
je 0x1255c63
call edi
test eax, eax
je 0x1255c5a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1255c5a
test byte [ebp - 8], 1
jne 0x1255c63
or dword [ebp + 0x10], 0x200000
jmp 0x1255c96
mov eax, dword [0x128beb8]
cmp eax, dword [ebp - 0x18]
je 0x1255c96
push eax
call esi
test eax, eax
je 0x1255c96
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1255c96
mov eax, dword [0x128bebc]
cmp eax, dword [ebp - 0x18]
je 0x1255c96
push eax
call esi
test eax, eax
je 0x1255c96
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x128beb4]
call esi
test eax, eax
je 0x1255cb2
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1255cb4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0123e488
leave
ret