joyce8/EMBER2024-capa huggingface dataset:
Function at 0x20402e40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, ebx
call fcn.2040211e
mov ecx, eax
test eax, eax
je 0x20402fde
cmp eax, 6
jbe 0x20402f27
mov dword [esp + 0x10], ecx
lea edx, [eax + ebx]
neg edx
lea ecx, [esp + eax*2 + 0x1c]
add edx, ecx
lea edi, [eax + eax]
mov dword [esp + 0x23c], ecx
mov ecx, dword [esp + 0x10]
cmp edx, edi
jg 0x20402e85
neg edx
cmp edx, eax
jle 0x20402f27
mov edi, eax
shr edi, 1
je 0x2040305b
xor ecx, ecx
lea edx, [ebx + eax]
mov dword [esp + 0x230], esi
mov dword [esp + 0x240], edi
mov dword [esp + 0x224], eax
mov dword [esp + 0x228], ebx
mov esi, ecx
mov ebx, dword [esp + 0x23c]
lea eax, [ecx*4]
neg eax
inc ecx
movsx edi, byte [esi + edx]
mov word [ebx + eax], di
movsx edi, byte [esi + edx - 1]
add esi, 0xfffffffe
mov word [ebx + eax - 2], di
cmp ecx, dword [esp + 0x240]
jb 0x20402eb2
mov eax, dword [esp + 0x224]
lea edx, [ecx + ecx + 1]
mov ebx, dword [esp + 0x228]
mov esi, dword [esp + 0x230]
lea ecx, [edx - 1]
cmp ecx, eax
jae 0x20402f1a
lea ecx, [ebx + eax]
sub ecx, edx
add edx, edx
neg edx
movsx edi, byte [ecx + 1]
mov ecx, dword [esp + 0x23c]
mov word [edx + ecx + 2], di
lea edx, [eax + 1]
sub eax, edx
lea ecx, [eax + 1]
jmp 0x20402fde
mov edx, eax
shr edx, 1
mov dword [esp + 0x244], edx
je 0x20404c61
xor edx, edx
lea ecx, [esp + eax*2 + 0x1c]
mov dword [esp + 0x22c], ecx
lea edi, [ebx + eax]
mov dword [esp + 0x224], eax
xor ecx, ecx
mov dword [esp + 0x228], ebx
mov dword [esp + 0x230], esi
mov eax, dword [esp + 0x22c]
mov edx, 1
jmp 0x20402efa
mov edx, 1
jmp 0x20402fae
Function at 0x20406cec
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
sub esp, 0x268
mov ecx, dword [eax + 0xc]
push ebx
push ebp
push esi
add ecx, 0xc
push edi
mov ecx, dword [ecx]
xor eax, eax
mov dword [esp + 0x10], ecx
mov ebp, dword [ecx + 0x30]
cmp word [ebp], ax
je 0x20406d1c
inc eax
cmp word [ebp + eax*2], 0
jne 0x20406d13
xor edx, edx
xor edi, edi
test eax, eax
je 0x20406d02
nop dword [eax + eax]
movzx esi, word [ebp + edi*2]
mov ebx, esi
lea ecx, [esi - 0x41]
cmp cx, 0x19
ja 0x20406d42
lea ecx, [esi + 0x20]
movzx ebx, cx
imul edx, edx, 0x1003f
inc edi
movzx ecx, bx
add edx, ecx
cmp edi, eax
jb 0x20406d2c
mov ecx, dword [esp + 0x10]
cmp edx, 0x43aec803
jne 0x20406d02
mov eax, ecx
mov ecx, dword [eax + 0x18]
mov edi, dword [ecx + 0x87e04]
lea edx, [ecx + 0x87e00]
mov esi, dword [edx]
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov dword [esp + 0x14], esi
movd xmm0, edi
mov dword [esp + 0x10], edi
pshufd xmm1, xmm0, 0
test esi, esi
je 0x20406e2e
cmp esi, 0x10
jb 0x20406e18
lea eax, [edx + 4]
lea edi, [esp + 0x3c]
lea eax, [eax + esi*4]
cmp edi, eax
lea ebx, [esp + esi*4 + 0x38]
mov edi, dword [esp + 0x10]
lea ebp, [edx + 8]
ja 0x20406db6
cmp ebx, ebp
jae 0x20406e18
mov ebp, esi
lea edi, [esp + 0x44]
lea esi, [esp + 0x54]
and ebp, 0xfffffff0
sub edi, edx
lea eax, [edx + 0x18]
sub esi, edx
nop
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x40]
paddd xmm0, xmm1
movups xmmword [esp + ecx*4 + 0x3c], xmm0
movups xmm0, xmmword [eax - 0x40]
paddd xmm0, xmm1
movups xmmword [esp + ecx*4 + 0x4c], xmm0
add ecx, 0x10
mov ebx, ecx
movups xmm0, xmmword [eax - 0x30]
paddd xmm0, xmm1
movups xmmword [edi + eax - 0x40], xmm0
movups xmm0, xmmword [eax - 0x20]
paddd xmm0, xmm1
movups xmmword [esi + eax - 0x40], xmm0
cmp ecx, ebp
jb 0x20406dcc
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
cmp ebx, esi
jae 0x20406e2e
lea edx, [edx + ecx*4]
add edx, 8
mov eax, dword [edx]
lea edx, [edx + 4]
add eax, edi
mov dword [esp + ecx*4 + 0x3c], eax
inc ecx
cmp ecx, esi
jb 0x20406e1e
invalid
dec esp
Function at 0x415fdb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4203dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040dd8b
and dword [ebp - 0x14], 0
cmp dword [0x4379f0], 0
mov dword [ebp - 0x18], eax
jne 0x41608e
push 0x403f10
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x416136
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403f04
push ebx
call edi
test eax, eax
je 0x416136
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403ef4
push ebx
mov dword [0x4379f0], eax
call edi
push eax
call esi
push 0x403ee0
push ebx
mov dword [0x4379f4], eax
call edi
push eax
call esi
push 0x403ec4
push ebx
mov dword [0x4379f8], eax
call edi
push eax
call esi
mov dword [0x437a00], eax
test eax, eax
je 0x41608e
push 0x403eac
push ebx
call edi
push eax
call esi
mov dword [0x4379fc], eax
mov eax, dword [0x4379fc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4160e7
cmp dword [0x437a00], ecx
je 0x4160e7
push eax
call esi
push dword [0x437a00]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4160e7
test ebx, ebx
je 0x4160e7
call edi
test eax, eax
je 0x4160de
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4160de
test byte [ebp - 8], 1
jne 0x4160e7
or dword [ebp + 0x10], 0x200000
jmp 0x41611a
mov eax, dword [0x4379f4]
cmp eax, dword [ebp - 0x18]
je 0x41611a
push eax
call esi
test eax, eax
je 0x41611a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41611a
mov eax, dword [0x4379f8]
cmp eax, dword [ebp - 0x18]
je 0x41611a
push eax
call esi
test eax, eax
je 0x41611a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4379f0]
call esi
test eax, eax
je 0x416136
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x416138
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040b0ae
leave
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x407ef8
nop
mov ecx, 0x125104b3
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
mov eax, section..text
nop
nop
mov ebx, 0x42cd70
mov ecx, 0x5b564349
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
popal
nop
nop
nop
jmp 0x401219
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
pop eax
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x401000
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x10420
call fcn.00422eb0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x10418], eax
push ebx
push ebp
push esi
xor eax, eax
push 0xfffc
push eax
mov word [esp + 0x428], ax
lea eax, [esp + 0x42a]
push eax
call fcn.00412740
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
lea eax, [esp + 0x42c]
add esp, 0xc
mov ebx, 0x7fff
mov ebp, 0x3fa
push ebx
push eax
push ebp
push dword [0x49fefc]
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [esp + 0x420], 0
jne 0x401074
call fcn.00401b86
push ebx
lea eax, [esp + 0x424]
push eax
push ebp
push dword [0x49fefc]
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [esp + 0x420], 0
jne 0x4010e4
mov ecx, 0x429f90
call fcn.0040ca67
mov esi, dword [sym.imp.SHLWAPI.dll_StrCpyW]
push eax
lea eax, [esp + 0x21c]
push eax
call esi
mov ecx, 0x429f98
call fcn.0040ca67
push eax
lea eax, [esp + 0x14]
push eax
call esi
push 0x30
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x220]
push eax
push dword [0x49fefc]
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x4010e7
xor eax, eax
inc eax
mov ecx, dword [esp + 0x10424]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00411b03
add esp, 0x10420
ret
Function at 0x4010ff
Capabilities:
Create thread
Get graphical window text

Disassembly:
mov eax, 0x10014
call fcn.00422eb0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1000c], eax
push ebx
push ebp
push esi
push edi
sub ecx, 0x3f6
je 0x401256
sub ecx, 1
je 0x401233
sub ecx, 4
je 0x40122c
sub ecx, 0xfb8
jne 0x40127f
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x402
push dword [0x49fefc]
call esi
push 0x13b2
push dword [0x49fefc]
mov ebp, eax
call esi
mov dword [esp + 0x14], eax
xor ebx, ebx
xor eax, eax
push 0xfffe
mov word [esp + 0x1c], ax
lea eax, [esp + 0x1e]
push ebx
push eax
call fcn.00412740
add esp, 0xc
cmp dword [0x42fc28], ebx
jne 0x4011db
push 0x429fa0
push 0x13b3
push dword [0x49fefc]
call esi
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push ebp
call esi
mov ebx, dword [esp + 0x14]
push 5
push ebx
call esi
push 0x7fff
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x18]
push eax
push ebx
call edi
xor ebx, ebx
inc ebx
jmp 0x401224
push 0x429fa8
push 0x13b3
push dword [0x49fefc]
call esi
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push dword [esp + 0x18]
call esi
push 5
push ebp
call esi
push 0x7fff
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x18]
push eax
push ebp
call edi
mov dword [0x42fc28], ebx
jmp 0x40127f
call fcn.00401b86
jmp 0x40127f
call section..text
test eax, eax
je 0x40127f
lea eax, [esp + 0x14]
mov dword [0x42fc2c], 2
push eax
xor ebx, ebx
push ebx
push ebx
push 0x4022b9
jmp 0x401277
call section..text
test eax, eax
je 0x40127f
lea eax, [esp + 0x14]
mov dword [0x42fc2c], 1
push eax
xor ebx, ebx
push ebx
push ebx
push 0x401eaa
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x1001c]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
inc eax
call fcn.00411b03
add esp, 0x10014
ret
Function at 0x401b86
Capabilities:
Get file size

Disassembly:
mov eax, 0x10750
call fcn.00422eb0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x10748], eax
push ebx
push ebp
push esi
push 0xfffe
xor ebx, ebx
lea eax, [esp + 0x754]
push ebx
push eax
call fcn.00412740
add esp, 0xc
lea eax, [esp + 0x10]
push 0x58
pop esi
push esi
push ebx
push eax
call fcn.00412740
mov eax, dword [0x49fef8]
add esp, 0xc
mov dword [esp + 0x18], eax
mov ecx, 0x42a108
mov eax, dword [0x49fefc]
mov dword [esp + 0x10], esi
mov dword [esp + 0x44], 0x881820
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 0x42a0dc
call fcn.0040ca67
mov dword [esp + 0x40], eax
mov ebp, 0x7fff
lea eax, [esp + 0x750]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x34], ebp
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x58], ebx
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
cmp word [esp + 0x750], bx
je 0x401da1
push dword [esp + 0x2c]
push 0x3fa
push dword [0x49fefc]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
lea eax, [esp + 0x768]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401cd3
mov ecx, 0x42a110
call fcn.0040ca67
mov esi, dword [sym.imp.SHLWAPI.dll_StrCpyW]
push eax
lea eax, [esp + 0x54c]
push eax
call esi
mov ecx, 0x42a118
call fcn.0040ca67
push eax
lea ecx, [esp + 0x344]
push ecx
call esi
push 0x30
lea ecx, [esp + 0x344]
push ecx
lea ecx, [esp + 0x550]
push ecx
push dword [0x49fefc]
call dword [sym.imp.USER32.dll_MessageBoxW]
or eax, 0xffffffff
jmp 0x401da4
xor eax, eax
push 0x206
mov word [esp + 0x13c], ax
lea eax, [esp + 0x13e]
push ebx
push eax
call fcn.00412740
add esp, 0xc
xor eax, eax
mov word [esp + 0x70], ax
lea eax, [esp + 0x72]
push 0xc6
push ebx
push eax
call fcn.00412740
add esp, 0xc
lea eax, [esp + 0x750]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [esp + 0x13c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
lea eax, [esp + 0x6c]
mov dword [esp + 0x6c], ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push eax
push 0x64
pop edx
lea ecx, [esp + 0x78]
call fcn.0040cb87
pop ecx
pop ecx
lea eax, [esp + 0x138]
mov ecx, 0x42a120
push eax
lea eax, [esp + 0x74]
push eax
call fcn.0040ca67
push eax
push ebp
mov ebx, 0x43fc30
push ebx
call fcn.00402dab
add esp, 0x14
mov ecx, ebx
push 1
call fcn.0040cb6e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x403
push dword [0x49fefc]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edx, eax
lea ecx, [esp + 0x750]
call fcn.00401dbc
xor eax, eax
inc eax
mov ecx, dword [esp + 0x10754]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00411b03
add esp, 0x10750
ret
Function at 0x401dbc
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x10
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push ebp
xor ebx, ebx
mov dword [esp + 8], edx
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
test ebp, ebp
je 0x401e96
push esi
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, 0x3e8
cmp eax, esi
ja 0x401e0f
mov esi, eax
test eax, eax
je 0x401e8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x401e8e
push edi
push 2
push esi
call fcn.00414b53
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x401e8d
push ebx
lea eax, [esp + 0x1c]
push eax
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_IsTextUnicode]
push 2
push esi
test eax, eax
jne 0x401e63
call fcn.00414b53
pop ecx
pop ecx
push esi
mov ebx, eax
push ebx
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x401e74
call fcn.00414b53
pop ecx
pop ecx
mov ebx, eax
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
push ebx
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push ebx
call fcn.00414b5e
push edi
call fcn.00414b5e
pop ecx
pop ecx
pop edi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov ecx, dword [esp + 0x14]
xor eax, eax
pop ebp
pop ebx
xor ecx, esp
inc eax
call fcn.00411b03
add esp, 0x10
ret

