joyce8/EMBER2024-capa huggingface dataset:
Function at 0x441bf4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x441c0b
add esp, 0xfffffff0
call fcn.00403090
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00413940
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40d7ec]
call fcn.00402d60
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x40d7ec]
call fcn.00402d60
mov dword [ebx + 0x90], eax
xor eax, eax
mov dword [ebx + 0x48], eax
xor eax, eax
mov dword [ebx + 0x6c], eax
mov dword [ebx + 0x44], 0x80000018
mov dword [ebx + 0x60], 0x1f4
mov byte [ebx + 0x64], 1
xor eax, eax
mov dword [ebx + 0x68], eax
mov dword [ebx + 0x5c], 0x9c4
mov byte [ebx + 0x70], 0
mov byte [ebx + 0x85], 1
mov dl, 1
mov eax, dword [0x4156cc]
call fcn.0041c9ac
mov esi, eax
mov dword [ebx + 0x80], esi
push 0x441d7c
mov eax, dword [0x465588]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041cd50
mov eax, dword [ebx + 0x80]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x4436a8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x465588]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040b3d0
test eax, eax
je 0x441cfb
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00407f38
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040b3f8
test eax, eax
je 0x441d0f
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x74]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403b70
mov eax, dword [0x465454]
cmp byte [eax], 0
jne 0x441d40
mov eax, ebx
call fcn.00441e68
mov byte [ebx + 0x41], 1
mov byte [ebx + 0x42], 1
mov byte [ebx + 0x43], 1
mov byte [ebx + 0x86], 1
xor eax, eax
mov dword [ebx + 0x88], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x441d72
call fcn.004030e8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4420c4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4667a8]
cmp dword [eax + 0x24], 0
je 0x442154
cmp dword [ebx + 0x7c], 0
jne 0x442151
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x442058
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x78]
cmp dword [eax + 8], 0
je 0x442151
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x442120
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x78]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x442151
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x78]
call fcn.0040ee10
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44212c
inc dword [ebx + 0x7c]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x442aa4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x8c], 0
je 0x442ad9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403a28
jmp 0x442ae3
mov eax, esi
mov edx, dword [ebx + 0x74]
call fcn.004039dc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4439d8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x443a10
mov eax, esi
call fcn.0042ce14
test al, al
je 0x443a10
mov eax, dword [ebx + 0x6c]
call fcn.0042c9ec
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x443a10
push 0
mov eax, dword [ebx + 0x6c]
call fcn.0042c9ec
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x44fcc0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x44fcee
mov eax, ebx
call fcn.00450764
cmp dword [ebx + 0x3c], 0
je 0x44fce7
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x44fd5f
mov edx, dword [ebx + 0x1a6]
cmp dword [edx + 0x10], 0
je 0x44fd51
cmp dword [ebx + 8], 0
je 0x44fd10
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1a6]
call dword [edx]
test eax, eax
jne 0x44fd22
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x44fd51
cmp dword [ebx + 8], 0
je 0x44fd03
cmp eax, 3
je 0x44fd35
dec eax
jne 0x44fd03
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x44fd03
mov edx, dword [ebx + 0x132]
add dword [eax + 8], edx
jmp 0x44fd03
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x44fd7d
cmp dword [ebx + 0x10], 0xcc
je 0x44fd7d
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0044fd88
pop ebx
ret

Function at 0x461224
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403d74
xor eax, eax
push ebp
push 0x4612c3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00403e94
push 0
push 0
push 3
push 0
push 0
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00403d84
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4612ad
push 0
push ebx
call sub.kernel32.dll_GetFileSize_1
mov edi, eax
mov eax, esi
mov edx, edi
call fcn.00403e94
push 0
lea eax, [ebp - 8]
push eax
push edi
mov eax, dword [esi]
call fcn.00403d84
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
mov eax, esi
mov edx, dword [ebp - 8]
call fcn.00403e94
push ebx
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4612ca
lea eax, [ebp - 4]
call fcn.00403944
ret
Function at 0x4612d4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x461468
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40daec]
call fcn.00402d60
mov dword [0x466890], eax
mov eax, dword [0x466890]
mov byte [eax + 0x19], 1
xor edx, edx
mov eax, dword [0x466890]
call fcn.00410afc
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.004028e8
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00407da8
lea eax, [ebp - 0x14]
mov edx, 0x461480
call fcn.00403bc8
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 4]
call fcn.00461224
mov eax, dword [ebp - 4]
call fcn.00403d84
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00403bc0
mov edi, eax
sar edi, 1
jns 0x46135f
adc edi, 0
xor esi, esi
cmp edi, esi
jle 0x461377
mov ax, word [ebx]
xor ax, 0xbeef
mov word [ebx], ax
add ebx, 2
inc esi
cmp edi, esi
jg 0x461365
mov eax, dword [ebp - 4]
call fcn.00403d84
mov ebx, eax
xor esi, esi
lea eax, [ebp - 0xc]
call fcn.00403f10
mov dword [ebp - 0x10], 1
cmp edi, esi
jle 0x461421
cmp word [ebx], 0xd
jne 0x4613f9
cmp dword [ebp - 0x10], 0
je 0x4613ad
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x4613ef
mov eax, dword [ebp - 0xc]
call fcn.00404048
mov edx, eax
add edx, edx
lea eax, [ebp - 8]
call fcn.00403e94
mov eax, dword [ebp - 8]
call fcn.00403bc0
push eax
mov eax, dword [ebp - 8]
call fcn.00403d84
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404038
pop edx
pop ecx
call fcn.00402830
mov edx, dword [ebp - 8]
mov eax, dword [0x466890]
mov ecx, dword [eax]
call dword [ecx + 0x34]
lea eax, [ebp - 0xc]
call fcn.00403f10
jmp 0x461415
cmp word [ebx], 0xa
je 0x461415
lea eax, [ebp - 0x1c]
mov dx, word [ebx]
call fcn.00404018
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
call fcn.00404054
add ebx, 2
inc esi
cmp edi, esi
jg 0x46139a
mov eax, dword [0x466890]
mov edx, dword [eax]
call dword [edx + 0x14]
mov dword [0x466894], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46146f
lea eax, [ebp - 0x1c]
call fcn.00403f10
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00403968
lea eax, [ebp - 0xc]
call fcn.00403f10
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403968
ret
Function at 0x461b24
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x461bf9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403944
lea eax, [ebp - 4]
mov edx, 0x104
call fcn.00403e94
mov eax, dword [ebp - 4]
call fcn.00403bc0
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00403d84
push eax
push 0x461c08
push 0x80000000
call sub.advapi32.dll_RegQueryValueA
test eax, eax
jne 0x461be3
mov eax, dword [ebp - 4]
call fcn.00403d84
push eax
call sub.kernel32.dll_lstrlenA_1
mov edx, eax
lea eax, [ebp - 4]
call fcn.00403e94
mov eax, dword [ebp - 4]
cmp byte [eax], 0x22
jne 0x461be3
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00403e04
mov edx, dword [ebp - 4]
mov eax, 0x461c44
call fcn.00403e4c
mov ebx, eax
test ebx, ebx
jle 0x461be3
mov eax, dword [ebp - 4]
call fcn.00403bc0
mov ecx, eax
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00403e04
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.00407da8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461c00
lea eax, [ebp - 4]
call fcn.00403944
ret

