joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100abec0
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100d8a10
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x100ac067
mov ecx, dword [0x10216334]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x100abfbc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.100aabe0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.100c67cc
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.100c66df
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x10214f10
call fcn.100c674d
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.100aafa0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.100c67cc
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.100c66df
lea ecx, [esp + 0xc]
call fcn.100c6ba7
mov ecx, dword [esp + 0xc]
push 0x1021594c
push ecx
call fcn.100b5ba4
add esp, 8
test eax, eax
je 0x100abfe4
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x100abf1d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.100c66df
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.100c66df
jmp 0x100ac06b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.100abc60
test eax, eax
push 0
je 0x100ac04f
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.100aa300
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x100ac035
cmp eax, 0x64
jg 0x100ac023
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x100abfc0
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x100abfc0
cmp eax, 0x64
jge 0x100abfbc
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x100abfc0
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.100aa300
mov esi, eax
jmp 0x100abfc0
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x100ac075
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x100c8b31
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100c8b69
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.100c6b3a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.100c6b12
jmp 0x100c8b75
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x100ca2f4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x100ca336
call fcn.100d08a5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x100ca336
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x100ca32d
xor eax, eax
jmp 0x100ca33e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.100ca344
pop edi
pop esi
pop ebx
ret 4
Function at 0x401000
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push str.E5C53971_D80E_4500_BE0D_761BF3CD8457
push 1
push 0
mov dword [0x515f7c], esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x515f8c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401048
push dword [0x515f8c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [0x515f8c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40105d
push 0
push 0x401061
push 0
push 0x65
push esi
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 1
pop eax
pop esi
ret 0x10

Function at 0x401a43
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call esi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x209], 0x5c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x401a8c
lea eax, [ebp - 0x208]
push 0x412090
push eax
call edi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call esi
lea eax, [ebp - 0x104]
push 0x412124
push eax
call edi
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401acc
xor eax, eax
jmp 0x401b5c
cmp byte [ebp - 0x31c], 0x2e
je 0x401b2b
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x104]
push eax
call esi
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x104]
push eax
call edi
cmp dword [ebp - 0x348], 0x10
jne 0x401b0c
lea eax, [ebp - 0x104]
push eax
call fcn.00401a43
jmp 0x401b2b
lea eax, [ebp - 0x104]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x348]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401acc
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401b7b
test al, 0x10
je 0x401b7b
push 1
pop eax
jmp 0x401b7d
xor eax, eax
ret 4
Function at 0x401b80
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
push esi
push esi
push 2
push esi
push 1
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [ebp + 8]
mov dword [ebp - 8], eax
cmp edi, 0xffffffff
je 0x401bb7
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp + 0x10], eax
jbe 0x401bbc
or eax, 0xffffffff
jmp 0x401c23
push ebx
push esi
push esi
mov dword [ebp - 4], esi
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp + 0xc]
push esi
mov ebx, 0x100000
push eax
mov esi, 0x415e74
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
call edi
test eax, eax
je 0x401c16
cmp dword [ebp + 0xc], 0
jbe 0x401c16
lea eax, [ebp - 0xc]
push 0
push eax
push dword [ebp + 0xc]
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0xc]
push 0
add dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push ebx
push esi
push dword [ebp + 8]
jmp 0x401be4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
leave
ret

Function at 0x401c27
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
push edi
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 4]
push edi
push eax
push 0x100000
push 0x415e74
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401c73
cmp word [0x415e74], 0x5a4d
jne 0x401c73
mov ecx, dword [0x415eb0]
cmp dword [ecx + 0x415e74], 0x4550
je 0x401c78
or eax, 0xffffffff
jmp 0x401ca3
push esi
xor eax, eax
movzx esi, word [ecx + 0x415e7a]
cmp esi, edi
jle 0x401ca2
lea edx, [ecx + 0x415f7c]
mov ecx, dword [edx + 4]
add ecx, dword [edx]
cmp ecx, eax
jbe 0x401c97
mov eax, ecx
add edx, 0x28
inc edi
movsx ecx, di
cmp ecx, esi
jl 0x401c8c
pop esi
pop edi
leave
ret
Function at 0x401ca6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
push 0x44
xor ebx, ebx
pop esi
lea eax, [ebp - 0x74]
push esi
push ebx
push eax
call fcn.00407da0
add esp, 0xc
lea eax, [ebp - 0x74]
mov dword [ebp - 0x74], esi
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
cmp dword [0x515f80], ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x401ce6
push str.__AUTOPATCH
push dword [ebp + 8]
call esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x401d05
push 0x41212c
push dword [ebp + 8]
call esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401d53
cmp dword [ebp + 0x10], ebx
je 0x401d3e
push 0xffffffffffffffff
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, dword [ebp + 8]
jmp 0x401d91
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 7
mov edx, eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x2f]
mov byte [ebp - 0x30], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push edx
lea eax, [ebp - 0x30]
push 0x412128
push eax
call fcn.00407d44
add esp, 0xc
lea eax, [ebp - 0x30]
push ebx
push dword [ebp + 8]
push eax
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401d95
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 8]
mov dword [ebp - 4], esi
push esi
mov ebx, 0x100000
push eax
mov esi, 0x415e74
push ebx
push esi
push dword [ebp + 8]
call edi
test eax, eax
je 0x401dfa
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x401dfa
lea ecx, [ecx + 0x415e74]
mov eax, esi
cmp ecx, esi
jbe 0x401ded
mov edx, dword [eax]
add eax, 4
add dword [ebp - 4], edx
cmp eax, ecx
jb 0x401de1
lea eax, [ebp - 8]
push 0
push eax
push ebx
push esi
push dword [ebp + 8]
jmp 0x401dc8
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401ff3
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
and byte [ebp - 0x108], 0
push esi
push edi
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x107]
mov dword [ebp - 4], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 8]
test edi, edi
je 0x402042
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
call esi
test eax, eax
jle 0x402042
push edi
call esi
cmp eax, 0x104
jbe 0x402048
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
leave
ret
push 0x103
lea eax, [ebp - 0x108]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.00407df8
pop ecx
test eax, eax
pop ecx
je 0x402042
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
inc eax
push 0x5c
push eax
call fcn.00407df8
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x4020b8
and byte [esi], 0
lea eax, [ebp - 0x108]
push 0
push eax
call edi
and dword [ebp - 4], eax
jne 0x4020b0
call ebx
cmp eax, 0xb7
jne 0x4020b0
mov dword [ebp - 4], 1
mov byte [esi], 0x5c
lea eax, [esi + 1]
jmp 0x40207d
lea eax, [ebp - 0x108]
push 0
push eax
call edi
and dword [ebp - 4], eax
jne 0x4020d8
call ebx
cmp eax, 0xb7
jne 0x4020d8
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop ebx
jmp 0x402044
Function at 0x40260b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14038
call fcn.004085d0
push ebx
push esi
push edi
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004081ef
push 0x412170
push dword [ebp + 0x14]
call fcn.0040839e
add esp, 0x14
mov dword [ebp + 0xc], eax
test eax, eax
je 0x402748
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.00407da0
push 0x38
push str.1.1.3
lea eax, [ebp - 0x38]
push 0xfffffffffffffff1
push eax
mov dword [ebp - 0x14], 0x4027d5
mov dword [ebp - 0x18], 0x4027c4
call fcn.00402930
mov edi, dword [ebp + 0x10]
add esp, 0x1c
mov esi, 0xa000
push 1
pop ebx
test edi, edi
jbe 0x40274c
push dword [ebp + 8]
cmp edi, esi
jbe 0x402690
push esi
jmp 0x402691
push edi
lea eax, [ebp - 0x14038]
push ebx
push eax
call fcn.00408107
and dword [ebp - 8], 0
and dword [ebp - 0x24], 0
lea ecx, [ebp - 0x14038]
add esp, 0x10
mov dword [ebp - 0x38], ecx
sub edi, eax
lea ecx, [ebp - 0xa038]
mov dword [ebp - 0x34], eax
test eax, eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], esi
jbe 0x402708
cmp dword [ebp - 0x28], 0
jne 0x4026ed
push dword [ebp + 0xc]
lea eax, [ebp - 0xa038]
push esi
push ebx
push eax
call fcn.00407e76
lea eax, [ebp - 0xa038]
add esp, 0x10
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.00402a40
pop ecx
test eax, eax
pop ecx
jl 0x40272c
cmp eax, ebx
je 0x402708
cmp dword [ebp - 0x34], 0
ja 0x4026c7
mov eax, esi
sub eax, dword [ebp - 0x28]
je 0x40267e
push dword [ebp + 0xc]
push ebx
push eax
lea eax, [ebp - 0xa038]
push eax
call fcn.00407e76
add esp, 0x10
jmp 0x40267e
lea eax, [ebp - 0x38]
push eax
call fcn.004028e0
push dword [ebp + 0xc]
call fcn.00407f8e
pop ecx
pop ecx
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor al, al
jmp 0x4027bd
lea eax, [ebp - 0xa038]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x28], 0
jne 0x40277e
push dword [ebp + 0xc]
lea eax, [ebp - 0xa038]
push esi
push ebx
push eax
call fcn.00407e76
lea eax, [ebp - 0xa038]
add esp, 0x10
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x38]
push 4
push eax
call fcn.00402a40
pop ecx
test eax, eax
pop ecx
je 0x402758
sub esi, dword [ebp - 0x28]
je 0x4027a8
push dword [ebp + 0xc]
lea eax, [ebp - 0xa038]
push ebx
push esi
push eax
call fcn.00407e76
add esp, 0x10
lea eax, [ebp - 0x38]
push eax
call fcn.004028e0
push dword [ebp + 0xc]
call fcn.00407f8e
pop ecx
mov al, bl
pop ecx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4027e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push esi
lea eax, [ebp - 0x12c]
push dword [ebp + 8]
push eax
call fcn.00407d44
lea eax, [ebp - 0x12c]
push 0x5c
push eax
call fcn.00407860
add esp, 0x10
mov esi, eax
test esi, esi
je 0x402853
lea eax, [ebp]
cmp esi, eax
jae 0x402853
and byte [esi], 0
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40283f
lea eax, [ebp - 0x12c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40284f
mov byte [esi], 0x5c
inc esi
push 0x5c
push esi
call fcn.00407860
pop ecx
pop ecx
jmp 0x40280a
xor eax, eax
jmp 0x402856
push 1
pop eax
pop esi
leave
ret 4
Function at 0x4010d4
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4010e6
mov eax, dword [0x44808b]
shl eax, 2
mov dword [0x44808f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00405b04
pop edx
call fcn.00404ea0
call fcn.00405b08
push 0
call fcn.00407020
pop ecx
push 0x448034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x448093], eax
push 0
jmp fcn.0040d72c

Function at 0x401548
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
mov eax, dword [0x4971f4]
mov edx, dword [0x4971fc]
lea ecx, [ebp - 0x224]
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x4971f8]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], edx
mov edx, dword [0x497200]
mov dword [0x4b638c], 1
mov dword [ebp - 0x18], edx
push 0x208
push ecx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x224]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40168c
push 0
push ebx
call sub.KERNEL32.DLL_GetFileSize
mov edi, eax
push 2
push 0
push 0xfffffffffffffff8
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea eax, [ebp - 4]
push 0
push eax
lea edx, [ebp - 0x14]
push 8
push edx
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x4015f7
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x40168e
push 8
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0xc]
push ecx
call fcn.00406070
add esp, 0xc
test eax, eax
je 0x401611
xor eax, eax
jmp 0x40168e
push 2
push 0
push 0xfffffffffffffff4
push ebx
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea edx, [ebp - 4]
push edx
push 4
push esi
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x40163a
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x40168e
push 4
push 0x1000
mov edx, dword [esi]
push edx
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [0x49716c], eax
mov eax, edi
sub eax, dword [esi]
sub eax, 0xc
push 0
push 0
push eax
push ebx
call sub.KERNEL32.DLL_SetFilePointer
lea edx, [ebp - 4]
push 0
push edx
mov eax, dword [0x49716c]
mov ecx, dword [esi]
push ecx
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x401685
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x40168e
mov eax, 1
jmp 0x40168e
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401698
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffba8
push ebx
push esi
lea eax, [ebp - 0x458]
push eax
push 0x1ff
call sub.KERNEL32.DLL_GetTempPathA
push str.YShow3D.exe
lea edx, [ebp - 0x458]
push edx
call sub.KERNEL32.DLL_lstrcatA
push 4
push 0x1000
push 0xf000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov ebx, eax
test ebx, ebx
jne 0x4016e5
xor eax, eax
jmp 0x4017ab
push ebx
push 0x4880a4
call fcn.0041000c
add esp, 8
lea edx, [ebp - 0x458]
push 0
push 0
push 2
push 0
push 3
push 0xc0000000
push edx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x40172d
push 0
lea eax, [ebp - 4]
push eax
push 0xf000
push ebx
push esi
call sub.KERNEL32.DLL_WriteFile
push esi
call sub.KERNEL32.DLL_CloseHandle
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x458]
push ecx
call sub.KERNEL32.DLL_lstrcatA
push 0x44
push 0
lea eax, [ebp - 0x48]
push eax
call fcn.00405e24
add esp, 0xc
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], 1
push 0x10
push 0
lea edx, [ebp - 0x58]
push edx
call fcn.00405e24
add esp, 0xc
lea ecx, [ebp - 0x58]
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x458]
push ecx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
jne 0x40179b
xor eax, eax
jmp 0x4017ab
push 0xffffffffffffffff
mov edx, dword [ebp - 0x58]
push edx
call sub.KERNEL32.DLL_WaitForSingleObject
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403940
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 0x14]
add eax, dword [ebp + 0xc]
add eax, 0x18
xor ecx, ecx
jmp 0x403974
mov edx, dword [eax + 8]
test edx, edx
jne 0x403963
mov edx, dword [eax + 0x10]
mov esi, dword [eax + 0xc]
cmp ebx, esi
jb 0x403970
add edx, esi
cmp ebx, edx
jb 0x403981
inc ecx
add eax, 0x28
mov edx, dword [ebp + 0xc]
movzx edx, word [edx + 6]
cmp ecx, edx
jb 0x403959
xor eax, eax
pop esi
pop ebx
pop ebp
ret
Function at 0x4039bc
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0x5a4d
je 0x4039d6
xor eax, eax
jmp 0x403b56
mov ebx, dword [edi + 0x3c]
add ebx, edi
cmp dword [ebx], 0x4550
je 0x4039ea
xor eax, eax
jmp 0x403b56
cmp word [ebx + 0x14], 0xe0
jne 0x4039fa
cmp word [ebx + 0x18], 0x10b
je 0x403a01
xor eax, eax
jmp 0x403b56
mov dword [0x4b6038], edi
mov ebx, dword [edi + 0x3c]
mov esi, edi
add ebx, esi
mov eax, dword [ebx + 0x78]
mov dword [ebp - 0x18], eax
push ebx
mov edx, dword [ebp - 0x18]
push edx
call fcn.00403940
add esp, 8
test eax, eax
jne 0x403a2c
xor eax, eax
jmp 0x403b56
mov edx, dword [0x4b6038]
push edx
push ebx
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00403988
add esp, 0xc
mov ebx, dword [ebx + 0x78]
test ebx, ebx
jne 0x403a5e
push 0x10
push 0
push str.Error_in_GetProcAddressDirectly__
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
jmp 0x403b56
add ebx, esi
mov edx, dword [ebx + 0x24]
add edx, esi
mov dword [ebp - 4], edx
mov ecx, dword [ebx + 0x20]
add ecx, esi
mov dword [ebp - 0xc], ecx
mov eax, dword [ebx + 0x1c]
add eax, esi
mov dword [ebp - 8], eax
mov edx, dword [ebp + 0xc]
mov ecx, edx
shr ecx, 0x10
test cx, cx
je 0x403b28
xor esi, esi
mov eax, dword [ebp - 8]
mov edx, eax
mov dword [ebp - 0x28], edx
jmp 0x403b1a
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
test eax, eax
je 0x403b15
xor edx, edx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x28]
mov eax, ecx
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0xc]
mov ecx, edx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 4]
mov edx, eax
mov dword [ebp - 0x1c], edx
jmp 0x403b0c
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp esi, eax
jne 0x403b01
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx]
add ecx, edi
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
cmp cl, byte [edx]
jne 0x403b01
test cl, cl
je 0x403af6
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x403b01
add eax, 2
add edx, 2
test cl, cl
jne 0x403ada
jne 0x403b01
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, edi
jmp 0x403b56
inc dword [ebp - 0x14]
add dword [ebp - 0x20], 4
add dword [ebp - 0x1c], 2
mov edx, dword [ebx + 0x18]
dec edx
cmp edx, dword [ebp - 0x14]
jae 0x403ac0
inc esi
add dword [ebp - 0x28], 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x403a98
jmp 0x403b54
xor esi, esi
mov eax, dword [ebp - 8]
jmp 0x403b4c
mov ecx, dword [ebx + 0x10]
add ecx, esi
cmp edx, ecx
jne 0x403b48
cmp dword [eax], 0
je 0x403b48
mov edx, dword [eax]
shl edx, 6
add edi, edx
mov eax, edi
jmp 0x403b56
inc esi
add eax, 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x403b2f
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret