joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403acb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
and byte [ebp - 0x140], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x13f]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x140]
mov dword [ebp - 4], esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp byte [ebp - 0x140], 0
je 0x403b4a
lea eax, [ebp - 0x140]
mov edi, 0x408240
push esi
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], 0x408248
mov dword [ebp - 0xc], edi
call fcn.00405fb4
mov esi, 0x40823c
push 0x40a370
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 1
call fcn.004041c9
jmp 0x403b7b
lea eax, [ebp - 0x140]
mov edi, 0x408240
push esi
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x30], 0x408248
mov dword [ebp - 0x28], edi
call fcn.00405fb4
mov esi, 0x40823c
mov dword [ebp - 4], 2
mov dword [ebp - 0x3c], esi
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx + 0xc], 0x408248
mov dword [ecx + 0x14], edi
call fcn.00406023
mov edi, dword [ebp + 8]
test byte [ebp - 4], 2
mov dword [edi], esi
je 0x403ba7
and dword [ebp - 4], 0xfffffffd
lea ecx, [ebp - 0x3c]
call fcn.004060b3
test byte [ebp - 4], 1
je 0x403bb5
lea ecx, [ebp - 0x20]
call fcn.004060b3
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x4046f3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
and byte [ebp - 0x148], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x147]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 8]
mov dword [ebp - 4], esi
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40476c
cmp dword [ebp + 0xc], 1
mov dword [ebp - 0xc], 0x104
mov eax, str.CommonFilesDir
je 0x40474c
mov eax, str.ProgramFilesDir
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x148]
push ecx
push esi
push esi
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x148], 0
je 0x4047b2
lea eax, [ebp - 0x148]
mov edi, 0x408240
push esi
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x38], 0x408248
mov dword [ebp - 0x30], edi
call fcn.00405fb4
mov esi, 0x40823c
push 0x40a370
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], 1
call fcn.004041c9
jmp 0x4047e3
lea eax, [ebp - 0x148]
mov edi, 0x408240
push esi
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], 0x408248
mov dword [ebp - 0x14], edi
call fcn.00405fb4
mov esi, 0x40823c
mov dword [ebp - 4], 2
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x28]
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx + 0xc], 0x408248
mov dword [ecx + 0x14], edi
call fcn.00406023
mov edi, dword [ebp + 8]
test byte [ebp - 4], 2
mov dword [edi], esi
je 0x40480f
and dword [ebp - 4], 0xfffffffd
lea ecx, [ebp - 0x28]
call fcn.004060b3
test byte [ebp - 4], 1
je 0x40481d
lea ecx, [ebp - 0x44]
call fcn.004060b3
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x404823
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
and byte [ebp - 0x140], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x13f]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x140]
push 0x104
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [ebp - 0x140], 0
je 0x4048a2
lea eax, [ebp - 0x140]
mov edi, 0x408240
push esi
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], 0x408248
mov dword [ebp - 0xc], edi
call fcn.00405fb4
mov esi, 0x40823c
push 0x40a370
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 1
call fcn.004041c9
jmp 0x4048d3
lea eax, [ebp - 0x140]
mov edi, 0x408240
push esi
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x30], 0x408248
mov dword [ebp - 0x28], edi
call fcn.00405fb4
mov esi, 0x40823c
mov dword [ebp - 4], 2
mov dword [ebp - 0x3c], esi
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx + 0xc], 0x408248
mov dword [ecx + 0x14], edi
call fcn.00406023
mov edi, dword [ebp + 8]
test byte [ebp - 4], 2
mov dword [edi], esi
je 0x4048ff
and dword [ebp - 4], 0xfffffffd
lea ecx, [ebp - 0x3c]
call fcn.004060b3
test byte [ebp - 4], 1
je 0x40490d
lea ecx, [ebp - 0x20]
call fcn.004060b3
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x405b58
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 4]
push edi
mov ebx, 0xf003f
push eax
push ebx
push 0
mov edi, VariantInit
push str..DefaultControl_PaneldesktopResourceLocale
push edi
mov dword [ebp - 0xc], 0xa
call esi
test eax, eax
jne 0x405bad
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x40a620
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x405c08
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push ebx
push 0
push str..DEFAULTControl_PanelInternational
push edi
call esi
mov esi, eax
xor edi, edi
cmp esi, edi
jne 0x405be2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push str.Locale
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
cmp dword [ebp - 8], edi
je 0x405bf0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, edi
je 0x405c0a
cmp dword [ebp - 4], edi
je 0x405c02
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, 0x409
jmp 0x405c27
xor edi, edi
lea eax, [ebp - 0x18]
push eax
call fcn.00407141
cmp dword [ebp - 4], edi
pop ecx
mov esi, eax
je 0x405c24
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, si
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405c2c
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
push esi
xor esi, esi
push edi
mov ebx, ecx
lea eax, [ebp - 0x30]
mov ecx, dword [ebp + 8]
push esi
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call fcn.004040f5
add eax, 0x10
mov eax, dword [eax]
cmp eax, esi
je 0x405c61
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
lea ecx, [ebp - 0x30]
call fcn.004060b3
mov ecx, dword [ebp + 8]
inc esi
push esi
lea eax, [ebp - 4]
push 1
push eax
mov dword [ebp - 4], 0x5c
call fcn.004064d9
cmp dword [0x408254], eax
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
je 0x405d8c
xor esi, esi
inc eax
push esi
push eax
push esi
lea ecx, [ebp - 0x30]
push dword [ebp + 8]
mov dword [ebp - 0x24], 0x408248
mov dword [ebp - 0x1c], 0x408240
mov dword [ebp - 0x14], eax
call fcn.00405e95
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x30], 0x40823c
call fcn.004066f7
push esi
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x405d60
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], eax
call fcn.004066f7
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405cf8
test al, 0x10
jne 0x405d60
lea eax, [ebp - 0x10]
mov ecx, ebx
push eax
push 0x9011
call fcn.00405a71
lea ecx, [ebp - 0x30]
call fcn.00403bbb
mov esi, eax
mov ecx, esi
call fcn.004066f7
push dword [esi + 4]
lea ecx, [ebp - 0x10]
call fcn.00406c28
push eax
lea eax, [ebp - 0x134]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea esi, [ebx + 0x580]
add esp, 0xc
push dword [esi]
call edi
lea eax, [ebp - 0x134]
push 0xffffffffffffffff
push eax
call fcn.0040168c
pop ecx
mov dword [esi], eax
pop ecx
push 0x488
mov ecx, ebx
push dword [ebp - 4]
call fcn.00405a4a
lea ecx, [ebp - 0x30]
call fcn.004060b3
push dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x5c
push 1
push eax
call fcn.004064d9
cmp dword [0x408254], eax
jne 0x405c92
lea ecx, [ebp - 0xc]
call fcn.004016cb
push dword [ebp - 0x10]
call edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x407184
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x4071d6
push eax
call fcn.00401c7e
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4071d6
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x40a604
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4071da
xor al, al
jmp 0x40723b
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
test eax, eax
je 0x407239
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.00401c7e
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x407239
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x407227
mov al, 1
pop ebx
leave
ret 4
Function at 0x10004db0
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push esi
add esp, 4
add edx, 0x15b77
sub edx, 0x16112
add edx, 0x13458
pop edx
push edx
push ecx
add esp, 4
add edx, 0x1851b
xor edx, 0xced1
pop edx
push edi
add edi, 0x3978
pop edi
mov dword [ebp - 0x277c], 0xffffffff
push edx
push eax
add esp, 4
Function at 0x1000528e
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push eax
add esp, 4
or esi, 0x12aff
add esi, 0xae27
call 0x1000528e
add byte [esi], bh
xor al, byte [edi + 0x33]
cmp al, 0x4f
dec eax
cmp eax, dword [ebx + 0x575e04c4]
or edi, 0xb326
jmp 0x100052a0
pop edi
push ebx
call 0x100052b1
add byte [edx], dh
aaa
xor ecx, dword [ebp + 0x4d]
cmp al, 0x45
cmp byte [edi - 0x7d], al
les eax, [ecx + eax*4]
jecxz 0x100052a0
jns 0x100052ba
add byte [ecx + 0x1147ce3], al
add byte [ebx + 0x50], bl
pop ebx
push eax
and ebx, 0x1147c
push esi
add esp, 4
add eax, 0xa413
xor eax, 0x2a43
pop eax
mov edx, dword fs:[0x18]
mov dword [ebp - 0x2688], edx
mov eax, dword [ebp - 0x2688]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x268c], ecx
mov edx, dword [ebp - 0x268c]
mov dword [ebp - 0x18ec], edx
push edi
xor edi, 0x6a4
sub edi, 0x12c50
and edi, 0x12df9
pop edi
push ebx