Function at 0x461c48
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc9c
push ebx
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403d74
xor eax, eax
push ebp
push 0x461d36
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20d]
mov edx, dword [ebp - 4]
call fcn.00407fc0
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.004027a0
lea eax, [ebp - 0x30d]
mov edx, dword [ebp - 0xc]
call fcn.00407fc0
lea eax, [ebp - 0x354]
xor ecx, ecx
mov edx, 0x44
call fcn.00402aa8
mov dword [ebp - 0x354], 0x44
mov dword [ebp - 0x328], 1
mov word [ebp - 0x324], bx
lea eax, [ebp - 0x364]
push eax
lea eax, [ebp - 0x354]
push eax
push 0
push 0
push 0x30
push 0
push 0
push 0
lea eax, [ebp - 0x20d]
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x461cfa
mov dword [ebp - 8], 0xffffffff
jmp 0x461d18
push 0xffffffffffffffff
mov eax, dword [ebp - 0x364]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x364]
push eax
call sub.kernel32.dll_GetExitCodeProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461d3d
lea eax, [ebp - 0xc]
call fcn.00403944
lea eax, [ebp - 4]
call fcn.00403944
ret
Function at 0x461ec0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x462013
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
call fcn.00403944
lea eax, [ebp - 8]
mov edx, 0x104
call fcn.00403e94
push 0x104
mov eax, dword [ebp - 8]
call fcn.00403d84
push eax
push 0x462024
call sub.kernel32.dll_GetEnvironmentVariableA
mov eax, dword [ebp - 8]
call fcn.00403d84
push eax
call sub.kernel32.dll_lstrlenA_1
mov edx, eax
lea eax, [ebp - 8]
call fcn.00403e94
push dword [ebp - 8]
push 0x462038
push 0x46208c
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403c80
mov dl, 1
mov eax, dword [0x40daec]
call fcn.00402d60
mov esi, eax
mov edx, dword [ebp - 8]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x58]
xor ebx, ebx
jmp 0x461f7c
lea ecx, [ebp - 0x10]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov eax, 0x4620a4
call fcn.00403e4c
test eax, eax
jg 0x461f87
inc ebx
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
cmp ebx, eax
jl 0x461f5e
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
cmp ebx, eax
jge 0x461ff5
mov byte [ebp - 9], 0
jmp 0x461fd9
lea ecx, [ebp - 0x10]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov eax, 0x4620d0
call fcn.00403e4c
test eax, eax
jle 0x461fbb
mov byte [ebp - 9], 1
jmp 0x461fe4
lea ecx, [ebp - 0x10]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov eax, 0x4620f4
call fcn.00403e4c
test eax, eax
jg 0x461fe4
inc ebx
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
cmp ebx, eax
jl 0x461f98
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
cmp ebx, eax
jge 0x461ff5
mov al, byte [ebp - 9]
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46201a
lea eax, [ebp - 0x10]
call fcn.00403944
lea eax, [ebp - 8]
call fcn.00403944
ret
Function at 0x4620fc
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x46228b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
lea eax, [ebp - 8]
call fcn.00403944
lea eax, [ebp - 8]
mov edx, 0x104
call fcn.00403e94
push 0x104
mov eax, dword [ebp - 8]
call fcn.00403d84
push eax
push 0x46229c
call sub.kernel32.dll_GetEnvironmentVariableA
mov eax, dword [ebp - 8]
call fcn.00403d84
push eax
call sub.kernel32.dll_lstrlenA_1
mov edx, eax
lea eax, [ebp - 8]
call fcn.00403e94
push dword [ebp - 8]
push 0x4622b0
push 0x462304
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403c80
mov dl, 1
mov eax, dword [0x40daec]
call fcn.00402d60
mov esi, eax
mov edx, dword [ebp - 8]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x58]
lea eax, [ebp - 0x10]
mov ecx, 0x46231c
mov edx, dword [ebp - 8]
call fcn.00403c0c
mov edx, dword [ebp - 0x10]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x64]
xor ebx, ebx
jmp 0x4621d2
lea ecx, [ebp - 0x10]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov eax, 0x462328
call fcn.00403e4c
test eax, eax
jg 0x4621dd
inc ebx
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
cmp ebx, eax
jl 0x4621b4
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
cmp ebx, eax
jge 0x46226d
mov byte [ebp - 9], 0
jmp 0x462233
lea ecx, [ebp - 0x10]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov eax, 0x462354
call fcn.00403e4c
test eax, eax
jle 0x462215
mov byte [ebp - 9], 1
jmp 0x46223e
lea ecx, [ebp - 0x10]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov eax, 0x462378
call fcn.00403e4c
test eax, eax
jg 0x46223e
inc ebx
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
cmp ebx, eax
jl 0x4621f2
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
cmp ebx, eax
jge 0x46226d
cmp byte [ebp - 9], 0
jne 0x46226d
mov eax, ebx
mov ecx, 0x462388
mov edx, eax
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x54]
mov edx, dword [ebp - 8]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462292
lea eax, [ebp - 0x10]
call fcn.00403944
lea eax, [ebp - 8]
call fcn.00403944
ret

Function at 0x46288c
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xffffff6c
xor ebx, ebx
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x4628c1
cmp dword [esp + 0x10], 2
jne 0x4628c1
cmp dword [esp + 4], 5
jb 0x4628bb
cmp dword [esp + 8], 1
jae 0x4628bf
xor ebx, ebx
jmp 0x4628c1
mov bl, 1
mov eax, ebx
add esp, 0x94
pop ebx
ret
Function at 0x4628cc
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebx
add esp, 0xfffffff0
call fcn.00461e48
test al, al
je 0x46299a
mov bl, 1
push esp
push 0xf003f
push 0
push 0x4629a0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x462939
mov dword [esp + 0xc], 4
mov dword [esp + 8], 4
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0x4629bc
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x462952
cmp dword [esp + 4], 1
jne 0x462952
xor ebx, ebx
jmp 0x462952
push esp
push 0x4629a0
push 0x80000001
call sub.advapi32.dll_RegCreateKeyA
test eax, eax
je 0x462952
xor eax, eax
mov dword [esp], eax
cmp dword [esp], 0
je 0x46299a
test bl, bl
je 0x462983
call fcn.00461d48
mov dword [esp + 4], 1
push 4
lea eax, [esp + 8]
push eax
push 4
push 0
push 0x4629bc
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
call fcn.00461ec0
test al, al
jne 0x46299a
call fcn.004620fc
add esp, 0x10
pop ebx
ret
Function at 0x4474f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xcc
lea eax, [esp + 0x2c]
mov dword [esp + 0x34], 0
mov dword [esp + 4], eax
mov edx, ecx
lea eax, [esp + 0x3c]
mov dword [esp + 0x2c], str.What
mov dword [esp + 8], eax
lea eax, [esp + 0x4c]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x5c]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x7c]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x8c]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0xac]
mov dword [esp + 0x24], eax
lea eax, [esp + 0xbc]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x44], 0
push esi
mov esi, 8
test eax, eax
jne 0x447590
movzx ecx, byte [edx]
lea eax, [ecx*8]
sub eax, ecx
mov eax, dword [eax*2 + 0x4e35a0]
movzx ecx, word [edx + 2]
mov dword [esp + 0x40], eax
mov eax, dword [0x4e6574]
mov dword [esp + 0x58], 0
mov dword [esp + 0x50], str.File
mov dword [esp + 0x68], 0
mov eax, dword [eax + ecx*4]
mov dword [esp + 0x60], eax
mov eax, dword [edx + 4]
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0xd4]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x78], 0
mov dword [esp + 0x70], str.Line
mov dword [esp + 0x88], 1
mov dword [esp + 0x84], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x90], str.Message
mov dword [esp + 0xa8], 0
test eax, eax
je 0x447659
cmp word [eax], 0
je 0x447659
mov esi, 0xa
mov dword [esp + 0xb8], 0
mov dword [esp + 0xb0], str.Extra
mov dword [esp + 0xc8], 0
mov dword [esp + 0xc0], eax
mov edx, esi
lea ecx, [esp + 8]
call fcn.0048c310
pop esi
add esp, 0xcc
ret 0xc
Function at 0x49d460
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x250
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x49d4e7
cmp word [esi], 0
je 0x49d4e7
push 4
push str.__
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
add esp, 0xc
mov ecx, esi
test eax, eax
jne 0x49d496
lea ecx, [esi + 8]
mov edx, 0x4d8f30
call fcn.00406570
test eax, eax
je 0x49d4ce
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x49d4e7
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
je 0x49d4c6
mov eax, dword [esp + 8]
mov dword [edi], eax
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test edi, edi
je 0x49d4db
mov dword [edi], eax
cmp eax, 0xffffffff
setne al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x49db50
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push edi
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x1c]
or eax, 1
push eax
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [esp + 0x10]
test eax, eax
jne 0x49dbf0
push esi
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x208
push eax
push edi
push 0
push 0
push dword [esp + 0x20]
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x49dbf0
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x49dbf0
shr ecx, 1
lea eax, [ecx - 1]
mov dword [esp + 0x18], eax
cmp word [edi + eax*2], 0
jne 0x49dbd7
test eax, eax
je 0x49dbf5
cmp word [edi + eax*2 - 2], 0
jne 0x49dbf5
sub eax, 1
mov dword [esp + 0x18], eax
jne 0x49dbc3
pop edi
pop ecx
ret
mov dword [esp + 0x18], ecx
cmp ecx, 0x104
jae 0x49dbf0
xor eax, eax
mov word [edi + ecx*2], ax
mov eax, dword [esp + 0x18]
pop edi
pop ecx
ret
xor eax, eax
mov word [edi], ax
pop edi
pop ecx
ret
Function at 0x401000
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0xc08
push ebx
push ebp
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], edx
push esi
push edi
test ecx, ecx
je 0x40104b
xor esi, esi
lea edi, [esp + 0x818]
mov al, byte [esi + ecx]
test al, al
je 0x40103b
cbw
inc esi
mov word [edi], ax
add edi, 2
cmp esi, 0x1ff
jb 0x401021
jmp 0x401040
xor eax, eax
mov word [edi], ax
lea edx, [esp + 0x818]
mov dword [esp + 0x10], edx
xor edi, edi
xor ebp, ebp
test edx, edx
je 0x40109b
mov edi, edx
lea ecx, [edi + 2]
jmp 0x401060
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x401060
sub edi, ecx
sar edi, 1
cmp edi, 0x200
jb 0x40107c
mov edi, 0x1ff
push edi
push edx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00403760
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x4010bd
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x401130
mov esi, dword [ebx]
cmp esi, ebx
je 0x401130
test esi, esi
je 0x401130
cmp word [esi + 0x24], 2
jbe 0x40112a
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x40112a
cmp dword [esi + 0x18], 0
je 0x40112a
test ebp, ebp
je 0x4010e5
cmp ebp, eax
jne 0x40112a
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00403760
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40110a
cmp eax, dword [esi + 0x18]
jne 0x40112a
cmp dword [esp + 0x10], 0
je 0x40113d
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.004043a0
add esp, 8
test eax, eax
je 0x40113d
mov esi, dword [esi]
cmp esi, ebx
jne 0x4010c3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc08
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc08
ret