joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458aa0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, edx
mov edx, ecx
push edi
test edx, 0x400
je 0x458ab7
or dword [esi], 0x80
test edx, 0x800
je 0x458ac5
or dword [esi], 0x100
test dl, 1
je 0x458ad0
or dword [esi], 0x80000000
test edx, 0x100
je 0x458ade
or dword [esi], 0x20000000
test edx, 0x200
je 0x458aec
or dword [esi], 0x10000
test dl, 2
je 0x458af9
or dword [esi], 0x40000000
jmp 0x458b0d
test dl, 4
je 0x458b0d
mov eax, dword [ebp + 8]
mov ecx, dword [esi]
mov dword [eax], ecx
or ecx, 0x100
mov dword [esi], ecx
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x18]
test dl, 8
je 0x458b26
mov dword [esi], 2
mov dword [edi], 5
jmp 0x458b44
test dl, dl
jns 0x458b38
mov dword [esi], 4
mov dword [edi], 3
jmp 0x458b44
mov dword [esi], 3
mov dword [edi], 1
mov eax, dword [ebp + 0xc]
test dl, 0x10
je 0x458b4f
or dword [eax], 1
test dl, 0x20
je 0x458b57
or dword [eax], 2
test dl, 0x40
je 0x458b5f
or dword [eax], 4
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x14]
test edx, edx
jns 0x458b75
or dword [eax], 0x4000000
or dword [ecx], 0x1000
test edx, 0x10000000
je 0x458b89
or dword [eax], 0x2000000
or dword [ecx], 0x4000
test edx, 0x20000000
je 0x458ba2
cmp dword [esi], 2
jne 0x458ba2
mov dword [esi], 1
mov dword [edi], 2
pop edi
pop esi
test edx, 0x8000000
je 0x458bb5
or dword [eax], 0x2000000
or dword [ecx], 1
test edx, 0x40000
je 0x458bc9
or dword [eax], 0x200000
or dword [ecx], 0x200000
and edx, 0x7000000
je 0x458c26
cmp edx, 0x6000000
ja 0x458c15
je 0x458c0a
cmp edx, 0x4000000
je 0x458bf9
cmp edx, 0x5000000
jne 0x458c26
or dword [eax], 0x10000000
or dword [ecx], 0x800
pop ebp
ret
or dword [eax], 0x2100
mov eax, dword [ebp + 0x20]
or dword [eax], 0x2100
pop ebp
ret
or dword [eax], 0x8000000
or dword [ecx], 4
pop ebp
ret
cmp edx, 0x7000000
jne 0x458c26
or dword [eax], 0x80000000
or dword [ecx], 2
pop ebp
ret

Function at 0x459b70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x527728]
mov ebx, edx
push edi
mov eax, ecx
mov dword [ebp - 8], 1
xor edi, edi
mov dword [ebp - 0xc], eax
mov dword [ebx], 0
test esi, esi
je 0x459bb4
push edi
mov ecx, esi
call dword [0x4e3310]
call esi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebx], eax
cmp eax, 0xffffffff
jne 0x459bca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov esi, dword [0x527728]
test esi, esi
je 0x459be1
push dword [ebp - 8]
mov ecx, esi
call dword [0x4e3310]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049384c
mov esp, ebp
pop ebp
ret
Function at 0x459c00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10008
call fcn.00494660
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x527728]
push edi
xor edi, edi
mov dword [ebp - 0x10008], ecx
lea ebx, [edi + 1]
test esi, esi
je 0x459c3c
push edi
mov ecx, esi
call dword [0x4e3310]
call esi
mov ebx, eax
lea eax, [ebp - 0x10004]
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x459c5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x459c94
cmp word [ebp - 0x10004], di
jne 0x459c69
xor ecx, ecx
jmp 0x459c81
lea ecx, [ebp - 0x10004]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459c72
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x10008]
lea eax, [ebp - 0x10004]
push eax
call fcn.00415460
mov esi, dword [0x527728]
test esi, esi
je 0x459ca9
push ebx
mov ecx, esi
call dword [0x4e3310]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049384c
mov esp, ebp
pop ebp
ret
Function at 0x45ab40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10004
call fcn.00494660
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x8000
lea eax, [ebp - 0x10004]
mov esi, ecx
push eax
push esi
mov edi, edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x45abac
cmp word [ebp - 0x10004], 0
jne 0x45ab8a
xor ecx, ecx
lea eax, [ebp - 0x10004]
push ecx
push eax
jmp 0x45abe1
lea ecx, [ebp - 0x10004]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45ab93
sub ecx, edx
lea eax, [ebp - 0x10004]
sar ecx, 1
push ecx
push eax
jmp 0x45abe1
cmp dword [edi + 0x14], 8
jb 0x45abb6
mov eax, dword [edi]
jmp 0x45abb8
mov eax, edi
cmp esi, eax
je 0x45abe8
cmp word [esi], 0
jne 0x45abc6
xor ecx, ecx
jmp 0x45abdf
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45abd0
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.00415460
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0049384c
mov esp, ebp
pop ebp
ret

Function at 0x45ac00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1020c
call fcn.00494660
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x8000
lea eax, [ebp - 0x1020c]
mov esi, edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x45acef
cmp byte [ebp + 8], 0
je 0x45ac78
push 0x104
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x1020c]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x45ac78
xor ecx, ecx
nop word [eax + eax]
movzx eax, word [ebp + ecx - 0x20c]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x1020e], ax
test ax, ax
jne 0x45ac60
lea eax, [ebp - 0x1020c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45acef
cmp word [ebp - 0x1020c], 0
jne 0x45acb6
xor ecx, ecx
push ecx
lea ecx, [ebp - 0x1020c]
push ecx
mov ecx, esi
call fcn.00415460
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049384c
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x1020c]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45acc0
sub ecx, edx
sar ecx, 1
push ecx
lea ecx, [ebp - 0x1020c]
push ecx
mov ecx, esi
call fcn.00415460
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049384c
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0049384c
mov esp, ebp
pop ebp
ret
Function at 0x45b2c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, edx
mov edx, ecx
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x21c], edx
push esi
mov esi, dword [ebp + 8]
test edx, edx
je 0x45b431
test eax, eax
je 0x45b431
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x45b308
mov ecx, dword [esi]
jmp 0x45b30a
mov ecx, esi
push ebx
push edi
xor edi, edi
mov word [ecx], di
xor ecx, ecx
mov word [ebp - 0x20c], cx
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x210], 0x208
push ecx
push edi
push edi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, 0xea
jne 0x45b3ec
mov eax, dword [ebp - 0x210]
add eax, 2
push 0x524808
push eax
mov dword [ebp - 0x214], eax
call fcn.004938d6
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x45b3d4
lea eax, [ebp - 0x214]
push eax
push ebx
push 0
push 0
push dword [ebp - 0x218]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x45b3b8
mov eax, dword [ebp - 0x214]
shr eax, 1
je 0x45b3af
lea edx, [eax - 1]
lea edx, [ebx + edx*2]
cmp word [edx], 0
jne 0x45b3af
sub edx, 2
sub eax, 1
jne 0x45b3a1
push eax
push ebx
mov ecx, esi
call fcn.00415460
push ebx
call fcn.004938d1
add esp, 4
mov eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049384c
mov esp, ebp
pop ebp
ret
mov edi, 8
mov eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049384c
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x45b41e
mov eax, dword [ebp - 0x210]
shr eax, 1
je 0x45b40f
lea ecx, [ebp + eax*2 - 0x20e]
cmp word [ecx], 0
jne 0x45b40f
sub ecx, 2
sub eax, 1
jne 0x45b401
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00415460
mov eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049384c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x57
xor ecx, ebp
pop esi
call fcn.0049384c
mov esp, ebp
pop ebp
ret

Function at 0x45bc30
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10004
call fcn.00494660
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, edx
test ecx, ecx
je 0x45bca5
cmp word [ecx], 0
je 0x45bca5
push esi
push 0x8000
lea eax, [ebp - 0x10004]
xor esi, esi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x45bc85
mov esi, 2
mov eax, esi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049384c
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10004]
mov ecx, edi
push eax
call fcn.00414f90
mov eax, esi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049384c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x57
xor ecx, ebp
pop edi
call fcn.0049384c
mov esp, ebp
pop ebp
ret
Function at 0x45d2c0
Capabilities:
Get cpu information
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x80000002
lea eax, [ebp - 8]
xorps xmm0, xmm0
push eax
push 1
mov edx, str.HardwareDescriptionSystemCentralProcessor0
movlpd qword [ebp - 0x10], xmm0
xor ecx, ecx
call fcn.0045b140
add esp, 0xc
test eax, eax
jne 0x45d353
mov ebx, dword [ebp - 8]
xor esi, esi
nop
mov eax, dword [esi + 0x4fb800]
test ebx, ebx
je 0x45d340
test eax, eax
je 0x45d340
lea ecx, [ebp - 8]
mov dword [ebp - 8], 8
push ecx
lea ecx, [ebp - 0x10]
xor edi, edi
push ecx
push edi
push edi
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x45d334
cmp eax, 0xea
jne 0x45d337
mov edi, dword [ebp - 8]
test eax, eax
jne 0x45d340
cmp edi, 4
jae 0x45d348
add esi, 4
cmp esi, 0xc
jb 0x45d300
test ebx, ebx
je 0x45d353
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
mov edx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
call fcn.0049384c
mov esp, ebp
pop ebp
ret

Function at 0x45d560
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
push edx
mov edx, ecx
mov dword [ebp - 0x50], 0
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x64], 0x67452301
mov dword [ebp - 0x60], 0xefcdab89
mov dword [ebp - 0x5c], 0x98badcfe
mov dword [ebp - 0x58], 0x10325476
call fcn.0045d5d0
mov edx, esi
lea ecx, [ebp - 0x64]
call fcn.0045d690
mov ecx, dword [ebp - 8]
add esp, 4
xor ecx, ebp
pop esi
call fcn.0049384c
mov esp, ebp
pop ebp
ret
Function at 0x466f10
Capabilities:
Set http header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd924
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x520078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 8], 0
jne 0x466f58
push 0x57
lea ecx, [ebp - 0x24]
call fcn.0047e020
push 0x51d458
lea eax, [ebp - 0x24]
push eax
call fcn.004ac830
push dword [ebp + 0xc]
push dword [ebp + 8]
sub esp, 8
mov ecx, esp
mov dword [ebp - 4], 0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 8]
test eax, eax
je 0x466f85
lock inc dword [eax + 4]
push eax
push edx
call fcn.00418e00
sub esp, 8
mov ecx, esp
mov dword [ebp - 4], 1
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov eax, dword [esi + 4]
mov edx, dword [esi]
test eax, eax
je 0x466fb2
lock inc dword [eax + 4]
push eax
push edx
call fcn.00418e00
lea ecx, [esi + 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004682c0
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x10], 0
je 0x467014
cmp dword [eax + 0x14], 8
jb 0x466fd9
mov eax, dword [eax]
push 0x10000000
push 0xffffffffffffffff
push eax
push dword [esi + 0x20]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x467014
push str.Unable_to_add_headers_to_the_request_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0047e0e0
add esp, 0xc
lea eax, [ebp - 0x24]
push 0x51d458
push eax
call fcn.004ac830
push dword [esi + 0xc8]
lea eax, [esi + 0xb0]
push eax
lea eax, [esi + 0x98]
push eax
lea ecx, [esi + 0x10]
call fcn.00468670
push dword [esi + 0xfc]
lea eax, [esi + 0xe4]
push eax
lea eax, [esi + 0xcc]
push eax
lea ecx, [esi + 0x10]
call fcn.00468800
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
mov byte [ebp - 0x10], 0
add eax, ecx
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], 0
push eax
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.004260e0
lea edi, [esi + 0x4c]
lea eax, [ebp - 0x1c]
cmp edi, eax
je 0x4670b1
mov ecx, edi
call fcn.00416f60
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 8], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.00416f60
cmp dword [ebp + 0x1c], 0
je 0x46710e
push 0xc
call fcn.00493862
xorps xmm0, xmm0
add esp, 4
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov edi, dword [esi + 0x58]
mov dword [esi + 0x58], eax
test edi, edi
je 0x46710e
mov ecx, edi
call fcn.00416f60
push 0xc
push edi
call fcn.004938c3
add esp, 8
mov eax, dword [ebp + 0x20]
cmp dword [eax + 0x10], 0
je 0x467128
lea ecx, [esi + 0x68]
cmp ecx, eax
je 0x467128
push 0xffffffffffffffff
push 0
push eax
call fcn.00415110
lea ecx, [esi + 0x10]
call fcn.004685e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x467ff0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ddb51
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x520078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [ebp - 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
lea eax, [esi + 0x58]
mov dword [esi + 0x54], 0x10000
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x4680d8
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
push ecx
push ecx
push ecx
mov byte [ebp - 4], 0xb
push ecx
mov dword [esi + 0x70], ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4680fe
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x14], edi
test edi, edi
jne 0x46812b
push str.Unable_to_create_a_synchronization_event_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0047e0e0
add esp, 0xc
lea eax, [ebp - 0x20]
push 0x51d458
push eax
call fcn.004ac830
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov eax, dword [esi + 0x24]
test eax, eax
je 0x468149
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], edi
test edi, edi
je 0x468105
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov eax, dword [esi + 0x18]
test eax, eax
je 0x46816e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], edi
test edi, edi
je 0x468105
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x468193
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1c], edi
test edi, edi
je 0x468105
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4681bc
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x20], edi
test edi, edi
je 0x468105
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46b2f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de0d0
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [esi + 0x80]
mov edx, dword [edi]
cmp edx, eax
jl 0x46b491
call fcn.0046b7b0
lea eax, [ebp - 0x74]
mov ecx, edi
push eax
call fcn.0046fc40
push ecx
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.0042fe70
add esp, 4
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x60]
cmp eax, 0x10
jb 0x46b36d
inc eax
lea ecx, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
call fcn.00417280
push 2
push 0x4f8c18
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x60], 0xf
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x74], 0
mov dword [ebp - 0x48], 0xf
mov dword [ebp - 0x4c], 0
mov byte [ebp - 0x5c], 0
call fcn.00420800
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
push 1
push 0x503018
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
call fcn.00420800
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 4
push eax
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x2c]
call fcn.0046d290
mov eax, dword [ebp - 0x30]
add esp, 4
cmp eax, 0x10
jb 0x46b3f0
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00417280
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
cmp eax, 0x10
jb 0x46b41b
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00417280
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x14]
push 0
push ecx
push dword [ebp - 0x1c]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], 0
cmovae eax, dword [ebp - 0x2c]
push eax
push dword [esi + 0x58]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x46b467
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x88]
call fcn.0047e020
push 0x51d458
lea eax, [ebp - 0x88]
push eax
call fcn.004ac830
mov ecx, dword [edi]
mov eax, dword [esi + 0x84]
cmp ecx, eax
jl 0x46b47c
push dword [esi + 0x58]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x46b491
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00417280
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049384c
mov esp, ebp
pop ebp
ret 4
Function at 0x46c080
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4de290
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x520078]
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, ecx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebx]
test cl, 3
je 0x46c17b
mov eax, dword [edi + 0x34]
cmp esi, eax
jge 0x46c0db
mov eax, dword [edi + 0x38]
test eax, eax
je 0x46c17b
mov eax, dword [edi + 0x3c]
cmp esi, eax
jl 0x46c17b
lea eax, [ebp - 0x48]
mov ecx, ebx
push eax
call fcn.0046fc40
push ecx
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.0042fe70
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x46c117
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.00417280
mov eax, dword [edi + 0x34]
cmp esi, eax
jl 0x46c130
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [edi + 0x38]
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x46c163
mov eax, dword [edi + 0x3c]
cmp esi, eax
jl 0x46c163
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push ecx
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push 1
push eax
call fcn.004c22dc
push dword [ebp - 0x2c]
call fcn.004c2611
add esp, 0x14
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x46c178
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00417280
mov ecx, dword [ebp + 0xc]
test cl, 4
je 0x46c1c0
cmp dword [edi + 0x58], 0xffffffff
je 0x46c1c0
mov eax, dword [edi + 0x30]
cmp esi, eax
jl 0x46c1b8
lea esi, [edi + 0x10]
push esi
mov dword [ebp - 0x30], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push ebx
lea ecx, [edi + 0x28]
mov dword [ebp - 4], 1
call fcn.0046cf10
push esi
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
mov ecx, edi
call fcn.0046b2f0
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.0049384c
mov esp, ebp
pop ebp
ret 8
Function at 0x4715a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d81b6
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [edi + 0x30]
mov dword [edi], vtable.asw::mi::ModuleDestructions.0
call fcn.00471d10
push dword [edi + 0x30]
call fcn.0049385d
add esp, 4
lea ecx, [edi + 0x28]
call fcn.00471d10
push dword [edi + 0x28]
call fcn.0049385d
add esp, 4
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [ebp - 4], 0
mov edi, dword [edi + 8]
test edi, edi
je 0x471629
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x471629
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e3310]
mov ecx, edi
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049384c
mov esp, ebp
pop ebp
ret

Function at 0x4770a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da556
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x520078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00493862
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004907c6
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
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