joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5545d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 0xc], 0
push 0
push 0x80
push 3
push 0
push 0
push bind
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x55460a
mov eax, dword [ebp - 0xc]
jmp 0x5546a6
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jbe 0x554699
mov edx, dword [ebp - 4]
add edx, 2
push edx
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 4]
mov byte [ecx], 0
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 4]
mov byte [edx + 1], 0
cmp dword [ebp - 0x10], 0
jne 0x554669
mov dword [ebp - 0x18], 0
jmp 0x554678
mov eax, dword [ebp - 0x10]
push eax
call fcn.004d6200
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.00405fd0
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov dword [ebp - 0xc], 1
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x5546b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x554750
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x554750
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x554746
cmp dword [ebp - 0xc], 0
jne 0x554720
mov dword [ebp - 0x10], 0
jmp 0x55472f
mov edx, dword [ebp - 0xc]
push edx
call fcn.004d6200
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.00405fd0
mov dword [ebp - 8], 1
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x554760
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push eax
call fcn.004d6200
add esp, 4
add eax, 1
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 3
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
add eax, 1
pop ebp
ret
Function at 0x5569b0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
push 0xf0000008
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x5569f0
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0
push 0
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x556a20
xor eax, eax
jmp 0x556a83
mov dword [ebp - 0xc], 0
jmp 0x556a32
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0x10]
jge 0x556a6c
push 0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x556a6a
jmp 0x556a6c
jmp 0x556a29
cmp dword [ebp - 4], 0
jne 0x556a80
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor eax, eax
jmp 0x556a83
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x55c670
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5749c8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d26e8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x5d8324]
cmp eax, 0xffffffff
jne 0x55c6ab
xor ebx, ebx
jmp 0x55c6b4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], 0
test ebx, ebx
je 0x55c6f5
cmp dword [ebx + 0x30], 0
jne 0x55c73c
cmp dword [ebx + 0xc], 0
jne 0x55c742
push 0x55c1c0
push 0x5df7ac
call fcn.0055c410
mov eax, dword [0x5d8324]
add esp, 8
cmp eax, 0xffffffff
je 0x55c6f5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x30], 0xffffffff
test ebx, ebx
je 0x55c728
lea ecx, [ebx + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x55c728
mov edx, dword [ebx]
push eax
mov eax, dword [edx]
mov ecx, ebx
call eax
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0xc], 0
je 0x55c78a
mov edi, dword [ebx + 0xc]
mov eax, dword [edi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x55c774
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov esi, dword [edi]
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebx + 0xc], 0
jne 0x55c742
cmp dword [ebx + 0x30], 0
je 0x55c6ca
lea esi, [ebx + 0x14]
mov ecx, dword [esi + 0x18]
mov esi, dword [esi]
mov edi, dword [ecx]
test esi, esi
jne 0x55c833
call fcn.004cde77
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x55c7b7
call fcn.004cde77
cmp dword [edi + 0x10], 0
je 0x55c813
test esi, esi
jne 0x55c83a
call fcn.004cde77
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x55c7d2
call fcn.004cde77
cmp dword [edi + 0x18], 0
je 0x55c813
test esi, esi
jne 0x55c83e
call fcn.004cde77
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x55c7ed
call fcn.004cde77
mov ebp, dword [edi + 0x10]
test esi, esi
jne 0x55c842
call fcn.004cde77
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x55c805
call fcn.004cde77
mov edx, dword [ebp]
mov eax, dword [edi + 0x18]
mov edx, dword [edx + 4]
push eax
mov ecx, ebp
call edx
push edi
push esi
lea eax, [esp + 0x24]
lea esi, [ebx + 0x14]
push eax
mov ecx, esi
call fcn.0042a2d0
cmp dword [ebx + 0x30], 0
jne 0x55c797
jmp 0x55c6c4
mov eax, dword [esi]
jmp 0x55c7ad
mov eax, dword [esi]
jmp 0x55c7c8
mov eax, dword [esi]
jmp 0x55c7e3
mov eax, dword [esi]
jmp 0x55c7fb
Function at 0x55db1d
Capabilities:
Parse url

Disassembly:
push ebp
lea ebp, [esp - 0x7c8]
sub esp, 0x848
mov eax, dword [0x5d26e8]
xor eax, ebp
mov dword [ebp + 0x7c4], eax
mov eax, dword [ebp + 0x7d8]
mov ecx, dword [ebp + 0x7d0]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x7dc]
push ebx
mov ebx, dword [ebp + 0x7d4]
mov dword [ebp - 0x80], eax
xor eax, eax
push esi
push edi
mov dword [ebp - 0x70], ecx
cmp ebx, eax
je 0x55dc07
cmp ecx, eax
je 0x55dc07
mov esi, dword [ebp + 0x7e0]
and esi, 0x2e000000
test dword [ebp + 0x7e0], 0x90000000
mov dword [ebp - 0x6c], 0x824
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], eax
je 0x55dbb7
cmp dword [ebx + 0x30], eax
je 0x55dbb7
test dword [ebp + 0x7e0], 0x2000000
je 0x55dbb0
mov dword [ebp - 0x78], 1
jmp 0x55dbb7
mov dword [ebp - 0x74], getpeername
mov edi, dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
push esi
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x60]
push eax
push ecx
call edi
test eax, eax
jne 0x55dc23
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x55dc07
push dword [ebp - 0x6c]
call fcn.004947e1
pop ecx
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x55dc07
push esi
lea ecx, [ebp - 0x6c]
push ecx
push eax
push dword [ebp - 0x70]
mov dword [ebp - 0x68], 1
call edi
test eax, eax
jne 0x55dc28
push dword [ebp - 0x7c]
call fcn.0049480c
pop ecx
xor eax, eax
mov ecx, dword [ebp + 0x7c4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cdc91
add ebp, 0x7c8
leave
ret 0x14
lea edi, [ebp - 0x60]
jmp 0x55dc2b
mov edi, dword [ebp - 0x7c]
push ebx
push dword [ebp - 0x74]
xor esi, esi
push esi
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x78], esi
je 0x55dc69
push 0x2100000
push esi
push esi
push dword [ebx + 0x2c]
call dword [sym.imp.SHLWAPI.dll_UrlUnescapeA]
test eax, eax
jge 0x55dc5d
cmp dword [ebp - 0x68], esi
je 0x55dc07
push edi
jmp 0x55dc01
push dword [ebx + 0x2c]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebx + 0x30], eax
cmp dword [ebp - 0x68], esi
je 0x55dc75
push edi
call fcn.0049480c
pop ecx
mov eax, dword [ebp - 0x70]
cmp eax, esi
jne 0x55dc87
mov ecx, dword [ebp - 0x64]
mov dword [ecx], 0x1000
jmp 0x55dc09
mov cx, word [ebx + 0x18]
mov edx, dword [ebp - 0x80]
mov word [edx], cx
mov ebx, dword [ebx + 0xc]
dec ebx
mov ecx, dword [ebp - 0x64]
je 0x55dcee
dec ebx
je 0x55dce3
dec ebx
je 0x55dcd8
dec ebx
je 0x55dccd
dec ebx
je 0x55dcc2
dec ebx
je 0x55dcb7
dec ebx
jne 0x55dc7f
mov dword [ecx], 0x1002
jmp 0x55dc09
mov dword [ecx], 0x1006
jmp 0x55dc09
mov dword [ecx], 0x1001
jmp 0x55dc09
mov dword [ecx], 0x100b
jmp 0x55dc09
mov dword [ecx], 3
jmp 0x55dc09
mov dword [ecx], 2
jmp 0x55dc09
mov dword [ecx], 1
jmp 0x55dc09
Function at 0x55e370
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x55e399
call fcn.0049ef0d
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
jne 0x55e3bc
push eax
push dword [esi + 4]
call fcn.0055e2fb
push esi
push eax
mov ecx, 0x5df85c
call fcn.0055df9b
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x55e679
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x18], 1
push edi
je 0x55e72b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x55e72b
mov ecx, dword [esi + 0x30]
mov edi, dword [ebp + 0xc]
test ecx, ecx
jne 0x55e6c3
lea ecx, [ebp + 0xc]
push ecx
push edi
push dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x55e6bc
push 0
push dword [esi + 0x1c]
call fcn.0055e2fb
cmp dword [ebp + 0xc], edi
je 0x55e701
jmp 0x55e6b2
mov eax, dword [esi + 0x2c]
lea edx, [eax + edi]
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetWriteFile]
cmp edx, dword [esi + 0x28]
jb 0x55e6e8
lea edx, [ebp + 0xc]
push edx
push eax
push ecx
push dword [esi + 0x14]
call ebx
test eax, eax
je 0x55e6b2
and dword [esi + 0x2c], 0
mov eax, dword [esi + 0x28]
cmp edi, eax
jb 0x55e707
lea eax, [ebp + 0xc]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 0x14]
call ebx
test eax, eax
je 0x55e6b2
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov ecx, dword [esi + 0x2c]
lea edx, [ecx + edi]
cmp edx, eax
ja 0x55e700
push edi
push dword [ebp + 8]
sub eax, ecx
push eax
mov eax, dword [esi + 0x30]
add eax, ecx
push eax
call fcn.00430fc0
add esp, 0x10
add dword [esi + 0x2c], edi
jmp 0x55e700
push 6
jmp 0x55e6b4

Function at 0x55ec4d
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x574c94
call fcn.004d628b
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x20]
mov edi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call fcn.0055ebf9
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00404e40
mov byte [ebp - 4], 1
push dword [esi + 8]
mov edi, dword [edi + 8]
push dword [ebp + 0x10]
push 3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 4], eax
test eax, eax
jne 0x55ecb4
push eax
push dword [esi + 8]
call fcn.0055e2fb
push dword [esi + 0xc]
mov ecx, 0x5df85c
push eax
call fcn.0055df9b
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004d6363
ret 0x1c
Function at 0x55f4d7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x55f508
call fcn.004d66c1
mov dword [eax], esi
call fcn.004d66ae
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004cde51
add esp, 0x14
push 0x16
pop eax
jmp 0x55f55d
test dword [ebp + 0xc], 0xfffffff9
jne 0x55f4e4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x55f535
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004d66d4
pop ecx
call fcn.004d66ae
mov eax, dword [eax]
jmp 0x55f55d
test al, 0x10
jne 0x55f55b
test al, 1
je 0x55f55b
test byte [ebp + 0xc], 2
je 0x55f55b
call fcn.004d66c1
mov dword [eax], 5
call fcn.004d66ae
mov dword [eax], 0xd
jmp 0x55f52c
xor eax, eax
pop esi
pop ebp
ret

Function at 0x55ffc9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004d8e53
and dword [ebp - 4], 0
cmp dword [0x5df8a4], 0
mov ebx, eax
jne 0x56007a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x56012b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push edi
call esi
test eax, eax
je 0x56012b
push eax
call fcn.004d8de1
mov dword [esp], 0x59362c
push edi
mov dword [0x5df8a4], eax
call esi
push eax
call fcn.004d8de1
mov dword [esp], 0x593618
push edi
mov dword [0x5df8a8], eax
call esi
push eax
call fcn.004d8de1
mov dword [esp], str.GetUserObjectInformationW
push edi
mov dword [0x5df8ac], eax
call esi
push eax
call fcn.004d8de1
pop ecx
mov dword [0x5df8b4], eax
test eax, eax
je 0x56007a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004d8de1
pop ecx
mov dword [0x5df8b0], eax
mov eax, dword [0x5df8b0]
cmp eax, ebx
je 0x5600d2
cmp dword [0x5df8b4], ebx
je 0x5600d2
push eax
call fcn.004d8e5c
push dword [0x5df8b4]
mov esi, eax
call fcn.004d8e5c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x5600d2
test edi, edi
je 0x5600d2
call esi
test eax, eax
je 0x5600c9
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5600c9
test byte [ebp - 0xc], 1
jne 0x5600d2
or dword [ebp + 0x10], 0x200000
jmp 0x56010b
mov eax, dword [0x5df8a8]
cmp eax, ebx
je 0x56010b
push eax
call fcn.004d8e5c
pop ecx
test eax, eax
je 0x56010b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x56010b
mov eax, dword [0x5df8ac]
cmp eax, ebx
je 0x56010b
push eax
call fcn.004d8e5c
pop ecx
test eax, eax
je 0x56010b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5df8a4]
call fcn.004d8e5c
pop ecx
test eax, eax
je 0x56012b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x56012d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401005
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
push edi
push edi
inc esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push 4
lea eax, [esp + 0x28]
mov dword [esp + 0x28], esi
push eax
push 0x22
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtSetInformationProcess]
mov ecx, dword [ebp + 0x10]
lea edx, [ecx + 2]
nop
nop
nop
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x401040
mov eax, dword [ebp + 8]
sub ecx, edx
sar ecx, 1
mov dword [0x40509c], eax
lea esi, [ecx + 1]
lea eax, [esi + esi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x401195
push dword [ebp + 0x10]
mov edx, esi
mov ecx, ebx
call fcn.00401371
test eax, eax
js 0x40118e
lea eax, [esp + 0x1c]
mov ecx, ebx
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x24]
call fcn.004013f1
test eax, eax
je 0x40118e
test byte [esp + 0x18], 1
jne 0x40323f
test byte [esp + 0x18], 2
jne 0x402934
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.00401f73
mov edi, eax
push edi
call fcn.00402119
test eax, eax
je 0x40325a
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x20]
and dword [esp + 0x20], 0
and dword [esp + 0x14], 0
push eax
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x28]
push eax
push dword [esp + 0x38]
mov dword [esp + 0x30], eax
call fcn.00401e35
mov esi, dword [esp + 0x20]
test eax, eax
je 0x401166
test esi, esi
jne 0x403251
mov ecx, dword [esp + 0x14]
call fcn.00401cbd
call fcn.00401d45
push dword [ebp + 0x14]
mov edx, eax
mov dword [esp + 0x2c], eax
push dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x38]
call fcn.00401d12
mov eax, dword [esp + 0x28]
test eax, eax
je 0x40115c
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, 0xffffffff
je 0x40118c
cmp dword [esp + 0x18], 0
je 0x401185
push dword [esp + 0x18]
push 0
call dword [sym.imp.KERNEL32.dll_DeactivateActCtx]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseActCtx]
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [esp + 0x10]
call fcn.00402510
jmp 0x40118e
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
call fcn.00403bef
jmp 0x40118e
mov dword [esp + 0x1c], esi
jmp 0x401128
mov ecx, dword [0x40509c]
mov edx, 0x403
push 0x403278
push dword [esp + 0x14]
call fcn.004038ed
jmp 0x40116d
Function at 0x401ad1
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x401b30
call fcn.0040198c
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x401b26
cmp eax, 0xffffffff
je 0x401b26
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x401b1f
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x401b1f
cmp edx, 0x10000000
jae 0x401b1f
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.0040184f
ret 4

Function at 0x401cbd
Capabilities:
Access pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword fs:[0x30]
push ecx
call dword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov edx, eax
cmp word [edx + 0x14], 0
je 0x401ce6
mov eax, dword [edx + 0x4c]
test eax, eax
jne 0x4031f7
lea eax, [ebp - 4]
push eax
push 0xa
push 1
push dword [esi + 8]
call dword [sym.imp.imagehlp.dll_ImageDirectoryEntryToData]
test eax, eax
je 0x401d08
movzx eax, word [eax + 0x34]
test ax, ax
jne 0x403233
pop esi
mov esp, ebp
pop ebp
ret
movzx ecx, al
mov dword [esi + 0xa4], ecx
mov ecx, 0x3fff
movzx eax, byte [edx + 0x4d]
mov dword [esi + 0xa8], eax
mov ax, word [edx + 0x4e]
and ax, cx
mov word [esi + 0xac], ax
mov eax, dword [edx + 0x4c]
xor eax, 0xbfffffff
shr eax, 0x1e
mov dword [esi + 0xb0], eax
jmp 0x401ce6
mov word [esi + 0xae], ax
jmp 0x401d08
Function at 0x401f73
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x4050d8]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
xor edi, edi
push esi
mov dword [ebx], edi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x40222d
push esi
mov edx, 0x104
lea ecx, [ebp - 0x214]
call fcn.00401371
test eax, eax
js 0x40225c
lea eax, [ebp - 0x214]
mov dword [ebp - 0x230], edi
mov edi, eax
mov dword [ebp - 0x234], 0x20
or esi, 0xffffffff
mov dword [ebp - 0x22c], eax
xor edx, edx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, dx
jne 0x401fe1
sub edi, ecx
push ecx
lea ecx, [ebp - 0x214]
sar edi, 1
call fcn.00402081
test eax, eax
js 0x402016
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403450
add edi, edi
cmp edi, 0x208
jae 0x403464
xor eax, eax
mov word [ebp + edi - 0x214], ax
cmp esi, 0xffffffff
jne 0x40205f
lea eax, [ebp - 0x234]
mov dword [ebp - 0x230], 8
push eax
mov dword [ebp - 0x220], 0x7b
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402263
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040121d
mov esp, ebp
pop ebp
ret 4
push 0x8001
call dword [sym.imp.KERNEL32.dll_SetSearchPathMode]
lea eax, [ebp - 0x238]
push eax
lea eax, [ebp - 0x214]
push eax
push 0x104
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x401fbb
xor eax, eax
jmp 0x402069
mov edi, dword [sym.imp.KERNEL32.dll_CreateActCtxW]
lea eax, [ebp - 0x234]
push eax
mov dword [ebp - 0x220], 0x7c
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x402067
lea eax, [ebp - 0x234]
mov dword [ebp - 0x220], 2
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x40205f
push 7
pop edx
xor eax, eax
lea edi, [ebp - 0x254]
mov ecx, edx
mov dword [ebp - 0x258], eax
rep stosd dword es:[edi], eax
push eax
mov dword [ebp - 0x254], 0x88
mov dword [ebp - 0x244], edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x258]
push eax
mov dword [ebp - 0x258], 0x20
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
cmp eax, esi
je 0x402067
push ebx
push eax
jmp 0x402061
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov esi, eax
jmp 0x402016
call fcn.004043ae
int3
Function at 0x40399b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x4050d8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x403a49
xor eax, eax
push 0x3e
mov word [ebp - 0x48], ax
lea eax, [ebp - 0x46]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x144]
push esi
push eax
push 0x40
lea eax, [ebp - 0x48]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403a42
mov eax, 0x5a4d
cmp ax, word [ebp - 0x48]
jne 0x403a42
push esi
push esi
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x403a42
push esi
lea eax, [ebp - 0x144]
push eax
push 0xf8
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403a42
movzx esi, word [ebp - 0x13c]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0040121d
mov esp, ebp
pop ebp
ret