joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bb3a
Capabilities:
Move file

Disassembly:
push ecx
push ecx
push ebp
push esi
push edi
mov esi, ecx
mov ebp, edx
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_MoveFileW]
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.00404cae
test eax, eax
je 0x40bbb8
push 1
mov edi, 0x43dbf8
xor ecx, ecx
push edi
call fcn.0041011f
mov esi, dword [esp + 0xc]
push ebp
push esi
push 0x6ddc
push edi
push 0
call fcn.00410340
add esp, 0x14
xor ecx, ecx
push ebp
push 1
call fcn.004105b8
push esi
push 2
xor ecx, ecx
call fcn.004105b8
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret

Function at 0x40bbc2
Capabilities:
Copy file

Disassembly:
push ecx
push ecx
push ebp
push esi
push edi
mov esi, ecx
mov ebp, edx
push 0x8001
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0
push esi
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
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.00404cae
test eax, eax
je 0x40bc42
push 1
mov edi, 0x43dbf8
xor ecx, ecx
push edi
call fcn.0041011f
mov esi, dword [esp + 0xc]
push ebp
push esi
push 0x6ddd
push edi
push 0
call fcn.00410340
add esp, 0x14
xor ecx, ecx
push ebp
push 1
call fcn.004105b8
push esi
push 2
xor ecx, ecx
call fcn.004105b8
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret

Function at 0x40bd3b
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
push 0x3a
pop eax
cmp ax, word [edi + edx*2 - 2]
jne 0x40bd57
cmp byte [esp + 0x20], 0
je 0x40bdaa
jmp 0x40bd7c
push ecx
dec edx
call fcn.0040e1e9
pop ecx
mov esi, eax
xor bl, bl
push 0x5c
pop ebp
test esi, esi
je 0x40bd91
lea eax, [edi + 2]
cmp eax, esi
jne 0x40bd8a
cmp word [edi], bp
jne 0x40bd8a
cmp byte [esp + 0x20], bl
je 0x40bd88
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x40bdec
mov bl, 1
xor eax, eax
cmp edi, esi
cmove esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40bda6
mov ecx, eax
call fcn.0040bdf4
jmp 0x40bdec
test bl, bl
je 0x40bdaf
xor eax, eax
inc eax
jmp 0x40bdec
test esi, esi
je 0x40bdce
xor eax, eax
mov edx, esi
sub edx, edi
mov word [esi], ax
push eax
sar edx, 1
mov ecx, edi
call fcn.0040bd3b
pop ecx
test eax, eax
je 0x40bd84
mov word [esi], bp
and dword [esp + 0x14], 0
lea eax, [esp + 0x10]
and dword [esp + 0x18], 0
push eax
push edi
mov dword [esp + 0x18], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x40bfa7
Capabilities:
Get file attributes

Disassembly:
push ecx
push ebp
push esi
push edi
mov esi, ecx
mov ebp, edx
push 0x8001
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp], eax
call esi
mov ecx, dword [esp + 0x14]
mov dword [ecx], eax
call esi
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00404cae
test eax, eax
je 0x40c024
push 1
mov edi, 0x43dbf8
xor ecx, ecx
push edi
call fcn.0041011f
mov esi, dword [esp + 0xc]
push esi
push dword [ebp]
push 0x6de2
push edi
push 0
call fcn.00410340
add esp, 0x14
xor ecx, ecx
push esi
push 1
call fcn.004105b8
xor eax, eax
cmp dword [ebp], 0xffffffff
pop edi
pop esi
setne al
pop ebp
pop ecx
ret

Function at 0x40c032
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.00404cae
test eax, eax
je 0x40c0a5
push 1
mov esi, 0x43dbf8
xor ecx, ecx
push esi
call fcn.0041011f
push ebp
push dword [esp + 0x10]
push 0x6de2
push esi
push 0
call fcn.00410340
add esp, 0x14
xor ecx, ecx
push ebp
push 1
call fcn.004105b8
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret

Function at 0x40c0af
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x258
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetErrorMode]
xor ebx, ebx
push esi
push edi
mov edi, edx
mov esi, ecx
push 0x8001
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
call ebp
mov dword [esp + 0x14], eax
call fcn.00412284
test eax, eax
lea eax, [esp + 0x18]
je 0x40c0f8
push ebx
push ebx
push ebx
push eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
jmp 0x40c100
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [edi], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push dword [esp + 0x14]
mov esi, eax
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [edi], 0xffffffff
jne 0x40c153
call ebx
cmp eax, 2
je 0x40c127
call ebx
call fcn.00404cae
test eax, eax
je 0x40c14f
push 1
mov esi, 0x43dbf8
xor ecx, ecx
push esi
call fcn.0041011f
push 0x6de7
push esi
push 0
call fcn.00410340
add esp, 0xc
xor eax, eax
jmp 0x40c177
mov edx, edi
lea ecx, [esp + 0x18]
call fcn.0040c2b3
mov ecx, edi
test eax, eax
jne 0x40c16b
call fcn.0040c17f
jmp 0x40c177
lea edx, [esp + 0x18]
call fcn.0040c5fb
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c30e
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 0x40c371
call fcn.00404cae
test eax, eax
je 0x40c379
push 1
mov esi, 0x43dbf8
xor ecx, ecx
push esi
call fcn.0041011f
push 0x6de5
push esi
push ebp
call fcn.00410340
add esp, 0xc
jmp 0x40c379
cmp ebp, 0x104
jbe 0x40c37d
xor eax, eax
jmp 0x40c380
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x40c384
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.00404cae
test eax, eax
je 0x40c3f9
push 1
mov esi, 0x43dbf8
xor ecx, ecx
push esi
call fcn.0041011f
push dword [ebp + 8]
push dword [ebp - 4]
push 0x6de6
push esi
push 0
call fcn.00410340
add esp, 0x14
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x40d3f3
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 0x40d488
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40d488
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
and esi, 0xf
jbe 0x40d439
movzx eax, word [ecx]
lea ecx, [ecx + eax*2]
add ecx, 2
sub esi, 1
jne 0x40d42b
mov ebx, dword [esp + 0x10]
movzx edi, word [ecx]
test ebx, ebx
jne 0x40d448
mov eax, edi
jmp 0x40d48a
mov edx, dword [esp + 0x14]
test edx, edx
jne 0x40d457
lea eax, [ecx + 2]
mov dword [ebx], eax
jmp 0x40d444
lea eax, [edx - 1]
cmp eax, edi
cmovge eax, edi
mov edi, eax
test edi, edi
jle 0x40d47e
lea esi, [edi + edi]
push esi
lea eax, [ecx + 2]
push eax
push ebx
call fcn.00419500
add esp, 0xc
xor eax, eax
mov word [esi + ebx], ax
jmp 0x40d444
cmp edx, 1
jle 0x40d444
xor eax, eax
mov word [ebx], ax
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x40f6b8
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 0x40f6d7
or eax, 0xffffffff
jmp 0x40f7b3
jbe 0x40f6e1
xor eax, eax
inc eax
jmp 0x40f7b3
movzx edx, word [edi + 4]
push ebp
movzx ebp, word [esi + 6]
cmp edx, 6
ja 0x40f76c
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 0x40f74d
movzx ecx, word [esi]
test cl, 3
jne 0x40f74d
xor edx, edx
mov dword [esp + 0x10], 0x64
mov eax, ecx
div dword [esp + 0x10]
test edx, edx
jne 0x40f748
mov eax, ecx
mov ecx, 0x190
div ecx
test edx, edx
jne 0x40f74d
push 0xc
pop ecx
jmp 0x40f74f
xor ecx, ecx
push 0xfffffffffffffff2
pop edx
lea eax, [ecx + ebx]
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax*4 + 0x43d844]
push 0xfffffffffffffff9
pop ebx
cmovle edx, ebx
add edx, dword [esp + 0x18]
jmp 0x40f770
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 0x4122ca
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push esi
mov esi, 0x11c
lea eax, [ebp - 0x11c]
push esi
push 0
push eax
call fcn.00419a80
add esp, 0xc
mov dword [ebp - 0x11c], esi
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x118], 6
pop esi
sbb eax, eax
inc eax
leave
ret
Function at 0x41230b
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 0x412332
mov dword [ebp - 0x34], ebx
jmp 0x41233b
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 0x41238a
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp - 4]
mov dword [edx], ecx
leave
ret

Function at 0x41238c
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.00419a80
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.00419a80
and dword [ebp - 0x18], 0
add esp, 0x18
call fcn.004122ca
test eax, eax
je 0x4123f8
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.0041230b
add esp, 0x2c
jmp 0x41249d
push esi
call fcn.0041f769
push ebx
mov esi, eax
call fcn.0041f769
add esi, eax
pop ecx
pop ecx
lea eax, [esi*2 + 4]
call fcn.0042f950
mov esi, esp
push dword [ebp - 4]
mov dword [ebp - 8], esi
push esi
call fcn.0041f716
push 0x43cc30
push esi
call fcn.0041f738
push ebx
push esi
call fcn.0041f738
mov esi, dword [ebp + 8]
add esp, 0x18
xor ebx, ebx
test esi, esi
je 0x412451
cmp word [esi], bx
je 0x412451
push esi
call fcn.0041f769
pop ecx
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.0042f950
mov edi, esp
test esi, esi
je 0x41246a
push esi
push edi
call fcn.0041f716
pop ecx
pop ecx
jmp 0x41246f
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 0x41249d
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 0x412ea0
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.00419a80
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 0x412eec
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 0x412f37
push 0x1c
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.00419a80
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 0x412f40
Capabilities:
Allocate thread local storage

Disassembly:
push ecx
push esi
push edi
mov esi, ecx
call fcn.00412f90
push 0x28
call fcn.0041852d
add esp, 4
mov dword [esp + 8], eax
mov ecx, eax
call fcn.00412e00
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.00413360
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 0x413090
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.00412ea0
push dword [0x4459c0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea edx, [esp + 0x28]
mov dword [esp + 0x24], eax
mov ecx, ebx
call fcn.004134a0
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 0x413181
push ecx
mov ecx, ebx
mov dword [esp + 0x24], 0
call dword [edx + 0x24]
mov edx, eax
lea ecx, [esp + 0x24]
call fcn.0040e1bd
push ecx
mov edx, 0x43ad64
mov dword [esp + 0x20], 0
lea ecx, [esp + 0x20]
call fcn.0040e1bd
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.0041fdfd
push edi
call fcn.0041fdfd
add esp, 8
jmp 0x4131b2
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 0x43ad64
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 0x4131d1
lea ecx, [esp + 0x28]
call fcn.004134e0
push dword [esp + 0x24]
push dword [0x4459c0]
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 0x41390d
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x4303e8
call fcn.0042fda0
push ecx
push ecx
push esi
push dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 8]
mov dword [esi], vtable.CPatchRes.0
call fcn.0040ee74
xor edx, edx
lea ecx, [esi + 0xc]
mov dword [ebp - 4], edx
call fcn.0040df0a
lea ecx, [esi + 0x1c]
mov dword [esi + 0x18], edx
call fcn.00411e57
mov byte [ebp - 4], 2
push ecx
mov ecx, esi
mov dword [esi + 0x28], edx
mov dword [esi + 0x2c], edx
mov dword [esi + 0x30], edx
call fcn.004139db
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x18], eax
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret 8
Function at 0x413a4f
Capabilities:
Parse pe header

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 0
je 0x413ad6
mov eax, dword [esi + 0x10]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x413ad6
mov ecx, dword [eax + 0x3c]
mov edx, 0x4550
cmp word [ecx + eax], dx
jne 0x413ad6
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 0x413ad6
test ebx, ebx
jne 0x413ac1
push str..rsrc
push edi
call fcn.0042199c
pop ecx
pop ecx
test eax, eax
jne 0x413aad
inc ebx
jmp 0x413ab0
add edi, 0x28
mov eax, dword [esp + 0x10]
inc ebp
movzx eax, word [eax + 2]
cmp ebp, eax
jl 0x413a95
test ebx, ebx
je 0x413ad6
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 0x413ad8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x413c40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x430460
call fcn.0042fda0
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.00402d4d
pop ecx
pop ecx
lea edx, [ebp - 0x428]
lea ecx, [edi + 0x20]
call fcn.0040ef80
mov dword [0x447280], 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 0x414376
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 0x4143cc
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.0040ef3e
mov dword [esi + 0x2c], eax
xor ebp, ebp
cmp edi, dword [esi + 0x58]
jne 0x4143fd
cmp dword [esi + 0x1c], ebp
je 0x4143f0
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
Function at 0x41442c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
push edi
mov edi, ecx
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov eax, dword [edi + 8]
xor esi, esi
movaps xmm0, xmmword [0x4408a0]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x4c]
push eax
mov dword [ebp - 0x4c], 3
mov dword [ebp - 0x48], 0x413e48
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], str.CLASS_FENATTENTETELECHARGEMENTFW
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
jne 0x414489
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0x80000000
jmp 0x4145b6
push ebx
push 0x1e0
mov ecx, edi
call fcn.004145ba
push 0xe6
mov ecx, edi
mov dword [ebp - 8], eax
call fcn.004145ba
lea ecx, [edi + 0x24]
mov dword [ebp - 4], eax
call fcn.0040ef3e
mov edx, dword [edi]
mov ebx, 0x10000000
mov dword [edi + 0x2c], eax
test edx, edx
je 0x4144cd
push esi
push edx
mov ebx, 0x10c00000
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [edi]
lea ecx, [edi + 0x20]
call fcn.0040ef3e
push esi
push dword [edi + 8]
mov ecx, 0x80000000
push esi
push edx
push dword [ebp - 4]
push dword [ebp - 8]
push ecx
push ecx
push ebx
push eax
push str.CLASS_FENATTENTETELECHARGEMENTFW
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x4145a5
push 1
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
push ebx
call dword [sym.imp.USER32.dll_BringWindowToTop]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
push 0xa
push 1
push ebx
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [edi + 0x18], eax
lea eax, [ebp - 8]
push eax
push 4
push edi
push 0x413d2c
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0xc], eax
test eax, eax
jne 0x414555
call dword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0x80000000
jmp 0x4145b5
mov ebx, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x414571
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
push esi
lea eax, [ebp - 0x24]
push eax
call ebx
test eax, eax
jne 0x41455d
cmp dword [edi], esi
je 0x41458c
push 1
push dword [edi]
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [edi + 8]
push str.CLASS_FENATTENTETELECHARGEMENTFW
call dword [sym.imp.USER32.dll_UnregisterClassW]
jmp 0x4145b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
or esi, 0x80000000
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret