joyce8/EMBER2024-capa huggingface dataset:
Function at 0x869325
Capabilities:
Execute anti-debugging instructions

Disassembly:
call fcn.00470704
cmp esi, 0xd
pop esi
jne 0x531bbc
mov dword [0x52ab74], 1
neg cx
mov ecx, dword [ebp - 4]
test edi, 0x72357c6d
test esp, edi
xor ecx, ebp
jmp 0x5eaf1f
mov word [ebp - 0xa], ax
push edx
cmove ax, cx
movzx eax, dx
lea eax, [ebp - 0x20]
jmp 0x7cf9ec
mov dword [0x52ab74], 0
jmp 0x6c311c
call fcn.0046e186
mov esp, ebp
jmp 0x7acffd
push 0x5116a4
jmp 0x85e67a
mov dword [ebp - 0x20], 0xffffffff
jmp 0x7d03be
mov edx, 0x61
push 0x10
seta ah
bswap eax
mov word [ebp - 0xc], dx
rdtsc
cwde
setno dh
mov eax, 0x6b
mov dx, 0x2822
cwd
push 0x8000
not dx
lea edx, [ebp - 0x1c]
jmp 0x53b0ff
mov dword [ebp - 4], eax
mov ecx, 0x5c
rcl dx, cl
xor dx, bx
xor al, 0x3b
mov word [ebp - 0x1a], cx
test ch, dl
mov ecx, 0x78
bsf dx, bx
bt edx, ebx
rdtsc
mov word [ebp - 0x14], cx
rdtsc
mov eax, 0x2e
xor ecx, ebp
sub cx, 0x7f6c
mov word [ebp - 0x1c], ax
rdtsc
and dl, al
push esi
not edx
cmp di, 0x4ddb
mov edx, 0x54
sbb ch, 0xa0
adc cl, 0xdb
mov word [ebp - 0x18], dx
sbb dx, 0x6ad5
not cl
cmc
mov ecx, 0x70
mov eax, 0x65
sbb dx, 0x61da
cmc
mov word [ebp - 0x16], ax
xchg edx, edx
mov word [ebp - 0xe], cx
sar edx, cl
cmovns edx, ecx
shr ah, 0xa1
xor ecx, ecx
movzx eax, dx
push ecx
mov edx, 0x74
movsx eax, di
mov word [ebp - 0x12], dx
rdtsc
movzx eax, bp
mov eax, 0x2e
mov word [ebp - 0x10], ax
jmp 0x6d5d1a
pop ebp
jmp 0x4628e2
call fcn.00470044
add esp, 4
cmp esi, 2
jne 0x531ba5
mov ecx, dword [0x52a928]
push 0x10
jmp 0x62aae6
push eax
jmp 0x5af22a
mov word [ebp - 8], cx
call fcn.0046ff88
mov esi, eax
mov eax, dword [ebp - 0x20]
lea esp, [esp + 0x14]
stc
jmp 0x87f46c
call 0x7381d9
push 0
jmp 0x531ba0
je 0x7ce966
push eax
jmp 0x7ce95e
push 0x512e14
push ecx
jmp 0x7f4dc4
push ebp
xor ch, 0xc0
bsr edx, edi
mov ebp, esp
btr edx, ecx
test bp, ax
lea esp, [esp - 0x20]
rol ah, cl
bsr ecx, edi
mov eax, dword [0x520628]
xor eax, ebp
jmp 0x77789a
cmp eax, 0xffffffff
jmp 0x83b757
Function at 0x401400
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x69ea44]
xor eax, ebp
mov dword [ebp - 4], eax
movsx eax, byte [ebp + 8]
push esi
push eax
lea ecx, [ebp - 0x38]
push str.._c:
push ecx
call fcn.005f38d0
add esp, 0xc
push 0
push 0
push 3
push 0
push 3
push 0xc0000000
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401475
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateFile___Error:__ld_n
call fcn.005f3600
add eax, 0x40
push eax
call fcn.005f3360
add esp, 0xc
or eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005f3100
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x48]
push eax
push 0xc
lea ecx, [ebp - 0x44]
push ecx
push 0
push 0
push 0x2d1080
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4014cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IOCTL_STORAGE_GET_DEVICE_NUMBER_Error:__ld_n
call fcn.005f3600
add eax, 0x40
push eax
call fcn.005f3360
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005f3100
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x40]
xor ecx, ebp
pop esi
call fcn.005f3100
mov esp, ebp
pop ebp
ret
Function at 0x4014f0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x69ea44]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
jne 0x401522
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005f3100
mov esp, ebp
pop ebp
ret
push ebx
push 0xdf
push str.BootcardMakerDlg.cpp
push 0x203
call fcn.00404570
add esp, 0xc
xor ebx, ebx
xor ecx, ecx
mov dword [ebp - 0x40], eax
mov dword [eax + 4], 0x203
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ecx
push edi
nop
mov eax, 1
shl eax, cl
mov dword [ebp - 0x4c], eax
test esi, eax
je 0x40161c
add bl, 0x41
mov byte [ebp - 0x50], bl
mov eax, dword [ebp - 0x50]
push eax
call fcn.00401400
movsx ecx, bl
push ecx
lea edx, [ebp - 0x38]
push str.._c:_
push edx
mov esi, eax
call fcn.005f38d0
add esp, 0x10
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [ebp - 0x38]
push ecx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov edx, dword [ebp - 0x40]
push edx
push ebx
mov edi, eax
call fcn.004013b0
add esp, 8
cmp esi, dword [ebp + 8]
jne 0x401611
cmp edi, 5
je 0x401611
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x401611
cmp eax, 1
je 0x401611
cmp eax, 2
je 0x401611
cmp eax, 3
je 0x401611
cmp eax, 4
je 0x401611
cmp eax, 5
je 0x401611
cmp eax, 6
je 0x401611
cmp eax, 7
je 0x401611
cmp eax, 8
je 0x401611
cmp eax, 9
je 0x401611
cmp eax, 0xa
je 0x401611
cmp eax, 0xb
je 0x401611
cmp eax, 0xe
je 0x401611
cmp eax, 0xf
jne 0x401619
mov eax, dword [ebp - 0x4c]
not eax
and dword [ebp - 0x3c], eax
mov esi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
inc ebx
inc ecx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ecx
cmp bx, 0x20
jb 0x401550
xor ebx, ebx
pop edi
mov edx, 1
mov cl, bl
shl edx, cl
test esi, edx
jne 0x40164b
inc ebx
cmp bx, 0x20
jb 0x401637
mov eax, dword [ebp - 0x40]
push eax
call fcn.004046d0
mov ecx, dword [ebp - 4]
add esp, 4
movzx eax, bx
pop ebx
xor ecx, ebp
pop esi
call fcn.005f3100
mov esp, ebp
pop ebp
ret

