joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c0d1
Capabilities:
Copy file

Disassembly:
mov eax, 0x4322a1
call fcn.00431d00
sub esp, 0x42c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push edi
mov esi, edx
mov dword [ebp - 0x10], ecx
push 0x8001
mov dword [ebp - 0x14], esi
call ebx
lea ecx, [ebp - 0x438]
mov edi, eax
call fcn.0040daee
and dword [ebp - 4], 0
push 0
push esi
call fcn.0040dd58
lea ecx, [ebp - 0x228]
call fcn.0040daee
push 0
push dword [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0040dd58
cmp dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x228]
push 0
cmovne ecx, dword [ebp - 0x1c]
lea eax, [ebp - 0x438]
cmp dword [ebp - 0x22c], 0
push ecx
cmovne eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
call esi
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
call esi
push edi
mov esi, eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00404ca9
test eax, eax
je 0x40c1b9
push 1
mov edi, 0x43fa50
xor ecx, ecx
push edi
call fcn.00410e17
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
push esi
push ebx
push 0x6ddd
push edi
push 0
call fcn.0041102f
add esp, 0x14
xor ecx, ecx
push esi
push 1
call fcn.004112a7
push ebx
push 2
xor ecx, ecx
call fcn.004112a7
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1c]
call fcn.004066dc
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x22c]
call fcn.004066dc
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40c325
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, esi
push 0x3a
mov edi, dword [esi + 0x20c]
test edi, edi
pop ecx
cmovne eax, edi
cmp cx, word [eax + edx*2 - 2]
jne 0x40c352
cmp byte [esp + 0x24], 0
je 0x40c3d5
jmp 0x40c390
test edi, edi
mov ecx, esi
cmovne ecx, edi
dec edx
push ecx
call fcn.0040e881
pop ecx
mov ebx, eax
mov byte [esp + 0x13], 0
push 0x5c
pop ebp
test ebx, ebx
je 0x40c3b2
test edi, edi
mov eax, esi
cmovne eax, edi
add eax, 2
cmp eax, ebx
jne 0x40c3a4
test edi, edi
mov eax, esi
cmovne eax, edi
cmp word [eax], bp
jne 0x40c3a4
cmp byte [esp + 0x24], 0
je 0x40c39f
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x40c430
mov byte [esp + 0x13], 1
test edi, edi
mov eax, esi
cmovne eax, edi
xor ecx, ecx
cmp eax, ebx
cmove ebx, ecx
test edi, edi
mov eax, esi
cmovne eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c3ce
mov ecx, eax
call fcn.0040c438
jmp 0x40c430
cmp byte [esp + 0x13], 0
je 0x40c3da
xor eax, eax
inc eax
jmp 0x40c430
test ebx, ebx
je 0x40c407
xor eax, eax
mov ecx, esi
mov word [ebx], ax
mov edx, ebx
mov eax, dword [esi + 0x20c]
test eax, eax
push 0
cmovne ecx, eax
sub edx, ecx
mov ecx, esi
sar edx, 1
call fcn.0040c325
pop ecx
test eax, eax
je 0x40c398
mov word [ebx], bp
mov eax, dword [esi + 0x20c]
and dword [esp + 0x18], 0
and dword [esp + 0x1c], 0
test eax, eax
mov dword [esp + 0x14], 0xc
cmovne esi, eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x40c6cf
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x432281
call fcn.00431d00
sub esp, 0x220
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x14], edx
push edi
lea ecx, [ebp - 0x22c]
call fcn.0040daee
and dword [ebp - 4], 0
push 0
push esi
call fcn.0040dd58
cmp dword [ebp - 0x20], 0
lea esi, [ebp - 0x22c]
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmovne esi, dword [ebp - 0x20]
push 0x8001
mov dword [ebp - 0x18], esi
call ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ecx], eax
call esi
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
call esi
push edi
mov esi, eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00404ca9
test eax, eax
je 0x40c780
push 1
mov edi, 0x43fa50
xor ecx, ecx
push edi
call fcn.00410e17
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
push esi
push dword [eax]
push 0x6de2
push edi
push 0
call fcn.0041102f
add esp, 0x14
xor ecx, ecx
push esi
push 1
call fcn.004112a7
mov eax, dword [ebp - 0x14]
xor ebx, ebx
cmp dword [eax], 0xffffffff
setne bl
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x20]
call fcn.004066dc
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x40c7ab
Capabilities:
Set file attributes

Disassembly:
push ecx
push ecx
push ebp
push esi
push edi
mov esi, edx
mov ebp, ecx
push 0x8001
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00404ca9
test eax, eax
je 0x40c81e
push 1
mov esi, 0x43fa50
xor ecx, ecx
push esi
call fcn.00410e17
push ebp
push dword [esp + 0x10]
push 0x6de2
push esi
push 0
call fcn.0041102f
add esp, 0x14
xor ecx, ecx
push ebp
push 1
call fcn.004112a7
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret

Function at 0x40c828
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4322e0
call fcn.00431d00
sub esp, 0x464
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
xor edi, edi
push 0x8001
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x10], eax
call fcn.0040daee
push edi
push esi
mov dword [ebp - 4], edi
call fcn.0040dd58
cmp dword [ebp - 0x14], edi
lea esi, [ebp - 0x220]
cmovne esi, dword [ebp - 0x14]
call fcn.004130a3
test eax, eax
lea eax, [ebp - 0x470]
je 0x40c895
push edi
push edi
push edi
push eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
jmp 0x40c89d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebx], 0xffffffff
jne 0x40c8f4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x40c8cb
call esi
call fcn.00404ca9
test eax, eax
je 0x40c91e
push 1
mov esi, 0x43fa50
xor ecx, ecx
push esi
call fcn.00410e17
push 0x6de7
push esi
push edi
call fcn.0041102f
add esp, 0xc
jmp 0x40c91e
mov edx, ebx
lea ecx, [ebp - 0x470]
call fcn.0040ca72
mov ecx, ebx
test eax, eax
jne 0x40c910
call fcn.0040c93e
mov edi, eax
jmp 0x40c91e
lea edx, [ebp - 0x470]
call fcn.0040cdba
xor edi, edi
inc edi
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x14]
call fcn.004066dc
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40cacd
Capabilities:
Get common file path

Disassembly:
push ebp
push esi
push edi
push 0x8001
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push 0x104
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebp, ebp
jne 0x40cb30
call fcn.00404ca9
test eax, eax
je 0x40cb38
push 1
mov esi, 0x43fa50
xor ecx, ecx
push esi
call fcn.00410e17
push 0x6de5
push esi
push ebp
call fcn.0041102f
add esp, 0xc
jmp 0x40cb38
cmp ebp, 0x104
jbe 0x40cb3c
xor eax, eax
jmp 0x40cb3f
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x40cb43
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
push 0x8001
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push 0
push dword [ebp + 8]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
test edi, edi
setne bl
call fcn.00404ca9
test eax, eax
je 0x40cbb8
push 1
mov esi, 0x43fa50
xor ecx, ecx
push esi
call fcn.00410e17
push dword [ebp + 8]
push dword [ebp - 4]
push 0x6de6
push esi
push 0
call fcn.0041102f
add esp, 0x14
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x40d946
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, edx
push edi
mov eax, esi
mov edi, ecx
shr eax, 4
movzx eax, ax
push 6
inc eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40d9db
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40d9db
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
and esi, 0xf
jbe 0x40d98c
movzx eax, word [ecx]
lea ecx, [ecx + eax*2]
add ecx, 2
sub esi, 1
jne 0x40d97e
mov ebx, dword [esp + 0x10]
movzx edi, word [ecx]
test ebx, ebx
jne 0x40d99b
mov eax, edi
jmp 0x40d9dd
mov edx, dword [esp + 0x14]
test edx, edx
jne 0x40d9aa
lea eax, [ecx + 2]
mov dword [ebx], eax
jmp 0x40d997
lea eax, [edx - 1]
cmp eax, edi
cmovge eax, edi
mov edi, eax
test edi, edi
jle 0x40d9d1
lea esi, [edi + edi]
push esi
lea eax, [ecx + 2]
push eax
push ebx
call fcn.0041a610
add esp, 0xc
xor eax, eax
mov word [esi + ebx], ax
jmp 0x40d997
cmp edx, 1
jle 0x40d997
xor eax, eax
mov word [ebx], ax
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x40ff57
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
movzx ebx, word [esi + 2]
movzx eax, word [edi + 2]
cmp bx, ax
jae 0x40ff76
or eax, 0xffffffff
jmp 0x410052
jbe 0x40ff80
xor eax, eax
inc eax
jmp 0x410052
movzx edx, word [edi + 4]
push ebp
movzx ebp, word [esi + 6]
cmp edx, 6
ja 0x41000b
movzx eax, word [esi + 4]
mov ecx, ebp
sub ecx, eax
lea eax, [edx + 6]
add eax, ecx
cdq
push 7
pop ecx
idiv ecx
movzx eax, word [edi + 6]
imul eax, eax, 7
inc edx
movzx ecx, dx
add eax, ecx
mov dword [esp + 0x18], eax
add eax, 0xfffffff9
mov dword [esp + 0x14], eax
cmp ebx, 2
jne 0x40ffec
movzx ecx, word [esi]
test cl, 3
jne 0x40ffec
xor edx, edx
mov dword [esp + 0x10], 0x64
mov eax, ecx
div dword [esp + 0x10]
test edx, edx
jne 0x40ffe7
mov eax, ecx
mov ecx, 0x190
div ecx
test edx, edx
jne 0x40ffec
push 0xc
pop ecx
jmp 0x40ffee
xor ecx, ecx
push 0xfffffffffffffff2
pop edx
lea eax, [ecx + ebx]
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax*4 + 0x43f764]
push 0xfffffffffffffff9
pop ebx
cmovle edx, ebx
add edx, dword [esp + 0x18]
jmp 0x41000f
movzx edx, word [edi + 6]
movzx ecx, word [edi + 8]
imul eax, edx, 0x18
add ecx, eax
movzx eax, word [edi + 0xa]
imul ecx, ecx, 0x3c
add ecx, eax
movzx eax, bp
imul edx, ecx, 0x3c
imul ecx, eax, 0x18
movzx eax, word [esi + 8]
pop ebp
add ecx, eax
movzx eax, word [esi + 0xa]
imul ecx, ecx, 0x3c
add ecx, eax
movzx eax, word [esi + 0xc]
imul ecx, ecx, 0x3c
add ecx, eax
xor eax, eax
cmp ecx, edx
setg al
or esi, 0xffffffff
cmp ecx, edx
cmovl eax, esi
pop edi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x4130ae
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x3c], 0x3c
mov esi, edx
mov dword [ebp - 0x38], 0x440
push edi
mov edi, ecx
cmp dword [ebp + 0x28], ebx
je 0x4130d5
mov dword [ebp - 0x34], ebx
jmp 0x4130de
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0x34], eax
xor ecx, ecx
mov dword [ebp - 0x2c], edi
cmp dword [ebp + 0x30], ecx
mov eax, str.runas
xorps xmm0, xmm0
mov dword [ebp - 0x28], esi
cmove eax, ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x20]
movups xmmword [ebp - 0x1c], xmm0
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
movzx eax, word [eax + 0x30]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
pop esi
pop ebx
test eax, eax
je 0x41312d
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp - 4]
mov dword [edx], ecx
leave
ret
Function at 0x41312f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 0x44
pop edi
push edi
lea eax, [ebp - 0x5c]
mov esi, ecx
push 0
push eax
mov ebx, edx
mov dword [ebp - 4], esi
call fcn.0041ab90
mov dword [ebp - 0x5c], edi
lea eax, [ebp - 0x18]
push 0x10
xor edi, edi
push 0
inc edi
push eax
mov word [ebp - 0x2c], di
call fcn.0041ab90
and dword [ebp - 0x18], 0
add esp, 0x18
call fcn.00413099
test eax, eax
je 0x41319b
push dword [ebp + 0x14]
lea eax, [ebp - 0x18]
mov edx, ebx
push ecx
push dword [ebp + 0xc]
mov ecx, esi
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 8]
sub esp, 0x14
call fcn.004130ae
add esp, 0x2c
jmp 0x413240
push esi
call fcn.00420c76
push ebx
mov esi, eax
call fcn.00420c76
add esi, eax
pop ecx
pop ecx
lea eax, [esi*2 + 4]
call fcn.00431910
mov esi, esp
push dword [ebp - 4]
mov dword [ebp - 8], esi
push esi
call fcn.00420b01
push 0x43eb50
push esi
call fcn.00420b23
push ebx
push esi
call fcn.00420b23
mov esi, dword [ebp + 8]
add esp, 0x18
xor ebx, ebx
test esi, esi
je 0x4131f4
cmp word [esi], bx
je 0x4131f4
push esi
call fcn.00420c76
pop ecx
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00431910
mov edi, esp
test esi, esi
je 0x41320d
push esi
push edi
call fcn.00420b01
pop ecx
pop ecx
jmp 0x413212
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
xor eax, eax
test esi, esi
cmovne eax, edi
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [ebp - 0x14], 0
je 0x413240
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x413aa0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x3c
push ebp
push edi
push 0x1c
lea eax, [esp + 0x10]
mov ebp, edx
push 0
push eax
mov edi, ecx
call fcn.0041ab90
add esp, 0xc
lea eax, [esp + 0xc]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp dword [esp + 0x20], 0x40
je 0x413aec
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 0x40
push dword [esp + 0x20]
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [esp + 0xc]
dec edi
add eax, dword [esp + 0x18]
add edi, ebp
cmp eax, edi
jae 0x413b37
push 0x1c
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.0041ab90
add esp, 0xc
lea eax, [esp + 0x28]
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 0x40
push dword [esp + 0x3c]
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop ebp
add esp, 0x3c
ret
Function at 0x413b40
Capabilities:
Allocate thread local storage

Disassembly:
push ecx
push esi
push edi
mov esi, ecx
call fcn.00413b90
push 0x28
call fcn.00419638
add esp, 4
mov dword [esp + 8], eax
mov ecx, eax
call fcn.00413a00
mov edi, eax
push 0
push ecx
mov ecx, edi
mov edx, dword [edi]
call dword [edx + 0x24]
mov edx, eax
mov ecx, esi
call fcn.00413fa0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
mov esi, eax
call dword [edx + 0x10]
pop edi
mov eax, esi
pop esi
pop ecx
ret

Function at 0x413c80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub esp, 0x28
push ebx
push ebp
mov ebx, ecx
mov dword [esp + 0xc], 0x80000000
push esi
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
mov eax, dword [ebx]
push ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, ebx
call dword [eax + 0x28]
mov esi, dword [esp + 0x58]
lea ecx, [ebx + 0xc]
mov edi, dword [esp + 0x5c]
mov edx, 0xa
mov ebp, dword [esp + 0x50]
sub esi, ebp
sub edi, dword [esp + 0x54]
call fcn.00413aa0
push dword [0x448ad0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [esp + 0x28]
mov dword [esp + 0x24], eax
mov ecx, ebx
call fcn.004140e0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [ebx]
mov ecx, ebx
mov dword [ebx + 0x24], 1
call dword [edx + 0x48]
mov edx, dword [ebx]
test eax, eax
je 0x413d71
push ecx
mov ecx, ebx
mov dword [esp + 0x24], 0
call dword [edx + 0x24]
mov edx, eax
lea ecx, [esp + 0x24]
call fcn.0040e855
push ecx
mov edx, 0x43cc84
mov dword [esp + 0x20], 0
lea ecx, [esp + 0x20]
call fcn.0040e855
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x2c]
push eax
push dword [esp + 0x50]
mov eax, dword [esp + 0x5c]
push 0
push 0
push edi
mov edi, dword [esp + 0x30]
push esi
mov esi, dword [esp + 0x38]
push eax
push ebp
push dword [esp + 0x34]
push edi
push esi
push dword [esp + 0x44]
call dword [sym.imp.USER32.dll_CreateWindowExA]
push esi
call fcn.004215a9
push edi
call fcn.004215a9
add esp, 8
jmp 0x413da2
mov ecx, ebx
call dword [edx + 0x2c]
push eax
push dword [esp + 0x50]
mov eax, dword [esp + 0x5c]
mov ecx, ebx
push 0
push 0
push edi
push esi
push eax
mov eax, dword [ebx]
push ebp
push dword [esp + 0x34]
push 0x43cc84
call dword [eax + 0x24]
push eax
push dword [esp + 0x44]
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebx + 0x24], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esp + 0x2c], 0
mov esi, eax
je 0x413dc1
lea ecx, [esp + 0x28]
call fcn.00414120
push dword [esp + 0x24]
push dword [0x448ad0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x24
Function at 0x4145c1
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x432425
call fcn.00431d00
push ecx
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 8]
mov dword [edi], vtable.CPatchRes.0
call fcn.0040f4c0
xor edx, edx
lea ecx, [edi + 0xc]
mov dword [ebp - 4], edx
call fcn.0040e58f
lea ecx, [edi + 0x1c]
mov dword [edi + 0x18], edx
call fcn.00412c73
push ecx
lea ecx, [edi + 0x34]
mov dword [edi + 0x28], edx
mov dword [edi + 0x2c], edx
mov dword [edi + 0x30], edx
call fcn.00410cf6
mov dword [edi + 0x34], vtable._CXErrorModule605.0
push ecx
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004146ab
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x18], eax
mov eax, edi
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret 8

Function at 0x41473d
Capabilities:
Parse pe header

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 0
je 0x4147c4
mov eax, dword [esi + 0x10]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4147c4
mov ecx, dword [eax + 0x3c]
mov edx, 0x4550
cmp word [ecx + eax], dx
jne 0x4147c4
add eax, 4
xor ebx, ebx
add ecx, eax
xor ebp, ebp
mov dword [esp + 0x10], ecx
movzx eax, word [ecx + 0x10]
lea edi, [ecx + 0x14]
add edi, eax
xor eax, eax
cmp ax, word [ecx + 2]
jae 0x4147c4
test ebx, ebx
jne 0x4147af
push str..rsrc
push edi
call fcn.00422f87
pop ecx
pop ecx
test eax, eax
jne 0x41479b
inc ebx
jmp 0x41479e
add edi, 0x28
mov eax, dword [esp + 0x10]
inc ebp
movzx eax, word [eax + 2]
cmp ebp, eax
jl 0x414783
test ebx, ebx
je 0x4147c4
mov ecx, dword [edi + 0x14]
xor eax, eax
and dword [esi + 0x2c], 0
inc eax
mov dword [esi + 0x28], ecx
mov ecx, dword [edi + 0xc]
mov dword [esi + 0x30], ecx
jmp 0x4147c6
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x414954
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x43249d
call fcn.00431d00
sub esp, 0x41c
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], eax
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], ebx
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [ebp - 4], ebx
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x40], ebx
mov dword [edi + 0x44], ebx
mov dword [edi + 0x48], ebx
push 0x104
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 9
push ecx
push eax
mov dword [edi + 0x50], 0x60
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x428]
xor edx, edx
push ebx
push eax
lea ecx, [ebp - 0x21c]
call fcn.00402d46
pop ecx
pop ecx
lea edx, [ebp - 0x428]
lea ecx, [edi + 0x20]
call fcn.0040f5cc
mov dword [0x44a3e8], edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push 0x58
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push esi
push dword [edi + 4]
mov dword [edi + 0x50], eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x415381
Capabilities:
Hide graphical window
Resume thread
Terminate thread

Disassembly:
push ebp
push esi
mov esi, ecx
xor ebp, ebp
push edi
mov edi, dword [esp + 0x14]
cmp edi, dword [esi + 0x54]
jne 0x4153d7
push ebp
push dword [esi + 0x54]
call dword [sym.imp.USER32.dll_ShowWindow]
push ebp
inc ebp
push ebp
push 0x402
push dword [esi + 0x5c]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0xa
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
push dword [esi + 0xc]
mov dword [esi + 0x18], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea ecx, [esi + 0x28]
mov dword [esi + 0x1c], ebp
call fcn.0040f58a
mov dword [esi + 0x2c], eax
xor ebp, ebp
cmp edi, dword [esi + 0x58]
jne 0x415408
cmp dword [esi + 0x1c], ebp
je 0x4153fb
push dword [esi + 0x18]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0x80010001
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebp
push ebp
push 0x10
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebp
ret 8