joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4014b0
Capabilities:
Delete file

Disassembly:
push 0x14
mov eax, 0x40d890
call fcn.00409683
mov eax, dword [0x41204c]
mov ecx, 0x41204c
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
push str.RootGeniusEx.zip
lea ecx, [ebp - 0x18]
call fcn.004010f5
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00401792
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00401f7c
mov edi, dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call esi
lea eax, [ebp - 0x14]
push eax
push 0x85
call fcn.004012f8
pop ecx
pop ecx
mov byte [ebp - 0xd], al
test al, al
je 0x40155c
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push 0x40fc84
call fcn.004010f5
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], esp
lea eax, [edi - 0x10]
mov dword [ebp - 0x18], esp
call fcn.00401b0b
add eax, 0x10
mov ecx, esp
mov dword [ecx], eax
mov byte [ebp - 4], 0
call fcn.00401fac
add esp, 0xc
push edi
mov byte [ebp - 0xd], al
call esi
lea eax, [edi - 0x10]
call fcn.00401f7c
mov al, byte [ebp - 0xd]
call fcn.00409722
ret

Function at 0x40156d
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx edi, ax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x40fb38
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
and dword [ebp - 0x10], 0x80000000
and eax, 0x7fffffff
mov ebx, dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 0x20], eax
xor esi, esi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], esi
fild qword [ebp - 0x24]
fild qword [ebp - 0x14]
fchs
faddp st(1)
fld qword [0x40fcc0]
fmul st(1), st(0)
fmulp st(1)
fcomp qword [0x40fcb8]
fnstsw ax
test ah, 5
jp 0x401607
push 4
mov eax, edi
pop ecx
and eax, 0x3ff
push 0x30
cmp cx, ax
jne 0x4015fa
push 0x40fb40
push 0x40fb48
jmp 0x401604
push str.Warning
push str.C_disk_space_will_cause_the_software_can_not_be_used_
push esi
call ebx
mov byte [ebp - 5], 1
call fcn.00401386
test al, al
jne 0x401619
mov byte [ebp - 5], al
jmp 0x401687
push 0x40fae0
lea ecx, [ebp - 0x10]
call fcn.004010f5
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop ecx
push dword [eax]
call esi
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401f7c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004013f9
test al, al
jne 0x401657
mov byte [ebp - 5], al
jmp 0x40167a
push str.RootGenius.dll
lea ecx, [ebp - 0x10]
call fcn.004010f5
pop ecx
push dword [eax]
call esi
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00401f7c
call fcn.004014b0
cmp byte [ebp - 5], 0
jne 0x4016b0
xor esi, esi
push 4
pop eax
and edi, 0x3ff
push 0x30
cmp ax, di
jne 0x4016a3
push 0x40fc0c
push str.Root
jmp 0x4016ad
push str.Error
push str.Root_Genius_failed_to_initialize_
push esi
call ebx
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x43534b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042708b
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x435383
xor eax, eax
jmp 0x4353af
cmp esi, dword [ebp - 4]
je 0x4353ac
cmp dword [ebp + 0xc], 0
je 0x4353ac
push dword [edi + 0x9c]
call fcn.00434f59
push dword [edi + 0x9c]
mov esi, eax
call fcn.00424fcd
pop ecx
pop ecx
cmp esi, eax
je 0x43537f
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x407f60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407f82
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407f89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f78
mov eax, 1
add ebx, ebx
jne 0x407f9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407f90
jne 0x407fac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407f90
xor ecx, ecx
sub eax, 3
jb 0x407fc0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408032
mov ebp, eax
add ebx, ebx
jne 0x407fcb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407fd8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x407ffc
inc ecx
add ebx, ebx
jne 0x407fe8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407fdd
jne 0x407ff9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fdd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40801c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40800d
jmp 0x407f7e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40801c
add edi, ecx
jmp 0x407f7e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40803a
cmp byte [edi], 0
jne 0x40803a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40803f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40806c
mov ecx, edi
jns 0x40809b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080b1
mov dword [ebx], eax
add ebx, 4
jmp 0x408089
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4080eb
sub esp, 0xffffff80
jmp 0x402130
Function at 0x40136a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40303c]
jne 0x401374
repz ret
jmp fcn.00401625

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40164e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x401658
repz ret
jmp fcn.0040165d

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x438860
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x22000]
push edi
or ebp, 0xffffffff
jmp 0x438882
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x438889
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x438878
pushfd
xor eax, eax
inc eax
popfd
add ebx, ebx
jne 0x43889b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x438890
jne 0x4388ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x438890
xor ecx, ecx
sub eax, 3
jb 0x4388c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x438932
mov ebp, eax
add ebx, ebx
jne 0x4388cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4388d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4388fc
inc ecx
add ebx, ebx
jne 0x4388e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4388dd
jne 0x4388f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4388dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43891c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43890d
jmp 0x43887e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43891c
add edi, ecx
jmp 0x43887e
pop esi
mov edi, esi
mov ecx, 0xe0e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43893a
cmp byte [edi], 0xa
jne 0x43893a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x43893f
lea edi, [esi + 0x36000]
mov eax, dword [edi]
test eax, eax
je 0x4389b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3820c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x382ac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43896c
push edi
pop ecx
jns 0x43899b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x382b0]
test eax, eax
je 0x4389b1
mov dword [ebx], eax
add ebx, 4
jmp 0x438989
call dword [esi + 0x382b4]
popal
jmp 0x41be59
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x1ab0958
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1ab0962
pushal
call 0x1ab0968
pop ebp
sub ebp, 0x10
sub ebp, 0x16b0958
or dword [ebx + 1], ebp
jmp 0x1ab097e
mov eax, 0x16b0958
add eax, ebp
add eax, 0x4c
mov ecx, 0x5be
mov edx, 0xcee31677
xor byte [eax], dl
inc eax
dec ecx
jne 0x1ab0995
jmp 0x1ab09a8
cld
mov edx, 0x774bfefc
ja 0x1ab0a27
div byte [esi + 0x7777778f]
je 0x1ab0972
iretd
sti
push ebx
jae 0x1ab0aa2
ja 0x1ab0aa4
pop ds
stosd dword es:[edi], eax
ret 0x7748
mov ebx, 0x5e888888
mov byte [eax + 0x764e3b5e], cl
cmp ecx, dword [esi + 0x76]
hlt
Function at 0x2cde6c9
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
je 0x281c8e3
mov esi, dword [ebp + 0xc]
test esi, esi
jmp 0x281c8cf
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp bh, 0xe6
sub esp, 0x114
push esi
cmp di, cx
test ecx, ecx
jmp 0x2c27939
Function at 0x403970
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x444936
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push str.CLSID7D252A20_A4D5_11CE_8BF1_00608C54A1AA
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp]
mov dword [esp + 0x118], 0
mov dword [esp + 0xc], 0x100
call fcn.00443248
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push ecx
push SysReAllocString
mov byte [esp + 0x124], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403a03
mov ecx, dword [esp + 8]
lea edx, [esp + 0xc]
push esi
lea eax, [esp + 0x14]
push edx
push eax
push str.LocalServer32
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov edx, dword [esp + 0xc]
mov esi, eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
je 0x403a42
lea ecx, [esp]
mov byte [esp + 0x118], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x118], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0x80004005
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
add esp, 0x11c
ret
lea eax, [esp + 0x10]
lea ecx, [esp]
push eax
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp]
cmp byte [ecx], 0x22
jne 0x403a8c
push 0x20
push 0
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::SetAt
lea ecx, [esp]
call sub.MFC42.DLL_CString::TrimLeft
mov edx, dword [esp]
push 0x20
lea ecx, [esp + 4]
mov eax, dword [edx - 8]
dec eax
push eax
call sub.MFC42.DLL_CString::SetAt
lea ecx, [esp]
call sub.MFC42.DLL_CString::TrimRight
mov eax, dword [esp + 0x124]
test eax, eax
je 0x403aa5
push eax
lea eax, [esp + 4]
push eax
call fcn.004038f0
add esp, 8
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0x124]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp]
mov byte [esp + 0x118], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x118], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x110]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x11c
ret

Function at 0x40b8a0
Capabilities:
Open clipboard

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
call ebp
mov esi, eax
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x40b8c3
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x40b8c5
xor eax, eax
mov eax, dword [eax + 0x20]
mov edi, dword [sym.imp.USER32.dll_OpenClipboard]
push eax
call edi
test eax, eax
jne 0x40b923
mov ecx, dword [esp + 0x30]
lea ebx, [esi + ecx]
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
call ebp
cmp eax, ebx
ja 0x40b917
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push 0
push edx
call esi
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x40b909
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x40b90b
xor eax, eax
mov eax, dword [eax + 0x20]
push eax
call edi
test eax, eax
jne 0x40b923
jmp 0x40b8e2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 4
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1c
ret 4
Function at 0x411a40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4458a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
call fcn.00443248
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 1
call fcn.00443248
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 2
call fcn.00443248
lea ecx, [esp + 8]
mov byte [esp + 0x24], 3
call fcn.00443248
lea ecx, [esp + 4]
mov byte [esp + 0x24], 4
call fcn.00443248
push 0xdc
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 5
call sub.MFC42.DLL_CString::LoadStringA
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::MakeUpper
push 0xfb
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::LoadStringA
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::MakeUpper
push 0xdd
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::LoadStringA
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::MakeUpper
push 0xde
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::LoadStringA
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::MakeUpper
push 0x2e
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::ReverseFind
lea ecx, [esp + 4]
mov esi, eax
call sub.MFC42.DLL_CString::Empty
mov eax, dword [esp + 0x2c]
push eax
call sub.imgcmn.dll_Ordinal_2
add esp, 4
test esi, esi
jle 0x411bf7
cmp eax, 1
je 0x411b3c
cmp eax, 4
jne 0x411bf7
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x18]
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x2c]
sub eax, esi
push eax
push edx
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 8]
mov byte [esp + 0x28], 6
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::MakeUpper
mov eax, dword [esp + 4]
lea ecx, [esp + 0x14]
push eax
call sub.MFC42.DLL_CString::Find
cmp eax, 1
jl 0x411b98
mov ecx, dword [esp + 0x30]
mov word [ecx], 1
jmp 0x411c00
mov edx, dword [esp + 4]
lea ecx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::Find
cmp eax, 1
jl 0x411bb6
mov eax, dword [esp + 0x30]
mov word [eax], 2
jmp 0x411c00
mov ecx, dword [esp + 4]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find
cmp eax, 1
jl 0x411bd4
mov edx, dword [esp + 0x30]
mov word [edx], 3
jmp 0x411c00
mov eax, dword [esp + 4]
lea ecx, [esp + 8]
push eax
call sub.MFC42.DLL_CString::Find
mov edx, dword [esp + 0x30]
xor ecx, ecx
cmp eax, 1
setl cl
dec ecx
and ecx, 6
mov word [edx], cx
jmp 0x411c00
mov eax, dword [esp + 0x30]
mov word [eax], 0xffff
lea ecx, [esp + 4]
mov byte [esp + 0x24], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x24], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1c]
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x4259c0
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
sub esp, 0x444
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x114]
push 0x100
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x114]
lea edx, [esp + 0x354]
push ecx
push edx
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x114]
push str._twain.
push eax
call esi
lea ecx, [esp + 0x354]
push str._twain_32.
push ecx
call esi
mov dl, byte [0x45db8c]
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x114]
lea ecx, [esp + 0x14]
push eax
push ecx
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea edx, [esp + 0x214]
lea eax, [esp + 0x14]
push edx
push eax
call ebp
mov esi, eax
xor ecx, ecx
cmp esi, 0xffffffff
setne cl
mov edi, ecx
test edi, edi
jne 0x425a91
lea edx, [esp + 0x354]
lea eax, [esp + 0x14]
push edx
push eax
call ebx
lea ecx, [esp + 0x214]
lea edx, [esp + 0x14]
push ecx
push edx
call ebp
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
setne al
mov edi, eax
test edi, edi
mov dword [esp + 0x10], 0
je 0x425b41
lea ecx, [esp + 0x240]
push 0x45c9e0
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x425acf
lea edx, [esp + 0x240]
push 0x45cf6c
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x425b39
test edi, edi
je 0x425b41
lea eax, [esp + 0x214]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, eax
test edi, edi
jne 0x425aa1
lea ecx, [esp + 0x14]
lea edx, [esp + 0x114]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x425b30
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x354]
lea ecx, [esp + 0x14]
push eax
push ecx
call ebx
lea edx, [esp + 0x214]
lea eax, [esp + 0x14]
push edx
push eax
call ebp
mov esi, eax
xor ecx, ecx
cmp esi, 0xffffffff
setne cl
mov edi, ecx
test edi, edi
je 0x425b41
jmp 0x425aa1
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x444
ret
Function at 0x42c290
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4473b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.00443248
push 0x104
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReleaseBuffer
movsx ebp, word [esp + 0x2c]
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x24]
lea ebp, [ebp + ebp*4 + 0x45cff8]
push 0x104
mov ecx, esi
call sub.MFC42.DLL_CString::GetBuffer
mov edi, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0xffffffffffffffff
mov ecx, esi
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0x2e
mov ecx, esi
call sub.MFC42.DLL_CString::ReverseFind
push eax
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::Left
push ebp
lea ecx, [esp + 0x30]
push eax
push ecx
mov byte [esp + 0x28], 1
call sub.MFC42.DLL_operator
push eax
mov ecx, esi
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x42c2f4
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], eax
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc

Function at 0x432470
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x447a4f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call fcn.00443248
mov eax, dword [esp + 0x20]
lea ecx, [esp + 4]
push eax
push 0x45d368
push ecx
push 8
push 1
push 0x28
push esi
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_CWnd::InvokeHelper
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8
Function at 0x432a70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x447acf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call fcn.00443248
mov eax, dword [esp + 0x20]
lea ecx, [esp + 4]
push eax
push 0x45d3d4
push ecx
push 8
push 2
push 0x5dc
push esi
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_CWnd::InvokeHelper
mov esi, dword [esp + 0x38]
add esp, 0x1c
lea edx, [esp + 4]
mov ecx, esi
push edx
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 8