joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ad50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov edx, dword [ebp + 8]
sub esp, 0x14
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
cmp edx, 0xffffffff
jne 0x43ad6e
cmp ecx, 0xffffffff
je 0x43ad90
mov eax, dword [ebx]
push 0
push ecx
push edx
mov eax, dword [eax + 0x20]
mov ecx, ebx
call eax
cmp eax, 0xffffffff
jne 0x43ad90
cmp edx, eax
jne 0x43ad90
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [ebp + 0x14]
mov dword [esp + 0xc], 0
test esi, esi
jne 0x43adbd
push dword [ebx + 0x2c]
mov ecx, dword [ebx + 0x14]
push dword [ebx + 0x28]
call fcn.00501b20
add esp, 8
neg eax
sbb eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [ebx + 0x18], 0
je 0x43aeb9
cmp dword [ebx + 0x40], 0
jne 0x43ade2
push 0x10000
call dword [sym.imp.MSVCR120.dll_malloc]
add esp, 4
mov dword [ebx + 0x40], eax
test eax, eax
je 0x43ad84
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
lea esp, [esp]
mov edi, 0x10000
cmp esi, 0x10000
jae 0x43adff
mov edi, esi
push edi
push eax
push dword [ebx + 0x40]
call sub.MSVCR120.dll_memcpy
mov ecx, dword [ebx + 0x40]
add esp, 0xc
mov edx, edi
call fcn.004f35c0
cmp edi, eax
jne 0x43ad84
cmp byte [0x5c6a90], 0
mov eax, dword [ebx + 0x40]
mov ecx, dword [ebx + 0x14]
push 0
je 0x43ae70
xor edx, edx
push edx
push edi
push eax
lea eax, [esp + 0x28]
mov dword [esp + 0x28], edx
push eax
push edx
push edx
push edx
push ecx
mov dword [esp + 0x40], edx
call dword [0x5c0268]
mov esi, eax
push esi
call dword [0x5c00a8]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jns 0x43ae67
mov esi, dword [ebp + 0x14]
or eax, 0xffffffff
jmp 0x43ae8b
mov eax, dword [esp + 0x1c]
mov esi, dword [ebp + 0x14]
jmp 0x43ae8b
lea edx, [esp + 0x18]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x43ae87
or eax, 0xffffffff
jmp 0x43ae8b
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x43ad84
mov ecx, dword [esp + 0xc]
add ecx, eax
mov dword [esp + 0xc], ecx
cmp eax, edi
jne 0x43aeca
mov eax, dword [esp + 0x10]
add eax, edi
sub esi, edi
mov dword [esp + 0x10], eax
mov dword [ebp + 0x14], esi
jne 0x43adf0
jmp 0x43aeca
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebx + 0x14]
push esi
call fcn.00501ab0
add esp, 4
mov ecx, eax
cmp ecx, 0xffffffff
je 0x43aed6
add dword [ebx + 0x28], ecx
adc dword [ebx + 0x2c], 0
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43b530
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x5c04b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
test edi, edi
jne 0x43b56a
pop edi
pop esi
mov eax, 0x1b62
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret 0xc
cmp dword [esi + 4], 0
jne 0x43b588
pop edi
pop esi
mov eax, 0x232e
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi]
call dword [eax + 0x10]
mov eax, dword [ebp + 0x10]
test eax, 0x200
je 0x43b612
mov ecx, dword [esi + 8]
mov edx, 1
call fcn.004ffd60
test eax, eax
je 0x43b5e3
push ecx
mov ecx, dword [esi + 4]
lea edx, [ebp - 0x248]
push 0x122
call fcn.005179e0
add esp, 8
test al, al
jne 0x43b5db
pop edi
pop esi
mov eax, 0x1388
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x248]
jmp 0x43b5e6
mov eax, dword [esi + 4]
push 4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x43b627
push ebx
push edi
mov ecx, esi
call fcn.0052f270
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ebx
push edi
call fcn.00501ec0
add esp, 0xc
test eax, eax
je 0x43b5f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00503330
mov ecx, eax
call fcn.0052f720
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00553510
mov esp, ebp
pop ebp
ret 0xc

Function at 0x43b680
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x5c04b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x10]
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x43b6af
mov edx, dword [esi + 8]
push 0x20
call fcn.00502160
add esp, 4
mov ecx, dword [ebp + 8]
test ecx, 0x200
je 0x43b738
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43b6da
mov eax, dword [ecx]
test eax, eax
je 0x43b6da
cmp eax, 1
je 0x43b6ff
mov eax, dword [ecx + 4]
add eax, 8
add ecx, eax
mov eax, dword [ecx]
test eax, eax
jne 0x43b6c7
mov eax, dword [esi + 4]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x43b744
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret 4
push ecx
mov ecx, dword [esi + 4]
lea edx, [ebp - 0x248]
push 0x122
call fcn.005179e0
add esp, 8
test al, al
jne 0x43b730
mov eax, 0x1388
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x248]
jmp 0x43b6dd
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x50]
test eax, eax
je 0x43b766
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00503330
mov ecx, eax
call fcn.0052f720
cmp eax, 0x2332
je 0x43b766
cmp eax, 0x2333
jne 0x43b768
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00553510
mov esp, ebp
pop ebp
ret 4
Function at 0x44bd80
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x5c6a90], 0
jne 0x44bdb1
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esp, ebp
pop ebp
ret 0x20
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
js 0x44beac
test ecx, ecx
jne 0x44beac
test eax, eax
jne 0x44beac
mov ecx, dword [ebp + 0x10]
push edi
test ecx, ecx
je 0x44be9f
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x44be9f
mov eax, dword [edi]
push esi
lea eax, [eax*2 + 0x16]
push eax
mov dword [ebp + 0x14], eax
call dword [sym.imp.MSVCR120.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x44be13
lea eax, [esi + 8]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
push esi
push 0
push dword [ebp + 0xc]
push ebx
call dword [0x5c00b0]
mov ebx, eax
test ebx, ebx
js 0x44be6e
mov eax, dword [esi + 0xc]
mov ecx, eax
shr ecx, 1
cmp ecx, dword [edi]
jae 0x44be98
push eax
lea eax, [esi + 0x10]
push eax
push dword [ebp + 0x10]
call sub.MSVCR120.dll_memcpy
mov eax, dword [esi + 0xc]
xor edx, edx
mov ecx, dword [ebp + 0x10]
add esp, 0xc
shr eax, 1
mov word [ecx + eax*2], dx
mov eax, dword [esi + 0xc]
mov ecx, dword [ebp + 0x24]
shr eax, 1
mov dword [edi], eax
test ecx, ecx
je 0x44be6e
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
cmp ebx, 0x80000005
jne 0x44be7e
mov eax, dword [esi + 0xc]
shr eax, 1
inc eax
mov dword [edi], eax
push esi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
push ebx
call dword [0x5c00a8]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov ebx, htonl
jmp 0x44be76
pop edi
mov eax, 0x57
pop ebx
mov esp, ebp
pop ebp
ret 0x20
push dword [ebp + 0x24]
push eax
push ecx
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x44e140
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x5c04b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x670]
mov dword [ebp - 0x674], ecx
push eax
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edi, dword [ebp - 0x66c]
push 0xc9
push 0x2a69c000
push 0
push ebx
call fcn.005543c0
sub dword [ebp - 0x670], eax
lea ecx, [ebp - 0x210]
sbb edi, edx
mov edx, dword [ebp - 0x674]
xor eax, eax
mov dword [ebp - 0x66c], edi
mov word [ebp - 0x210], ax
call fcn.0044ed40
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x44e1b4
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
cmp ecx, 0x104
jae 0x44e1e9
push eax
lea eax, [ebp - 0x418]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
jmp 0x44e20d
push 0x103
push eax
lea eax, [ebp - 0x418]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcsncpy_s]
add esp, 0x10
xor eax, eax
mov word [ebp - 0x212], ax
push 0x585160
mov edx, 0x104
lea ecx, [ebp - 0x210]
call fcn.0052fae0
add esp, 4
lea eax, [ebp - 0x418]
push 0
push eax
call dword [sym.imp.MSVCR120.dll_wcschr]
add esp, 8
mov edi, eax
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x44e30f
jmp 0x44e260
test byte [ebp - 0x668], 0x10
jne 0x44e2f2
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x654]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jns 0x44e2f2
mov eax, edi
lea ecx, [ebp - 0x418]
sub eax, ecx
mov esi, 0x104
sar eax, 1
sub esi, eax
je 0x44e2e7
lea eax, [ebp - 0x63c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44e2a3
sub eax, edx
sar eax, 1
cmp eax, esi
jae 0x44e2ca
lea eax, [ebp - 0x63c]
push eax
push esi
push edi
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
jmp 0x44e2e7
lea eax, [esi - 1]
push eax
lea eax, [ebp - 0x63c]
push eax
push esi
push edi
call dword [sym.imp.MSVCR120.dll_wcsncpy_s]
add esp, 0x10
xor eax, eax
mov word [edi + esi*2 - 2], ax
lea ecx, [ebp - 0x418]
call fcn.00509d60
lea eax, [ebp - 0x668]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x44e260
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00553510
mov esp, ebp
pop ebp
ret
Function at 0x45a0b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5c04b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
lea esi, [edi + 4]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x45a183
cmp eax, 0x104
ja 0x45a183
lea eax, [ebp - 0x210]
push eax
push 0
push str.AnSe
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x45a183
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45a110
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
cmp ecx, 0x104
jae 0x45a13f
push eax
push 0x104
push esi
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
jmp 0x45a15d
push 0x103
push eax
push 0x104
push esi
call dword [sym.imp.MSVCR120.dll_wcsncpy_s]
add esp, 0x10
xor eax, eax
mov word [esi + 0x206], ax
push 0
push 2
push 3
xor edx, edx
mov ecx, esi
call fcn.00501940
mov dword [edi], eax
add esp, 0xc
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
mov dword [edi], 0
xor ecx, ebp
pop edi
pop esi
call fcn.00553510
mov esp, ebp
pop ebp
ret

Function at 0x45a1a0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x45a1e3
cmp byte [0x5c6a90], 0
push eax
je 0x45a1d2
call dword [0x5c00d8]
push eax
call dword [0x5c00a8]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [esi + 4]
xor edx, edx
pop esi
jmp fcn.00501d80
call dword [0x5c001c]
lea ecx, [esi + 4]
xor edx, edx
pop esi
jmp fcn.00501d80
pop esi
ret
Function at 0x45f080
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55aed7
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x5c04b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
mov dword [ebp - 4], 0
push ecx
push edi
lea ecx, [edi + 0x18]
call fcn.00452b30
mov byte [ebp - 4], 1
mov dword [edi + 0xcc], 0xf
mov dword [edi + 0xc8], 0
mov byte [edi + 0xb8], 0
mov byte [ebp - 4], 2
mov dword [edi + 0xe4], 0xf
mov dword [edi + 0xe0], 0
mov byte [edi + 0xd0], 0
mov byte [ebp - 4], 3
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 4]
mov dword [eax + edi + 0x30], 0x11
mov dword [eax + edi + 0x34], 0
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 4]
mov byte [eax + edi + 0x58], 0x30
mov dword [ebp - 4], 4
lea eax, [ebp - 0x10]
push ecx
push eax
mov ecx, edi
mov dword [ebp - 0x10], 0
call fcn.0045fd60
mov ecx, edi
call fcn.004520e0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x469790
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x1c], 0
jne 0x4699a1
lea eax, [edi + 0x2204]
mov ecx, 0xea60
test eax, eax
je 0x4697bf
mov eax, dword [eax + 0x112e]
cmp eax, 0xb
jae 0x4697bf
imul ecx, eax, 0xea60
mov esi, dword [sym.imp.USER32.dll_SetTimer]
push 0
push ecx
push 0x958
push dword [edi + 0x1c98]
call esi
push 0
push 0x36ee80
push 0x959
push dword [edi + 0x1c98]
call esi
push 0
push 0x493e0
push 0x95b
push dword [edi + 0x1c98]
call esi
push 0
push 0x6ddd00
push 0x95e
push dword [edi + 0x1c98]
call esi
push 0
push 0x927c0
push 0x960
push dword [edi + 0x1c98]
call esi
sub esp, 8
lea edx, [edi + 0x9a70]
mov ecx, 5
call fcn.0051ee20
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x46998e
mov ebx, dword [sym.imp.KERNEL32.dll_ResetEvent]
lea esp, [esp]
test esi, esi
je 0x46998e
cmp esi, 1
jne 0x469890
mov eax, dword [0x5c07d4]
test eax, eax
je 0x46986e
push dword [0x5c07d8]
call eax
mov eax, dword [0x5c07d0]
test eax, eax
je 0x469890
cmp dword [0x5c07c8], 0
je 0x469890
push 0x5c07c8
push 1
push 0
push eax
call dword [0x5c0220]
test byte [edi + 0x9e58], 8
je 0x4698a9
cmp esi, 2
jne 0x4698a9
push dword [edi + 0x9a78]
jmp 0x46996b
cmp esi, 3
jne 0x4698f7
cmp dword [edi + 0x9500], 0
lea ebx, [edi + 0x9500]
jg 0x4698e9
push ecx
mov ecx, ebx
call fcn.00519a30
lea esi, [ebx + 0x58]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, ebx
mov byte [ebx + 0x1c], 1
mov byte [ebx + 0x31], 1
mov byte [ebx + 0x45], 1
call fcn.00519e40
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [edi + 0x9a7c]
mov ebx, dword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x46996b
cmp esi, 4
jne 0x46996d
cmp dword [edi + 0x9500], 0
lea esi, [edi + 0x94f8]
jle 0x469965
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x46991f
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0xc], 0
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x469933
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x18], 0
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x469947
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi + 0x10], 0
cmp byte [esi + 0x14], 0
je 0x469957
call dword [0x5c02a4]
mov byte [esi + 0x14], 0
mov ecx, esi
mov dword [esi + 8], 0
call fcn.0054e300
push dword [edi + 0x9a80]
call ebx
sub esp, 8
lea edx, [edi + 0x9a70]
mov ecx, 5
call fcn.0051ee20
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
jne 0x469850
push 1
mov ecx, edi
call fcn.0046dde0
mov ecx, edi
pop edi
pop esi
pop ebx
jmp fcn.004624d0
pop edi
pop esi
pop ebx
ret
Function at 0x46c340
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55baf6
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x5c04b4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, 0xe
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [0x5c008c]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x46c4a0
mov edx, dword [0x5c001c]
lea ecx, [ebp - 0xac]
push ebx
call fcn.004722c0
add esp, 4
mov dword [ebp - 4], 0
lea edx, [esi + 0x72]
lea ecx, [ebp - 0x94]
call fcn.0050da70
lea eax, [ebp - 0x98]
xor ecx, ecx
push eax
push 4
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x94]
push eax
call fcn.004853c0
cmp eax, 5
jne 0x46c48e
mov eax, dword [ebp - 0xa0]
push eax
mov dword [ebp - 0x9c], eax
call dword [sym.imp.MSVCR120.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x46c48e
mov edx, dword [sym.imp.MSVCR120.dll_free]
lea ecx, [ebp - 0xb8]
push edi
call fcn.00430f80
add esp, 4
mov byte [ebp - 4], 1
lea eax, [ebp - 0x98]
push eax
push dword [ebp - 0x9c]
lea eax, [ebp - 0x94]
xor ecx, ecx
push edi
push eax
call fcn.004853c0
test eax, eax
jne 0x46c47f
push 0
mov dword [ebp - 0x98], eax
lea ecx, [ebp - 0x98]
mov eax, dword [ebp - 0x9c]
push ecx
dec eax
push eax
push edi
push ebx
mov dword [ebp - 0x9c], eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46c47f
mov eax, dword [ebp - 0x98]
sub eax, dword [ebp - 0x9c]
neg eax
sbb eax, eax
and esi, eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xb8]
call fcn.00416890
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xac]
call fcn.004725d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00553510
mov esp, ebp
pop ebp
ret 4
Function at 0x46db80
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x9494]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x9a2c], 0
mov ebx, dword [sym.imp.MSVCR120.dll__time64]
je 0x46dbfd
push 0
call ebx
mov ecx, dword [esi + 0x9a3c]
add esp, 4
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x9a38]
add eax, 0xe10
adc ecx, 0
cmp ecx, edx
jg 0x46dbf4
jl 0x46dbd0
cmp eax, dword [ebp - 4]
jae 0x46dbf4
push 0
push dword [esi + 0x9a2c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x9a2c]
call dword [0x5c001c]
mov dword [esi + 0x9a2c], 0
cmp dword [esi + 0x9a2c], 0
jne 0x46dc76
cmp dword [esi + 0x220a], 0
je 0x46dc76
cmp byte [ebp + 8], 0
jne 0x46dc43
mov eax, dword [esi + 0x9a38]
or eax, dword [esi + 0x9a3c]
je 0x46dc43
push 0
call ebx
mov ecx, dword [esi + 0x9a3c]
add esp, 4
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x9a38]
add eax, 0x15180
adc ecx, 0
cmp ecx, edx
jg 0x46dc76
jl 0x46dc43
cmp eax, dword [ebp + 8]
jae 0x46dc76
lea eax, [ebp - 8]
push eax
push 0
push esi
push 0x4608f0
push 0
push 0
call dword [0x5c00f8]
mov dword [esi + 0x9a2c], eax
test eax, eax
je 0x46dc76
push 0
call ebx
add esp, 4
mov dword [esi + 0x9a38], eax
mov dword [esi + 0x9a3c], edx
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x46ebf0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa14
mov eax, dword [0x5c04b4]
xor eax, esp
mov dword [esp + 0xa10], eax
push ebx
push esi
push edi
xor esi, esi
lea eax, [esp + 0x10]
push 0xa08
mov ebx, ecx
push esi
push eax
mov dword [esp + 0x18], ebx
lea edi, [esi + 4]
call sub.MSVCR120.dll_memset
add esp, 0xc
cmp dword [ebx + 0x326b], esi
je 0x46ec94
push dword [ebx + 0x326f]
lea eax, [esp + 0x418]
push 0x100
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
mov eax, dword [ebx + 0x3277]
add esp, 0xc
mov dword [esp + 0x614], eax
lea eax, [esp + 0x618]
push dword [ebx + 0x327b]
push 0x100
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
lea eax, [esp + 0x818]
push dword [ebx + 0x327f]
push 0x100
push eax
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
add edi, edi
test esi, esi
je 0x46eca4
push esi
call dword [sym.imp.MSVCR120.dll_free]
add esp, 4
push 2
push edi
call dword [sym.imp.MSVCR120.dll_calloc]
mov esi, eax
add esp, 8
test esi, esi
je 0x46ed80
push edi
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.004f8190
mov ebx, eax
add esp, 4
cmp ebx, 0xfffffffb
jne 0x46ecdd
cmp edi, 0x400
jb 0x46ec94
jmp 0x46ed5a
test ebx, ebx
js 0x46ed5a
mov edi, dword [esp + 0xc]
lea eax, [edi + 0x9adc]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, esi
add edi, 0x9af8
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46ed00
sub ecx, edx
sar ecx, 1
cmp ecx, 8
jae 0x46ed23
push esi
push 8
push edi
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
jmp 0x46ed38
push 7
push esi
push 8
push edi
call dword [sym.imp.MSVCR120.dll_wcsncpy_s]
add esp, 0x10
xor eax, eax
mov word [edi + 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0xc]
add eax, 0x2932e00
mov dword [ecx + 0x9af4], eax
lea eax, [ecx + 0x9adc]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push esi
call dword [sym.imp.MSVCR120.dll_free]
xor eax, eax
add esp, 4
test ebx, ebx
setns al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa10]
xor ecx, esp
call fcn.00553510
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xa1c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00553510
mov esp, ebp
pop ebp
ret
Function at 0x47fcc0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55aed7
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x5c04b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
mov dword [ebp - 4], 0
push ecx
push edi
lea ecx, [edi + 0x18]
call fcn.00452b30
mov byte [ebp - 4], 1
mov dword [edi + 0xcc], 0xf
mov dword [edi + 0xc8], 0
mov byte [edi + 0xb8], 0
mov byte [ebp - 4], 2
mov dword [edi + 0xe4], 0xf
mov dword [edi + 0xe0], 0
mov byte [edi + 0xd0], 0
mov byte [ebp - 4], 3
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 4]
mov dword [eax + edi + 0x30], 0x11
mov dword [eax + edi + 0x34], 0
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 4]
mov byte [eax + edi + 0x58], 0x30
mov dword [ebp - 4], 4
lea eax, [ebp - 0x10]
push dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 0x10], 0
push eax
call fcn.00480c60
mov ecx, edi
call fcn.004520e0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x47ffe0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55aed7
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x5c04b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
mov dword [ebp - 4], 0
push ecx
push edi
lea ecx, [edi + 0x18]
call fcn.00452b30
mov byte [ebp - 4], 1
mov dword [edi + 0xcc], 0xf
mov dword [edi + 0xc8], 0
mov byte [edi + 0xb8], 0
mov byte [ebp - 4], 2
mov dword [edi + 0xe4], 0xf
mov dword [edi + 0xe0], 0
mov byte [edi + 0xd0], 0
mov byte [ebp - 4], 3
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 4]
mov dword [eax + edi + 0x30], 0x11
mov dword [eax + edi + 0x34], 0
mov eax, dword [edi + 0x18]
mov eax, dword [eax + 4]
mov byte [eax + edi + 0x58], 0x30
mov dword [ebp - 4], 4
lea eax, [ebp - 0x10]
push dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 0x10], 0
push eax
call fcn.00454650
mov ecx, edi
call fcn.004520e0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4