joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4068b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push esi
push edi
mov esi, edx
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4068cc
call dword [sym.imp.KERNEL32.dll_DebugBreak]
xor edx, edx
push 0
push ecx
lea ecx, [edx + 0x6b]
call fcn.00407100
push dword [ebp + 8]
mov edx, esi
mov ecx, edi
call fcn.00406820
add esp, 0xc
xor cl, cl
call fcn.00406f80
push 0x8805
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x406d10
Capabilities:
Check if file exists
Create thread
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x43e580
push 0x41c800
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x443008]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor bl, bl
mov byte [ebp - 0x19], bl
push 0
push 1
push 0x445484
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
sub eax, 0
je 0x406d7a
sub eax, 1
je 0x406d72
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
jmp 0x406d45
mov dword [ebp - 4], 0
mov dword [0x445480], 0
xor esi, esi
mov dword [ebp - 0x20], esi
cmp esi, 4
jge 0x406db5
mov eax, dword [esi*4 + 0x4456e0]
test eax, eax
je 0x406db2
mov dword [esi*4 + 0x4456e0], 0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
jmp 0x406d8d
lea eax, [ebp - 0x24]
push eax
push 0x4069b0
push 6
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
je 0x406eec
push 0x12c
push 0x445488
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x406eec
cmp eax, 0x12c
jae 0x406eec
test eax, eax
je 0x406eec
cmp word [eax*2 + 0x445486], 0x5c
je 0x406e10
dec eax
mov dword [ebp - 0x28], eax
jmp 0x406df7
test eax, eax
je 0x406eec
cmp eax, 0x11d
ja 0x406eec
lea edi, [eax*2 + 0x445488]
mov ecx, 6
mov esi, str.BvDump32.exe
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x445488
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406eec
test al, 0x10
jne 0x406eec
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x4456e0], eax
test eax, eax
je 0x406eec
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x4456e4], eax
test eax, eax
je 0x406eec
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x4456e8], eax
test eax, eax
je 0x406eec
lea eax, [ebp - 0x30]
push eax
push 0x10000
push 0
push 0x4069b0
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4456ec], eax
push 0xfffffffffffffffe
test eax, eax
lea eax, [ebp - 0x10]
push eax
push 0x443008
je 0x406ef7
mov byte [ebp - 0x19], 1
call fcn.0041cb20
add esp, 0xc
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xfffffffffffffffe
lea eax, [ebp - 0x10]
push eax
push 0x443008
call fcn.0041cb20
add esp, 0xc
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4078a0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428560
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push esi
push edi
mov eax, dword [0x443008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
push 0
push 0x4456f4
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x407909
mov ecx, dword [ebp + 8]
sub esp, 8
mov eax, esp
mov dword [eax], str.NoCrtRandom::GenRandom:_not_initialized
mov dword [eax + 4], 0x27
call fcn.00407c80
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push edi
push esi
push dword [0x4456f0]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4079e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push eax
lea ecx, [ebp - 0x34]
call fcn.00407570
mov dword [ebp - 4], 0
mov edx, str.NoCrtRandom::GenRandom:_CryptGenRandom___failed:
push eax
lea ecx, [ebp - 0x24]
call fcn.00407b80
add esp, 0xc
mov byte [ebp - 4], 1
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x407958
lea edx, [ecx - 1]
jmp 0x40795a
xor edx, edx
test ecx, ecx
je 0x407963
mov eax, dword [eax + 4]
jmp 0x407968
mov eax, 0x445274
mov ecx, dword [ebp + 8]
push edx
push eax
call fcn.00407c80
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x40799e
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40799e
add eax, eax
je 0x40799e
jmp 0x407990
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub eax, 1
jne 0x407990
mov ecx, dword [ebp - 0x20]
call fcn.0041a1e0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x4079ce
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4079ce
add eax, eax
je 0x4079ce
lea esp, [esp]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub eax, 1
jne 0x4079c0
mov ecx, dword [ebp - 0x30]
call fcn.0041a1e0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4095c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ecx]
cmp byte [edi + 0x31], 0
jne 0x4096a1
cmp byte [edi + 0x30], 3
jne 0x4096a1
mov edx, dword [ecx + 4]
cmp dword [edx + 4], 1
jb 0x40967c
mov esi, dword [edx]
mov ebx, 1
mov edx, dword [edx + 4]
cmp edx, ebx
jae 0x409607
mov ebx, edx
test edx, edx
jne 0x40960c
xor eax, eax
jmp 0x409668
mov edx, 1
add edx, edx
mov ecx, 0x4345e0
sub edx, 4
jb 0x409629
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x40962e
add esi, 4
add ecx, 4
sub edx, 4
jae 0x409618
cmp edx, 0xfffffffc
je 0x409662
mov al, byte [esi]
cmp al, byte [ecx]
jne 0x40965b
cmp edx, 0xfffffffd
je 0x409662
mov al, byte [esi + 1]
cmp al, byte [ecx + 1]
jne 0x40965b
cmp edx, 0xfffffffe
je 0x409662
mov al, byte [esi + 2]
cmp al, byte [ecx + 2]
jne 0x40965b
cmp edx, 0xffffffff
je 0x409662
mov al, byte [esi + 3]
cmp al, byte [ecx + 3]
je 0x409662
sbb eax, eax
or eax, 1
jmp 0x409664
xor eax, eax
test eax, eax
jne 0x409675
cmp ebx, 1
je 0x409673
sbb eax, eax
and eax, 0xfffffffe
inc eax
test eax, eax
sete al
test al, al
jne 0x4096a1
lea eax, [esp + 0x10]
push eax
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4096a1
mov eax, dword [esp + 0x10]
or eax, dword [esp + 0x14]
jne 0x4096a1
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4098d0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push esi
mov esi, dword [ecx]
cmp byte [esi + 0x31], 0
jne 0x40994e
cmp byte [esi + 0x30], 3
jne 0x40994e
cmp dword [esi + 0xc], 0xfde9
jne 0x40994e
mov eax, dword [ecx + 4]
cmp dword [eax + 4], 3
jb 0x40992b
mov edx, dword [eax]
mov ecx, 3
mov eax, dword [eax + 4]
cmp eax, ecx
push 3
cmovb ecx, eax
mov dword [esp + 0xc], edx
push 0x4345e4
mov dword [esp + 0x14], ecx
push ecx
lea ecx, [esp + 0x14]
call fcn.0040b080
test eax, eax
sete al
test al, al
jne 0x40994e
lea eax, [esp + 0x10]
push eax
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40994e
mov eax, dword [esp + 0x10]
or eax, dword [esp + 0x14]
jne 0x40994e
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40bd70
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x443008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x12c
push 0
push esi
lea edi, [esi + 0x12c]
call fcn.0041c060
add esp, 0xc
push 0x12b
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x401
push 0
push edi
mov byte [esi + 0x12b], 0
call fcn.0041c060
mov eax, dword [ebx]
add esp, 0xc
push 0x401
push edi
push esi
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x42c1c8]
mov ecx, ebx
call esi
push edi
mov byte [edi + 0x400], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, eax
xor esi, esi
test edx, edx
je 0x40bdfe
cmp edx, 0xffffffff
jne 0x40be1c
push 0
push 0
push 3
push 0
push 7
push 0x40000000
push 0x434edc
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov edx, esi
test edx, edx
je 0x40be6b
cmp edx, 0xffffffff
je 0x40be6b
mov ecx, edi
lea ebx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40be30
push 0
lea eax, [ebp - 0x14]
sub ecx, ebx
push eax
push ecx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x40bec3
cmp esi, 0xffffffff
je 0x40bec3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ada6
mov esp, ebp
pop ebp
ret 4
cmp byte [0x44571c], 0
jne 0x40bec3
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
test eax, eax
je 0x40bec3
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0xc
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [sym.imp.USER32.dll_GetUserObjectInformationW]
test eax, eax
je 0x40bec3
mov eax, dword [ebp - 8]
not eax
and eax, 1
jne 0x40bec3
mov eax, dword [ebx]
push 0x10
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x42c1c8]
mov ecx, ebx
call esi
push eax
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ada6
mov esp, ebp
pop ebp
ret 4
Function at 0x40c5d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428d4b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x443008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0040c760
mov dword [ebp - 4], 0
lea ecx, [esi + 0x1c]
mov dword [ebp - 0x14], ecx
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x30], eax
mov eax, dword [ebp + 8]
cmp eax, 0xffffffff
jne 0x40c645
call fcn.00401941
inc eax
push eax
call fcn.004047e0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40ea9d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edx
mov eax, dword [edi + 0x3c]
mov esi, dword [eax + edi + 0x78]
mov ebx, dword [esi + edi + 0x20]
mov ebp, dword [esi + edi + 0x1c]
add ebx, edi
mov esi, dword [esi + edi + 0x24]
add ebp, edi
add esi, edi
jmp 0x40eac9
lea ebx, [ebx + 4]
lea esi, [esi + 2]
mov ecx, dword [ebx]
mov edx, dword [esp + 0x18]
add ecx, edi
call fcn.0040ee95
movzx ecx, word [esi]
mov ecx, dword [ebp + ecx*4]
add ecx, edi
cmp dword [esp + 0x10], eax
jne 0x40eac3
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
pop ecx
ret 4
Function at 0x40f0c0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
test dl, 7
jne 0x40f1b9
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 0x1048]
mov edi, dword [ecx + 0x104c]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], edi
test edx, edx
je 0x40f1a6
lea eax, [edx - 1]
add esi, 2
shr eax, 3
inc eax
mov dword [ebp - 0x10], eax
mov edi, edi
movzx ebx, byte [esi - 2]
movzx eax, byte [esi - 1]
movzx edi, byte [esi + 2]
shl ebx, 8
or ebx, eax
shl edi, 8
movzx eax, byte [esi]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 1]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 3]
or edi, eax
movzx eax, byte [esi + 4]
shl edi, 8
or edi, eax
movzx eax, byte [esi + 5]
shl edi, 8
or edi, eax
lea eax, [ebp - 0x18]
push ecx
push eax
mov edx, edi
mov ecx, ebx
call fcn.0040eb70
mov ecx, dword [ebp - 8]
lea esi, [esi + 8]
xor ecx, dword [ebp - 0x18]
add esp, 8
mov edx, dword [ebp - 0xc]
mov eax, ecx
xor edx, dword [ebp - 0x14]
shr eax, 0x18
mov byte [esi - 0xa], al
mov eax, ecx
shr eax, 0x10
mov byte [esi - 9], al
mov eax, ecx
shr eax, 8
mov byte [esi - 8], al
mov eax, edx
shr eax, 0x18
mov byte [esi - 6], al
mov eax, edx
shr eax, 0x10
mov byte [esi - 5], al
mov eax, edx
shr eax, 8
sub dword [ebp - 0x10], 1
mov byte [esi - 7], cl
mov ecx, dword [ebp + 8]
mov byte [esi - 4], al
mov byte [esi - 3], dl
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], edi
jne 0x40f100
mov dword [ecx + 0x104c], edi
pop edi
pop esi
mov dword [ecx + 0x1048], ebx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x14b
mov edx, str.blowfish_msb_decrypt_cbc
mov ecx, str._len__7___0
call fcn.00406250
int3
Function at 0x40f960
Capabilities:
Authenticate hmac
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x443008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x40
lea eax, [ebp - 0x44]
mov dword [ebp - 0x54], ecx
push 0x36
push eax
mov esi, edx
call fcn.0041c060
lea eax, [ebp - 0x44]
mov ebx, esi
sub ebx, eax
lea ecx, [ebp - 0x44]
mov eax, 1
add esp, 0xc
sub eax, ecx
xor edx, edx
mov dword [ebp - 0x48], eax
mov eax, 2
mov edi, dword [ebp - 0x48]
sub eax, ecx
mov dword [ebp - 0x4c], eax
mov eax, 3
sub eax, ecx
mov dword [ebp - 0x50], eax
cmp edx, 0x40
jae 0x40f9fd
lea ecx, [ebp - 0x44]
add ecx, edx
mov al, byte [ebx + ecx]
xor byte [ecx], al
lea eax, [edi + ecx]
cmp eax, 0x40
jae 0x40f9fd
mov al, byte [edx + esi + 1]
xor byte [ecx + 1], al
mov eax, dword [ebp - 0x4c]
add eax, ecx
cmp eax, 0x40
jae 0x40f9fd
mov al, byte [edx + esi + 2]
xor byte [ecx + 2], al
mov eax, dword [ebp - 0x50]
add eax, ecx
cmp eax, 0x40
jae 0x40f9fd
mov al, byte [edx + esi + 3]
add edx, 4
xor byte [ecx + 3], al
cmp edx, 0x10
jb 0x40f9b5
mov edi, dword [ebp - 0x54]
lea edx, [ebp - 0x44]
push 0x40
mov ecx, edi
mov dword [edi], 0x67452301
mov dword [edi + 4], 0xefcdab89
mov dword [edi + 8], 0x98badcfe
mov dword [edi + 0xc], 0x10325476
mov dword [edi + 0x10], 0xc3d2e1f0
mov dword [edi + 0x54], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x58], 0
call fcn.0040f710
push 0x40
lea eax, [ebp - 0x44]
push 0x5c
push eax
call fcn.0041c060
mov edi, dword [ebp - 0x48]
add esp, 0x10
xor edx, edx
cmp edx, 0x40
jae 0x40faa0
lea eax, [ebp - 0x44]
add eax, edx
mov cl, byte [ebx + eax]
xor byte [eax], cl
lea ecx, [edi + eax]
cmp ecx, 0x40
jae 0x40faa0
mov cl, byte [edx + esi + 1]
xor byte [eax + 1], cl
mov ecx, dword [ebp - 0x4c]
add ecx, eax
cmp ecx, 0x40
jae 0x40faa0
mov cl, byte [edx + esi + 2]
xor byte [eax + 2], cl
mov ecx, dword [ebp - 0x50]
add ecx, eax
cmp ecx, 0x40
jae 0x40faa0
mov cl, byte [edx + esi + 3]
add edx, 4
xor byte [eax + 3], cl
cmp edx, 0x10
jb 0x40fa58
mov ecx, dword [ebp - 0x54]
lea edx, [ebp - 0x44]
add ecx, 0x60
push 0x40
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
mov dword [ecx + 0x10], 0xc3d2e1f0
mov dword [ecx + 0x54], 0
mov dword [ecx + 0x5c], 0
mov dword [ecx + 0x58], 0
call fcn.0040f710
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041ada6
mov esp, ebp
pop ebp
ret
Function at 0x4156c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4298b6
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x443008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
lea eax, [ecx + 0xc]
mov dword [ecx], 0
mov dword [ecx + 4], 0xffffffff
mov byte [ecx + 8], 0
mov dword [ebp - 0x14], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [ebp - 4], 1
lea eax, [ecx + 0x20]
mov byte [ecx + 0x1c], 0
mov dword [ebp - 0x14], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov byte [ebp - 4], 3
mov dword [ecx + 0x30], 0
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x416bc0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x429c27
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x443008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], 0
mov eax, dword [esi + 4]
mov dword [esi], vtable.WException.1.0
mov eax, dword [eax + 4]
mov dword [eax + esi + 4], vtable.WException.0
lea eax, [esi + 8]
mov dword [ebp - 0x18], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [ebp - 4], 3
lea ecx, [esi + 0x1c]
mov eax, dword [esi + 4]
mov dword [esi], vtable.SystemError.1.0
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], ecx
mov dword [eax + esi + 4], vtable.SystemError.0
mov dword [esi + 0x18], 2
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov byte [ebp - 4], 4
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.00405930
mov byte [ebp - 4], 5
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x30], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x34], eax
lea eax, [esi + 0x38]
mov dword [ebp - 0x18], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov byte [ebp - 4], 7
lea eax, [esi + 0x48]
mov dword [ebp - 0x18], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x18

Function at 0x41a110
Capabilities:
Terminate process

Disassembly:
cmp ecx, 0x10000
ja 0x41a139
xor edx, edx
push ecx
push ecx
lea ecx, [edx + 0x6c]
call fcn.00407100
add esp, 8
xor cl, cl
call fcn.00406f80
push 0xc0000017
call dword [sym.imp.KERNEL32.dll_ExitProcess]
ret

Function at 0x41a180
Capabilities:
Terminate process

Disassembly:
push 0x52d
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
jne 0x41a1bd
push 0x52d
push ecx
xor edx, edx
lea ecx, [eax + 0x6c]
call fcn.00407100
add esp, 8
xor cl, cl
call fcn.00406f80
push 0xc0000017
call dword [sym.imp.KERNEL32.dll_ExitProcess]
ret
Function at 0x41a550
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x443008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x445728]
push edi
mov edi, ecx
test esi, esi
jne 0x41a619
cmp byte [0x445953], 0
jne 0x41a596
push esi
push esi
push 6
call fcn.0040fd50
add esp, 0xc
mov byte [0x445952], al
xchg dword [ebp - 8], eax
mov byte [0x445953], 1
cmp byte [0x445952], 0
je 0x41a5f7
push 0x439190
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
push str.AcquireSRWLockShared
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.AcquireSRWLockExclusive
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ReleaseSRWLockShared
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ReleaseSRWLockExclusive
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.InitializeSRWLock
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
xchg dword [ebp - 8], eax
mov dword [0x445728], esi
test esi, esi
jne 0x41a619
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [edi], 0
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ada6
mov esp, ebp
pop ebp
ret
lea eax, [edi + 4]
mov ecx, esi
push eax
call dword [0x42c1c8]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
mov dword [edi], 1
xor ecx, ebp
pop edi
pop esi
call fcn.0041ada6
mov esp, ebp
pop ebp
ret

Function at 0x420bbf
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042086d

Function at 0x427214
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov dword [esp + 0xc], edx
mov eax, ecx
mov esi, dword [esp + 0x24]
mov ecx, dword [ecx + 0x3c]
mov ecx, dword [eax + ecx + 0x78]
mov edx, dword [eax + ecx + 0x20]
add edx, eax
mov dword [esp + 8], edx
mov edx, dword [eax + ecx + 0x1c]
mov dword [esp + 4], edx
mov ecx, dword [eax + ecx + 0x24]

Function at 0x42722b
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov dword [esp + 0xc], edx
mov eax, ecx
mov esi, dword [esp + 0x24]
mov ecx, dword [ecx + 0x3c]
mov ecx, dword [eax + ecx + 0x78]
mov edx, dword [eax + ecx + 0x20]
add edx, eax
mov dword [esp + 8], edx
mov edx, dword [eax + ecx + 0x1c]
mov dword [esp + 4], edx
mov ecx, dword [eax + ecx + 0x24]
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x16a4120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.GVD1
lea edi, [esi - 0x1270000]
push edi
or ebp, 0xffffffff
jmp 0x16a4142
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a4149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
mov al, byte [edi]
jb 0x16a4138
mov eax, 1
add ebx, ebx
jne 0x16a415d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a416e
jne 0x16a417e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a417e
dec eax
add ebx, ebx
jne 0x16a417a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a4152
xor ecx, ecx
sub eax, 3
jb 0x16a4196
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a420a
sar eax, 1
mov ebp, eax
jmp 0x16a41a1
add ebx, ebx
jne 0x16a41a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x16a41ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x16a41d2
inc ecx
add ebx, ebx
jne 0x16a41be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a41b3
jne 0x16a41cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a41b3
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
mov al, byte [edi + ecx]
jbe 0x16a41f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a41e6
jmp 0x16a413e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a41f4
add edi, ecx
jmp 0x16a413e
pop esi
mov edi, esi
mov ecx, 0x346a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a4212
cmp byte [edi], 0x16
jne 0x16a4212
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x16a4217
lea edi, [esi + 0x12a1000]
mov eax, dword [edi]
or eax, eax
je 0x16a4286
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a57f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a58e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a4244
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a58ec]
or eax, eax
je 0x16a4280
mov dword [ebx], eax
add ebx, 4
jmp 0x16a4261
call dword [esi + 0x12a58f0]
popal
jmp 0x46b748