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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x47a540]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x46f45c
push esi
call fcn.00451c11
pop ecx
pop ecx
test eax, eax
jne 0x44282d
xor al, al
jmp 0x4428aa
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.0044245c
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x442867
push dword [ebp - 0x210]
call fcn.0043efc2
xor al, al
jmp 0x4428a8
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x44286d
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x44288d
push edx
call fcn.00442736
pop ecx
test al, al
je 0x442858
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x44289b
mov bl, 1
push dword [ebp - 0x210]
call fcn.0043efc2
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041305e
leave
ret

Function at 0x447fdb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x47006c
push 0x470064
push str.FlsAlloc
push 0x1f
call fcn.00447ca9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44800f
push dword [ebp + 8]
mov ecx, esi
call dword [0x46b25c]
call esi
jmp 0x448015
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x448059
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x47007c
push 0x470074
push str.FlsGetValue
push 0x21
call fcn.00447ca9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x448090
push dword [ebp + 8]
mov ecx, esi
call dword [0x46b25c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x448098
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x470084
push 0x47007c
push str.FlsSetValue
push 0x22
call fcn.00447ca9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4480d2
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x46b25c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x450ccd
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00450af1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x450e3c
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x450e3c
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x450df1
jg 0x450d29
test eax, eax
je 0x450de7
push 1
push 0x1000
call fcn.004475cf
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x450d4c
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x450dde
push 0x8000
push ebx
call fcn.00444592
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x450d75
jg 0x450d70
cmp ecx, 0x1000
jb 0x450d75
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0043d383
add esp, 0x10
cmp eax, 0xffffffff
je 0x450dba
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x450d70
jl 0x450da1
test ecx, ecx
jne 0x450d62
push dword [ebp - 0xc]
push ebx
call fcn.00444592
push esi
call fcn.00447632
add esp, 0xc
xor ebx, ebx
jmp 0x450e4a
cmp byte [edi + 0x24], 0
je 0x450dd1
cmp dword [edi + 0x20], 5
jne 0x450dd1
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x450ddc
mov ebx, dword [edi + 0x18]
jmp 0x450dde
xor ebx, ebx
push esi
call fcn.00447632
pop ecx
jmp 0x450e4a
test ecx, ecx
jg 0x450db3
jl 0x450df1
test eax, eax
jae 0x450db3
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0044edbc
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x450e11
cmp byte [edi + 0x1c], 0
je 0x450db3
jmp 0x450e42
push ebx
call fcn.0044e760
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x450db3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x450e4a
cmp byte [edi + 0x1c], 0
je 0x450e47
mov ebx, dword [edi + 0x18]
jmp 0x450e4a
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0044edbc
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x453695
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00453569
Function at 0x453ed2
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x47a540]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x453f1d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0045426e
test al, al
jne 0x453f17
sub edx, 2
cmp edx, edi
jne 0x453efd
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x453f3f
lea eax, [edi + 2]
cmp edx, eax
je 0x453f3f
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00453b99
add esp, 0x10
jmp 0x454039
push esi
lea ecx, [ebp - 0x255]
call fcn.0045426e
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x453f82
push dword [ebp - 0x25c]
jmp 0x453f2f
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x453fbf
cmp word [ebp - 0x226], 0
je 0x453fe0
cmp word [ebp - 0x226], ax
jne 0x453fbf
cmp word [ebp - 0x224], 0
je 0x453fe0
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00453b99
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x45402c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x453f99
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x454014
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x454039
push 0x4536b8
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00461a90
add esp, 0x10
jmp 0x454009
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041305e
leave
ret
Function at 0x45533a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4553d7
push ebx
push esi
call fcn.004552f6
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0044e2cd
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x455384
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4553d6
push edi
push eax
call fcn.004494b3
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4553a4
call fcn.00447632
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4553d5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0044e2cd
add esp, 0x20
test eax, eax
jne 0x4553c3
push edi
call fcn.00447632
jmp 0x4553cb
push ebx
call fcn.00447632
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4553da
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4553eb
pop esi
ret
push ebx
push edi
push esi
call fcn.004552f6
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004494b3
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x455413
push ebx
push esi
push edi
call fcn.00414500
add esp, 0xc
push 0
call fcn.00447632
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x455ce2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00455688

Function at 0x45856e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00449da4
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4585dd
cmp esi, dword [ebp - 4]
je 0x4585d8
cmp dword [ebp + 0xc], 0
je 0x4585d8
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4585b5
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004580c0
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4585df
xor eax, eax
inc eax
jmp 0x4585df
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x458644
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x47a540]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00449da4
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00449da4
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4586bb
cmp word [ecx], dx
je 0x4586bb
mov eax, dword [0x471284]
push edi
dec eax
push eax
push 0x471170
call fcn.004585e3
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x45872e
cmp word [eax], dx
je 0x45872e
mov eax, dword [edi]
test eax, eax
je 0x4586df
cmp word [eax], dx
je 0x4586df
lea eax, [ebp - 0x10]
push eax
call fcn.00457fc6
jmp 0x4586e8
lea eax, [ebp - 0x10]
push eax
call fcn.00458061
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x458758
mov eax, dword [0x47116c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x470e60
call fcn.004585e3
add esp, 0xc
test al, al
je 0x458758
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x458723
cmp word [eax], di
je 0x458723
lea eax, [ebp - 0x10]
push eax
call fcn.00457fc6
pop ecx
jmp 0x45875a
lea eax, [ebp - 0x10]
push eax
call fcn.00458061
jmp 0x458720
mov eax, dword [edi]
test eax, eax
je 0x458745
cmp word [eax], dx
je 0x458745
lea eax, [ebp - 0x10]
push eax
call fcn.00457f5d
pop ecx
jmp 0x458758
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x458823
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00458468
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x458823
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x458823
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x458823
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4587b0
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00448369
test ebx, ebx
je 0x45881e
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00448369
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x458823
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x458823
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00462af6
add esp, 0x10
xor eax, eax
inc eax
jmp 0x458825
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041305e
leave
ret
Function at 0x460b4b
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x47a540]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x460b8e
call fcn.004393ec
mov dword [eax], 0xf
call fcn.004393ff
mov dword [eax], 0xd
call fcn.00447521
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041305e
leave
ret
test eax, eax
jne 0x460b95
inc eax
jmp 0x460b82
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x460b80
xor eax, eax
cmp ecx, 1
setne al
jmp 0x460b82

Function at 0x466d10
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x466d3d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x466d3d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402160
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
mov dword [esp + 8], 0
test eax, eax
je 0x4021ee
push eax
mov eax, dword [esp + 8]
push 0x416110
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x10]
add esp, 0xc
test eax, eax
je 0x4021f6
mov edx, dword [esp + 0x10]
lea ecx, [esp + 8]
push ecx
push 1
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
neg eax
sbb eax, eax
inc eax
cmp eax, 1
jne 0x4021f6
lea eax, [esp + 0x14]
lea ecx, [esp]
push eax
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push str.Language
push eax
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4021e8
mov eax, dword [esp + 0x10]
cmp eax, 4
mov eax, dword [esp + 0x18]
jne 0x4021fa
mov eax, dword [esp]
jmp 0x4021fa
mov dword [esp + 4], 0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 8]
mov dword [0x416100], eax
test ecx, ecx
jne 0x402214
push 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x416100]
add esp, 0xc
ret
Function at 0x402a10
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
push esi
push eax
xor esi, esi
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x402a42
mov eax, 1
pop esi
add esp, 0x94
ret
cmp eax, 6
mov eax, 2
je 0x402a4e
mov eax, esi
pop esi
add esp, 0x94
ret

Function at 0x402a60
Capabilities:
Get common file path

Disassembly:
call fcn.00402a10
test eax, eax
jle 0x402a81
cmp eax, 2
jg 0x402a81
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call fcn.00402aa0
add esp, 8
ret
mov edx, dword [esp + 4]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
ret
Function at 0x404ad0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x40fe64
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov dword [esp + 0x20], ebp
xor esi, esi
push 0x41646c
lea ecx, [esp + 0x18]
mov dword [esp + 0x134], esi
call sub.MFC42.DLL_CString::CString_1
push 0x41646c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x134], 1
call sub.MFC42.DLL_CString::CString_1
push 0x41646c
lea ecx, [esp + 0x14]
mov byte [esp + 0x134], 2
call sub.MFC42.DLL_CString::CString_1
mov ebx, dword [esp + 0x138]
mov byte [esp + 0x130], 3
add ebp, 0x64
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x24]
push esi
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
mov ecx, ebp
push eax
call fcn.004098c0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x130], 3
call fcn.0040f2ca
mov ecx, dword [0x4165e4]
mov eax, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push 0x104
push edx
push 0x41646c
push str.Name
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator
inc esi
cmp ebx, esi
je 0x404bda
mov edx, dword [esp + 0x13c]
mov eax, dword [esp + 0x18]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x404be7
xor edi, edi
cmp esi, 0x1e
jl 0x404b4a
jmp 0x404c23
push 0x6c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::LoadStringA
mov ecx, dword [0x4165d0]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
push 0
push ecx
mov ecx, dword [eax + 0x20]
push edx
push ecx
call fcn.00402280
add esp, 0x10
lea ecx, [esp + 0x10]
push 0x41646c
call sub.MFC42.DLL_CString::operator
mov edi, 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x130], 2
call fcn.0040f2ca
lea ecx, [esp + 0x18]
mov byte [esp + 0x130], 1
call fcn.0040f2ca
lea ecx, [esp + 0x14]
mov byte [esp + 0x130], 0
call fcn.0040f2ca
lea ecx, [esp + 0x13c]
mov dword [esp + 0x130], 0xffffffff
call fcn.0040f2ca
mov ecx, dword [esp + 0x128]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x124
ret 8
Function at 0x405120
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x40ff30
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
mov esi, ecx
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push str.Brand
call sub.MFC42.DLL_CString::CString_1
lea edi, [esi + 0x64]
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.0040a820
push eax
mov ecx, 0x4165d4
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CString::operator_1
or ebp, 0xffffffff
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], ebp
call fcn.0040f2ca
push 0x416080
lea ecx, [esp + 0x10]
push 0x4165d4
push ecx
call sub.MFC42.DLL_operator
push eax
mov ecx, 0x4165d0
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], ebp
call fcn.0040f2ca
mov edx, dword [0x4165d0]
mov ecx, esi
push edx
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea eax, [esp + 0xc]
mov ecx, edi
push eax
call fcn.004099e0
push eax
mov ecx, 0x4165e4
mov dword [esp + 0x28], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], ebp
call fcn.0040f2ca
push 0x4161ec
lea ecx, [esp + 0x1c]
push 0x4165e4
push ecx
call sub.MFC42.DLL_operator
push 0x4165d4
lea edx, [esp + 0x18]
push eax
push edx
mov dword [esp + 0x30], 3
call sub.MFC42.DLL_operator_1
push str.KM_TWAINRegList.ini
push eax
lea eax, [esp + 0x18]
mov byte [esp + 0x2c], 4
push eax
call sub.MFC42.DLL_operator
push eax
mov ecx, 0x4165e4
mov byte [esp + 0x28], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 4
call fcn.0040f2ca
mov byte [esp + 0x24], 3
lea ecx, [esp + 0x14]
call fcn.0040f2ca
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], ebp
call fcn.0040f2ca
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x1c
ret
Function at 0x4091e0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x410600
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 0x41646c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [0x4166cc]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 0
push str.DefaultUse
push str.Setting
mov dword [esp + 0x38], 0
call ebx
mov dword [esp + 0x18], eax
mov ebp, 0x1d
xor esi, esi
lea ecx, [esp + 0x14]
push esi
push ecx
mov ecx, edi
call fcn.004098c0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 0
call fcn.0040f2ca
mov edx, dword [0x4166cc]
mov eax, dword [esp + 0x10]
push edx
push 0
push 0x41638c
push eax
call ebx
cmp eax, ebp
jne 0x40929a
mov ecx, dword [esp + 0x18]
push esi
push ecx
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, edi
call fcn.004092d0
inc esi
cmp esi, 0x1e
jl 0x409239
dec ebp
jns 0x409237
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.0040f2ca
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret
Function at 0x4092d0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x410618
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x230
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x38]
mov edx, dword [esp + 0x250]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x13c]
rep stosd dword es:[edi], eax
mov eax, dword [0x4166cc]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
lea ecx, [esp + 0x3c]
push 0x104
push ecx
push 0x41646c
xor ebx, ebx
push str.Name
push edx
mov dword [esp + 0x260], ebx
call esi
mov edx, dword [esp + 0x250]
mov edi, eax
mov eax, dword [0x4166cc]
lea ecx, [esp + 0x13c]
push eax
push 0x104
push ecx
push 0x41646c
push str.Model
push edx
call esi
cmp edi, ebx
jbe 0x40944f
cmp eax, ebx
jbe 0x40944f
push 0x3ed
mov ecx, ebp
call sub.MFC42.DLL_CWnd::GetDlgItem
mov esi, eax
call sub.MFC42.DLL_AfxGetModuleState
mov edi, dword [eax + 4]
lea eax, [edi + 0xc8]
cmp eax, ebx
jne 0x40939c
xor eax, eax
jmp 0x40939f
mov eax, dword [eax + 4]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push eax
mov eax, dword [esi + 0x20]
push 1
push 0x1003
push eax
call ebp
push eax
call sub.MFC42.DLL_CImageList::FromHandle
mov edx, dword [esp + 0x258]
mov eax, dword [esp + 0x254]
mov dword [esp + 0x10], 0xf
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], 0xf000
mov dword [esp + 0x1c], 0x1000
mov ecx, dword [edi + 0xd0]
inc edx
cmp eax, edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 0x104
jne 0x409415
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push eax
push ebx
push 0x1007
push ecx
call ebp
jmp 0x40942c
push ebx
push 0x3ed
push ebx
push ebx
push 0x41646c
push ebx
push 3
mov ecx, esi
call sub.MFC42.DLL_CListCtrl::InsertItem
lea edx, [esp + 0x38]
mov edi, eax
push edx
push 1
push edi
mov ecx, esi
call sub.MFC42.DLL_CListCtrl::SetItemText
lea eax, [esp + 0x13c]
mov ecx, esi
push eax
push 2
push edi
call sub.MFC42.DLL_CListCtrl::SetItemText
lea ecx, [esp + 0x250]
mov dword [esp + 0x248], 0xffffffff
call fcn.0040f2ca
mov ecx, dword [esp + 0x240]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x23c
ret 0xc