joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472a90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a5ae0
mov eax, dword fs:[0]
push eax
mov eax, dword [0x4d0084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4d0060]
cmp eax, 0xffffffff
je 0x472afe
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x472afe
mov eax, dword [0x4d0060]
cmp eax, 0xffffffff
jne 0x472ad5
xor eax, eax
jmp 0x472adc
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push 0
push 0
push dword [eax + 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
jne 0x472afe
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ab6ce
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4d0084]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x4d0060]
cmp eax, 0xffffffff
jne 0x4730f6
xor ebx, ebx
jmp 0x4730ff
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x473141
nop dword [eax]
cmp dword [ebx + 0x18], 0
mov esi, dword [ebx + 0xc]
jne 0x473180
test esi, esi
jne 0x473184
push 0x471ee0
push 0x4d5660
call fcn.00471bd0
mov eax, dword [0x4d0060]
add esp, 8
cmp eax, 0xffffffff
je 0x473141
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x47316e
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x47316e
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4731c6
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x4731af
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x473184
cmp dword [ebx + 0x18], 0
je 0x473110
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x4731e9
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x4731e9
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.0042d150
cmp dword [ebx + 0x18], 0
jne 0x4731d0
jmp 0x473110
Function at 0x473210
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, ecx
mov edx, dword [edi]
lea eax, [edx + 0x10]
push eax
push 4
push edx
push 0x473270
push 0
push 0
call fcn.0048c80a
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x473239
pop edi
xor al, al
pop ebx
ret
mov eax, dword [edi]
push esi
add eax, 4
lock inc dword [eax]
mov esi, dword [edi]
mov eax, dword [esi + 8]
test eax, eax
je 0x473257
cmp eax, 0xffffffff
je 0x473257
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
mov eax, dword [edi]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop edi
mov al, 1
pop ebx
ret

Function at 0x474f40
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aba08
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4d0084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
cmp dword [edi + 0x14], 8
jb 0x474f7b
mov eax, dword [edi]
jmp 0x474f7d
mov eax, edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x474fa3
test esi, esi
je 0x474f9c
mov dword [esi], 0
call fcn.00473ff0
mov dword [esi + 4], eax
mov al, 1
jmp 0x475029
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x64], 0
call fcn.00473ff0
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x6c]
push edi
push eax
call fcn.00475ea0
add esp, 0xc
cmp dword [ebp - 0x6c], 3
sete al
test al, al
je 0x474fe7
test esi, esi
je 0x475027
mov dword [esi], 0
call fcn.00473ff0
jmp 0x475024
test esi, esi
jne 0x47501d
push str.boost::filesystem::create_directory
lea ecx, [ebp - 0x28]
call fcn.00471230
mov dword [ebp - 4], esi
call fcn.00473ff0
push eax
push ebx
push edi
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x5c]
call fcn.004742c0
push 0x4cd294
lea eax, [ebp - 0x5c]
push eax
call fcn.0047ab53
call fcn.00473ff0
mov dword [esi], ebx
mov dword [esi + 4], eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004785e6
mov esp, ebp
pop ebp
ret
Function at 0x475ea0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4abbf2
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4d0084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x34], esi
cmp dword [edi + 0x14], 8
jb 0x475ee1
mov eax, dword [edi]
jmp 0x475ee3
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x38], eax
cmp eax, 0xffffffff
jne 0x475f02
push esi
push edi
push ebx
call fcn.00475670
add esp, 0xc
jmp 0x475ffe
test eax, 0x400
je 0x475fbd
cmp dword [edi + 0x14], 8
jb 0x475f17
mov eax, dword [edi]
jmp 0x475f19
mov eax, edi
push eax
lea ecx, [ebp - 0x28]
call fcn.004744c0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x2000000
push 3
push 0
push 7
push 0
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x2c], esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00430f90
cmp esi, 0xffffffff
jne 0x475f72
push dword [ebp - 0x34]
push edi
push ebx
call fcn.00475670
add esp, 0xc
jmp 0x475ffe
push edi
call fcn.004751e0
add esp, 4
test al, al
jne 0x475fa5
mov eax, dword [ebp - 0x38]
push eax
push edi
call fcn.004752c0
add esp, 8
mov dword [ebx], 9
mov dword [ebx + 4], eax
push esi
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x475ffe
push esi
mov dword [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x475fcf
mov dword [esi], 0
call fcn.00473ff0
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x30], 3
push eax
push edi
test al, 0x10
jne 0x475fe6
mov dword [ebp - 0x30], 2
call fcn.004752c0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx]
add esp, 8
mov dword [ebx], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004785e6
mov esp, ebp
pop ebp
ret

Function at 0x499b75
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004999f4

Function at 0x49dddd
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049d74b

Function at 0x49dde8
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049d986
Function at 0x406c20
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x20c
push esi
mov esi, dword [esp + 0x218]
push edi
test esi, esi
je 0x406c39
mov dword [esi], 0
mov edi, dword [esp + 0x218]
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x406d19
push 0x104
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameW]
push 0xb
lea eax, [esp + 0xc]
push 0x4d0e28
push eax
call fcn.0049f012
add esp, 0xc
test eax, eax
je 0x406d0c
lea eax, [esp + 8]
push 0x4d0e40
push eax
call fcn.0049ee91
add esp, 8
test eax, eax
je 0x406d0c
lea eax, [esp + 8]
push 0x4d0e58
push eax
call fcn.0049ee91
add esp, 8
test eax, eax
je 0x406d0c
lea eax, [esp + 8]
push 0x4d0e6c
push eax
call fcn.0049ee91
add esp, 8
test eax, eax
je 0x406d0c
lea eax, [esp + 8]
push 0x4d0e7c
push eax
call fcn.0049ee91
add esp, 8
test eax, eax
je 0x406d0c
lea eax, [esp + 8]
push 0x4d0e98
push eax
call fcn.0049ee91
add esp, 8
test eax, eax
je 0x406d02
lea eax, [esp + 8]
push 0x4d0ebc
push eax
call fcn.0049ee91
add esp, 8
test eax, eax
jne 0x406d20
test esi, esi
je 0x406d0c
mov dword [esi], 1
pop edi
xor eax, eax
pop esi
add esp, 0x20c
ret 8
xor eax, eax
mov word [esp + 8], ax
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
pop edi
pop esi
add esp, 0x20c
ret 8

Function at 0x406d40
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
cmp dword [0x4ea678], 0
push ebx
push esi
push edi
jne 0x406dc8
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call esi
push dword [0x4e8ccc]
mov edi, dword [sym.imp.USER32.dll_OpenClipboard]
mov ebx, eax
call edi
test eax, eax
jne 0x406dbe
nop dword [eax + eax]
mov eax, dword [0x4e4808]
cmp eax, 0xffffffff
je 0x406d8f
test eax, eax
je 0x406dd1
call esi
mov ecx, dword [0x4e4808]
add ecx, ebx
sub ecx, eax
cmp ecx, 5
jle 0x406dd1
mov edx, 1
mov dword [0x4e47f0], 0
mov ecx, 0x8000012f
call fcn.004015e0
push dword [0x4e8ccc]
mov dword [0x4e47f0], 1
call edi
test eax, eax
je 0x406d70
mov dword [0x4ea678], 1
mov eax, 1
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x407421
Capabilities:
Resolve dns

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
push ecx
and dword [ebp], 0
mov dword [esp + 0x14], edx
mov byte [ebx], 0
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x40749f
cmp word [esi + 8], 2
jne 0x407481
push 4
pop eax
cmp word [esi + 0xa], ax
jne 0x407481
mov edi, dword [esi + 0xc]
jmp 0x40747b
push dword [eax]
mov edx, dword [esp + 0x1c]
push dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
call fcn.004073ba
mov dword [ebp], eax
test eax, eax
je 0x40749a
lea ebp, [eax + 0x1c]
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x40745b
push 0x400
push dword [esi]
push 0x401
push ebx
call fcn.004a3c57
add esp, 0x10
xor eax, eax
jmp 0x4074c6
push 8
pop eax
jmp 0x4074c6
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, 0x2af9
sub eax, ecx
je 0x4074c4
sub eax, 1
je 0x4074bd
sub eax, 1
jne 0x4074c4
lea eax, [ecx + 2]
jmp 0x4074c6
mov eax, 0x2afa
jmp 0x4074c6
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
Function at 0x407af2
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
cmp dword [0x4e8c90], 0
mov ax, cx
mov word [esp + 2], ax
mov dword [esp + 4], 0x4d0ef0
mov dword [esp + 8], 0x40760f
mov dword [esp + 0xc], 0x4d0efc
mov dword [esp + 0x10], 0x407922
mov dword [esp + 0x14], 0x4d0f08
mov dword [esp + 0x18], 0x4075d4
je 0x407b41
movzx eax, ax
jmp 0x407c4f
push 0x104
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x407c40
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x138]
mov ebx, 0x10c
push eax
lea eax, [esp + 0x30]
push ebx
push eax
call fcn.004a3b46
push 0x4d0f18
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.004a49c9
mov edi, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
lea eax, [esp + 0x44]
add esp, 0x18
push eax
call edi
mov ebp, dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov esi, eax
mov ebx, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test esi, esi
je 0x407bb9
push 0x4d0ef0
push esi
call ebx
test eax, eax
jne 0x407bfd
push esi
call ebp
lea eax, [esp + 0x138]
mov esi, 0x10c
push eax
lea eax, [esp + 0x30]
push esi
push eax
call fcn.004a3b46
push 0x4d0f20
lea eax, [esp + 0x3c]
push esi
push eax
call fcn.004a49c9
add esp, 0x18
lea eax, [esp + 0x2c]
push eax
call edi
mov esi, eax
test esi, esi
je 0x407c3c
push 0x4d0ef0
push esi
call ebx
test eax, eax
je 0x407c39
xor edi, edi
lea eax, [esp + 0x14]
mov ebx, edi
push dword [eax + ebx*8]
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esp + ebx*8 + 0x18], eax
test eax, eax
je 0x407c39
inc ebx
lea eax, [esp + 0x14]
cmp ebx, 3
jl 0x407c05
test esi, esi
je 0x407c3c
mov eax, dword [esp + edi + 0x18]
mov dword [edi + 0x4e78fc], eax
add edi, 8
cmp edi, 0x18
jl 0x407c25
jmp 0x407c3c
push esi
call ebp
pop edi
pop esi
pop ebp
pop ebx
movzx eax, word [esp + 2]
mov dword [0x4e8c90], 1
mov eax, dword [eax*8 + 0x4e78fc]
add esp, 0x230
ret
Function at 0x40a8e9
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
push 0xa
mov edx, dword [edi + 0x3c]
mov ecx, edx
mov eax, dword [edi + 0x34]
sub ecx, ebx
mov dword [esp + 0x14], ecx
mov byte [edx + eax], 0
lea eax, [esp + 0x18]
push eax
lea eax, [ecx + 0x26]
push eax
call fcn.004a39fc
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0049d050
push 0x4d1b94
push 0x4d1bbc
lea esi, [eax + 1]
push esi
call fcn.0040bdf1
add esp, 0x20
add esi, eax
lea eax, [esp + 0x14]
sub esi, eax
push 0
push esi
mov esi, dword [sym.imp.WSOCK32.dll_send]
push eax
push dword [edi + 0x10]
call esi
cmp eax, 0xffffffff
je 0x40a979
mov eax, dword [esp + 0x10]
push 0
inc eax
push eax
mov eax, dword [edi + 0x34]
add eax, ebx
push eax
push dword [edi + 0x10]
call esi
cmp eax, 0xffffffff
je 0x40a979
mov dword [edi + 0x3c], ebx
xor eax, eax
jmp 0x40a983
mov ecx, 0x4d1ac0
call fcn.0040acc5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40ad0c
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov ebx, ecx
xor esi, esi
mov dword [esp + 0x10], ebx
mov ebp, edx
cmp edi, 0xffffffff
jne 0x40ad2d
push ebp
call fcn.004a3ab0
pop ecx
mov edi, eax
cmp edi, 2
jbe 0x40adb6
lea eax, [ebx + 2]
xor edx, edx
mov dword [esp + 0x18], eax
lea eax, [edi - 3]
push 3
pop ecx
div ecx
mov ebx, dword [esp + 0x18]
lea edx, [eax + 1]
mov esi, edx
shl esi, 2
movzx eax, byte [ebp]
sub edi, 3
movzx ecx, byte [ebp + 1]
shl eax, 8
or ecx, eax
movzx eax, byte [ebp + 2]
shl ecx, 8
add ebp, 3
or ecx, eax
mov eax, ecx
shr eax, 0x12
mov al, byte [eax + 0x4d1da8]
mov byte [ebx - 2], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + 0x4d1da8]
mov byte [ebx - 1], al
mov eax, ecx
shr eax, 6
and ecx, 0x3f
and eax, 0x3f
mov al, byte [eax + 0x4d1da8]
mov byte [ebx], al
lea ebx, [ebx + 4]
mov al, byte [ecx + 0x4d1da8]
mov byte [ebx - 3], al
sub edx, 1
jne 0x40ad53
mov ebx, dword [esp + 0x10]
test edi, edi
je 0x40ae10
movzx ecx, byte [ebp]
shl ecx, 0x10
cmp edi, 1
jbe 0x40adcf
movzx eax, byte [ebp + 1]
shl eax, 8
or ecx, eax
mov eax, ecx
shr eax, 0x12
mov al, byte [eax + 0x4d1da8]
mov byte [esi + ebx], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + 0x4d1da8]
mov byte [esi + ebx + 1], al
cmp edi, 1
jbe 0x40ae02
shr ecx, 6
and ecx, 0x3f
mov al, byte [ecx + 0x4d1da8]
jmp 0x40ae04
mov al, 0x3d
mov byte [esi + ebx + 2], al
mov byte [esi + ebx + 3], 0x3d
add esi, 4
pop edi
mov byte [esi + ebx], 0
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40c550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b68ad
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x4e9ef4]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test eax, eax
je 0x40c590
push 0x4d1060
push esi
mov ecx, 0x4e9ea8
call fcn.0040a7df
mov eax, dword [0x4e9ef4]
cmp eax, 2
je 0x40c716
mov eax, dword [0x4ea7fc]
mov dword [ebp - 0x44], vtable.TextStream.0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp eax, 0xffffffff
je 0x40c5e9
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetCPInfo]
test eax, eax
jne 0x40c5e9
mov byte [ebp - 0x2a], al
mov dword [ebp - 0x44], vtable.TextFile.0
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
push dword [edi + 0x6d8]
push 2
push dword [ebp + 0x10]
call fcn.0047ed60
push dword [ebp + 0xc]
lea ecx, [ebp - 0x44]
push esi
call fcn.0047f570
mov edx, dword [ebp - 0x3c]
mov edi, dword [sym.imp.KERNEL32.DLL_WriteFile]
test edx, edx
je 0x40c663
cmp dword [ebp - 0x18], 0
jne 0x40c663
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x10]
cmp eax, fcn.0047f9b0
jne 0x40c655
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push edx
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call edi
jmp 0x40c65e
push edx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
call eax
xor edx, edx
mov dword [ebp - 0x3c], edx
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
mov word [ebp - 0x1c], ax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 8]
cmp eax, fcn.0047f950
jne 0x40c6a1
mov ecx, dword [ebp - 0x10]
cmp ecx, 0xffffffff
je 0x40c6ac
mov eax, dword [ebp - 0x40]
and eax, 0x10000003
cmp eax, 0x10000000
je 0x40c699
push ecx
call esi
mov edx, dword [ebp - 0x3c]
or ecx, 0xffffffff
mov dword [ebp - 0x10], ecx
jmp 0x40c6ac
lea ecx, [ebp - 0x44]
call eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x44], vtable.TextFile.0
test edx, edx
je 0x40c6db
cmp dword [ebp - 0x18], 0
jne 0x40c6db
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push edx
push dword [ebp - 0x14]
push ecx
call edi
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x3c], 0
xor eax, eax
mov word [ebp - 0x1c], ax
cmp ecx, 0xffffffff
je 0x40c6ff
mov eax, dword [ebp - 0x40]
and eax, 0x10000003
cmp eax, 0x10000000
je 0x40c6f8
push ecx
call esi
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], vtable.TextStream.0
test eax, eax
je 0x40c716
push eax
call fcn.0049ef92
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e770
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x4000
call fcn.004b57a0
push ebp
push esi
mov esi, dword [esp + 0x4018]
push edi
mov edi, ecx
test esi, esi
jne 0x40e7a3
mov esi, dword [edi + 0x644]
test esi, esi
jne 0x40e7a3
mov ecx, dword [edi + 0x27c]
movzx eax, word [edi + 0x280]
jmp 0x40e7ab
movzx ecx, word [esi + 2]
movzx eax, word [esi + 4]
mov ebp, dword [esp + 0x4010]
test ebp, ebp
je 0x40e895
push ebx
push dword [esp + 0x4018]
movzx eax, ax
push 0x4d226c
push eax
mov eax, dword [0x4e9070]
movzx ecx, cx
push dword [eax + ecx*4]
lea eax, [esp + 0x20]
push 0x4d2280
push 0x2000
push eax
call fcn.00481800
mov ebx, eax
add esp, 0x1c
mov eax, dword [esp + 0x401c]
cmp word [eax], 0
je 0x40e81c
push eax
mov ecx, 0x2000
lea eax, [esp + 0x14]
push 0x4d22a8
sub ecx, ebx
lea eax, [eax + ebx*2]
push ecx
push eax
call fcn.00481800
add esp, 0x10
add ebx, eax
cmp ebp, 3
jne 0x40e840
push 0x4d2abc
push ebx
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.0040c550
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x4000
ret 0x10
mov eax, dword [0x4e9ef0]
test eax, eax
je 0x40e862
push 0x4d1068
lea eax, [esp + 0x14]
mov ecx, 0x4e9ea8
push eax
call fcn.0040a7df
mov eax, dword [0x4e9ef0]
cmp eax, 2
je 0x40e872
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_OutputDebugStringW]
cmp ebp, 2
jne 0x40e894
push 0
push esi
push dword [esp + 0x4024]
mov ecx, 0x4e9f30
push 1
push dword [esp + 0x4028]
call fcn.0040d460
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x4000
ret 0x10
Function at 0x412db0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
push ebx
xor al, al
mov bl, cl
cmp dword [0x4e8ef4], 0
mov ecx, 1
push ebp
movzx eax, al
mov bh, dl
cmovne eax, ecx
mov byte [esp + 0xb], bh
cmp dword [0x4e8ef0], 0
push esi
push edi
mov dword [esp + 0x14], eax
je 0x412ded
or eax, 2
mov dword [esp + 0x14], eax
cmp bl, al
je 0x412fea
test al, al
jne 0x412e2e
test bh, bh
jne 0x412e2e
push 0x4e9028
push 0
push 0
push 0x413060
push 0x2000
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x4ea808], eax
test eax, eax
je 0x412ee6
push 0xf
push eax
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
movzx edi, bh
xor esi, esi
xor edi, 1
movzx ebp, bl
nop dword [eax]
push edi
push ebp
push 0x417
push dword [0x4e9028]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x412e65
push 0xa
call dword [sym.imp.KERNEL32.DLL_Sleep]
inc esi
cmp esi, 0x32
jl 0x412e40
mov esi, dword [sym.imp.KERNEL32.DLL_GetTickCount]
xor bh, bh
call esi
mov ebp, dword [sym.imp.USER32.dll_PeekMessageW]
mov edi, eax
mov dh, bl
mov dl, bh
test bl, bl
je 0x412ef3
push 1
push 0x417
push 0x417
push 0
lea eax, [esp + 0x2c]
push eax
call ebp
test eax, eax
je 0x412ed1
cmp dword [esp + 0x24], 0
je 0x412f0d
mov bh, 1
call fcn.004134d0
test al, al
jne 0x412f0d
cmp byte [esp + 0x13], al
jne 0x412fbd
xor bl, bl
lea eax, [esp + 0x18]
push eax
push dword [0x4ea808]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
cmp dword [esp + 0x18], 0x103
jne 0x412f1a
call esi
sub eax, edi
cmp eax, 0x1f4
ja 0x412f0d
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x412e77
call fcn.004134f0
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0x13], 0
mov bh, dl
mov bl, dh
je 0x412eb6
call fcn.004134d0
test al, al
je 0x412fb9
jmp 0x412ed1
cmp byte [esp + 0x13], 0
jne 0x412fb9
jmp 0x412f35
push dword [0x4ea808]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [0x4ea808], 0
call fcn.004134f0
mov al, byte [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.DLL_CreateMutexW]
and al, 1
cmp dword [0x4e8ef4], 0
je 0x412f60
test al, al
jne 0x412f7a
push 0x4d35ac
push 0
push 0
call esi
mov dword [0x4ea800], eax
jmp 0x412f7a
test al, al
je 0x412f7a
push dword [0x4ea800]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [0x4ea800], 0
mov eax, dword [esp + 0x14]
and al, 2
cmp dword [0x4e8ef0], 0
je 0x412f9f
test al, al
jne 0x412fb9
push 0x4d35c0
push 0
push 0
call esi
mov dword [0x4ea804], eax
jmp 0x412fb9
test al, al
je 0x412fb9
push dword [0x4ea804]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [0x4ea804], 0
test bh, bh
je 0x412fea
push 0
push 0
xorps xmm3, xmm3
mov dword [0x4e47f0], 0
mov edx, 0x10000
mov ecx, 0x4d35d8
call fcn.00486cb0
add esp, 8
mov dword [0x4e47f0], 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret