joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d7138
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x52a510]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x4d717c
cmp word [edx], bx
jne 0x4d717c
or byte [edi + eax + 0x28], 4
jmp 0x4d7181
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x4d72d5
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x4d72b5
cmp ax, word [ebp - 0x10]
je 0x4d71ba
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x4d72aa
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x4d71e0
push 0xa
pop ecx
cmp word [eax], cx
jne 0x4d71d0
push ecx
pop eax
push 4
jmp 0x4d71d5
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x4d72a4
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d729b
cmp dword [ebp - 0x18], 0
je 0x4d729b
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x52a510]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x4d7267
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x4d722b
mov word [esi], ax
jmp 0x4d725f
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x52a510]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x52a510]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x52a510]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x4d72aa
cmp word [ebp - 4], ax
jne 0x4d727c
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x4d727c
mov word [esi], ax
add esi, 2
jmp 0x4d72aa
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004c5f3c
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4d72a7
jmp 0x4d729e
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x4d719a
jmp 0x4d72d5
mov ecx, dword [ecx*4 + 0x52a510]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x4d72cc
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x4d72d5
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d7dbe
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d79be

Function at 0x4d7dc9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d7b41

Function at 0x4dd273
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004dc9f7

Function at 0x4dd27e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004dcc36

Function at 0x4dd576
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004dd443
Function at 0x401330
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov eax, 0x1008
call fcn.0042bb10
mov eax, dword [0x44b754]
xor eax, esp
push esi
mov esi, dword [esp + 0x1010]
mov dword [esp + 0x1008], eax
cmp byte [esi], 0
je 0x401404
mov eax, dword [esp + 0x1014]
test eax, eax
je 0x401404
lea ecx, [esp + 0x1018]
push ecx
push eax
lea edx, [esp + 0x10]
push edx
call fcn.0042bab2
lea eax, [esp + eax + 0x14]
mov byte [eax], 0xd
add esp, 0xc
inc eax
mov byte [eax], 0xa
mov byte [eax + 1], 0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov cl, byte [esi + 0x2179]
test cl, cl
lea eax, [esi + 0x2179]
je 0x401404
push 0
push 0
push 3
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401404
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 8]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4013e0
push 0
lea ecx, [esp + 8]
push ecx
sub eax, edx
push eax
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1008]
pop esi
xor ecx, esp
call fcn.0042baa4
add esp, 0x1008
ret

Function at 0x4016e0
Capabilities:
Delete directory
Delete file

Disassembly:
sub esp, 0x108
mov eax, dword [0x44b754]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push esi
mov esi, dword [eax + 4]
test esi, esi
push edi
mov edi, dword [esp + 0x118]
jne 0x401730
test edi, edi
je 0x40177a
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0042baa4
add esp, 0x108
ret
test edi, edi
je 0x401748
lea eax, [esp + 8]
push eax
lea ecx, [esi + 8]
push ecx
push edi
call fcn.00416710
add esp, 0xc
jmp 0x40175b
lea eax, [esi + 8]
lea edx, [esp + 8]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401751
lea edx, [esp + 8]
push edx
push esi
call fcn.004016e0
mov esi, dword [esi]
add esp, 8
test esi, esi
jne 0x401730
test edi, edi
je 0x40177a
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [esp + 0x10c]
pop edi
pop esi
xor ecx, esp
call fcn.0042baa4
add esp, 0x108
ret

Function at 0x401a10
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [ecx + 0x2164]
push 1
push 0
push 0
push eax
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret 4

Function at 0x401cd0
Capabilities:
Get common file path

Disassembly:
push ecx
cmp byte [ecx], 0
jne 0x401cdc
xor eax, eax
pop ecx
ret 8
push esi
lea eax, [esp + 4]
push eax
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov esi, dword [esp + 0xc]
mov ecx, dword [esp + 4]
push esi
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push esi
push 0x44e1ac
push esi
call fcn.00416710
add esp, 0xc
mov eax, esi
pop esi
pop ecx
ret 8
Function at 0x401fa0
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov eax, 0x1318
call fcn.0042bb10
mov eax, dword [0x44b754]
xor eax, esp
push ebx
push esi
push edi
mov dword [esp + 0x1320], eax
lea eax, [esp + 0x118]
push eax
push 0x104
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x14]
push ecx
push 0
push str.mabiremover
lea edx, [esp + 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [esp + 0xc]
push eax
push 0x74
mov ecx, edi
call fcn.00401550
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea ecx, [esp + 0x2c]
push ecx
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402047
push str.Fail_to_create_selfremover.
push 0x44c660
call fcn.00401330
add esp, 8
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1314]
xor ecx, esp
call fcn.0042baa4
add esp, 0x1318
ret
mov eax, dword [esp + 0xc]
push 0
lea edx, [esp + 0x14]
push edx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402092
push str.Fail_to_create_selfremover.
push 0x44c660
call fcn.00401330
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x1314]
xor ecx, esp
call fcn.0042baa4
add esp, 0x1318
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x104
lea ecx, [esp + 0x220]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x21c]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x328]
push str.__s___s
push ecx
call fcn.0042ba1b
lea edx, [esp + 0x128]
push edx
lea eax, [esp + 0x334]
push eax
push 0
call fcn.00417160
mov al, byte [edi]
add esp, 0x1c
test al, al
je 0x4020fe
mov edi, dword [edi + 0x2164]
test edi, edi
je 0x4020fe
push edi
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [esp + 0x1320]
pop edi
pop esi
pop ebx
xor ecx, esp
mov al, 1
call fcn.0042baa4
add esp, 0x1318
ret

Function at 0x402210
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x110
mov eax, dword [0x44b754]
xor eax, esp
mov dword [esp + 0x10c], eax
push esi
lea eax, [esp + 0xc]
push eax
push str.version.dat
push 0x44d784
call fcn.00416710
add esp, 0xc
push 0
push 0
push 3
push 0
push 1
push connect
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402275
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0042baa4
add esp, 0x110
ret
push 0
lea edx, [esp + 0xc]
push edx
push 4
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x110]
mov eax, dword [esp + 4]
pop esi
xor ecx, esp
call fcn.0042baa4
add esp, 0x110
ret
Function at 0x402770
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x44b754]
mov ecx, dword [esp + 0x12c]
xor eax, esp
push ebp
mov ebp, dword [esp + 0x128]
push esi
push 0x104
lea edx, [esp + 0x24]
mov dword [esp + 0x128], eax
mov eax, dword [esp + 0x134]
push edx
push 0
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0
push 3
push 0
push 1
push connect
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4027dd
xor al, al
jmp 0x402894
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
push 0
push 0xfffffffffffffff3
push esi
call edi
push 0
lea ecx, [esp + 0x28]
push ecx
push 0xc
lea edx, [esp + 0x1c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 1
push 0
push 0
push esi
call edi
mov edi, eax
mov eax, dword [esp + 0x24]
xor bl, bl
cmp eax, 0xc
jne 0x402840
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
lea edx, [ecx + eax]
mov ecx, dword [esp + 0x10]
add edx, ecx
cmp edx, 0xcdcdcdcd
jne 0x402840
test ecx, ecx
jbe 0x402840
test eax, eax
jbe 0x402840
cmp eax, edi
jae 0x402840
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
je 0x402860
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [ebp], eax
mov dword [ebp + 4], ecx
mov dword [ebp + 8], edx
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40286a
mov dword [eax], edi
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x402890
lea eax, [esp + 0x28]
push 0x43d81c
push eax
call fcn.0042c156
push 2
push 0xffffffffffffffff
push eax
mov dword [esi], eax
call fcn.0042c0b1
add esp, 0x14
pop edi
mov al, bl
pop ebx
mov ecx, dword [esp + 0x124]
pop esi
pop ebp
xor ecx, esp
call fcn.0042baa4
add esp, 0x120
ret 0xc
Function at 0x402b90
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x320
mov eax, dword [0x44b754]
xor eax, esp
mov dword [esp + 0x31c], eax
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402ce9
push ebx
mov eax, dword [esp + 4]
push 0
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x402cc6
push 0x104
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jbe 0x402cc6
push 0x104
lea edx, [esp + 0x11c]
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x118]
mov byte [esp + eax + 0x14], cl
inc eax
test cl, cl
jne 0x402c30
mov eax, dword [esp + 8]
push esi
xor esi, esi
test eax, eax
jbe 0x402cc5
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x238]
push edx
push esi
push eax
mov dword [esp + 0x34], 0x104
call edi
test eax, eax
jne 0x402c94
lea ecx, [esp + 0x224]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.0042c1fd
add esp, 8
test eax, eax
je 0x402cc2
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jb 0x402c52
mov eax, dword [esp + 0xc]
pop edi
pop esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov ecx, dword [esp + 0x31c]
xor ecx, esp
call fcn.0042baa4
add esp, 0x320
ret
mov bl, 1
pop edi
pop esi
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
mov ecx, dword [esp + 0x31c]
xor ecx, esp
call fcn.0042baa4
add esp, 0x320
ret
mov ecx, dword [esp + 0x31c]
xor ecx, esp
xor al, al
call fcn.0042baa4
add esp, 0x320
ret
Function at 0x404e70
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x404eb9
push 0x3a98
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x404eb9
push str.worker_thread_timed_out
push 0x44c660
call fcn.00401330
mov eax, dword [esi + 0x14]
add esp, 8
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [esi + 0x14], 0
mov dword [esi + 0x20], 0xffffffff
pop esi
ret

Function at 0x4052f0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
test eax, eax
je 0x405306
xor al, al
pop esi
add esp, 0x10
ret 4
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x405319
mov eax, dword [0x44e7c4]
mov dword [esi + 0xc], eax
jmp 0x40531c
mov dword [esi + 0xc], edi
mov ecx, dword [esi + 0xc]
movzx edx, word [esi + 4]
mov eax, dword [0x44c664]
push esi
push 0x405020
push ecx
push edx
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
test eax, eax
mov dword [esi + 0x10], eax
jne 0x40535e
mov ecx, dword [esi + 4]
push ecx
push str.CDialog::Create___:_CreateDialog___failed_:_template_d
push 0x44c660
call fcn.00401330
add esp, 0xc
pop edi
xor al, al
pop esi
add esp, 0x10
ret 4
mov edx, dword [esi + 8]
push edx
mov ecx, esi
call fcn.00405410
test edi, edi
jne 0x4053f4
mov eax, dword [esi + 0xc]
push ebx
push ebp
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov ecx, dword [esi + 0xc]
mov edi, eax
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 4
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea edx, [esp + 0x14]
push edx
push edi
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esi + 0xc]
push edi
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [esi + 0x10]
push 1
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi + 0x10]
mov ebx, dword [sym.imp.USER32.dll_InvalidateRect]
push 1
push 0
push edx
call ebx
mov eax, dword [esi + 0x10]
mov ebp, dword [sym.imp.USER32.dll_GetWindow]
push 5
push eax
call ebp
mov edi, eax
test edi, edi
je 0x4053f2
mov edi, edi
push 1
push 0
push edi
call ebx
push 2
push edi
call ebp
mov edi, eax
test edi, edi
jne 0x4053e0
pop ebp
pop ebx
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
pop edi
mov al, 1
pop esi
add esp, 0x10
ret 4
Function at 0x405d16
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43b2b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x43dc44
mov edi, dword [esi + 0x2c]
test edi, edi
mov dword [esp + 0x14], 1
je 0x405d43
mov ecx, edi
call fcn.004175d0
push edi
call fcn.0042bb52
add esp, 4
mov edi, dword [esi + 0x28]
test edi, edi
je 0x405d5a
mov ecx, edi
call fcn.0041f9a0
push edi
call fcn.0042bb52
add esp, 4
mov edi, dword [esi + 0xa0]
test edi, edi
je 0x405d74
mov ecx, edi
call fcn.0040e0f0
push edi
call fcn.0042bb52
add esp, 4
lea ecx, [esi + 0x30]
call fcn.00405c70
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.004052e0
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x405dc0
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43b2f5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40c
mov eax, dword [0x44b754]
xor eax, esp
push ebx
push esi
push edi
push 2
mov edi, ecx
push 0x70
mov dword [esp + 0x41c], eax
mov dword [esp + 0x18], edi
call fcn.00404de0
xor ebx, ebx
lea esi, [edi + 0x30]
mov dword [edi], 0x43dc44
mov dword [edi + 0x28], ebx
mov dword [edi + 0x2c], ebx
mov dword [esi + 0x14], ebx
mov eax, 0xf
mov dword [esi + 0x18], eax
mov byte [esi + 4], bl
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], ebx
mov byte [esi + 0x20], bl
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], ebx
mov byte [esi + 0x3c], bl
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], ebx
mov dword [esp + 0x420], ebx
mov byte [esi + 0x58], bl
push 0x41c
mov byte [esp + 0x424], 1
mov dword [edi + 0xa0], ebx
call fcn.0042a12c
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebx
mov byte [esp + 0x420], 2
je 0x405e70
mov ecx, eax
call fcn.00417290
jmp 0x405e72
xor eax, eax
push 0x52c
mov byte [esp + 0x424], 1
mov dword [edi + 0x2c], eax
call fcn.0042a12c
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebx
mov byte [esp + 0x420], 3
je 0x405ea3
mov ecx, eax
call fcn.0040e0a0
jmp 0x405ea5
xor eax, eax
push ebp
mov dword [edi + 0xa0], eax
push 0x400
lea eax, [esp + 0x1c]
push eax
push 0x3e
mov ecx, 0x44c660
mov byte [esp + 0x430], 1
call fcn.004014d0
mov ebp, eax
mov ecx, ebp
lea eax, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x405ed1
sub ecx, eax
push ecx
push ebp
mov ecx, esi
call fcn.00403210
push 0x400
lea ecx, [esp + 0x1c]
push ecx
push 0x40
mov ecx, 0x44c660
call fcn.004014d0
mov esi, eax
mov ecx, esi
lea ebp, [ecx + 1]
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x405f00
sub ecx, ebp
push ecx
push esi
lea ecx, [edi + 0x4c]
call fcn.00403210
push 0x400
lea edx, [esp + 0x1c]
push edx
push 0xa
mov ecx, 0x44c660
call fcn.004014d0
mov esi, eax
mov ecx, esi
lea ebp, [ecx + 1]
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x405f30
sub ecx, ebp
push ecx
push esi
lea ecx, [edi + 0x68]
call fcn.00403210
lea eax, [esp + 0x18]
push eax
push str.patch.txt
push 0x44dfa4
call fcn.00416710
lea ecx, [esp + 0x24]
push ecx
call fcn.00416980
add esp, 0x10
lea eax, [esp + 0x18]
lea edx, [eax + 1]
pop ebp
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405f70
sub eax, edx
push eax
lea edx, [esp + 0x18]
push edx
lea ecx, [edi + 0x84]
call fcn.00403210
mov ecx, dword [esp + 0x418]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x40c]
pop ebx
xor ecx, esp
call fcn.0042baa4
add esp, 0x418
ret
Function at 0x40cda7
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43b717
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea edi, [esi + 0x14]
mov ecx, edi
mov dword [esp + 0xc], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov byte [esi + 0xc], bl
mov dword [esi + 0x10], ebx
call fcn.00407200
mov dword [edi + 4], eax
mov byte [eax + 0x59], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
lea edi, [esi + 0x20]
mov ecx, edi
mov dword [esp + 0x18], ebx
call fcn.004071c0
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
lea edi, [esi + 0x44]
mov ecx, edi
mov byte [esp + 0x18], 2
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
call fcn.004071e0
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
lea edi, [esi + 0x50]
mov ecx, edi
mov byte [esp + 0x18], 3
call fcn.004071e0
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
lea edi, [esi + 0x5c]
mov ecx, edi
mov byte [esp + 0x18], 4
call fcn.004071c0
mov ecx, dword [esp + 0x10]
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40ef00
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x28]
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, ebp
je 0x40f01d
cmp eax, 0xffffffff
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
je 0x40ef39
mov eax, dword [eax*4 + 0x44a108]
mov ecx, dword [ebx + 0x10]
push 0
push 0
push eax
push ecx
call edi
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
cmp ebp, 0xffffffff
mov dword [ebx + 0x28], ebp
je 0x40efa0
mov eax, dword [ebp*4 + 0x44a108]
mov ecx, dword [ebx + 0x10]
push 1
push 0
push eax
push ecx
call edi
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov esi, dword [ebx + 0x34]
mov eax, ebp
imul eax, eax, 0x2c
mov ecx, dword [eax + esi + 0x20]
add eax, esi
test ecx, ecx
jne 0x40ef70
xor eax, eax
jmp 0x40ef86
mov edx, dword [eax + 0x24]
sub edx, ecx
mov eax, 0x2fa0be83
imul edx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, dword [ebx + 0x10]
neg eax
sbb eax, eax
and eax, 5
push eax
push 0x402
push ecx
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor esi, esi
jmp 0x40efb0
mov ebp, dword [esp + 0x14]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, edi
cmp ebp, 0xffffffff
je 0x40efe7
mov edx, dword [ebx + 0x34]
mov eax, ebp
imul eax, eax, 0x2c
add eax, edx
mov edx, dword [eax + 0x20]
test edx, edx
je 0x40efe7
mov ecx, dword [eax + 0x24]
sub ecx, edx
mov eax, 0x2fa0be83
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jae 0x40efe7
mov ebp, 5
jmp 0x40efe9
xor ebp, ebp
mov eax, dword [esi*4 + 0x44a130]
mov ecx, dword [ebx + 0x10]
push eax
push ecx
call edi
mov edi, eax
push ebp
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push 0
push edi
call dword [sym.imp.USER32.dll_InvalidateRect]
inc esi
cmp esi, 9
jl 0x40efa4
push 0xffffffffffffffff
mov ecx, ebx
call fcn.0040ed80
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4120a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x43ba93
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
push 1
mov esi, ecx
push 0x75
mov dword [esp + 0x10], esi
call fcn.00404de0
xor ebx, ebx
push 0x41c
mov dword [esp + 0x1c], ebx
mov dword [esi], 0x43f010
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
call fcn.0042a12c
add esp, 4
mov dword [esp + 0xc], eax
cmp eax, ebx
mov byte [esp + 0x18], 1
je 0x412101
mov ecx, eax
call fcn.00417290
jmp 0x412103
xor eax, eax
push ebx
mov ecx, eax
mov byte [esp + 0x1c], bl
mov dword [esi + 0x28], eax
call fcn.004173d0
mov ecx, dword [esp + 0x10]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret