joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c6f38
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, ecx
mov edi, edx
mov ebx, eax
mov eax, ebx
call fcn.004c6f24
test eax, eax
jne 0x4c6f59
mov eax, esi
call fcn.00404b00
jmp 0x4c6fea
mov eax, ebx
call fcn.004c7080
test al, al
je 0x4c6f9f
push 0
push 0
push 0xe
mov eax, dword [ebx + 0x54]
push eax
call sub.user32.dll_SendMessageA
mov edi, eax
mov eax, esi
mov ecx, edi
xor edx, edx
call fcn.00404bf0
test edi, edi
je 0x4c6f96
mov eax, dword [esi]
push eax
inc edi
push edi
push 0xd
mov eax, dword [ebx + 0x54]
push eax
call sub.user32.dll_SendMessageA
jmp 0x4c6fea
mov eax, esi
call fcn.00404b00
jmp 0x4c6fea
mov ebp, dword [ebx + 0x78]
test ebp, ebp
je 0x4c6fe3
mov eax, dword [ebp + 0x208]
call fcn.0041aa14
test eax, eax
jle 0x4c6fd1
mov eax, dword [ebx + 0x78]
mov eax, dword [eax + 0x208]
mov edx, edi
call fcn.00438338
mov edx, dword [eax + 0xc]
mov eax, esi
call fcn.00404b54
jmp 0x4c6fea
mov eax, esi
mov edx, dword [ebx + 0x78]
mov edx, dword [edx + 0x210]
call fcn.00404b54
jmp 0x4c6fea
mov eax, esi
call fcn.00404b00
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4c8c98
Capabilities:
Capture webcam image

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
push 1
push esi
mov ecx, 1
xor edx, edx
xor eax, eax
call fcn.00406e90
push esi
push 0
push 0x419
mov eax, dword [ebx + 0x54]
push eax
call sub.user32.dll_SendMessageA
pop esi
pop ebx
ret

Function at 0x4cb1f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4cb2aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0040520c
mov eax, dword [0x541270]
cmp dword [eax], 2
jne 0x4cb25f
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00405454
mov eax, dword [ebx]
call fcn.00405378
push eax
mov eax, dword [ebx]
call fcn.00405368
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00405378
mov edx, eax
dec edx
mov eax, ebx
call fcn.00405454
jmp 0x4cb291
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.00409fd0
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00405358
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cb2b1
lea eax, [ebp - 0x3f0]
call fcn.00404b00
ret
Function at 0x4d5e54
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, ecx
mov esi, edx
mov ebx, eax
mov ebp, 0x544228
test esi, esi
jne 0x4d5e6e
xor eax, eax
jmp 0x4d5f70
cmp dword [ebp], 0
jne 0x4d5e79
call fcn.004d5de4
xor ebx, 0xffffffff
cmp edi, 8
jb 0x4d5f49
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
sub edi, 8
cmp edi, 8
jae 0x4d5e85
test edi, edi
jbe 0x4d5f6b
xor eax, eax
mov al, byte [esi]
xor eax, ebx
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
dec edi
test edi, edi
ja 0x4d5f4d
mov eax, ebx
xor eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x50aeb4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, eax
mov ebx, dword [ebp + 8]
add ebx, 0xffffffc4
mov esi, dword [ebp + 8]
add esi, 0xffffffbc
xor eax, eax
push ebp
push 0x50b070
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.0042994c
mov eax, dword [eax + 0xc]
mov edx, dword [esi]
mov edx, dword [edx + 0x30]
mov edx, dword [edx + 0x70]
mov edx, dword [edx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x48]
call fcn.0045d8d8
call fcn.004e2c24
mov edx, dword [ebp + 8]
mov dword [edx - 0x4c], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 0x4c], 0
je 0x50af38
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x4c]
mov eax, dword [eax + 0x68]
call fcn.004241bc
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.0042994c
mov eax, dword [eax + 0xc]
pop edx
call fcn.004241c4
mov eax, dword [ebp + 8]
mov dword [eax - 0x50], ebx
lea edx, [ebp - 4]
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.004240a4
mov edx, dword [ebp - 4]
lea eax, [ebx + 0x1c]
call fcn.00409e7c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x50]
push eax
push 0x3c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.0042994c
call fcn.00424f9c
push eax
call sub.gdi32.dll_GetObjectA
mov dword [ebx + 8], edi
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00424118
mov dword [ebx], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00424154
test al, 8
setne al
mov byte [ebx + 0x16], al
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00424154
test al, 2
setne al
mov byte [ebx + 0x14], al
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.00424154
test al, 4
setne al
mov byte [ebx + 0x15], al
mov dword [ebx + 0x10], 0x190
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x70]
mov eax, dword [eax + 0x10]
call fcn.004241bc
mov byte [ebx + 0x17], al
xor eax, eax
mov dword [ebx + 4], eax
mov byte [ebx + 0x18], 0
mov byte [ebx + 0x19], 0
mov eax, dword [ebx + 8]
mov dword [ebx + 0xc], eax
mov byte [ebx + 0x1b], 0
mov byte [ebx + 0x1a], 0
push ebx
call sub.gdi32.dll_CreateFontIndirectA
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.0042994c
mov eax, dword [eax + 0xc]
pop edx
call fcn.00424050
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x40]
call fcn.0042994c
mov eax, dword [eax + 0xc]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 0x54]
mov ecx, edx
shl edx, 6
add edx, ecx
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0xa0]
mov edx, dword [ecx + edx*4 + 0xb0]
call fcn.00423e94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50b077
lea eax, [ebp - 4]
call fcn.00404b00
ret
Function at 0x50d3c8
Capabilities:
Find taskbar