Function at 0x4019d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4019eb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401a22
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x401a1e
jmp 0x401a10
cmp esi, eax
jae 0x401a22
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401a10
cmp esi, eax
jb 0x401a29
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4034a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x624648
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x69ea44]
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
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ecx
shl esi, 9
push esi
mov dword [ebp - 4], 0
call fcn.005f4940
mov ecx, dword [0x63c6f0]
mov edx, dword [0x63c6f4]
mov dword [ebp - 0x28], eax
mov eax, dword [str..PhysicalDrive]
mov dword [ebp - 0x24], eax
mov eax, dword [0x63c6f8]
mov dword [ebp - 0x20], ecx
mov cx, word [0x63c6fc]
mov dword [ebp - 0x1c], edx
lea edx, [ebp + 0x10]
mov dword [ebp - 0x18], eax
push edx
lea eax, [ebp - 0x24]
mov word [ebp - 0x14], cx
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.00402720
mov eax, dword [eax]
add esp, 0x10
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, dword [ebp - 0x30]
add ebx, 0xfffffff0
cmp dword [ebx + 0xc], 0
mov edi, eax
jne 0x403569
push 0x63c0a0
push 0
push 0x70
push str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.005f2790
add esp, 0x14
cmp eax, 1
jne 0x403569
int3
lea eax, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x403582
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
cmp edi, 0xffffffff
jne 0x403598
mov ecx, dword [ebp - 0x2c]
push 0
push 0
push str.nonexistence_disk_or_disk_error
call fcn.0041a260
mov eax, dword [ebp + 8]
push 0
push 0
shl eax, 9
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [ebp - 0x28]
push 0
lea ecx, [ebp - 0x34]
push ecx
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 0x10]
add esi, 0xfffffff0
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
mov dword [ebp - 4], 0xffffffff
jne 0x4035f7
push 0x63c0a0
push 0
push 0x70
push str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.005f2790
add esp, 0x14
cmp eax, 1
jne 0x4035f7
int3
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x40360d
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, ebx
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.005f3100
mov esp, ebp
pop ebp
ret 0xc
Function at 0x403630
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x624678
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x69ea44]
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
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], eax
mov ecx, dword [str..PhysicalDrive]
mov edx, dword [0x63c6f0]
mov eax, dword [0x63c6f4]
mov dword [ebp - 0x24], ecx
mov ecx, dword [0x63c6f8]
mov dword [ebp - 0x20], edx
mov dx, word [0x63c6fc]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x18], ecx
push eax
lea ecx, [ebp - 0x24]
mov word [ebp - 0x14], dx
push ecx
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 4], 0
call fcn.00402720
mov eax, dword [eax]
add esp, 0xc
push 0
push 0
push 3
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [ebp - 0x30]
add edi, 0xfffffff0
cmp dword [edi + 0xc], 0
mov esi, eax
jne 0x4036f1
push 0x63c0a0
push 0
push 0x70
push str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.005f2790
add esp, 0x14
cmp eax, 1
jne 0x4036f1
int3
or ebx, 0xffffffff
lea eax, [edi + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40370c
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
push 0
push 0
cmp esi, ebx
jne 0x40376b
mov ecx, dword [ebp - 0x28]
push str.nonexistence_disk_or_disk_error
call fcn.0041a260
mov esi, dword [ebp + 0x10]
add esi, 0xfffffff0
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
mov dword [ebp - 4], ebx
jne 0x403751
push 0x63c0a0
push 0
push 0x70
push str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.005f2790
add esp, 0x14
cmp eax, 1
jne 0x403751
int3
lock xadd dword [edi], ebx
dec ebx
test ebx, ebx
jg 0x403764
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov eax, 1
jmp 0x4037dd
mov ecx, dword [ebp + 8]
shl ecx, 9
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x2c]
push 0
lea edx, [ebp - 0x28]
push edx
shl eax, 9
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 0x10]
add esi, 0xfffffff0
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
mov dword [ebp - 4], ebx
jne 0x4037c8
push 0x63c0a0
push 0
push 0x70
push str.C:Program_Files__x86_Microsoft_Visual_Studio_10.0VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.005f2790
add esp, 0x14
cmp eax, 1
jne 0x4037c8
int3
lock xadd dword [edi], ebx
dec ebx
test ebx, ebx
jg 0x4037db
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
xor eax, eax
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.005f3100
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4042e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
mov edx, dword [eax - 8]
push edi
mov edi, dword [ecx + 4]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, 0x104
or ecx, edx
jge 0x40430e
push 0x104
mov ecx, esi
call fcn.00401e80
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
push edi
push 0x104
push eax
mov eax, dword [ebp + 0xc]
push 0x63c73b
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, eax
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
jne 0x404345
push eax
mov ecx, esi
call fcn.00401b00
mov eax, edi
pop edi
pop esi
pop ebp
ret 0xc
push ecx
push eax
call fcn.005f4a30
add esp, 8
push eax
mov ecx, esi
call fcn.00401b00
mov eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x404ac0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x69ea44]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x10], 0x800
jne 0x404af3
push 0x63ce50
push 4
lea eax, [ebp - 0xc]
push eax
call fcn.00405110
add esp, 0xc
jmp 0x404b35
push 4
lea ecx, [ebp - 0xc]
push ecx
push 3
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
jne 0x404b1b
xor eax, eax
jmp 0x404be1
cmp dword [ebp - 0x12c], 4
je 0x404b35
push 0x3c
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfc_appcore.cpp
call fcn.004336f0
test eax, eax
je 0x404b35
int3
call fcn.005f7380
mov ecx, dword [eax]
mov dword [ebp - 0x130], ecx
call fcn.005f7380
mov dword [eax], 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x111
push 0x112
lea edx, [ebp - 0x128]
push edx
call fcn.005f3aa0
add esp, 0x18
mov dword [ebp - 4], eax
call fcn.005f7380
cmp dword [eax], 0
je 0x404b91
call fcn.005f7380
mov eax, dword [eax]
push eax
call fcn.00404ef0
add esp, 4
jmp 0x404b9e
call fcn.005f7380
mov ecx, dword [ebp - 0x130]
mov dword [eax], ecx
xor edx, edx
jne 0x404b35
cmp dword [ebp - 4], 0xffffffff
je 0x404bb1
cmp dword [ebp - 4], 0x112
jb 0x404bca
xor eax, eax
jne 0x404bc6
push 0x43
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfc_appcore.cpp
call fcn.004336f0
test eax, eax
je 0x404bc6
int3
xor eax, eax
jmp 0x404be1
push 0
push 0
lea edx, [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005f3100
mov esp, ebp
pop ebp
ret
Function at 0x40b730
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
cmp dword [ebp + 8], 0
jne 0x40b755
push 0x8d
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfc_appui3.cpp
call fcn.004336f0
test eax, eax
je 0x40b755
int3
cmp dword [ebp + 0xc], 0
jne 0x40b76f
push 0x8e
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfc_appui3.cpp
call fcn.004336f0
test eax, eax
je 0x40b76f
int3
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x58], 0
je 0x40b811
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
call fcn.0040b680
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40b79b
mov eax, dword [ebp + 0x10]
jmp 0x40b847
mov dword [ebp - 0xc], 4
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
jne 0x40b80a
cmp dword [ebp - 4], 4
je 0x40b7eb
push 0x9c
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfc_appui3.cpp
call fcn.004336f0
test eax, eax
je 0x40b7eb
int3
cmp dword [ebp - 0xc], 4
je 0x40b805
push 0x9d
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfc_appui3.cpp
call fcn.004336f0
test eax, eax
je 0x40b805
int3
mov eax, dword [ebp - 0x14]
jmp 0x40b847
mov eax, dword [ebp + 0x10]
jmp 0x40b847
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x6c], 0
jne 0x40b82e
push 0xa4
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfc_appui3.cpp
call fcn.004336f0
test eax, eax
je 0x40b82e
int3
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x6c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40cb10
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0
je 0x40cb98
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40cb58
push str.hAdvAPI32___0
push 0
push 0x28c
push str.f:dd_vctools_vc7libs_ship_atlmfcinclude_atltransactionmanager.h
push 2
call fcn.005f2790
add esp, 0x14
cmp eax, 1
jne 0x40cb58
int3
cmp dword [ebp - 8], 0
jne 0x40cb65
mov eax, 1
jmp 0x40cbb6
push str.RegDeleteKeyTransactedA
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40cb96
push 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ecx
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 4]
jmp 0x40cbb6
jmp 0x40cbb1
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 4], 0
je 0x40cbb1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x40cbb6
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x40e140
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
call fcn.004279a0
mov dword [ebp - 8], eax
push 5
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40e198
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40e1b2
push 0x113
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcdlgcore.cpp
call fcn.004336f0
test eax, eax
je 0x40e1b2
int3
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x18]
call fcn.0040e1f0
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.0046c010
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x413640
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0xc], 0
je 0x413768
call fcn.004279a0
mov dword [ebp - 0x10], eax
push 0xf0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4136fb
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4136d2
push str.DLGINIT_resource_was_found__but_could_not_be_loaded._n
push 0
mov ecx, 0x6a1e00
call fcn.00401af0
push eax
push 0x16c
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcoccmgr.cpp
lea ecx, [ebp - 0x20]
call fcn.00401920
push eax
call fcn.00401940
add esp, 0x10
xor eax, eax
jmp 0x4137d6
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4136f9
push 0x172
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcoccmgr.cpp
call fcn.004336f0
test eax, eax
je 0x4136f9
int3
jmp 0x413768
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jne 0x41371e
push 0x17a
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcoccmgr.cpp
call fcn.004336f0
test eax, eax
je 0x41371e
int3
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0xffffffff
je 0x413768
mov ecx, dword [ebp - 0x18]
cmp dword [ecx], 0
je 0x41375d
push str.Dialog_has_OLE_controls__but_no_matching_DLGINIT_resource._n
push 0
mov ecx, 0x6a1e00
call fcn.00401af0
push eax
push 0x180
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcoccmgr.cpp
lea ecx, [ebp - 0x28]
call fcn.00401920
push eax
call fcn.00401940
add esp, 0x10
jmp 0x413768
mov edx, dword [ebp - 0x18]
add edx, 4
mov dword [ebp - 0x18], edx
jmp 0x41371e
mov dword [ebp - 8], 1
cmp dword [ebp - 4], 0
je 0x413791
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0x20]
call eax
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
je 0x4137b0
cmp dword [ebp - 0xc], 0
je 0x4137b0
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.0046c010
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x68], 0
je 0x4137d3
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x68]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x68]
mov edx, dword [eax]
mov eax, dword [edx + 0xa8]
call eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4170d0
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x417100
push 0x48b
push 0x63fba8
call fcn.004336f0
test eax, eax
je 0x417100
int3
mov eax, dword [ebp - 8]
cmp dword [eax + 0x6c], 0
jne 0x417146
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add eax, 1
push eax
mov ecx, dword [ebp - 4]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00410050
push eax
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
call fcn.00404090
jmp 0x417160
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x6c]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x6c]
mov edx, dword [eax]
mov eax, dword [edx + 0x94]
call eax
mov esp, ebp
pop ebp
ret 4

Function at 0x417170
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4171a0
push 0x4a0
push 0x63fba8
call fcn.004336f0
test eax, eax
je 0x4171a0
int3
push 0x63c73b
mov ecx, dword [ebp + 0xc]
call fcn.004043f0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x68], 0
jne 0x417207
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x417205
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
add edx, 1
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00410050
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, dword [ebp + 0xc]
call fcn.00404090
jmp 0x417228
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.004220b0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x417228
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.004170d0
mov ecx, dword [ebp + 0xc]
call fcn.00401e10
mov esp, ebp
pop ebp
ret 8