joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f810
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4da780
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004d07fc
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x47f843
xor al, al
jmp 0x47f96f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x47f865
xor al, al
jmp 0x47f96f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x47f878
xor al, al
jmp 0x47f96f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x47f88c
xor al, al
jmp 0x47f96f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.004c3b38
test eax, eax
jne 0x47f8c0
xor al, al
jmp 0x47f96f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x51f81c
mov dword [esp + 0x20], ebp
call fcn.004d07fc
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.004ccd4d
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.004ccda4
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x47f954
mov ax, word [ebx]
test ax, ax
je 0x47f946
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.0047f990
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x47f92a
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.004ccda4
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x47fed0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.004ce4b0
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x47ff16
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.004b2de8
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x543564
push ecx
call fcn.004b477a
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x4832e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x8c
lea eax, [esp]
push esi
push eax
push 1
push 0
push str.Control_PanelDesktop
push reloc.WS2_32.dll_accept
mov esi, 3
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x483353
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push str.WheelScrollLines
push ecx
mov dword [esp + 0x20], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x483348
push 0xa
lea edx, [esp + 0x14]
push eax
push edx
call fcn.004b5093
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x8c
ret
Function at 0x495700
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4db886
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x54a254]
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], eax
lea ecx, [esp + 8]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xac], ebx
call fcn.004c80d7
cmp dword [0x573558], ebx
je 0x495770
lea ecx, [esp + 8]
mov dword [esp + 0xa8], 0xffffffff
call fcn.004c5c53
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
add esp, 0xa4
ret
mov edx, dword [0x54a254]
push ebp
push edi
mov edi, 1
mov dword [0x573558], edi
mov dword [esp + 0x40], edx
cmp esi, ebx
mov byte [esp + 0xb0], 1
jne 0x495799
mov dword [esp + 0x20], ebx
jmp 0x4957a0
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x20], eax
mov ecx, esi
call fcn.004ca329
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x88]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], 5
mov dword [esp + 0x34], edx
call fcn.004c5d40
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x1c], edx
jne 0x4957fe
mov dword [esp + 0x14], ebx
jmp 0x495805
mov ebp, dword [eax + 0x1c]
mov dword [esp + 0x14], ebp
cmp ecx, 0xd
jne 0x49581f
mov eax, dword [eax + 0x3c4]
cmp eax, edi
je 0x495819
cmp eax, 2
jne 0x49581f
mov dword [esp + 0x18], edi
jmp 0x495823
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x495831
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004c770d
mov edi, eax
cmp edi, ebx
jne 0x495841
xor eax, eax
jmp 0x495844
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x49586c
mov ecx, esi
call fcn.004ca329
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov esi, dword [esp + 0x1c]
push esi
call ebx
test eax, eax
je 0x495884
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x18]
mov dword [0x573558], 0
test eax, eax
je 0x4958ad
mov esi, dword [esp + 0x14]
push esi
call ebx
test eax, eax
je 0x4958ad
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0xb0], 0
call fcn.004c5c53
lea ecx, [esp + 0x10]
mov dword [esp + 0xb0], 0xffffffff
call fcn.004c5c53
mov ecx, dword [esp + 0xa8]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x4977d0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4dba78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004ccaa5
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov ecx, esi
mov dword [esp + 0x44], 0
call fcn.00497710
mov ecx, dword [esi + 0x174]
mov eax, dword [esi + 0x178]
add ecx, 0x64
add eax, 0x64
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004cc9d3
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x497897
cmp dword [esp + 0x40], 1
jne 0x497895
cmp ecx, eax
jge 0x497897
mov eax, ecx
cmp eax, 0x12c
jge 0x4978a3
mov eax, 0x12c
mov ecx, esi
mov dword [esi + 0x194], eax
mov dword [esi + 0x1dc], 1
call fcn.004978f0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004ccb17
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x49bb20
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4dbf66
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x54a254]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xb0], ebx
call fcn.004c80d7
mov edx, dword [0x54a254]
mov dword [esp + 0x3c], edx
cmp esi, ebx
mov byte [esp + 0xac], 1
jne 0x49bb7a
mov dword [esp + 0x1c], ebx
jmp 0x49bb81
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x1c], eax
push edi
mov ecx, esi
call fcn.004ca329
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edx
call fcn.004c5d40
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x1c], ecx
jne 0x49bbd2
mov dword [esp + 0x14], ebx
jmp 0x49bbd9
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x14], edx
cmp dword [esi + 0x44], 0xd
jne 0x49bbf4
mov eax, dword [eax + 0x3c4]
cmp eax, edi
je 0x49bbee
cmp eax, 2
jne 0x49bbf4
mov dword [esp + 0x18], edi
jmp 0x49bbf8
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x49bc06
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004c770d
mov edi, eax
cmp edi, ebx
jne 0x49bc16
xor eax, eax
jmp 0x49bc19
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x49bc41
mov ecx, esi
call fcn.004ca329
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov eax, dword [esp + 0x1c]
push eax
call ebx
test eax, eax
pop edi
je 0x49bc5d
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x49bc7c
mov esi, dword [esp + 0x10]
push esi
call ebx
test eax, eax
je 0x49bc7c
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0xac], 0
call fcn.004c5c53
lea ecx, [esp + 0xc]
mov dword [esp + 0xac], 0xffffffff
call fcn.004c5c53
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x4a4a70
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0x547f0c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x4a4a83
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x4a4ac4
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0x547fb4]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x4a4af6
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4a4afa
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x4a4aeb
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x4a4b18
mov bl, byte [esp + ecx + 0x4c]
jmp 0x4a4b1c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x4a4b0d
xor ecx, ecx
mov eax, 0x547f1c
xor ebx, ebx
mov bl, byte [ecx + 0x547fc4]
cmp byte [esp + ebx + 0x14], 0
je 0x4a4b47
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0x547fdc]
cmp byte [esp + ebx + 0x14], 0
je 0x4a4b5e
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x4a4b2e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x4a4ab7
lea edx, [esp + 0x84]
push edx
call fcn.004a4ba0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x4b470a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4b472a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004b70a9
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4b474d
test byte [esp + 8], 2
je 0x4b474d
call fcn.004b711c
mov dword [eax], 0xd
call fcn.004b7125
mov dword [eax], 5
jmp 0x4b4726
xor eax, eax
ret

Function at 0x4c80d7
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c810f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004c60ae
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c6086
jmp 0x4c811b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c9a58
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4c9a9a
call fcn.004d07fc
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c9a9a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c9a91
xor eax, eax
jmp 0x4c9aa2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c9aa8
pop edi
pop esi
pop ebx
ret 4

Function at 0x4d0d2c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4d0d5a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d0d78
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d0c92
jmp 0x4d0d78
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d0d78
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d0c92
test edi, edi
mov eax, edi
jne 0x4d0d62
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4d36c7
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x4d36ef
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x4d3700
push 2
call edi
test ax, ax
jge 0x4d3700
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004c770d
cmp dword [esi + 0x30], ebx
jne 0x4d37da
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004c770d
cmp eax, dword [esp + 0x34]
jne 0x4d37da
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x4d3776
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x4d37bb
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x4d37da
cmp eax, 0x205
je 0x4d37da
cmp eax, 0x201
je 0x4d37da
cmp eax, 0x204
je 0x4d37da
cmp eax, ebx
jne 0x4d37a1
cmp dword [esp + 0x1c], 0x1b
je 0x4d37da
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x581b98]
jbe 0x4d37d0
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x4d3733
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x401fd0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call sub.MFC42.DLL_AfxGetThread
xor ebx, ebx
cmp eax, ebx
je 0x401ff2
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
mov edi, eax
jmp 0x401ff4
xor edi, edi
push 0x7a120
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call sub.MFC42.DLL_operatornew
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [esp + 0x18], esi
je 0x402183
push 0x41f098
mov ecx, edi
call fcn.004052b0
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40216b
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push 2
push 0
push ebx
call edi
push ebx
call dword [sym.imp.MSVCRT.dll_ftell]
push 0
push 0
push ebx
mov dword [esp + 0x2c], eax
call edi
mov eax, dword [esp + 0x2c]
push ebx
push eax
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [esp + 0x3c]
add esp, 0x2c
cmp ecx, eax
jne 0x402161
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [ebp + 0x68]
push 0x41f094
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x40216b
mov ecx, dword [esp + 0x10]
push ebx
push ecx
push 1
push esi
call dword [sym.imp.MSVCRT.dll_fwrite]
mov edi, dword [ebp + 0x60]
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0x2c], 0x53
mov dword [esp + 0x31], 0xf0
mov dword [esp + 0x2d], 0x140
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x38]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x58]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0x64]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 9
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebp + 0x74]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x34]
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x70]
mov esi, dword [sym.imp.MSVCRT.dll_fwrite]
push eax
mov dword [esp + 0x130], ecx
mov dword [esp + 0x134], edx
call esi
push ebx
push 0xf0
lea ecx, [esp + 0x50]
push 1
push ecx
call esi
add esp, 0x30
mov ecx, 0x428880
push ebx
call fcn.004029d0
push ebx
push 4
lea edx, [esp + 0x18]
push 1
push edx
call esi
mov esi, dword [esp + 0x28]
add esp, 0x10
mov dword [esp + 0x14], 1
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
push esi
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x18]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x108
ret
Function at 0x4029d0
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [sym.imp.MSVCRT.dll_fwrite]
push esi
push edi
mov esi, ecx
xor edi, edi
mov eax, dword [esi + 0x28]
test eax, eax
je 0x402a23
mov ecx, dword [esi + 0x2c]
sub ecx, eax
sar ecx, 2
cmp edi, ecx
jae 0x402a23
mov edx, dword [eax + edi*4]
push ebx
push 0x989680
push 1
push edx
call ebp
add esp, 0x10
cmp eax, 0x989680
jne 0x402a10
inc edi
jmp 0x4029e2
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x34]
push ebx
push eax
push 1
push ecx
call ebp
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x403660
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push edi
push eax
lea edi, [esi + 4]
mov ecx, edi
call sub.MFC42.DLL_CString::operator
mov eax, dword [edi]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x4036cf
mov edi, dword [edi]
mov dword [esi], 0
push edi
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExA]
mov esi, eax
test esi, esi
je 0x4036c8
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push esi
call edi
push 9
push esi
call edi
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
xor eax, eax
pop esi
ret 4
pop edi
mov eax, 1
pop esi
ret 4

Function at 0x403664
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push edi
push eax
lea edi, [esi + 4]
mov ecx, edi
call sub.MFC42.DLL_CString::operator
mov eax, dword [edi]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x4036cf
mov edi, dword [edi]
mov dword [esi], 0
push edi
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExA]
mov esi, eax
test esi, esi
je 0x4036c8
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push esi
call edi
push 9
push esi
call edi
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
xor eax, eax
pop esi
ret 4
pop edi
mov eax, 1
pop esi
ret 4
Function at 0x4040c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0x3e8
call sub.MFC42.DLL_CWnd::GetDlgItem
mov edx, dword [eax + 0x20]
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call sub.MFC42.DLL_CWnd::ScreenToClient
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x34]
mov edx, dword [esi + 0x6c]
mov ebx, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
mov ebp, dword [esi + 0x70]
mov dword [esp + 0x2c], eax
sub eax, edi
imul eax, edx
mov edx, ebx
mov dword [esp + 0x20], ecx
sub edx, ecx
mov dword [esp + 0x24], edi
imul edx, ebp
cmp eax, edx
mov dword [esp + 0x28], ebx
jbe 0x404147
mov eax, ebx
xor edx, edx
sub eax, ecx
imul eax, ebp
div dword [esi + 0x6c]
mov ecx, eax
mov eax, dword [esp + 0x3c]
sub eax, ecx
sub eax, edi
cdq
sub eax, edx
sar eax, 1
push eax
push 0
push eax
push 0
jmp 0x404168
mov eax, dword [esp + 0x3c]
xor edx, edx
sub eax, edi
push 0
imul eax, dword [esi + 0x6c]
div ebp
mov edx, eax
mov eax, ebx
sub eax, edx
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
push eax
push 0
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CRect::DeflateRect
mov ecx, dword [esi + 0x70]
mov edx, dword [esi + 0x6c]
mov edi, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push 0
sub ecx, edi
push 0
push ecx
mov ecx, dword [esp + 0x34]
sub edx, ecx
lea eax, [esi + 0x78]
push edx
push eax
lea eax, [esi + 0x60]
push eax
call fcn.0040c1b0
add esp, 0x20
test eax, eax
je 0x40428b
mov edi, dword [esi + 0x84]
mov eax, dword [esi + 0x90]
imul eax, edi
mov ecx, dword [esi + 0x6c]
xor edx, edx
div ecx
mov ebx, dword [esi + 0x88]
mov ebp, dword [esi + 0x70]
xor edx, edx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x94]
imul eax, ebx
div ebp
xor edx, edx
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x98]
imul eax, edi
div ecx
xor edx, edx
mov ecx, dword [esi + 0x80]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x9c]
imul eax, ebx
div ebp
xor ebp, ebp
test ebx, ebx
mov dword [esp + 0x18], eax
jbe 0x404284
xor ebx, ebx
test edi, edi
jbe 0x404279
cmp ebp, dword [esp + 0x10]
jl 0x40422b
cmp ebx, dword [esp + 0x14]
jl 0x40422b
cmp ebp, dword [esp + 0x18]
jge 0x40422b
cmp ebx, dword [esp + 0x1c]
jl 0x40426b
xor eax, eax
mov al, byte [ecx + 2]
add eax, 0x180
cdq
and edx, 3
add eax, edx
sar eax, 2
mov byte [ecx + 2], al
xor eax, eax
mov al, byte [ecx + 1]
add eax, 0x180
cdq
and edx, 3
add eax, edx
sar eax, 2
mov byte [ecx + 1], al
xor eax, eax
mov al, byte [ecx]
add eax, 0x180
cdq
and edx, 3
add eax, edx
sar eax, 2
mov byte [ecx], al
mov edi, dword [esi + 0x84]
add ecx, 4
inc ebx
cmp ebx, edi
jb 0x404213
mov eax, dword [esi + 0x88]
inc ebp
cmp ebp, eax
jb 0x40420d
mov ecx, esi
call fcn.00404850
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret