joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42b280
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x50b384]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x3c]
push str.ReaderLogTransport2.exe
push eax
xor bl, bl
call fcn.00470ca0
add esp, 8
cmp dword [ebp - 0x28], 0
je 0x42b379
cmp dword [ebp - 0x24], 8
mov eax, dword [ebp - 0x38]
jae 0x42b2c2
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42b379
lea ecx, [ebp - 0x3c]
push ecx
push edi
call fcn.004386d0
add esp, 8
test al, al
jne 0x42b2f5
cmp dword [ebp - 0x24], 8
jb 0x42b38b
mov edx, dword [ebp - 0x38]
push edx
jmp 0x42b383
push 1
xor eax, eax
mov edi, 7
push 0x4d3620
lea ecx, [ebp - 0x20]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], ax
call fcn.00402933
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x20]
call fcn.0040288a
push 1
push 0x4d3620
lea ecx, [ebp - 0x20]
call fcn.00402933
lea edx, [ebp - 0x20]
push edx
push esi
call fcn.004386d0
add esp, 8
lea esi, [edi + 1]
test al, al
jne 0x42b375
cmp dword [ebp - 8], esi
jb 0x42b35d
mov eax, dword [ebp - 0x1c]
push eax
call fcn.0048e976
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x24], esi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], cx
jmp 0x42b2e6
mov bl, 1
jmp 0x42b34c
cmp dword [ebp - 0x24], 8
jb 0x42b38b
mov eax, dword [ebp - 0x38]
push eax
call fcn.0048e976
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0048ebcd
mov esp, ebp
pop ebp
ret
Function at 0x42b630
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x50b384]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0
push edi
mov edi, dword [ebp + 0xc]
je 0x42b6d0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0048f0d0
add esp, 0xc
cmp dword [esi + 0x18], 8
jb 0x42b672
mov esi, dword [esi + 4]
jmp 0x42b675
add esi, 4
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x42b6d0
cmp eax, 0x104
ja 0x42b6d0
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42b6a0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
mov ecx, edi
call fcn.00401ce4
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ebcd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor al, al
pop esi
call fcn.0048ebcd
mov esp, ebp
pop ebp
ret
Function at 0x42cb10
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x50b384]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
xor al, al
cmp dword [esi + 0x14], 0
push edi
mov edi, dword [ebp + 0xc]
je 0x42cc00
mov ecx, esi
call fcn.0040110c
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42cc11
mov ecx, esi
call fcn.0040110c
push eax
call dword [sym.imp.SHELL32.dll_PathIsExe]
test eax, eax
je 0x42cc11
push 0
push str.ime_shared
lea eax, [ebp - 0x3c]
push 0x25
push eax
call fcn.00470ba0
push 0
push str.ime_shared
lea ecx, [ebp - 0x20]
push 0x24
push ecx
call fcn.00470ba0
push ebx
push edi
lea edx, [ebp - 0x3c]
push esi
push edx
call fcn.0042c7d0
add esp, 0x30
test al, al
jne 0x42cbc1
push ebx
push edi
lea eax, [ebp - 0x20]
push esi
push eax
call fcn.0042c7d0
add esp, 0x10
test al, al
jne 0x42cbc1
push ebx
push edi
push esi
call fcn.0042ca20
add esp, 0xc
test al, al
jne 0x42cbc1
xor bl, bl
jmp 0x42cbc3
mov bl, 1
mov esi, 8
cmp dword [ebp - 8], esi
jb 0x42cbd9
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0048e976
add esp, 4
xor edx, edx
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], dx
cmp dword [ebp - 0x24], esi
jb 0x42cbfe
mov eax, dword [ebp - 0x38]
push eax
call fcn.0048e976
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ebcd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0048ebcd
mov esp, ebp
pop ebp
ret
Function at 0x430350
Capabilities:
Create process on windows
Self delete

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov dword [ebp - 8], 0
call fcn.00446db0
cmp eax, 4
jl 0x430483
push esi
push 0x4cec18
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x430482
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push str.InitializeProcThreadAttributeList
push esi
call ebx
mov edi, eax
test edi, edi
je 0x430480
push str.UpdateProcThreadAttribute
push esi
call ebx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x430480
push str.DeleteProcThreadAttributeList
push esi
call ebx
test eax, eax
je 0x430480
lea eax, [ebp - 4]
push eax
push 0
push 1
push 0
mov dword [ebp - 4], 0
call edi
mov eax, dword [ebp - 4]
test eax, eax
jbe 0x430480
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x430480
lea ecx, [ebp - 4]
push ecx
push 0
push 1
push ebx
call edi
test eax, eax
je 0x430480
push 0
push 0
push 4
lea edx, [ebp + 0xc]
push edx
push 0x20000
push 0
push ebx
call dword [ebp - 0xc]
test eax, eax
je 0x430480
push 0x44
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.0048f0d0
mov esi, dword [ebp + 0x30]
mov eax, dword [ebp + 0x2c]
add esp, 0xc
mov ecx, 0x11
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x34]
push ecx
mov ecx, dword [ebp + 0x28]
lea edx, [ebp - 0x54]
push edx
mov edx, dword [ebp + 0x24]
push eax
mov eax, dword [ebp + 0x20]
push ecx
mov ecx, dword [ebp + 0x1c]
or edx, 0x1080000
push edx
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
mov dword [ebp - 0x54], 0x48
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov dword [ebp - 8], eax
pop edi
pop ebx
pop esi
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x430720
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4fddb0
push 0x490c10
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x50b384]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x19], 0
cmp dword [0x50dd6c], 0
je 0x4308f1
cmp dword [0x50dd70], 0
je 0x4308f1
cmp dword [ebp + 0x14], 0
je 0x4308f1
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4308f1
cmp byte [eax], 0
je 0x4308f1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4308f1
cmp byte [eax], 0
je 0x4308f1
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4308f1
cmp dword [ebp + 0x18], 0
je 0x4308f1
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x4308f1
push 0
push 0x40
push ebx
call fcn.0041d0b0
add esp, 0xc
test al, al
je 0x4308f1
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x4308f1
mov edi, dword [ebx + 0x3c]
add edi, ebx
push 0
push 0xf8
push edi
call fcn.0041d0b0
add esp, 0xc
test al, al
je 0x4308f1
cmp dword [edi], 0x4550
jne 0x4308f1
mov esi, dword [edi + 0x80]
add esi, ebx
cmp esi, edi
jne 0x430833
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
push edi
call dword [0x50dd70]
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x430869
add eax, ebx
mov ecx, dword [ebp - 0x24]
push ecx
push edi
push eax
call dword [0x50dd6c]
add esp, 0xc
test eax, eax
je 0x430869
add esi, 0x14
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x43084a
cmp dword [esi + 0xc], 0
je 0x43081f
mov esi, dword [esi + 0x10]
add esi, ebx
mov dword [ebp - 0x24], esi
mov eax, dword [esi]
test eax, eax
je 0x4308f1
cmp eax, dword [ebp + 0x18]
jne 0x430906
mov dword [ebp - 0x20], 0
lea edx, [ebp - 0x20]
push edx
push 0x80
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4308f1
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov byte [ebp - 0x19], 1
mov dword [ebp - 4], 0xfffffffe
jmp 0x4308d9
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov al, byte [ebp - 0x19]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
add esi, 4
jmp 0x430874
Function at 0x4309e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
xor esi, esi
call fcn.00446db0
cmp eax, 4
jge 0x430a77
push 0x40
lea eax, [ebp - 0x44]
push esi
push eax
call fcn.0048f0d0
add esp, 0xc
push 0x50e1ec
mov dword [ebp - 0x48], 0x44
mov byte [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edx, dword [ebp + 0xc]
cmp eax, 1
sete cl
mov byte [ebp - 3], cl
push edx
lea ecx, [ebp - 4]
call fcn.00430910
test al, al
je 0x430a6f
mov eax, dword [ebp + 0x34]
mov edx, dword [ebp + 0x2c]
push eax
mov eax, dword [ebp + 0x28]
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [ebp + 0x24]
push edx
mov edx, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x1c]
or ecx, 0x1080000
push ecx
mov ecx, dword [ebp + 0x18]
push edx
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
lea ecx, [ebp - 4]
call fcn.00430980
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x430cd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x24]
push esi
mov esi, dword [ebp + 0x38]
push esi
test eax, eax
je 0x430d13
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x30]
push ecx
mov ecx, dword [ebp + 0x2c]
push edx
mov edx, dword [ebp + 0x28]
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
call fcn.00430b20
add esp, 0x2c
test eax, eax
jne 0x430d42
pop esi
pop ebp
ret
mov edx, dword [ebp + 0x34]
mov eax, dword [ebp + 0x30]
mov ecx, dword [ebp + 0x2c]
push edx
mov edx, dword [ebp + 0x28]
push eax
mov eax, dword [ebp + 0x20]
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [ebp + 0x18]
push 0
push eax
mov eax, dword [ebp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x430d42
pop esi
pop ebp
ret
cmp dword [ebp + 0x10], 0
mov eax, 0x101c01
mov dword [ebp + 0x24], 0x100c43
je 0x430d5c
mov eax, 0x1fffff
mov dword [ebp + 0x24], eax
mov ecx, dword [esi]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
mov edi, dword [ebp + 0xc]
push 1
push 0
push eax
push esi
push edi
push ecx
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x430d8f
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
xor eax, eax
pop esi
pop ebp
ret
mov ecx, dword [ebp + 0x24]
mov edx, dword [esi + 4]
push 1
push 0
push ecx
lea eax, [esi + 4]
push eax
push edi
push edx
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
neg eax
pop edi
sbb eax, eax
pop ebx
neg eax
pop esi
pop ebp
ret
Function at 0x432060
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b0
mov eax, dword [0x50b384]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push 0x118
lea eax, [ebp - 0x11c]
push ebx
push eax
mov dword [ebp - 0x124], ebx
call fcn.0048f0d0
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4320fd
cmp byte [0x50e244], bl
je 0x4320dc
push 3
push 0x3e
push str.._src_sandbox_utils.cc
lea ecx, [ebp - 0x1b0]
lea ebx, [eax + 1]
call fcn.00444980
add eax, 4
push str.Check_failed:_false.
push eax
call fcn.0040afbf
add esp, 8
test bl, 1
je 0x432131
lea ecx, [ebp - 0x1b0]
call fcn.00444620
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ebcd
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jbe 0x432119
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ebcd
mov esp, ebp
pop ebp
ret
jne 0x432131
mov eax, dword [ebp - 0x118]
cmp eax, 1
ja 0x432108
test eax, eax
je 0x432131
cmp word [ebp - 0xc], 2
jae 0x432108
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop ebx
call fcn.0048ebcd
mov esp, ebp
pop ebp
ret
Function at 0x436d00
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x50b384]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x210], ebx
mov eax, dword [esi]
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 1
je 0x436d89
cmp byte [0x50e244], bl
je 0x436d65
push 3
push 0x113
push str.._srcWow64.cc
lea ecx, [ebp - 0x29c]
mov ebx, 1
call fcn.00444980
add eax, 4
push str.Check_failed:_false.
push eax
call fcn.0040afbf
add esp, 8
test bl, 1
je 0x436d75
lea ecx, [ebp - 0x29c]
call fcn.00444620
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ebcd
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [esi + 8]
push edi
mov edi, dword [ebp + 8]
push edi
push 0
lea ecx, [ebp - 0x20c]
push ecx
push 2
mov dword [ebp - 0x20c], edx
mov dword [ebp - 0x208], eax
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
je 0x436e16
lea esp, [esp]
cmp eax, 0x80
je 0x436e16
cmp eax, 0x81
je 0x436e16
test eax, eax
je 0x436e16
mov edx, dword [esi]
mov eax, dword [edx]
lea ecx, [ebp - 0x210]
push ecx
mov ecx, dword [esi + 4]
push 0x200
lea edx, [ebp - 0x204]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x436e2b
cmp dword [ebp - 0x210], 0x200
jne 0x436e2b
mov edx, dword [esi]
mov eax, dword [edx + 4]
push eax
mov bl, 1
call dword [sym.imp.KERNEL32.dll_SuspendThread]
test eax, eax
je 0x436e3b
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ebcd
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 8]
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x436e16
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x436e16
test bl, bl
jne 0x436e7f
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, dword [esi + 8]
push edi
push 0
lea edx, [ebp - 0x20c]
push edx
push 2
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x208], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
jne 0x436dc0
jmp 0x436e16
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0048ebcd
mov esp, ebp
pop ebp
ret 4
Function at 0x438c20
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x50b384]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x214]
push ecx
xor ebx, ebx
push esi
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x438d13
cmp eax, ebx
jne 0x438c70
cmp dword [ebp - 0x214], ebx
je 0x438d13
push ebx
push 1
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
cmp esi, ebx
je 0x438d13
push edi
push 1
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
je 0x438d0b
push 0x208
lea eax, [ebp - 0x20e]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x210], dx
call fcn.0048f0d0
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.PSAPI.DLL_GetMappedFileNameW
test eax, eax
je 0x438d04
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x438ce0
mov ecx, dword [ebp - 0x218]
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x210]
push edx
call fcn.00401ce4
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0048ebcd
mov esp, ebp
pop ebp
ret
Function at 0x4390e0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x50b384]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x250], edi
mov dword [ebp - 0x254], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x439125
pop edi
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ebcd
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x24c]
push eax
push 0x20019
xor ebx, ebx
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x43915c
xor ecx, ecx
cmp eax, 2
pop ebx
sete cl
pop edi
mov al, cl
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ebcd
mov esp, ebp
pop ebp
ret
push esi
lea ecx, [ebp - 0x244]
call fcn.00401f43
mov eax, dword [ebp - 0x230]
lea esi, [eax - 1]
cmp eax, esi
ja 0x43917a
call fcn.0048d917
cmp dword [ebp - 0x22c], 8
mov eax, dword [ebp - 0x240]
jae 0x43918f
lea eax, [ebp - 0x240]
cmp word [eax + esi*2], 0x5c
je 0x4391a8
push 1
push 0x4d0ef8
lea ecx, [ebp - 0x244]
call fcn.00402933
mov ecx, dword [ebp - 0x24c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x248]
push edx
lea eax, [ebp - 0x20c]
push eax
push ebx
push ecx
mov dword [ebp - 0x248], 0x104
call edi
test eax, eax
jne 0x4392b7
lea esp, [esp]
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x244]
xor edx, edx
push eax
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x210], 7
mov dword [ebp - 0x214], ebx
mov word [ebp - 0x224], dx
call fcn.00401c51
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x439217
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x228]
call fcn.00402933
cmp dword [ebp - 0x210], 8
mov eax, dword [ebp - 0x224]
jae 0x43924e
lea eax, [ebp - 0x224]
mov edx, dword [ebp - 0x250]
push eax
push edx
call fcn.004390e0
add esp, 8
test al, al
je 0x4392ac
mov edx, dword [ebp - 0x24c]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push ebx
push edx
mov dword [ebp - 0x248], 0x104
call edi
cmp dword [ebp - 0x210], 8
mov esi, eax
jb 0x4392a2
mov eax, dword [ebp - 0x224]
push eax
call fcn.0048e976
add esp, 4
cmp esi, ebx
je 0x4391e0
jmp 0x4392b7
lea ecx, [ebp - 0x228]
call fcn.0040199c
mov ecx, dword [ebp - 0x24c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x254]
mov eax, dword [ebp - 0x250]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
sete bl
cmp dword [ebp - 0x22c], 8
jb 0x4392f5
mov ecx, dword [ebp - 0x240]
push ecx
call fcn.0048e976
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.0048ebcd
mov esp, ebp
pop ebp
ret
Function at 0x440110
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
push ebx
xor ebx, ebx
mov dword [ebp - 0x20], ebx
cmp byte [0x50e244], bl
je 0x44015c
cmp dword [0x50e22c], ebx
je 0x44015c
push 3
push 0xdc
push str..command_line.cc
lea ecx, [ebp - 0xac]
mov ebx, 1
call fcn.00444980
add eax, 4
push str.Check_failed:_current_process_commandline___NULL.
push eax
call fcn.0040afbf
add esp, 8
test bl, 1
pop ebx
je 0x44016d
lea ecx, [ebp - 0xac]
call fcn.00444620
mov ecx, dword [0x50e22c]
push esi
mov esi, ecx
test ecx, ecx
je 0x440188
call fcn.0043fbc0
push esi
call fcn.0048e976
add esp, 4
push 0x54
call fcn.0048eb1c
add esp, 4
test eax, eax
je 0x4401a4
mov ecx, eax
call fcn.0043fe30
mov dword [0x50e22c], eax
jmp 0x4401ae
mov dword [0x50e22c], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
mov word [ebp - 0x18], cx
mov ecx, eax
mov dword [ebp - 4], 7
mov dword [ebp - 8], 0
lea esi, [ecx + 2]
lea ecx, [ecx]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4401d0
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401ce4
mov ecx, dword [0x50e22c]
lea edx, [ebp - 0x1c]
push edx
call fcn.0043feb0
cmp dword [ebp - 4], 8
pop esi
jb 0x44020b
mov eax, dword [ebp - 0x18]
push eax
call fcn.0048e976
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x440d60
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x109c
call fcn.00491300
mov eax, dword [0x50b384]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x1008], ebx
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x100c], eax
cmp byte [0x50e244], bl
je 0x440dc7
test eax, eax
jne 0x440dc7
push 3
push pe_nt_image_headers32
push str.._registry.cc
lea ecx, [ebp - 0x109c]
lea ebx, [eax + 1]
call fcn.00444980
add eax, 4
push str.Check_failed:_value.
push eax
call fcn.0040afbf
add esp, 8
test bl, 1
je 0x440dd7
lea ecx, [ebp - 0x109c]
call fcn.00444620
mov eax, dword [esi]
mov dword [ebp - 0x1010], 1
mov dword [ebp - 0x1008], 0x800
test eax, eax
je 0x440ec2
lea ecx, [ebp - 0x1008]
push ecx
lea edx, [ebp - 0x804]
push edx
lea ecx, [ebp - 0x1010]
push ecx
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
test al, al
je 0x440ec2
mov eax, dword [ebp - 0x1010]
cmp eax, 1
jne 0x440e6c
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x440e35
mov ecx, dword [ebp - 0x100c]
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x804]
push edx
call fcn.00401ce4
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ebcd
mov esp, ebp
pop ebp
ret 8
cmp eax, 2
jne 0x440ec2
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea ecx, [ebp - 0x804]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1008], eax
test eax, eax
je 0x440ec2
cmp eax, 0x400
ja 0x440ec2
mov ecx, dword [ebp - 0x100c]
lea edx, [ebp - 0x1004]
push edx
call fcn.004029ff
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ebcd
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0048ebcd
mov esp, ebp
pop ebp
ret 8

Function at 0x440ee0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
cmp byte [0x50e244], bl
je 0x440f2d
test edi, edi
jne 0x440f2d
push 3
push 0x124
push str.._registry.cc
lea ecx, [ebp - 0x94]
lea ebx, [edi + 1]
call fcn.00444980
add eax, 4
push str.Check_failed:_value.
push eax
call fcn.0040afbf
add esp, 8
test bl, 1
je 0x440f3d
lea ecx, [ebp - 0x94]
call fcn.00444620
mov eax, dword [esi]
mov ebx, 4
mov dword [ebp + 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 0
test eax, eax
je 0x440f98
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
test al, al
je 0x440f98
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x440f83
cmp eax, 3
jne 0x440f98
cmp dword [ebp - 8], ebx
jne 0x440f98
mov eax, dword [ebp - 4]
mov dword [edi], eax
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8