Function at 0x100052b1
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push eax
add esp, 4
or esi, 0x12aff
add esi, 0xae27
call 0x1000528e
add byte [esi], bh
xor al, byte [edi + 0x33]
cmp al, 0x4f
dec eax
cmp eax, dword [ebx + 0x575e04c4]
or edi, 0xb326
jmp 0x100052a0
pop edi
push ebx
call 0x100052b1
add byte [edx], dh
aaa
xor ecx, dword [ebp + 0x4d]
cmp al, 0x45
cmp byte [edi - 0x7d], al
les eax, [ecx + eax*4]
jecxz 0x100052a0
jns 0x100052ba
add byte [ecx + 0x1147ce3], al
add byte [ebx + 0x50], bl
pop ebx
push eax
and ebx, 0x1147c
push esi
add esp, 4
add eax, 0xa413
xor eax, 0x2a43
pop eax
mov edx, dword fs:[0x18]
mov dword [ebp - 0x2688], edx
mov eax, dword [ebp - 0x2688]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x268c], ecx
mov edx, dword [ebp - 0x268c]
mov dword [ebp - 0x18ec], edx
push edi
xor edi, 0x6a4
sub edi, 0x12c50
and edi, 0x12df9
pop edi
push ebx
Function at 0x10006225
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
add esp, 4
xor ecx, 0x1fe9
or ecx, 0x14fc0
pop ecx
mov ecx, dword [ebp - 0x5cc]
mov dword [ebp - 0x398], ecx
jmp 0x100062ab

