joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453de0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2386
mov eax, dword fs:[0]
push eax
sub esp, 0x44c
mov eax, dword [0x4e96d0]
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 dword [ebp - 0x420], ecx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x414]
mov dword [ebp - 0x424], ebx
mov esi, 0x100
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x41c]
mov dword [ebp - 4], 0
push eax
push 0x400
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
neg eax
sbb eax, eax
neg eax
je 0x453f24
mov edi, dword [ebp - 0x41c]
cmp edi, 0x400
jne 0x453eb5
jmp 0x453e70
mov eax, esi
lea ecx, [ebp - 0x418]
shr eax, 1
add esi, eax
push esi
call fcn.0045da90
lea eax, [ebp - 0x41c]
push eax
lea ebx, [esi*4]
push ebx
push dword [ebp - 0x418]
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
neg eax
sbb eax, eax
neg eax
je 0x453f24
mov edi, dword [ebp - 0x41c]
cmp edi, ebx
je 0x453e70
mov ebx, dword [ebp - 0x424]
shr edi, 2
xor esi, esi
test edi, edi
je 0x453f1d
mov edi, edi
mov eax, dword [ebp - 0x418]
cmp dword [eax + esi*4], 0
je 0x453f18
lea ecx, [ebp - 0x454]
call fcn.004539a0
push ecx
mov ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x454]
mov byte [ebp - 4], 1
push eax
mov eax, dword [ebp - 0x418]
push dword [eax + esi*4]
call fcn.00453bd0
test eax, eax
je 0x453f09
lea eax, [ebp - 0x454]
mov ecx, ebx
push eax
call fcn.0045df40
lea ecx, [ebp - 0x454]
mov byte [ebp - 4], 0
call fcn.00453f60
inc esi
cmp esi, edi
jb 0x453ec0
mov esi, 1
jmp 0x453f26
xor esi, esi
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x453f3f
lea ecx, [ebp - 0x418]
call fcn.00419f10
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 - 0x10]
xor ecx, ebp
call fcn.004712e4
mov esp, ebp
pop ebp
ret 8
Function at 0x4642d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b3b98
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4e96d0]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x4e96d0]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x464424
cmp byte [ebx + 0x45], 0
je 0x464424
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x464330
xor al, al
jmp 0x464426
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x2c], ecx
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x464370
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
cmovae edi, dword [esp + 0x18]
lea esi, [esp + 0x18]
cmovae esi, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4643b1
dec eax
je 0x4643b5
sub eax, 2
je 0x46440b
xor bl, bl
jmp 0x46440d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x4643ec
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0047a5c2
add esp, 0x10
cmp esi, eax
jne 0x4643ad
cmp byte [ebx + 0x45], 0
je 0x46440b
test esi, esi
jne 0x464370
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.004377f0
jmp 0x464370
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x464420
push dword [esp + 0x18]
call fcn.004712df
add esp, 4
mov al, bl
jmp 0x464426
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004712e4
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x464b83
test al, 0x10
jne 0x464b83
mov al, 1
ret
xor al, al
ret
Function at 0x469970
Capabilities:
Create process memory minidump

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x4f3b30
mov esi, edx
mov edi, ecx
call fcn.0047068c
add esp, 4
test eax, eax
je 0x469993
push eax
call fcn.0046fd73
add esp, 4
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0x50
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
push 0x4f3b30
mov esi, eax
call fcn.004706b5
add esp, 4
test eax, eax
je 0x4699c4
push eax
call fcn.0046fd73
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x4699d0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
push esi
push edi
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
lea eax, [esp + 0x14]
xorps xmm0, xmm0
push eax
push 0
push dword [ecx]
movdqa xmmword [esp + 0x20], xmm0
mov edi, edx
movdqa xmmword [esp + 0x30], xmm0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 6
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
mov eax, dword [esp + 8]
mov esi, eax
test eax, eax
je 0x469a3d
lea ebx, [ebx]
cmp dword [esi + 4], 2
je 0x469a4a
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x469a30
push eax
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esp + 0xc], 0x30
mov ecx, 1
mov eax, dword [edi]
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, 0x30
or ecx, eax
jge 0x469a6f
push 0x30
mov ecx, edi
call fcn.0041a8d0
lea eax, [esp + 0xc]
push eax
push dword [edi]
push 0
push dword [esi + 0x10]
push dword [esi + 0x18]
call dword [sym.imp.WS2_32.dll_WSAAddressToStringW]
mov eax, dword [edi]
test eax, eax
jne 0x469a8e
xor ecx, ecx
jmp 0x469aa0
push dword [eax - 8]
push eax
call fcn.004721a5
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x469ac3
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x469ac3
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi]
mov word [eax + ecx*2], dx
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.0040abe0
int3

Function at 0x46a3d0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebx
push esi
mov esi, ecx
mov bh, dl
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne bl
test bl, bl
je 0x46a3ff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x46a3ff
and eax, 0xfffffffe
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bh, bh
je 0x46a424
test bl, bl
je 0x46a41f
push 4
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x46a41f
pop esi
mov eax, 1
pop ebx
ret
pop esi
xor eax, eax
pop ebx
ret
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
pop esi
sbb eax, eax
neg eax
pop ebx
ret
Function at 0x46bd40
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b47e2
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x4e96d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xb0], edi
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
cmp dword [esi + 0x14], 0x10
mov ebx, dword [esi + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0xac], 1
mov dword [ebp - 0xa8], 0x10
jb 0x46bdbb
mov esi, dword [esi]
push 0xf0000020
push 1
push 0
push 0
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x46bead
lea eax, [ebp - 0xa0]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0xa4]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x46bea4
push 0
push ebx
push esi
push dword [ebp - 0xa0]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x46be9b
push 0
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x9c]
push eax
push 2
push dword [ebp - 0xa0]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x46be8d
xor esi, esi
jmp 0x46be40
movzx eax, byte [ebp + esi - 0x9c]
push eax
lea eax, [ebp - 0x1c]
push str._02x
push eax
call fcn.00479ac7
add esp, 0xc
cmp byte [ebp - 0x1c], 0
jne 0x46be64
xor ecx, ecx
jmp 0x46be79
lea ecx, [ebp - 0x1c]
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x46be70
sub ecx, edx
push ecx
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00431570
inc esi
cmp esi, 0x10
jl 0x46be40
jmp 0x46bebb
push str.Error_getting_hash_param
mov ecx, edi
call fcn.0046a8e0
jmp 0x46bebb
push 0x12
push str.Error_hashing_data
jmp 0x46beb4
push 0x13
push str.Error_creating_hash
jmp 0x46beb4
push 0x17
push str.Error_acquiring_context
mov ecx, edi
call fcn.0041a9b0
push dword [ebp - 0xa0]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 0xa4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
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.004712e4
mov esp, ebp
pop ebp
ret
Function at 0x46d3e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b4a24
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4e96d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
call fcn.0046e4d0
lea edi, [ebx + 0xc]
mov dword [ebx], vtable.logog::Node.0
lea ecx, [edi + 0x1c]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], edi
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
call fcn.0046e080
mov dword [edi + 0x1c], eax
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0046e7d0
mov dword [edi], vtable.logog::LockableNodesType.0
lea edi, [ebx + 0x30]
mov byte [ebp - 4], 2
lea ecx, [edi + 0x1c]
mov dword [ebp - 0x10], edi
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
call fcn.0046e080
mov dword [edi + 0x1c], eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.0046e7d0
mov dword [edi], vtable.logog::LockableNodesType.0
mov byte [ebp - 4], 4
mov dword [ebp - 0x10], ebx
call fcn.0046d750
lea ecx, [eax + 0x1c]
movzx eax, byte [0x4ef2fc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
call fcn.0046c380
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47d701
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
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.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x49fd3a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4e96d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0047f89c
mov dword [ebp - 0x14], eax
cmp dword [0x4f279c], esi
jne 0x49fe2d
push 0x800
push esi
push 0x4cdc14
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x49fdba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x49ff0d
push esi
push esi
push 0x4cdc14
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x49ff0d
push 0x4cdc2c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x49ff0d
push eax
call ebx
push 0x4cdc38
push edi
mov dword [0x4f279c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4cdc48
push edi
mov dword [0x4f27a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x4cdc5c
push edi
mov dword [0x4f27a4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4f27ac], eax
test eax, eax
je 0x49fe2a
push 0x4cdc78
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4f27a8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x49fe52
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x49fe45
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x49fe67
push 4
pop eax
jmp 0x49ff0f
cmp dword [ebp - 0x14], esi
je 0x49fe67
push dword [0x4f279c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x49fe4c
mov eax, dword [0x4f27a8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x49fec5
cmp dword [0x4f27ac], edi
je 0x49fec5
push eax
call ebx
push dword [0x4f27ac]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x49fec5
test eax, eax
je 0x49fec5
call ecx
test eax, eax
je 0x49feba
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x49feba
test byte [ebp - 8], 1
jne 0x49fec5
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x49fef5
mov eax, dword [0x4f27a0]
cmp eax, edi
je 0x49fef2
push eax
call ebx
test eax, eax
je 0x49fef2
call eax
mov esi, eax
test esi, esi
je 0x49fef2
mov eax, dword [0x4f27a4]
cmp eax, edi
je 0x49fef2
push eax
call ebx
test eax, eax
je 0x49fef2
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4f279c]
call ebx
test eax, eax
je 0x49ff0d
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x49ff0f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004712e4
mov esp, ebp
pop ebp
ret
Function at 0x4025fe
Capabilities:
Encode data using xor

Disassembly:
xchg edx, ebp
and edx, esi
call 0x4025fe
ja 0x4025e7
sub edi, 0x509e29a2
add esi, edx
cmp eax, 0x5a3d
jo 0x4025fe
or al, dh
mov ebx, 0xb5e16f00
sub edx, 0x82d525a7
cmp dl, ch
and bh, 0x91
xchg bh, dh
adc ah, dl
lea ecx, [edx]
dec esi
cmp eax, 0xd993d30b
sub edi, ecx
cmp edi, 0x2bee
jae 0x40261c
imul edx, esi
or ah, 0xed
sub dl, 0x49
inc al
mov ebx, 0
inc eax
xor al, ch
imul edx, edi, 0xae7282ba
add ebx, 0x593
adc ah, ah
sub ebx, 0x592
dec esi
neg esi
cmp edi, 0xd4d0a6bd
cmp ebx, 0xf5
jb 0x40262a
pop ecx
ja 0x40265a
xor esi, 0x3cb2c45d
cmp ebp, ecx
movd mm3, ecx
imul edx, edi, 0xf18d3c97
mov bl, 0x57
mov edx, edx
and edx, edi
test ebx, ebx
adc al, 0x64
push 0
pop ebx
not esi
add esi, ecx
or ebx, 0x5a30
mov esi, edx
sub edx, 0x5675a895
add edi, ebx
jno 0x402692
mov eax, 0xbef51b1b
add edi, 0x1ac4
movd ebp, mm3
bswap eax
mov bh, cl
cmp edx, 0x2aae
je 0x4026ad
test ch, 0xbe
movsx esi, bx
mov edi, 0xa98f4
neg al
xor edi, 0x326d
xor edi, 0xaa91d
movsx esi, bl
add ebp, edi
mov ebx, 0xbbe1838a
add ebp, 0x6b12
jmp 0x4026d4
push ebx
push ecx
lea ebx, [0x20e941fb]
cmp bl, bl
cmp edi, edi
mov ebx, esi
cmp ecx, ebp
push ebp
imul edx, ebp, 0x5ee7fb78
invalid
Function at 0x4018c1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
sub esp, 0x2c
cmp dword [0x40be68], eax
jne 0x401915
push eax
push 0x2c
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [0x4140d4]
test eax, eax
jl 0x401915
xor edx, edx
mov eax, 0x40be68
div dword [ebp - 0x14]
imul eax, dword [ebp - 0x14]
jmp 0x401909
cmp word [eax], 0x5a4d
jne 0x401906
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
je 0x401910
sub eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
ja 0x4018f3
jmp 0x401915
mov dword [0x40be68], eax
mov eax, dword [0x40be68]
leave
ret

Function at 0x404839
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
mov edx, dword fs:[0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
test eax, eax
jne 0x404876
xor eax, eax
leave
ret
add eax, 0x2c
push 1
push eax
call fcn.00406640
cmp dword [ebp + 8], eax
mov eax, dword [ebp - 4]
pop ecx
pop ecx
je 0x40487e
mov eax, dword [eax]
mov dword [ebp - 4], eax
cmp dword [eax + 0x18], 0
jne 0x40485c
jmp 0x404858
mov eax, dword [eax + 0x18]
leave
ret

Function at 0x404883
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x34
test ecx, ecx
push ebx
push esi
push edi
je 0x404946
cmp word [ecx], 0x5a4d
jne 0x404946
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x404946
mov esi, dword [eax + 0x78]
test esi, esi
je 0x404946
mov eax, dword [eax + 0x7c]
and dword [ebp - 4], 0
add esi, ecx
mov edi, dword [esi + 0x20]
mov ebx, dword [esi + 0x1c]
add eax, esi
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x24]
add eax, ecx
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x18]
add edi, ecx
add ebx, ecx
test eax, eax
mov dword [ebp - 0x10], eax
jbe 0x404946
mov eax, dword [edi]
add eax, ecx
mov edx, dword [eax]
cmp edx, dword [ebp + 0xc]
jne 0x404938
push 0
push 0
push eax
call fcn.00406a9a
add esp, 0xc
cmp eax, dword [ebp + 0x10]
jne 0x404935
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
movzx eax, word [eax + ecx*2]
mov eax, dword [ebx + eax*4]
add eax, dword [ebp + 8]
cmp eax, esi
mov dword [ebp - 0x14], eax
jb 0x404948
cmp eax, dword [ebp - 0xc]
ja 0x404948
push 0x2e
push 0x1c
push eax
call fcn.00406682
add esp, 0xc
test eax, eax
mov dword [ebp - 4], eax
ja 0x40494d
mov ecx, dword [ebp + 8]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add edi, 4
cmp eax, dword [ebp - 0x10]
jb 0x4048e8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0x14]
inc esi
push esi
lea eax, [ebp - 0x34]
push edi
push eax
call fcn.00405d5a
push 4
lea eax, [ebp + esi - 0x34]
push 0x409474
push eax
call fcn.00405d5a
add esi, edi
xor edi, edi
push edi
push edi
push esi
call fcn.00406a9a
add esp, 0x24
push eax
push dword [esi]
lea eax, [ebp - 0x34]
push 1
push edi
push eax
call fcn.00406a9a
push eax
call fcn.00404839
add esp, 0x10
push eax
call fcn.00404883
add esp, 0xc
jmp 0x404948
Function at 0x405ac2
Capabilities:
Inspect section memory permissions

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
test ecx, 0x4000000
je 0x405ad5
mov eax, 0x200
push esi
mov esi, ecx
and esi, 0x20000000
push edi
mov edx, 0x40000000
mov edi, 0x80000000
je 0x405af3
test edx, ecx
je 0x405af3
test edi, ecx
jne 0x405b21
test esi, esi
je 0x405b00
test edx, ecx
je 0x405b00
or eax, 0x20
jmp 0x405b24
mov esi, ecx
and esi, edx
je 0x405b0f
test edi, ecx
je 0x405b18
or eax, 4
jmp 0x405b24
test edi, ecx
je 0x405b18
or eax, 8
jmp 0x405b24
test esi, esi
je 0x405b21
or eax, 2
jmp 0x405b24
or eax, 0x40
pop edi
pop esi
ret
Function at 0x401343
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ecx
mov eax, dword [0x49b8f8]
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, dword [esp + 0x18]
xor esi, esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
lea eax, [esp + 0x18]
push eax
push esi
push esi
push ecx
mov dword [edi], esi
call dword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
je 0x4013e1
push esi
push ebp
push esi
push esi
push 1
push esi
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x4013d7
push ebx
push dword [ebp]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
mov dword [edi], ebx
test ebx, ebx
je 0x4013d6
push dword [esp + 0x18]
push dword [esp + 0x14]
push ebx
call fcn.00462610
add esp, 0xc
lea eax, [esp + 0x18]
push dword [ebp]
push eax
push ebx
push esi
push 1
push esi
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov esi, eax
test esi, esi
jne 0x4013d6
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [edi], eax
pop ebx
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret

Function at 0x4013e8
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x18]
xor esi, esi
mov dword [eax], ebp
lea eax, [esp + 0x18]
push eax
push esi
push esi
push ecx
mov dword [esp + 0x1c], edx
mov dword [edi], esi
call dword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
je 0x401462
push ebx
push ebp
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
mov dword [edi], ebx
test ebx, ebx
je 0x401457
push ebp
push dword [esp + 0x14]
push ebx
call fcn.00462610
add esp, 0xc
push dword [esp + 0x20]
push ebx
push esi
push 1
push esi
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov esi, eax
test esi, esi
jne 0x401457
push dword [edi]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [edi], eax
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret
Function at 0x401622
Capabilities:
Get domain controller name

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x40020010
push esi
push esi
push ecx
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
test eax, eax
jne 0x40169b
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
add ecx, 4
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x40164e
sub ecx, edx
sar ecx, 1
push edi
lea edi, [ecx*2 + 2]
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
test ecx, ecx
je 0x40168f
mov eax, dword [ebp - 4]
xor esi, esi
push edi
inc esi
mov eax, dword [eax]
add eax, 4
push eax
push ecx
call fcn.00462610
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
pop edi
jmp 0x4016a8
push eax
push str.ERROR_kull_m_net_getDC___DsGetDcName:__u_n
call fcn.004016fd
pop ecx
pop ecx
mov eax, esi
pop esi
leave
ret