joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403c10
Capabilities:
Get disk information

Disassembly:
sub esp, 0x210
mov eax, dword [0x434cd0]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [esp + 0x218]
push edi
push 0x42baa0
push esi
mov edi, 1
call fcn.00412664
lea ecx, [esi + 2]
add esp, 8
cmp ecx, eax
jne 0x403c9b
push 0x20a
lea edx, [esp + 0xc]
push 0
push edx
call fcn.00410ff0
add esp, 0xc
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [esp + 8]
push 0x42baa0
push ecx
call fcn.00412664
add esp, 8
test eax, eax
je 0x403c83
xor edx, edx
mov word [eax + 4], dx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x403c97
cmp eax, 1
jne 0x403c9b
xor eax, eax
jmp 0x403c9d
mov eax, edi
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
call fcn.0041161f
add esp, 0x210
ret 4

Function at 0x403cc0
Capabilities:
Check if file exists
Create directory
Get disk information
Get file attributes

Disassembly:
sub esp, 0x210
mov eax, dword [0x434cd0]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
mov esi, dword [esp + 0x218]
push edi
push 0x20a
lea eax, [esp + 0xc]
push 0
push eax
mov edi, ecx
call fcn.00410ff0
push esi
lea ecx, [esp + 0x18]
push 0x104
push ecx
call fcn.0041106a
lea edx, [esp + 0x20]
push 0x5c
push edx
call fcn.00411ea3
add esp, 0x20
test eax, eax
jne 0x403d3a
lea eax, [esp + 8]
push 0x3a
push eax
call fcn.00411ea3
add esp, 8
test eax, eax
je 0x403d3f
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
dec eax
neg eax
sbb eax, eax
neg eax
jmp 0x403d79
xor edx, edx
mov word [eax], dx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403d6e
lea ecx, [esp + 8]
push ecx
mov ecx, edi
call fcn.00403cc0
test eax, eax
je 0x403d79
push 0
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x403d79
and al, 0x10
xor ecx, ecx
cmp al, 0x10
sete cl
mov eax, ecx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
xor ecx, esp
call fcn.0041161f
add esp, 0x210
ret 4
Function at 0x405840
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get kernel32 base address
Get number of processors
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x42a2b0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x434cd0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
call fcn.00405ec7
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x405885
push 0x80004005
call fcn.00401a70
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
push 0x42b618
lea ecx, [esi + 4]
mov dword [esp + 0x1c], edi
call fcn.004028e0
push 0x42b618
lea ecx, [esi + 8]
mov byte [esp + 0x1c], 1
call fcn.004028e0
push 0x42b618
lea ecx, [esi + 0xc]
mov byte [esp + 0x1c], 2
call fcn.004028e0
push 0x42b618
lea ecx, [esi + 0x10]
mov byte [esp + 0x1c], 3
call fcn.004028e0
push 0x42b618
lea ecx, [esi + 0x14]
mov byte [esp + 0x1c], 4
call fcn.004028e0
push 0x42b618
lea ecx, [esi + 0x18]
mov byte [esp + 0x1c], 5
call fcn.004028e0
push 0x42b618
lea ecx, [esi + 0x1c]
mov byte [esp + 0x1c], 6
call fcn.004028e0
push 0x42b618
lea ecx, [esi + 0x20]
mov byte [esp + 0x1c], 7
call fcn.004028e0
push 0x42b618
lea ecx, [esi + 0x28]
mov byte [esp + 0x1c], 8
mov dword [esi + 0x24], edi
call fcn.004028e0
push 0x42b618
lea ecx, [esi + 0x2c]
mov byte [esp + 0x1c], 9
call fcn.004028e0
push 0x42b618
lea ecx, [esi + 0x30]
mov byte [esp + 0x1c], 0xa
call fcn.004028e0
push 0x42b618
lea ecx, [esi + 0x3c]
mov byte [esp + 0x1c], 0xb
call fcn.004028e0
push 0x42b618
lea ecx, [esi + 0x40]
mov byte [esp + 0x1c], 0xc
call fcn.004028e0
push 0x42b618
lea ecx, [esi + 0x44]
mov byte [esp + 0x1c], 0xd
call fcn.004028e0
mov byte [esp + 0x18], 0xe
push 0x42b618
lea ecx, [esi + 0x48]
call fcn.004028e0
push 0x42b618
lea ecx, [esi + 0x4c]
mov byte [esp + 0x1c], 0xf
call fcn.004028e0
push 0x42b618
lea ecx, [esi + 0x60]
mov byte [esp + 0x1c], 0x10
call fcn.004028e0
push 0x42b618
lea ecx, [esi + 0x64]
mov byte [esp + 0x1c], 0x11
call fcn.004028e0
push 0x42b618
lea ecx, [esi + 0x68]
mov byte [esp + 0x1c], 0x12
call fcn.004028e0
push 0x42b618
lea ecx, [esi + 0x6c]
mov byte [esp + 0x1c], 0x13
call fcn.004028e0
push 0x42b618
lea ecx, [esi + 0x70]
mov byte [esp + 0x1c], 0x14
call fcn.004028e0
push 0x42b618
lea ecx, [esi + 0x74]
mov byte [esp + 0x1c], 0x15
call fcn.004028e0
push 0x42b618
lea ecx, [esi + 0x78]
mov byte [esp + 0x1c], 0x16
call fcn.004028e0
lea edi, [esi + 0x7c]
mov ecx, edi
mov byte [esp + 0x18], 0x17
call fcn.004057d0
mov ecx, edi
mov byte [esp + 0x18], 0x18
call fcn.00405360
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x41161f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x434cd0]
jne 0x411629
repz ret
jmp fcn.00417b0b
Function at 0x424a1f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00419845
and dword [ebp - 4], 0
cmp dword [0x438c74], 0
mov ebx, eax
jne 0x424ad0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x424b81
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x424b81
push eax
call fcn.004197d3
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x438c74], eax
call esi
push eax
call fcn.004197d3
mov dword [esp], 0x42f1f8
push edi
mov dword [0x438c78], eax
call esi
push eax
call fcn.004197d3
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x438c7c], eax
call esi
push eax
call fcn.004197d3
pop ecx
mov dword [0x438c84], eax
test eax, eax
je 0x424ad0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004197d3
pop ecx
mov dword [0x438c80], eax
mov eax, dword [0x438c80]
cmp eax, ebx
je 0x424b28
cmp dword [0x438c84], ebx
je 0x424b28
push eax
call fcn.0041984e
push dword [0x438c84]
mov esi, eax
call fcn.0041984e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x424b28
test edi, edi
je 0x424b28
call esi
test eax, eax
je 0x424b1f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x424b1f
test byte [ebp - 0xc], 1
jne 0x424b28
or dword [ebp + 0x10], 0x200000
jmp 0x424b61
mov eax, dword [0x438c78]
cmp eax, ebx
je 0x424b61
push eax
call fcn.0041984e
pop ecx
test eax, eax
je 0x424b61
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x424b61
mov eax, dword [0x438c7c]
cmp eax, ebx
je 0x424b61
push eax
call fcn.0041984e
pop ecx
test eax, eax
je 0x424b61
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x438c74]
call fcn.0041984e
pop ecx
test eax, eax
je 0x424b81
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x424b83
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001e4b
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x101b51c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x104
lea eax, [ebp - 0x110]
mov dword [ebp - 0xc], 0x2e484e5c
push eax
xor ebx, ebx
mov dword [ebp - 8], 0x747874
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.1013fd20
pop ecx
pop ecx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10001f00
push esi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.10002da9
and dword [ebp - 0x114], 0
mov edi, eax
pop ecx
push 0
lea eax, [ebp - 0x114]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test edi, edi
je 0x10001efe
push edi
call fcn.10001f26
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.1013a4fe
mov esp, ebp
pop ebp
ret
Function at 0x10005c03
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x10157069
call fcn.1013a546
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov ecx, dword [ebp + 0x14]
push edi
mov dword [ebx], edi
mov dword [ecx], edi
cmp dword [eax + 0x58], edi
je 0x10005cad
push dword [ebp + 8]
mov ecx, eax
call fcn.10005f3b
mov esi, eax
test esi, esi
je 0x10005d40
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], edi
push eax
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
test eax, eax
jne 0x10005c96
push edx
call fcn.10002da9
pop ecx
lea ecx, [ebp - 0x14]
mov dword [ebx], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10005c96
xor edi, edi
inc edi
jmp 0x10005ca0
push dword [ebx]
call fcn.10002db2
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.10005ac8
jmp 0x10005d3e
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [esi + 0x84]
mov ecx, esi
push eax
call fcn.1013aa34
mov ecx, dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov esi, dword [eax - 0xc]
mov dword [ebp - 0x18], esi
test esi, esi
je 0x10005d36
mov ecx, dword [ebp + 0x14]
mov eax, esi
shr eax, 1
push eax
mov dword [ecx], eax
call fcn.10002da9
mov dword [ebx], eax
pop ecx
test esi, esi
jle 0x10005d30
mov esi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.10005aa4
push edi
lea ecx, [ebp - 0x10]
lea ebx, [eax - 1]
shl bl, 4
sub bl, 0x41
call fcn.10005aa4
add al, bl
mov edx, edi
test edx, edx
jns 0x10005d21
add edx, 1
sar edx, 1
mov ecx, dword [esi]
add edi, 2
mov byte [edx + ecx], al
cmp edi, dword [ebp - 0x18]
jl 0x10005cf8
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.10005499
mov eax, edi
call fcn.1013a50f
ret 0x10

Function at 0x10005d48
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x10005d9b
push esi
push dword [ebp + 8]
call fcn.10005f3b
mov edi, eax
test edi, edi
jne 0x10005d6b
mov eax, dword [ebp + 0x10]
jmp 0x10005dad
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10005d66
mov eax, dword [ebp - 8]
jmp 0x10005dad
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000abd8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x1000ac1d
call fcn.10007e52
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1000ac1d
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x1000ac39
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.10018b7c
mov ebx, eax
test edi, edi
je 0x1000ac37
test esi, esi
je 0x1000ac37
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1000b645
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x1000b703
cmp dword [esi + 0x20], 0
je 0x1000b703
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1000b703
cmp dword [ebp + 8], 0
je 0x1000b703
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.10007e52
push str.AFX_DIALOG_LAYOUT
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1000b6d4
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1000b703
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.1001974a
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x1000b6f4
test edi, edi
je 0x1000b6f4
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x1000b6ff
mov ecx, esi
call fcn.1000b3e8
mov eax, ebx
jmp 0x1000b705
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1000fc10
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x101632ae
call fcn.1013a546
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x1000fc36
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x1000fc95
call fcn.100113ae
push eax
lea ecx, [ebp - 0x10]
call fcn.10003f41
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call fcn.1013aa34
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.10141f2e
push eax
call fcn.10004555
add esp, 0x14
test esi, esi
je 0x1000fc88
push esi
call fcn.10140200
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.10005499
mov eax, ebx
call fcn.1013a50f
ret 8
Function at 0x10019d83
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebx + 0x84], edi
test edi, 0xffff0000
jne 0x10019dae
cmp dword [ebx + 0x80], 0
jne 0x10019dae
movzx eax, di
mov dword [ebx + 0x80], eax
call fcn.10007e52
push 5
push edi
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov edi, eax
mov ecx, ebx
push edi
call fcn.1001a041
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10019de8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.10007e52
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x10019e1f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.10019e40
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x1001bf2e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
je 0x1001bf48
mov edi, dword [esi + 0xc]
jmp 0x1001bf88
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x1001bf61
call fcn.10015e08
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x1001bf76
call fcn.10015e08
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x1001bf88
call fcn.10015e08
call fcn.10007e52
cmp dword [eax + 0x3c], 0
je 0x1001bf9d
push edi
mov ecx, ebx
call fcn.1001b667
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.1001c17a
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x1001bfc6
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x1001bfd2
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10022011
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.1000fb5a
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x1002204d
call fcn.10022233
mov dword [esi + 0xc], 1
jmp 0x10022052
call fcn.10022233
cmp dword [esi], 0
je 0x1002209b
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x10022075
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.1000acae
jmp 0x10022086
push 0xff
mov ecx, esi
call fcn.100050e4
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.10006077
jmp 0x100220bf
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x100220bf
push dword [esi]
push dword [ebp - 4]
call fcn.100100df
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10022188
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.10022233
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x100221d0
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.1000acae
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10006077
jmp 0x100221db
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.100100df
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x100339d1
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.10082493
call fcn.10007ea6
cmp dword [eax + 0x14], 0
jne 0x100339ec
mov ecx, esi
pop esi
jmp fcn.10032d17
pop esi
ret

Function at 0x10034895
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.10006655
call fcn.10007ea6
cmp dword [eax + 0x14], 0
jne 0x100348b0
mov ecx, esi
pop esi
jmp fcn.10034113
pop esi
ret
Function at 0x10043168
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x10043181
call fcn.10007e52
mov esi, dword [eax + 0xc]
push 0x101712ec
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x100431d7
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x100431d6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x100431b7
xor esi, esi
jmp 0x100431cd
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.100431df
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10152c7d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1015293d
Function at 0x402a2c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004044e8
test esi, esi
jne 0x402a62
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004045d8
jmp 0x402a80
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402940
mov edi, eax
test esi, esi
je 0x402a80
cmp dword [ebx], 0
je 0x402a80
dec esi
jmp 0x402a69
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403594
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45e020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40362c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x40360c
xor eax, eax
push ebp
push 0x403605
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403648
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40360c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ax, word [0x45e020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45e020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4042f0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x460048], 0
je 0x404351
cmp word [0x46021c], 0xd7b2
jne 0x404319
cmp dword [0x460224], 0
jbe 0x404319
mov eax, 0x460218
call dword [fcn.00460234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45e070
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404378
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x45e030], 0
jne 0x40436d
push 0
push 0x45e068
push 0x45e070
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret

Function at 0x4044a4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402704
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x460049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40446c
push eax
push esi
push ebx
call sub.KERNEL32.DLL_CreateThread_1
pop edi
pop esi
pop ebx
pop ebp
ret 0xc