Function at 0x1000625d
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
add esp, 4
pop edi
push esi
sub esi, 0x13e0f
sub esi, 0x10e0d
xor esi, 0x14188
pop esi
mov edx, dword [ebp - 0x5cc]
mov eax, dword [edx]
mov dword [ebp - 0x5cc], eax
mov ecx, dword [ebp - 0x5cc]
cmp ecx, dword [ebp - 0xeb4]
je 0x100062a1
mov edx, dword [ebp - 0x5cc]
cmp dword [edx + 0x30], 0
jne 0x10006057
mov dword [ebp - 0x398], 0
Function at 0x100077f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
imul dword [esi + edx*4 - 0x87f0000]
adc dword [edi], 1
add byte [edi + 0x56], bl
Function at 0x1002d7c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100535d8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x10068548]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x30]
mov ecx, dword [ecx + 4]
mov dword [esp + 8], ecx
mov byte [esp + 0xc], 1
lea edx, [esp + 8]
push edx
push eax
mov dword [esp + 0x24], 0
call fcn.1002e1b0
mov byte [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x1c], 0xffffffff
cmp byte [esp + 0xc], 0
je 0x1002d859
mov eax, dword [esp + 8]
mov ecx, 0x80000000
mov edx, eax
lock xadd dword [edx], ecx
test ecx, 0x40000000
jne 0x1002d859
cmp ecx, 0x80000000
jle 0x1002d859
mov ecx, eax
lock bts dword [ecx], 0x1e
jb 0x1002d859
call fcn.10004db0
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
add esp, 0x1c
ret 4

Function at 0x1002f296
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10068548]
jne 0x1002f2a0
repz ret
jmp fcn.10033057
Function at 0x432000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
mov ecx, 0x2d5d75e7
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
nop
mov ecx, 0xb481217
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x40aafb
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x41a004]
xor eax, esp
mov dword [esp + 0x38], eax
push esi
mov esi, dword [ebp + 8]
push 0x40757c
push 0x407598
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ab35
push 0x800
call eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0xc]
call fcn.00409d50
push esi
lea ecx, [esp + 0x24]
call fcn.004092bb
lea ecx, [esp + 0x20]
call fcn.00409667
mov esi, eax
test esi, esi
jns 0x40ab89
lea ecx, [esp + 8]
call fcn.0040aa70
test al, al
je 0x40abd3
cmp esi, 0x80040b00
jne 0x40abd3
lea ecx, [esp + 0x20]
call fcn.00409723
mov esi, eax
test esi, esi
js 0x40abd3
mov esi, 0x80040b02
jmp 0x40abd3
cmp dword [esp + 0x1c], 8
lea esi, [esp + 8]
jb 0x40ab98
mov esi, dword [esp + 8]
push 0x406f80
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40abcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x40abc4
jle 0x40abd3
movzx esi, si
or esi, 0x80070000
jmp 0x40abd3
mov esi, 0x80004005
jmp 0x40abd3
push dword [ebp + 0x14]
push esi
call eax
mov esi, eax
lea ecx, [esp + 0x20]
call fcn.00409357
lea ecx, [esp + 8]
call fcn.00409e49
mov ecx, dword [esp + 0x3c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0040b227
mov esp, ebp
pop ebp
ret 0x10

Function at 0x41038a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp 0x410078
Function at 0x4011c6
Capabilities:
Access peb ldr_data
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
call fcn.0040114f
call section..text
movzx eax, al
cmp eax, 1
jne 0x4011e9
push 5
pop eax
jmp 0x4013b8
and dword [ebp - 0x40], 0
and dword [ebp - 0xc], 0
and dword [ebp - 0x30], 0
and dword [ebp - 0x14], 0
and dword [ebp - 0x24], 0
and dword [ebp - 0x44], 0
and dword [ebp - 8], 0
and dword [ebp - 0x18], 0
and dword [ebp - 0x1c], 0
and dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0x330
pushal
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ebx, eax
add ebx, 0xc
mov eax, dword [eax + 0xc]
mov edi, dword [eax + 0x30]
mov ecx, 0x18
xor esi, esi
xor ebx, ebx
add bl, byte [edi + ecx - 1]
add esi, ebx
loop 0x401234
cmp esi, dword [ebp - 0x2c]
je 0x401249
mov eax, dword [eax]
cmp eax, ebx
jne 0x40122a
mov eax, dword [eax + 0x18]
mov dword [ebp - 8], eax
nop
popal
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
push 0x4fd370
push dword [0x4fd34c]
push str.9__.
push dword [0x4fd370]
push 0x4fd374
call fcn.0040102b
add esp, 0x14
push 0x4fd374
push dword [ebp - 8]
call dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
push 0x4fd390
push dword [0x4fd34c]
push str.9__.
push dword [0x4fd390]
push 0x4fd394
call fcn.0040102b
add esp, 0x14
push 0x4fd394
push dword [ebp - 8]
call dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
push 0x4fd3b0
push dword [0x4fd34c]
push str.9__.
push dword [0x4fd3b0]
push 0x4fd3b4
call fcn.0040102b
add esp, 0x14
push 0x4fd3b4
push dword [ebp - 8]
call dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [0x404030]
mov dword [ebp - 0x10], eax
push 4
push 0x1000
mov eax, dword [ebp - 0x10]
inc eax
push eax
push 0
call dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], str._n_f_r_b_r_v_n_t_a_r
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x10]
push eax
push dword [section..data]
push 0x404004
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.0040102b
add esp, 0x14
mov dword [ebp - 4], eax
and dword [ebp - 0x34], 0
lea eax, [ebp - 0x34]
push eax
push 0x20
push dword [0x404030]
push dword [ebp - 4]
call dword [ebp - 0x24]
push 0x404704
push dword [0x404034]
push 0x4046d8
push dword [0x404704]
push 0x404708
call fcn.0040102b
add esp, 0x14
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 4]
mov dword [0x4fd40c], eax
and dword [ebp - 0x28], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + eax]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 1
push dword [ebp - 0x28]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
call dword [0x4fd40c]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402060
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x405dd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetParent]
mov eax, dword [esi + 0x20]
push eax
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CClientDC::CClientDC
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x50], 0
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi + 0x20]
push edx
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call sub.MFC42.DLL_CWnd::ScreenToClient
mov eax, dword [esi + 0xc8]
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
jne 0x402196
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x2c]
neg eax
sbb eax, eax
and eax, ecx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0xc4]
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x14]
sub ecx, edi
push eax
push ecx
push edx
lea edi, [esi + 0xd4]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
test edi, edi
je 0x402142
mov edi, dword [edi + 4]
mov eax, dword [esi + 0xc8]
push edi
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov dword [esi + 0xdc], eax
mov eax, dword [esp + 0xc]
sub ecx, edx
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x30]
sub edx, eax
lea eax, [esp + 0x2c]
push 0xcc0020
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [esp + 0x24]
push edi
mov edi, dword [esp + 0x24]
push edi
push eax
push ecx
mov ecx, dword [esi + 0xc8]
push edx
push 0
push 0
push ecx
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
sub eax, ecx
mov ecx, dword [esp + 0x14]
lea edx, [esi + 0xc4]
sub ecx, edi
test edx, edx
je 0x4021b7
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x60]
push eax
push ecx
push 0
mov eax, dword [edx + 4]
push 0
push eax
call ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
call fcn.00405764
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 4