joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000dbf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
imul esi, dword [ebp + 8], 0x2c
mov eax, 5
push edi
mov dword [ebp + 8], eax
add esi, dword [0x10a5f530]
test byte [esi + 0x14], 1
mov edi, dword [esi]
je 0x1000dc1a
sub edi, eax
mov eax, 7
mov dword [ebp + 8], eax
lea ecx, [ebp - 4]
push ecx
push 0x40
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1000dc37
pop edi
mov eax, 0xa
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x1000dc5c
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x1000dc7d
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x1000dc7d
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x1000dc77
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x1000dc7d
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, byte [esi + 0x14]
and bl, 1
mov cl, bl
and al, 0xfd
add cl, cl
shl bl, 2
or cl, al
and cl, 0xfb
or cl, bl
xor eax, eax
pop ebx
pop edi
mov byte [esi + 0x14], cl
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000dd20
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1013b994]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x1000de07
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1000de00
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop dword [eax]
cmp dword [ebp - 0x20], 0x10
jb 0x1000dde6
call ebx
cmp dword [ebp - 0x14], eax
jne 0x1000dde6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1000dde6
mov ecx, dword [esi]
test ecx, ecx
jne 0x1000ddaf
push 0x200
push ecx
mov dword [esi + 4], 0x80
push dword [0x10a5e814]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
je 0x1000ddff
jmp 0x1000ddd8
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x1000ddd8
shl eax, 3
push eax
push ecx
push 0
push dword [0x10a5e814]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x1000ddff
mov ecx, dword [esi + 4]
add ecx, ecx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov edx, dword [esi + 8]
mov ecx, dword [esi]
mov eax, dword [ebp - 0x18]
mov dword [ecx + edx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x1000dd70
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100101d0
mov esp, ebp
pop ebp
ret
Function at 0x1000dec0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.1000dd20
add esp, 4
cmp dword [esi], 0
je 0x1000df2c
push edi
xor edi, edi
cmp dword [esi + 8], edi
jbe 0x1000df2b
push ebx
mov eax, dword [esi]
push dword [eax + edi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1000df24
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1000e140
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [esi + 8]
jb 0x1000def2
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x1000e280
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi], 0
je 0x1000e2d0
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x1000e2bf
push ebx
mov eax, dword [edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x1000e2b8
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x1000e295
pop ebx
push dword [edi]
push 0
push dword [0x10a5e814]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
pop ebp
ret
Function at 0x1001f700
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001f57f

Function at 0x10024054
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10023d14
Function at 0x402db4
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x410004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, 0x104
push ebx
push edi
mov dword [ebp - 0x58], eax
call fcn.0040cb8e
mov esi, eax
test esi, esi
jl 0x402ebc
push dword [edi]
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x402e8b
cmp eax, ebx
jae 0x402e8b
push 0
mov ebx, 0x40dee2
push ebx
push edi
call fcn.0040d19c
mov esi, eax
test esi, esi
jl 0x402ebc
push 0x27
lea eax, [ebp - 0x54]
push eax
mov eax, dword [ebp - 0x58]
add eax, 0x8c
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
mov esi, eax
test esi, esi
jl 0x402ebc
push 0
lea eax, [ebp - 0x54]
push eax
push edi
call fcn.0040d19c
mov esi, eax
test esi, esi
jl 0x402ebc
push 0
push ebx
push edi
call fcn.0040d19c
mov esi, eax
test esi, esi
jl 0x402ebc
push 0
push dword [edi]
call fcn.0040d588
mov esi, eax
test esi, esi
jl 0x402ebc
mov ebx, dword [ebp - 0x58]
push 0
lea eax, [ebx + 0xc]
push eax
push edi
call fcn.0040d19c
mov esi, eax
test esi, esi
jl 0x402ebc
push 2
push dword [edi]
push ebx
call fcn.0040d490
mov esi, eax
jmp 0x402ebc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x402ea5
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jl 0x402eac
mov esi, 0x80004005
push esi
push 0x1d7
push 0x40def8
call fcn.0040d716
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403da5
leave
ret 8

Function at 0x402f90
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2a8
mov eax, dword [0x410004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2a8], eax
push edi
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0x2a4]
push eax
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 7
push 0
add eax, 0x1c
push 0
or eax, 0x8000
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x403083
push 0x27
lea eax, [ebp - 0x9c]
push eax
lea eax, [esi + 0x8c]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jl 0x403083
mov eax, dword [esi + 0xa0]
mov ecx, dword [esi + 0x9c]
movzx edx, ax
push edx
shr eax, 0x10
push eax
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
push 0x40e0aa
lea eax, [ebp - 0x4c]
push 0x24
push eax
call fcn.00402f38
add esp, 0x1c
test eax, eax
jl 0x403083
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x2a4]
push eax
push 0x40e064
push edi
call fcn.0040d2ee
add esp, 0x14
test eax, eax
jl 0x403083
push 1
push 1
push dword [edi]
push dword [ebp - 0x2a8]
call fcn.0040d8c6
test eax, eax
jge 0x403083
cmp dword [ebp + 0x10], 1
jne 0x403083
push edi
push 0
push dword [ebp - 0x2a8]
push esi
call fcn.00402f90
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00403da5
leave
ret 0x10
Function at 0x403094
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2a8
mov eax, dword [0x410004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2a8], eax
push edi
mov edi, dword [ebp + 0x14]
lea eax, [ebp - 0x2a4]
push eax
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 7
push 0
add eax, 0x1c
push 0
or eax, 0x8000
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x403187
push 0x27
lea eax, [ebp - 0x9c]
push eax
lea eax, [esi + 0x8c]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jl 0x403187
mov eax, dword [esi + 0xa0]
mov ecx, dword [esi + 0x9c]
movzx edx, ax
push edx
shr eax, 0x10
push eax
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
push 0x40e0aa
lea eax, [ebp - 0x4c]
push 0x24
push eax
call fcn.00402f38
add esp, 0x1c
test eax, eax
jl 0x403187
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x2a4]
push eax
push 0x40e0c2
push edi
call fcn.0040d2ee
add esp, 0x14
test eax, eax
jl 0x403187
push 1
push 1
push dword [edi]
push dword [ebp - 0x2a8]
call fcn.0040d8c6
test eax, eax
jge 0x403187
cmp dword [ebp + 0x10], 1
jne 0x403187
push edi
push 0
push dword [ebp - 0x2a8]
push esi
call fcn.00403094
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00403da5
leave
ret 0x10
Function at 0x403da5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x403daf
repz ret
jmp fcn.00406475

Function at 0x406f53
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.00404c7d
and dword [ebp - 4], 0
cmp dword [0x411814], 0
mov ebx, eax
jne 0x407004
push 0x401958
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4070b5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40194c
push edi
call esi
test eax, eax
je 0x4070b5
push eax
call fcn.00404c0b
mov dword [esp], 0x40193c
push edi
mov dword [0x411814], eax
call esi
push eax
call fcn.00404c0b
mov dword [esp], 0x401928
push edi
mov dword [0x411818], eax
call esi
push eax
call fcn.00404c0b
mov dword [esp], 0x40190c
push edi
mov dword [0x41181c], eax
call esi
push eax
call fcn.00404c0b
pop ecx
mov dword [0x411824], eax
test eax, eax
je 0x407004
push 0x4018f4
push edi
call esi
push eax
call fcn.00404c0b
pop ecx
mov dword [0x411820], eax
mov eax, dword [0x411820]
cmp eax, ebx
je 0x40705c
cmp dword [0x411824], ebx
je 0x40705c
push eax
call fcn.00404c86
push dword [0x411824]
mov esi, eax
call fcn.00404c86
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40705c
test edi, edi
je 0x40705c
call esi
test eax, eax
je 0x407053
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x407053
test byte [ebp - 0xc], 1
jne 0x40705c
or dword [ebp + 0x10], 0x200000
jmp 0x407095
mov eax, dword [0x411818]
cmp eax, ebx
je 0x407095
push eax
call fcn.00404c86
pop ecx
test eax, eax
je 0x407095
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x407095
mov eax, dword [0x41181c]
cmp eax, ebx
je 0x407095
push eax
call fcn.00404c86
pop ecx
test eax, eax
je 0x407095
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x411814]
call fcn.00404c86
pop ecx
test eax, eax
je 0x4070b5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4070b7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40d490
Capabilities:
Delete file
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor edi, edi
push edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
call fcn.0040d378
mov esi, eax
cmp esi, edi
jl 0x40d57f
push ebx
push edi
push 0x80
push dword [ebp + 0x10]
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40d517
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, edi
jle 0x40d4fe
and esi, 0xffff
or esi, 0x80070000
cmp esi, edi
jl 0x40d505
mov esi, 0x80004005
push esi
push 0xde
push 0x40e284
call fcn.0040d716
jmp 0x40d56c
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], 1
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40d565
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, edi
jle 0x40d54e
and esi, 0xffff
or esi, 0x80070000
cmp esi, edi
jl 0x40d555
mov esi, 0x80004005
push esi
push 0xe4
push 0x40e284
call fcn.0040d716
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
pop ebx
jge 0x40d57f
cmp dword [ebp - 0xc], edi
je 0x40d57f
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
mov eax, esi
pop esi
leave
ret 0xc

Function at 0x40d588
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push ebp
push ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40d63d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40d63d
movzx eax, word [ebx]
push edi
xor edi, edi
mov ecx, ebx
test ax, ax
je 0x40d5de
movzx eax, ax
cmp ax, 0x5c
jne 0x40d5d0
mov edi, ecx
inc ecx
inc ecx
movzx eax, word [ecx]
test ax, ax
jne 0x40d5c8
test edi, edi
jne 0x40d5f2
mov esi, 0x80070003
push esi
push 0x7e
push 0x40e2b8
call fcn.0040d716
jmp 0x40d63c
push ebp
xor eax, eax
push ebx
mov word [edi], ax
call fcn.0040d588
mov esi, eax
push 0x5c
pop eax
mov word [edi], ax
test esi, esi
jl 0x40d63c
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40d63a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40d628
xor esi, esi
inc esi
jmp 0x40d63c
test eax, eax
jle 0x40d636
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x40d63c
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x40d8c6
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
xor edi, edi
mov dword [ebp - 4], esi
cmp dword [ebp + 0x10], esi
je 0x40d8e2
mov dword [ebp - 4], 1
cmp dword [ebp + 0x14], esi
je 0x40d8eb
or dword [ebp - 4], 2
push dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40d9bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp + 0x10], esi
jne 0x40d922
cmp eax, 0x50
je 0x40d91a
cmp eax, 0xb7
jne 0x40d922
xor edi, edi
inc edi
jmp 0x40d9bc
cmp eax, 3
jne 0x40d9ac
movzx eax, word [ebx]
mov ecx, ebx
test ax, ax
je 0x40d9a5
movzx eax, ax
cmp ax, 0x5c
jne 0x40d940
mov esi, ecx
inc ecx
inc ecx
movzx eax, word [ecx]
test ax, ax
jne 0x40d938
test esi, esi
je 0x40d9a5
xor eax, eax
push eax
push ebx
mov word [esi], ax
call fcn.0040d588
mov edi, eax
push 0x5c
pop eax
mov word [esi], ax
test edi, edi
jl 0x40d9bc
push dword [ebp - 4]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40d9bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x40d991
and edi, 0xffff
or edi, 0x80070000
test edi, edi
jge 0x40d9bc
push edi
push 0x26d
push 0x40e2ec
call fcn.0040d716
jmp 0x40d9bc
mov edi, 0x80070003
jmp 0x40d9bc
cmp eax, esi
jle 0x40d9ba
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40d9c6
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x410004]
xor eax, ebp
mov dword [ebp + 0x19c], eax
mov eax, dword [ebp + 0x1b0]
and dword [ebp - 0x70], 0
or dword [ebp - 0x74], 0xffffffff
push ebx
mov ebx, dword [ebp + 0x1ac]
push esi
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x1b4]
push edi
mov edi, dword [ebp + 0x1a8]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x6c]
push eax
push 0x104
mov esi, 0x80004005
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40da55
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x40da3e
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jge 0x40da55
push esi
push 0x2cc
push 0x40e2ec
call fcn.0040d716
jmp 0x40daf4
and dword [ebp - 0x78], 0
cmp dword [ebp - 0x74], 0xffffffff
jne 0x40dad8
push ebx
push dword [ebp - 0x78]
lea eax, [ebp - 0x6c]
push edi
push eax
lea eax, [ebp - 0x70]
push 0x40e320
push eax
call fcn.0040d2ee
mov esi, eax
add esp, 0x18
test esi, esi
jl 0x40db0d
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x74], eax
cmp eax, 0xffffffff
jne 0x40dacc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40daba
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, 0x80070050
jne 0x40dac8
xor esi, esi
jmp 0x40dacc
test esi, esi
jl 0x40db0d
inc dword [ebp - 0x78]
cmp dword [ebp - 0x78], 0x3e8
jl 0x40da59
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x40dae4
mov ecx, dword [ebp - 0x74]
mov dword [eax], ecx
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x40daf4
mov ecx, dword [ebp - 0x70]
and dword [ebp - 0x70], 0
mov dword [eax], ecx
test esi, esi
jl 0x40dafe
cmp dword [ebp - 0x7c], 0
jne 0x40db0d
cmp dword [ebp - 0x74], 0xffffffff
je 0x40db0d
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x70], 0
je 0x40db1b
push dword [ebp - 0x70]
call fcn.0040cbe6
mov ecx, dword [ebp + 0x19c]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403da5
add ebp, 0x1a0
leave
ret 0x10
Function at 0x40420d
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push esi
call 0x404216
pop eax
mov esi, dword fs:[0x30]
mov esi, dword [esi + 0xc]
mov esi, dword [esi + 0x1c]
push esi
mov ebx, dword [esi + 8]
cmp eax, ebx
jb 0x404239
mov ecx, dword [esi + 0x10]
add ecx, ebx
cmp eax, ecx
ja 0x404239
mov eax, ebx
jmp 0x40424e
mov esi, dword [esi]
mov ebx, dword [esi]
cmp ebx, dword [esp]
jne 0x404225
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
pop esi
pop esi
leave
ret
Function at 0x4123e1
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp eax, 0x8000
jg 0x4124fb
je 0x4124f2
cmp eax, 0x80
jg 0x412478
je 0x41246f
cmp eax, 8
jg 0x412441
je 0x412438
cmp eax, 0x80000000
je 0x41242f
cmp eax, 2
je 0x412426
cmp eax, 4
jne 0x4125de
mov eax, 2
pop ebp
ret 4
mov eax, 1
pop ebp
ret 4
mov eax, 0x1f
pop ebp
ret 4
mov eax, 3
pop ebp
ret 4
cmp eax, 0x10
je 0x412466
cmp eax, 0x20
je 0x41245d
cmp eax, 0x40
jne 0x4125de
mov eax, 6
pop ebp
ret 4
mov eax, 5
pop ebp
ret 4
mov eax, 4
pop ebp
ret 4
mov eax, 7
pop ebp
ret 4
cmp eax, 0x800
jg 0x4124be
je 0x4124b5
cmp eax, 0x100
je 0x4124ac
cmp eax, 0x200
je 0x4124a3
cmp eax, 0x400
jne 0x4125de
mov eax, 0xa
pop ebp
ret 4
mov eax, 9
pop ebp
ret 4
mov eax, 8
pop ebp
ret 4
mov eax, 0xb
pop ebp
ret 4
cmp eax, 0x1000
je 0x4124e9
cmp eax, 0x2000
je 0x4124e0
cmp eax, 0x4000
jne 0x4125de
mov eax, 0xe
pop ebp
ret 4
mov eax, 0xd
pop ebp
ret 4
mov eax, 0xc
pop ebp
ret 4
mov eax, 0xf
pop ebp
ret 4
cmp eax, 0x800000
jg 0x412587
je 0x41257e
cmp eax, 0x80000
jg 0x41254e
je 0x412545
cmp eax, 0x10000
je 0x41253c
cmp eax, 0x20000
je 0x412533
cmp eax, 0x40000
jne 0x4125de
mov eax, 0x12
pop ebp
ret 4
mov eax, 0x11
pop ebp
ret 4
mov eax, 0x10
pop ebp
ret 4
mov eax, 0x13
pop ebp
ret 4
cmp eax, 0x100000
je 0x412575
cmp eax, 0x200000
je 0x41256c
cmp eax, 0x400000
jne 0x4125de
mov eax, 0x16
pop ebp
ret 4
mov eax, 0x15
pop ebp
ret 4
mov eax, 0x14
pop ebp
ret 4
mov eax, 0x17
pop ebp
ret 4
cmp eax, 0x8000000
jg 0x4125c9
je 0x4125c0
cmp eax, 0x1000000
je 0x4125b7
cmp eax, 0x2000000
je 0x4125ae
cmp eax, 0x4000000
jne 0x4125de
mov eax, 0x1a
pop ebp
ret 4
mov eax, 0x19
pop ebp
ret 4
mov eax, 0x18
pop ebp
ret 4
mov eax, 0x1b
pop ebp
ret 4
cmp eax, 0x10000000
je 0x4125f6
cmp eax, 0x20000000
je 0x4125ed
cmp eax, 0x40000000
je 0x4125e4
xor eax, eax
pop ebp
ret 4
mov eax, 0x1e
pop ebp
ret 4
mov eax, 0x1d
pop ebp
ret 4
mov eax, 0x1c
pop ebp
ret 4
Function at 0x42b702
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x42b7d7
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x42b7d7
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
je 0x42b7d7
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, ebx
mov esi, dword [eax + 0x1c]
sub ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
add esi, edi
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], edx
cmp ecx, edx
ja 0x42b75d
mov eax, dword [esi + ecx*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov edx, dword [eax + 0x20]
mov ecx, dword [eax + 0x24]
mov ebp, dword [eax + 0x18]
add edx, edi
add ecx, edi
xor esi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], ecx
test ebp, ebp
je 0x42b7d7
mov eax, dword [edx + esi*4]
add eax, edi
mov ecx, ebx
lea ecx, [ecx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x42b7a2
test dl, dl
je 0x42b79e
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x42b7a2
add ecx, 2
add eax, 2
test dl, dl
jne 0x42b782
xor eax, eax
jmp 0x42b7a7
sbb eax, eax
or eax, 1
test eax, eax
jne 0x42b7b9
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + esi*2]
cmp eax, dword [esp + 0x20]
jbe 0x42b7c4
inc esi
cmp esi, ebp
jae 0x42b7d7
mov edx, dword [esp + 0x10]
jmp 0x42b778
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 8

Function at 0x42ba3b
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
test ecx, ecx
jne 0x42ba46
xor eax, eax
ret
push esi
mov esi, dword [esp + 0xc]
cmp esi, 0x40
jb 0x42ba5a
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x42ba5e
xor eax, eax
pop esi
ret
push edi
mov edi, dword [ecx + 0x3c]
lea eax, [edi + 0xf8]
cmp esi, eax
jb 0x42ba97
cmp dword [edi + ecx], 0x4550
jne 0x42ba97
mov eax, 0x14c
cmp word [edi + ecx + 4], ax
jne 0x42ba97
test byte [edi + ecx + 0x16], 2
je 0x42ba97
movzx eax, word [edi + ecx + 0x14]
mov edx, 0xe0
cmp ax, dx
jae 0x42ba9c
pop edi
xor eax, eax
pop esi
ret
push ebx
add eax, 0xffffff20
movzx ebx, ax
add ebx, edi
movzx edi, word [edi + ecx + 6]
add ebx, ecx
xor edx, edx
test edi, edi
jle 0x42bad8
xor eax, eax
jmp 0x42babb
lea eax, [eax + eax*4]
mov ecx, dword [ebx + eax*8 + 0x10c]
add ecx, dword [ebx + eax*8 + 0x108]
cmp ecx, esi
ja 0x42bae1
inc edx
movzx eax, dx
cmp eax, edi
jl 0x42babb
pop ebx
pop edi
mov eax, 1
pop esi
ret
pop ebx
pop edi
xor eax, eax
pop esi
ret