Disassembly:
push 0
push 0x50d3d8
call sub.user32.dll_FindWindowA
ret

Function at 0x525f5c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffdc
mov ebp, edx
mov ebx, eax
cmp dword [ebx + 0x6c], 0
jne 0x525f74
mov eax, ebx
call fcn.005257f4
cmp dword [ebx + 0x68], 0
jne 0x525f81
mov eax, ebx
call fcn.00525750
mov esi, dword [ebx + 0x6c]
test esi, esi
je 0x526134
cmp dword [ebx + 0x68], 0
je 0x526134
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [esp], eax
mov eax, dword [ebx + 0x6c]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [esp + 4], eax
lea edx, [esp + 0x14]
mov eax, ebx
call fcn.005255c0
lea eax, [esp + 0x14]
xor edx, edx
call fcn.00527b74
cmp eax, dword [esp]
je 0x526003
lea eax, [esp + 0x14]
xor edx, edx
call fcn.00527b88
mov edx, dword [esp + 4]
sub edx, eax
sar edx, 1
jns 0x525fdf
adc edx, 0
push edx
lea eax, [esp + 0x18]
xor edx, edx
call fcn.00527b74
mov edx, dword [esp + 4]
sub edx, eax
sar edx, 1
jns 0x525ff8
adc edx, 0
push edx
lea eax, [esp + 0x1c]
push eax
call sub.user32.dll_InflateRect
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x526016
mov eax, dword [eax + 0x10]
call fcn.00451a7c
mov esi, eax
jmp 0x526019
mov esi, dword [ebx + 0x50]
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
and eax, 8
cmp eax, 8
jne 0x52602e
or esi, 0xffffffff
jmp 0x526038
push 3
push esi
call sub.user32.dll_GetWindow
mov esi, eax
mov edi, 0x610
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 0x68]
call fcn.0044a9b4
mov edx, dword [esp + 0x18]
mov eax, dword [ebx + 0x68]
call fcn.0044a9d8
mov edx, dword [esp]
mov eax, dword [ebx + 0x68]
call fcn.0044aa00
mov edx, dword [esp + 4]
mov eax, dword [ebx + 0x68]
call fcn.0044aa24
lea ecx, [esp + 8]
xor edx, edx
xor eax, eax
call fcn.00406eac
mov eax, ebp
mov byte [esp + 0x12], al
mov byte [esp + 0x10], 0
mov byte [esp + 0x11], 0
mov byte [esp + 0x13], 1
or edi, 2
or edi, 1
push edi
push 0
push 0
push 0
push 0
push esi
mov eax, dword [ebx + 0x68]
call fcn.00451a7c
push eax
call sub.user32.dll_SetWindowPos
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0xffffffffffffffec
mov eax, dword [ebx + 0x68]
call fcn.00451a7c
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80000
or eax, 0x8000000
or eax, 0x20
push eax
push 0xffffffffffffffec
mov eax, dword [ebx + 0x68]
call fcn.00451a7c
push eax
call sub.user32.dll_SetWindowLongA
push 2
lea eax, [esp + 0x14]
push eax
push 0x1fffffff
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 0x6c]
call fcn.0042994c
call fcn.00424f9c
push eax
lea eax, [esp + 0x14]
push eax
push 0
push esi
mov eax, dword [ebx + 0x68]
call fcn.00451a7c
push eax
mov eax, dword [0x540af0]
mov eax, dword [eax]
call eax
push 4
mov eax, dword [ebx + 0x68]
call fcn.00451a7c
push eax
call sub.user32.dll_ShowWindow
push esi
push 0
call sub.user32.dll_ReleaseDC
add esp, 0x24
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x526374
Capabilities:
Allocate or change rwx memory
Find taskbar
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa4
mov dword [esp], eax
mov eax, dword [esp]
xor ecx, ecx
mov edx, 0x10
call fcn.00403440
lea eax, [esp + 0x38]
push eax
call sub.kernel32.dll_GetSystemInfo
call sub.user32.dll_GetDesktopWindow
test eax, eax
je 0x526560
push 0
push 0x526568
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x526560
push 0
push 0x526578
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x526560
push 0
push 0x526588
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x526560
push 0
push 0x526598
push 0
push eax
call sub.user32.dll_FindWindowExA
mov ebp, eax
test ebp, ebp
je 0x526560
push 0
push 0
push 0x418
push ebp
call sub.user32.dll_SendMessageA
mov dword [esp + 4], eax
cmp dword [esp + 4], 1
jl 0x526560
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push ebp
call sub.user32.dll_GetWindowThreadProcessId
cmp dword [esp + 8], 0
je 0x526560
mov eax, dword [esp + 8]
push eax
push 0
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov edi, eax
test edi, edi
je 0x526560
push 0x40
push 0x1000
push 0x1000
push 0
push edi
call sub.kernel32.dll_VirtualAllocEx
mov esi, eax
test esi, esi
je 0x526560
or ebx, 0xffffffff
cmp ebx, dword [esp + 4]
jge 0x52654c
inc ebx
push esi
push ebx
push 0x417
push ebp
call sub.user32.dll_SendMessageA
test eax, eax
je 0x526542
lea eax, [esp + 0xc]
push eax
push 0x18
lea eax, [esp + 0x1c]
push eax
push esi
push edi
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x526542
test byte [esp + 0x1d], 0xd
jne 0x526542
mov al, byte [esp + 0x1c]
and al, 8
cmp al, 8
je 0x526542
lea eax, [esp + 0xc]
push eax
push 4
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
push eax
push edi
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x526542
cmp dword [esp + 0xc], 0
je 0x526542
mov eax, dword [0x540f9c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
cmp eax, dword [esp + 0x10]
jne 0x526542
push esi
push ebx
push 0x41d
push ebp
call sub.user32.dll_SendMessageA
test eax, eax
je 0x52651e
lea eax, [esp + 0xc]
push eax
push 0x10
mov eax, dword [esp + 8]
push eax
push esi
push edi
call sub.kernel32.dll_ReadProcessMemory
cmp dword [esp + 0xc], 0
je 0x52654c
lea eax, [esp + 0x28]
push eax
push ebp
call sub.user32.dll_GetWindowRect
mov eax, dword [esp]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
call fcn.00406ef0
jmp 0x52654c
cmp ebx, dword [esp + 4]
jl 0x526482
push 0x8000
push 0
push esi
push edi
call sub.kernel32.dll_VirtualFreeEx
push edi
call sub.kernel32.dll_CloseHandle_1
add esp, 0x5c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x527f8c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, eax
call sub.kernel32.dll_GetTickCount
mov ebx, eax
mov eax, dword [0x540f9c]
mov eax, dword [eax]
call fcn.0046b060
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, esi
jb 0x527f97
pop esi
pop ebx
ret
Function at 0x52850c
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffe9c
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [esp], eax
mov eax, ebx
call fcn.004099b0
test al, al
je 0x528593
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x160
call fcn.00403440
or esi, 0x100
test esi, esi
jns 0x528547
call fcn.00403c6c
push esi
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
mov eax, ebx
call fcn.00404fc0
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x528593
mov dl, 1
mov eax, dword [0x42302c]
call fcn.0042af70
mov dword [esp], eax
mov edx, dword [esp + 4]
mov eax, dword [esp]
call fcn.0042b37c
mov eax, dword [esp]
mov edx, dword [eax]
call dword [edx + 0x1c]
test al, al
je 0x528593
mov eax, esp
call fcn.0040ee44
mov eax, dword [esp]
add esp, 0x164
pop esi
pop ebx
ret

Function at 0x52be5c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x416ae0]
call fcn.004054b8
xor eax, eax
push ebp
push 0x52bfa0
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x54088c], 0
jne 0x52beaf
mov ecx, dword [0x5409ec]
mov dl, 1
mov eax, dword [0x408210]
call fcn.0040d364
call fcn.004044b8
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00403440
mov eax, ebx
call fcn.00405368
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x52bfb0
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.0040667c
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00405378
test eax, eax
jle 0x52bf47
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x52bf40
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404d88
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404d70
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004090bc
test eax, eax
jne 0x52bf40
mov ebx, 0x15
jmp 0x52bf4c
mov ebx, 0x10
jmp 0x52bf4c
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x54088c]
call fcn.0052bdb4
mov eax, dword [ebp - 8]
call fcn.0052bdb4
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406694
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52bfa7
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404b24
lea eax, [ebp - 0x10]
mov edx, dword [0x416ae0]
call fcn.00405588
ret
Function at 0x536a80
Capabilities:
Capture webcam image

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
push 1
push esi
mov ecx, 1
xor edx, edx
xor eax, eax
call fcn.00406e90
push esi
push 0
push 0x419
mov eax, ebx
call fcn.00451a7c
push eax
call sub.user32.dll_SendMessageA
pop esi
pop ebx
ret
Function at 0x401270
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401289
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 0x4012c4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4012c0
lea ebx, [ebx]
cmp esi, edx
jae 0x4012c4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x4012b0
cmp esi, edx
jb 0x4012cb
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x401440
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x401466
call fcn.00401360
test eax, eax
js 0x401473
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov dword [ecx + 4], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x401e50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a059
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x450440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.Storage.0
mov byte [edi + 4], 0
mov dword [ebp - 4], 0
lea esi, [edi + 8]
mov ebx, dword [ebp + 8]
mov dword [edi], vtable.Xml.0
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.00405ab0
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 4
lea esi, [edi + 0xc]
mov dword [ebp - 0x18], esi
call fcn.004015c0
mov edx, eax
xor ecx, ecx
test edx, edx
mov dword [ebp + 8], edx
setne cl
test ecx, ecx
jne 0x401eea
push 0x80004005
push 0xcd
mov edx, str.ATL::CSimpleStringT_char_0_::CSimpleStringT
mov ecx, str.C:Program_FilesMicrosoft_Visual_Studio_12.0VC_atlmfcinclude_atlsimpstr.h
call fcn.004091e0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 6
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x401f10
push esi
mov ecx, ebx
call fcn.00409ee0
jmp 0x401f13
mov eax, dword [ebp + 0xc]
push dword [eax]
lea ecx, [edi + 0x10]
call fcn.0040ebc0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4091e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43bad0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
push esi
mov eax, dword [0x450440]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], vtable._com_error.0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x50], 0
push dword [ebp + 8]
push edx
push ecx
lea ecx, [esp + 0x30]
call fcn.00408d80
mov byte [esp + 0x50], 1
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
lea ecx, [esp + 0x34]
call fcn.00411c70
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x28]
call fcn.00408ea0
mov esi, eax
mov byte [esp + 0x50], 2
lea ecx, [esp + 0x14]
call fcn.00409900
push eax
lea ecx, [esp + 0x14]
call fcn.00404e30
mov byte [esp + 0x50], 3
mov edx, eax
push esi
lea ecx, [esp + 0xc]
call fcn.004050c0
add esp, 4
lea eax, [esp + 8]
push 0x44e640
push eax
call fcn.00428add
int3

Function at 0x409cf0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43bd18
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x450440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x409df2
mov ecx, dword [esi]
lea eax, [ebp - 0x14]
sub ecx, 0x10
mov dword [ebp - 0x18], eax
call fcn.00405ab0
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.00404e30
mov dword [ebp - 4], 0xffffffff
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lea ecx, [edx + 0xc]
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x409d77
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x10]
call fcn.0040a3c0
test eax, eax
je 0x409d92
lea ecx, [ebp - 0x10]
call fcn.00409cf0
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x409dc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x409db2
movzx eax, ax
or eax, 0x80070000
push eax
push 0x36
mov edx, str.Path::EnsureExists
mov ecx, str.path.cpp
call fcn.004091e0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x409df2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret