joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463624
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4637cf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4637b0
mov dl, 1
mov eax, dword [0x416d28]
call fcn.0040354c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004043ac
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46379f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00450ef4
test al, al
je 0x463792
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4637e0
lea eax, [ebp - 0x254]
call fcn.00409ae4
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x463792
xor eax, eax
push ebp
push 0x46378b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x463818
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x463774
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040461c
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x463774
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040461c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x463792
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x463695
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041b08c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4637d6
lea eax, [ebp - 0x260]
call fcn.004043ac
ret

Function at 0x464118
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4aebec]
cmp byte [eax + 0xa5], 0
jne 0x464189
cmp dword [0x4aec04], 0
jne 0x46414a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4640d4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4aec04], eax
cmp dword [0x4aec00], 0
jne 0x464165
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4aec00], eax
cmp dword [0x4aec08], 0
jne 0x464189
push esp
push 0
push 0
push 0x464078
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4aec08], eax
pop edx
ret
Function at 0x46481c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4aebec]
cmp dword [eax + 0x30], 0
je 0x4648c6
cmp dword [ebx + 0x94], 0
jne 0x4648c0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4647ac
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4648c0
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x464886
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4648c0
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00418cf4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x464895
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x465424
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x465459
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040449c
jmp 0x465466
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404400
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x466620
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x466661
mov eax, esi
call fcn.0044c4bc
test al, al
je 0x466661
mov eax, dword [ebx + 0x84]
call fcn.0044c1b8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x466661
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044c1b8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x476af4
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 [0x415c4c]
call fcn.00404ee8
xor eax, eax
push ebp
push 0x476c38
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4ad4b4], 0
jne 0x476b47
mov ecx, dword [0x4ad850]
mov dl, 1
mov eax, dword [0x407b24]
call fcn.0040c56c
call fcn.00403d1c
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402f8c
mov eax, ebx
call fcn.00404c34
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x476c48
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.0040603c
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.00404c44
test eax, eax
jle 0x476bdf
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 0x476bd8
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404634
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.0040461c
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004089f0
test eax, eax
jne 0x476bd8
mov ebx, 0x15
jmp 0x476be4
mov ebx, 0x10
jmp 0x476be4
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 [0x4ad4b4]
call fcn.00476a4c
mov eax, dword [ebp - 8]
call fcn.00476a4c
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406054
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476c3f
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004043d0
lea eax, [ebp - 0x10]
mov edx, dword [0x415c4c]
call fcn.00404fb8
ret

Function at 0x484800
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 0x4848ba
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404ab8
mov eax, dword [0x4ad8f4]
cmp byte [eax], 0
je 0x48486f
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00404e80
mov eax, dword [ebx]
call fcn.00404c44
push eax
mov eax, dword [ebx]
call fcn.00404c34
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00404c44
mov edx, eax
dec edx
mov eax, ebx
call fcn.00404e80
jmp 0x4848a1
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.00409664
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00404c24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4848c1
lea eax, [ebp - 0x3f0]
call fcn.004043ac
ret
Function at 0x4848c8
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xfffffc14
mov ebx, edx
mov edx, esp
push edx
push 0x3e8
push 0xd
push eax
call sub.user32.dll_SendMessageA
mov edx, ebx
mov eax, esp
call fcn.00409664
add esp, 0x3ec
pop ebx
ret

Function at 0x484a88
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff00
mov esi, edx
mov ebp, eax
mov edx, esi
mov eax, dword [ebp + 0x3c]
call dword [ebp + 0x38]
cmp dword [esi + 0xc], 0
jne 0x484b4e
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.0045caac
mov ebx, eax
mov dx, word [esi + 4]
mov eax, ebp
call fcn.00484744
mov edi, eax
test edi, edi
je 0x484ae7
mov al, byte [0x484b5c]
cmp al, bl
jne 0x484ae7
mov edx, edi
mov eax, ebp
call fcn.0048467c
mov dword [esi + 0xc], 1
mov byte [ebp + 0x31], 1
jmp 0x484b4e
cmp byte [ebp + 0x161], 2
jne 0x484b12
mov eax, dword [esi + 8]
push eax
movzx ecx, word [esi + 4]
mov eax, dword [0x4addc8]
mov eax, dword [eax]
mov eax, dword [eax + 0x44]
mov edx, 0xb006
call fcn.00446a38
test eax, eax
jne 0x484b4e
jmp 0x484b49
mov edx, dword [0x4adc7c]
mov edx, dword [edx]
mov edx, dword [edx + 0x44]
mov eax, dword [ebp + 0x128]
cmp edx, eax
je 0x484b49
test byte [eax + 0x2f4], 8
jne 0x484b49
mov eax, dword [esi + 8]
push eax
movzx ecx, word [esi + 4]
mov eax, dword [0x4adc7c]
mov eax, edx
mov edx, 0xb006
call fcn.00446a38
xor eax, eax
mov dword [esi + 0xc], eax
add esp, 0x100
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov esi, edx
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, eax
mov eax, dword [0x4addc8]
mov eax, dword [eax]
cmp dword [eax + 0x58], 0
jne 0x48ac52
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebx + 0x80]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x84]
cdq
cmp edx, dword [esp + 4]
jne 0x48abf1
cmp eax, dword [esp]
pop edx
pop eax
jae 0x48ac2d
jmp 0x48abf5
pop edx
pop eax
jge 0x48ac2d
mov eax, dword [0x4addc8]
mov eax, dword [eax]
mov dword [eax + 0x38], 2
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00485874
mov eax, dword [ebx + 0xf4]
test eax, eax
je 0x48ac52
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov ebx, dword [eax]
call dword [ebx + 0x40]
jmp 0x48ac52
cmp dword [ebx + 0x11c], 0
je 0x48ac52
xor edx, edx
mov eax, dword [ebx + 0x58]
call fcn.00430774
push 0
push 0
push 0x10
mov eax, dword [ebx + 0x12c]
push eax
call sub.user32.dll_PostMessageA
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x491b80
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 0x491c3a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00404ab8
mov eax, dword [0x4ad8f4]
cmp byte [eax], 0
je 0x491bef
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.00404e80
mov eax, dword [ebx]
call fcn.00404c44
push eax
mov eax, dword [ebx]
call fcn.00404c34
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00404c44
mov edx, eax
dec edx
mov eax, ebx
call fcn.00404e80
jmp 0x491c21
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.00409664
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.00404c24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491c41
lea eax, [ebp - 0x3f0]
call fcn.004043ac
ret

Function at 0x494e48
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x494ea2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [esi + 0x2c8], ecx
mov dword [esi + 0x2cc], edx
mov eax, dword [edx + 0x4c]
mov dword [esi + 0x2bc], eax
mov eax, dword [eax + 0x44]
mov dword [esi + 0xc], eax
mov edx, dword [esi + 0x2c8]
mov eax, esi
call fcn.00494eac
mov eax, dword [esi + 0x2c8]
mov edx, dword [eax + 0x30]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x68]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494ea9
ret

Function at 0x49b2f4
Capabilities:
Capture webcam image

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov edi, edx
mov ebx, eax
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_IsWindow
test eax, eax
jne 0x49b32a
jmp 0x49b3d0
push 0xfffffffffffffff0
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_GetWindowLongA
mov esi, eax
mov eax, esp
push eax
push 0
push 0x419
mov eax, dword [ebx + 0x50]
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
test esi, 2
jbe 0x49b36e
mov edx, dword [ebx + 0x4c]
cmp dword [edx + 0x168], 0
je 0x49b36e
mov eax, dword [ebx + 0x4c]
mov eax, dword [eax + 0x168]
mov eax, dword [eax + 0x14]
jmp 0x49b37e
mov edx, dword [ebx + 0x4c]
mov edx, dword [edx + 0x164]
test edx, edx
je 0x49b37e
mov eax, dword [edx + 0x14]
test eax, eax
je 0x49b397
push eax
push 2
push 5
mov edx, dword [edi + 0x10]
lea ecx, [esp + 0xc]
mov eax, ebx
call fcn.00497c98
jmp 0x49b3d0
mov dl, 1
mov eax, dword [0x421268]
call fcn.00423270
mov esi, eax
mov edx, dword [edi + 0x10]
mov eax, esi
call fcn.00423c30
mov eax, dword [ebx + 0x4c]
mov edx, dword [eax + 0xbc]
mov eax, dword [esi + 0x10]
call fcn.00422e20
mov edx, esp
mov eax, esi
call fcn.00423974
mov eax, esi
call fcn.0040357c
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x49dbb4
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, eax
push 0
mov eax, ebx
call fcn.0044c1b8
push eax
call sub.user32.dll_ShowWindow
mov byte [ebx + 0x279], 0
xor edx, edx
mov eax, ebx
call fcn.004457a4
pop ebx
ret
Function at 0x4a7dec
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a7f5d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x9c], 1
mov eax, dword [ebp - 4]
test byte [eax + 0x1c], 0x10
jne 0x4a7f42
lea eax, [ebp - 0x10d]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 8]
lea eax, [ebp - 0x10d]
call fcn.00409664
mov dl, 1
mov eax, dword [0x47ed60]
call fcn.0047edb8
mov edx, dword [ebp - 4]
mov dword [edx + 0x94], eax
mov dl, 1
mov eax, dword [0x41703c]
call fcn.0040354c
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x98]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
call fcn.0047ee34
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x4a7f3f
mov dl, 1
mov eax, dword [0x4802a4]
call fcn.0048030c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
mov edx, 0x4a7f74
call fcn.0047f3f8
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.004046b8
xor eax, eax
push ebp
push 0x4a7f38
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
xor ecx, ecx
xor edx, edx
mov ebx, dword [eax]
call dword [ebx + 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.0048060c
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004a7f7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a7f3f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x94]
call fcn.0040357c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
call fcn.0040357c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
call fcn.0040357c
ret
mov bl, byte [ebp - 0xd]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a7f64
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004043d0
ret
Function at 0x4013e6
Capabilities:
Delete file

Disassembly:
mov eax, 0x402370
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x238
push ebx
push esi
push edi
lea ecx, [ebp - 0x34]
call fcn.00401f9e
xor ebx, ebx
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.00401f9e
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.00401f9e
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, 0x4047d4
push esi
mov byte [ebp - 4], 2
call edi
push 0x4045d4
call edi
lea eax, [ebp - 0x244]
push 0x200
xor edi, edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
lea eax, [ebp - 0x244]
push 0x40
push eax
lea ecx, [ebp - 0x34]
call sub.MFC42u.DLL_CFile::Open
test eax, eax
je 0x401491
lea ecx, [ebp - 0x34]
call sub.MFC42u.DLL_CFile::GetLength
cmp eax, 0x4200
mov dword [ebp - 0x10], eax
jbe 0x40159e
push eax
call sub.MFC42u.DLL_operatornew
pop ecx
mov ebx, eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0x34]
push ebx
call sub.MFC42u.DLL_CFile::Read
lea ecx, [ebp - 0x34]
call sub.MFC42u.DLL_CFile::Close
lea eax, [ebx + 0x40]
push 0x34
push eax
push 0x4043a0
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea ecx, [ebp - 0x44]
push edi
push 0x40
push esi
call sub.MFC42u.DLL_CFile::Open
test eax, eax
jne 0x40150d
push edi
push 0x1041
push esi
lea ecx, [ebp - 0x44]
call sub.MFC42u.DLL_CFile::Open
test eax, eax
je 0x40150d
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], edi
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [0x4043a0]
push dword [0x4043a4]
add eax, ebx
push eax
call fcn.004010f5
add esp, 0x10
cmp dword [ebp - 0x10], edi
je 0x401505
push dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
push dword [ebp - 0x10]
call sub.MFC42u.DLL_CFile::Write
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
lea ecx, [ebp - 0x44]
call sub.MFC42u.DLL_CFile::Close
push edi
push 0x40
push 0x4045d4
lea ecx, [ebp - 0x24]
call sub.MFC42u.DLL_CFile::Open
test eax, eax
jne 0x401590
push edi
push 0x1041
push 0x4045d4
lea ecx, [ebp - 0x24]
call sub.MFC42u.DLL_CFile::Open
test eax, eax
je 0x401590
push esi
mov dword [ebp - 0x10], edi
call sub.MFC42u.DLL_AfxLoadLibrary
mov esi, eax
mov eax, dword [0x40403c]
add eax, esi
cmp eax, edi
je 0x401582
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [0x4043a8]
push dword [0x4043ac]
add ecx, ebx
push ecx
call eax
add esp, 0x10
lea ecx, [ebp - 0x24]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call sub.MFC42u.DLL_CFile::Write
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
push esi
call sub.MFC42u.DLL_AfxFreeLibrary
lea ecx, [ebp - 0x24]
call sub.MFC42u.DLL_CFile::Close
cmp ebx, edi
jne 0x40159b
push edi
call sub.MFC42u.DLL_operatordelete
pop ecx
push 1
pop edi
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CFile::CFile
and byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call sub.MFC42u.DLL_CFile::CFile
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call sub.MFC42u.DLL_CFile::CFile
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40533b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x220]
mov eax, dword [edi + 0x3c]
mov ecx, dword [eax + edi + 0x78]
mov eax, dword [ecx + edi + 0x1c]
mov ebp, dword [ecx + edi + 0x20]
add eax, edi
mov ebx, dword [ecx + edi + 0x24]
add ebp, edi
mov dword [esp + 0x10], eax
add ebx, edi
jmp 0x4053b4
lea eax, [esp + 0x14]
push 0x208
push eax
call fcn.0040683d
lea eax, [esp + 0x1c]
push eax
push esi
call fcn.00405aba
push dword [esp + 0x238]
lea eax, [esp + 0x28]
push eax
call fcn.0040629e
movzx ecx, word [ebx]
add esp, 0x18
mov edx, dword [esp + 0x10]
mov ecx, dword [edx + ecx*4]
add ecx, edi
cmp dword [esp + 0x224], eax
je 0x4053cb
add ebx, 2
add ebp, 4
mov esi, dword [ebp]
add esi, edi
cmp byte [esi], 0
jne 0x40536b
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
mov eax, ecx
jmp 0x4053c0

Function at 0x40543a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x60
mov eax, dword [esp + 0x64]
push ebx
push ebp
push esi
mov ebp, dword [eax + 0xc]
push edi
mov dword [esp + 0x18], ebp
push dword [ebp + 0x38]
call fcn.004061c8
push dword [ebp + 0x110]
mov ebx, eax
mov dword [esp + 0x7c], ebx
call fcn.004061c8
push ebp
push dword [ebp + 0x44]
mov esi, eax
push ebx
call fcn.0040533b
add esp, 0x14
mov edi, eax
push 0x70
push 0x40
call edi
mov ebx, eax
push ebp
mov dword [esp + 0x24], ebx
mov dword [ebx + 0x54], esi
push dword [ebp + 0x2c]
push esi
call fcn.0040533b
push ebp
mov dword [ebx + 0x30], eax
push dword [ebp + 0xa4]
push dword [esp + 0x88]
call fcn.0040533b
push ebp
mov dword [ebx + 0x68], eax
push dword [ebp + 0xfc]
mov ch, 0xfc
add byte [eax], al
add bh, bh
mov ah, 0x24
xchg esp, eax
add byte [eax], al
add al, ch
cmp dh, 0xff
call dword [ebp - 0x77]
inc ebx
or bh, bh
jne 0x4054ea
Function at 0x4054aa
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ch, 0xfc
add byte [eax], al
add bh, bh
mov ah, 0x24
xchg esp, eax
add byte [eax], al
add al, ch
cmp dh, 0xff
call dword [ebp - 0x77]
inc ebx
or bh, bh
jne 0x4054ea
push dword [esp + 0xa0]
call fcn.0040533b
push ebp
mov dword [ebx + 0x18], eax
push dword [ebp + 0xf0]
push dword [esp + 0xac]
call fcn.0040533b
push ebp
mov dword [ebx + 0x60], eax
push dword [ebp + 0x124]
and al, 1
add byte [eax], al
push dword [esp + 0xb8]
call fcn.0040533b
add esp, 0x48
mov dword [ebx + 4], eax
push ebp
push dword [ebp + 0x1c]
push esi
call fcn.0040533b
push ebp
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x20], ebp
push dword [ebp + 0xa0]
push dword [esp + 0x88]
call fcn.0040533b
push ebp
mov dword [ebx], eax
push dword [ebp + 0x118]
push dword [esp + 0x94]
call fcn.0040533b
mov dword [ebx + 0x28], eax
mov eax, dword [esp + 0x98]
push ebp
mov dword [ebx + 0x2c], eax
push dword [ebp + 0xb0]
push esi
call fcn.0040533b
mov dword [ebx + 0x50], eax
push ebp
push dword [ebp + 0xdc]
push dword [esp + 0xac]
add byte [eax], al
call fcn.0040533b
push ebp
mov dword [ebx + 0x34], eax
push dword [ebp]
push dword [esp + 0xb8]
call fcn.0040533b
add esp, 0x48
mov dword [ebx + 0x40], eax
push ebp
push dword [ebp + 0x10]
push esi
call fcn.0040533b
push ebp
mov dword [ebx + 0x10], eax
push dword [ebp + 0x54]
push dword [esp + 0x88]
call fcn.0040533b
mov dword [ebx + 0x44], edi
mov edi, dword [esp + 0x8c]
push ebp
mov dword [ebx + 0x3c], eax
push dword [ebp + 0xe8]
push edi
call fcn.0040533b
push ebp
mov dword [ebx + 0x58], eax
push dword [ebp + 0x40]
push edi
call fcn.0040533b
push ebp
mov dword [ebx + 0x4c], eax
push dword [ebp + 0x3c]
push edi
call fcn.0040533b
push ebp
push 0x80e96588
push edi
mov dword [ebx + 0xc], eax
call fcn.0040533b
add esp, 0x48
mov dword [ebx + 0x6c], eax
push 0
push ebx
call fcn.0040681a
mov esi, eax
push esi
push ebp
push ebx
call fcn.00405e4b
push esi
push ebx
call fcn.004062d3
push ebp
push dword [ebp + 0x7c]
mov esi, eax
push esi
call fcn.0040533b
push ebp
push dword [ebp + 0x4c]
mov dword [esp + 0x84], eax
push esi
call fcn.0040533b
push ebp
push dword [ebp + 0xe4]
mov dword [esp + 0xa8], eax
push esi
call fcn.0040533b
add esp, 0x40
mov dword [esp + 0x68], eax
push ebp
push dword [ebp + 0x88]