Function at 0x402dda
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x10420
call fcn.00422eb0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x10418], eax
push ebx
push ebp
push esi
xor eax, eax
push 0xfffc
push eax
mov word [esp + 0x428], ax
lea eax, [esp + 0x42a]
push eax
call fcn.00412740
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
lea eax, [esp + 0x42c]
add esp, 0xc
mov ebx, 0x7fff
mov ebp, 0x416
push ebx
push eax
push ebp
push dword [0x49fefc]
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [esp + 0x420], 0
jne 0x402e4e
call fcn.004035a3
push ebx
lea eax, [esp + 0x424]
push eax
push ebp
push dword [0x49fefc]
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [esp + 0x420], 0
jne 0x402ebe
mov ecx, 0x42a25c
call fcn.0040ca67
mov esi, dword [sym.imp.SHLWAPI.dll_StrCpyW]
push eax
lea eax, [esp + 0x21c]
push eax
call esi
mov ecx, 0x42a264
call fcn.0040ca67
push eax
lea eax, [esp + 0x14]
push eax
call esi
push 0x30
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x220]
push eax
push dword [0x49fefc]
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x402ec1
xor eax, eax
inc eax
mov ecx, dword [esp + 0x10424]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00411b03
add esp, 0x10420
ret
Function at 0x402ed9
Capabilities:
Create thread
Get graphical window text

Disassembly:
mov eax, 0x10014
call fcn.00422eb0
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1000c], eax
push ebx
push ebp
push esi
push edi
sub ecx, 0x410
je 0x403045
sub ecx, 1
je 0x403019
sub ecx, 6
je 0x403009
sub ecx, 0xf9c
jne 0x403097
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x402
push dword [0x49fefc]
call esi
push 0x13b2
push dword [0x49fefc]
mov ebp, eax
call esi
mov dword [esp + 0x14], eax
xor ebx, ebx
xor eax, eax
push 0xfffe
mov word [esp + 0x1c], ax
lea eax, [esp + 0x1e]
push ebx
push eax
call fcn.00412740
add esp, 0xc
cmp dword [0x42fc28], ebx
jne 0x402fb5
push 0x429fa0
push 0x13b3
push dword [0x49fefc]
call esi
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push ebp
call esi
mov ebx, dword [esp + 0x14]
push 5
push ebx
call esi
push 0x7fff
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x18]
push eax
push ebx
call edi
xor ebx, ebx
inc ebx
jmp 0x402ffe
push 0x429fa8
push 0x13b3
push dword [0x49fefc]
call esi
mov edi, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push dword [esp + 0x18]
call esi
push 5
push ebp
call esi
push 0x7fff
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x18]
push eax
push ebp
call edi
mov dword [0x42fc28], ebx
jmp 0x403097
lea eax, [esp + 0x14]
xor ebx, ebx
push eax
push ebx
push ebx
push fcn.004035a3
jmp 0x40308f
cmp dword [0x42e8d4], 1
je 0x40304e
call fcn.00402dda
test eax, eax
je 0x403097
lea eax, [esp + 0x14]
mov dword [0x44fc30], 2
push eax
xor ebx, ebx
push ebx
push ebx
push 0x403ec0
jmp 0x40308f
cmp dword [0x42e8d4], 1
jne 0x40306e
push 0
push 0x410e0a
push dword [0x49fefc]
push str.NAGSCREEN
push dword [0x49fef8]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
jmp 0x403097
call fcn.00402dda
test eax, eax
je 0x403097
lea eax, [esp + 0x14]
mov dword [0x44fc30], 1
push eax
xor ebx, ebx
push ebx
push ebx
push 0x40397c
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0x1001c]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
inc eax
call fcn.00411b03
add esp, 0x10014
ret
Function at 0x405158
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10004
call fcn.00422eb0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xfffe
xor ebx, ebx
lea eax, [ebp - 0x10004]
push ebx
push eax
mov edi, edx
mov esi, ecx
call fcn.00412740
add esp, 0xc
lea eax, [ebp - 0x10004]
push 0x7fff
push eax
push esi
push dword [0x49fefc]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
call esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
push ebx
push ebx
push 0xf0
push edi
push dword [0x49fefc]
call esi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call edi
test eax, eax
lea eax, [ebp - 0x10004]
push eax
je 0x4051ec
push 0x3fa
push dword [0x49fefc]
call esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push ebx
push 1
jmp 0x405203
push 0x416
push dword [0x49fefc]
call esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
push ebx
push 2
push 0x130c
push 0x3f4
push dword [0x49fefc]
call esi
push eax
call edi
call fcn.00410a91
push 0x48fef0
lea eax, [ebp - 0x10004]
push eax
push 0x42a3c4
push 0x42a3f8
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411b03
leave
ret