joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402caa
Capabilities:
Check mutex on windows
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [str.R_Bi]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x8fc
xor edi, edi
mov esi, ecx
push edi
push 0x409140
mov ebx, edx
mov dword [0x409a3c], esi
call sub.msvcrt.dll_memset
push 0x32c
push edi
push 0x408a20
call sub.msvcrt.dll_memset
push 0x104
push edi
push 0x4088c0
call sub.msvcrt.dll_memset
add esp, 0x24
xor eax, eax
inc eax
mov edx, 0x409154
mov ecx, 0x401278
mov dword [0x4093ec], eax
push 0x7f
call fcn.0040468f
test eax, eax
je 0x402ef3
cmp eax, 0x80
ja 0x402ef3
push edi
xor eax, eax
inc eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
mov dword [0x40858c], eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 4
mov edx, 0x409a34
mov ecx, 0x401280
call fcn.0040468f
test eax, eax
jne 0x402d7d
xor eax, eax
mov edx, 0x4b1
push eax
push 0x10
push eax
push eax
xor ecx, ecx
call fcn.004044b9
mov dword [0x409124], 0x80070714
jmp 0x402f06
test byte [0x409a34], 0xc0
je 0x402e1f
push 0x104
lea edx, [ebp - 0x108]
mov ecx, 0x40128c
call fcn.0040468f
test eax, eax
je 0x402d5b
lea eax, [ebp - 0x108]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x408588], eax
test eax, eax
je 0x402e1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402e1f
xor ecx, ecx
test byte [0x409a34], 0x80
je 0x402dea
push ecx
push 0x10
push ecx
push 0x409154
mov edx, 0x54b
call fcn.004044b9
jmp 0x402e04
push 4
push 0x20
push 0
push 0x409154
mov edx, 0x524
call fcn.004044b9
cmp eax, 6
je 0x402e1f
push dword [0x408588]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x409124], 0x800700b7
jmp 0x402f06
and dword [0x409120], edi
mov ecx, ebx
call fcn.00405c9e
test eax, eax
jne 0x402e3a
mov edx, 0x520
jmp 0x402ef8
cmp byte [0x408a3a], 0
je 0x402e52
mov ecx, 0x408a3a
call fcn.00402390
jmp 0x402f06
push 0xa
push 0x40129c
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x402e6e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp dword [0x408184], 0
je 0x402e7d
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
cmp dword [0x408a24], 0
je 0x402e8b
xor eax, eax
inc eax
jmp 0x402f08
mov ecx, edi
call fcn.004036ee
test eax, eax
je 0x402f06
mov ax, word [0x409a40]
xor ebx, ebx
inc ebx
cmp ax, bx
je 0x402eb0
cmp ax, 2
je 0x402eb0
cmp ax, 3
jne 0x402eef
test dword [0x409a34], 0x100
je 0x402eef
test byte [0x408a38], 1
jne 0x402eef
call fcn.004018a3
test eax, eax
jne 0x402eef
push 0x83e
push 0x547
push 0x4019e0
push eax
mov edx, 0x7d6
call fcn.00406517
cmp eax, 0x83d
jne 0x402f06
mov eax, ebx
jmp 0x402f08
mov edx, 0x4b1
xor eax, eax
xor ecx, ecx
push eax
push 0x10
push eax
push eax
call fcn.004044b9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406ce0
mov esp, ebp
pop ebp
ret 4
Function at 0x402f1d
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [str.R_Bi]
xor eax, ebp
mov dword [ebp - 4], eax
cmp word [0x408a38], 0
push ebx
push esi
push edi
jne 0x402f6c
cmp dword [0x408a24], 0
jne 0x402f5f
call fcn.004051e5
test eax, eax
je 0x403041
cmp word [0x408a38], 0
jne 0x402f6c
call fcn.00403a3f
test eax, eax
je 0x403041
call fcn.00405164
test eax, eax
je 0x403041
call fcn.004055a0
test eax, eax
je 0x403041
mov esi, 0x105
lea eax, [ebp - 0x10c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x401144
mov edx, esi
lea ecx, [ebp - 0x10c]
call fcn.0040658a
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
xor edi, edi
test ebx, ebx
je 0x402ff7
push 0x4012a8
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x110], eax
test eax, eax
je 0x402ff7
mov esi, esp
mov ecx, eax
push edi
push 0x4091e4
call dword [0x40a288]
call dword [ebp - 0x110]
cmp esi, esp
je 0x402ff7
mov ecx, 4
int 0x29
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x408a24], edi
jne 0x403017
cmp dword [0x409a30], edi
jne 0x403017
call fcn.0040621e
test eax, eax
je 0x403041
push 0x4091e4
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x403054
push edi
push 0x10
push edi
push edi
mov edx, 0x4bc
xor ecx, ecx
call fcn.004044b9
call fcn.00406285
mov dword [0x409124], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406ce0
mov esp, ebp
pop ebp
ret
cmp dword [0x408a2c], edi
jne 0x403065
call fcn.00403b26
test eax, eax
je 0x403041
test byte [0x408d48], 0xc0
jne 0x40307c
mov cx, word [0x409a40]
call fcn.0040256d
mov edi, eax
mov eax, dword [0x408a24]
mov dword [0x409a44], edi
test eax, eax
jne 0x4030a1
cmp dword [0x409a30], eax
jne 0x4030a1
call fcn.00403ba2
test eax, eax
je 0x403041
mov eax, dword [0x408a24]
cmp word [0x408a38], 0
jne 0x4030b4
test eax, eax
jne 0x4030b4
call fcn.00404169
xor eax, eax
inc eax
jmp 0x403043
Function at 0x403fef
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [str.R_Bi]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
mov ebx, ecx
inc esi
xor eax, eax
push edi
test ebx, ebx
je 0x40410a
lea edi, [ebp - 0x21c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x21c]
push eax
push edx
xor edi, edi
push edi
push edi
push 0x20
push edi
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4040c4
push 0xffffffffffffffff
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x20c]
cmp dword [0x408a28], edi
jne 0x404091
mov eax, dword [0x409a2c]
test al, 1
je 0x404091
test al, 2
jne 0x404091
mov eax, ecx
and eax, 0xff000000
cmp eax, 0xaa000000
jne 0x404091
mov dword [0x409a2c], ecx
call fcn.0040411b
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test dword [0x409a34], 0x400
je 0x404108
cmp dword [ebp - 0x20c], edi
jge 0x404108
jmp 0x404106
call fcn.00406285
push edi
mov dword [0x409124], eax
lea eax, [ebp - 0x208]
push 0x200
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1000
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push edi
push 0x10
lea eax, [ebp - 0x208]
mov edx, 0x4c4
push eax
push ebx
xor ecx, ecx
call fcn.004044b9
mov esi, edi
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406ce0
mov esp, ebp
pop ebp
ret
Function at 0x4052b6
Capabilities:
Delete file
Set current directory
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [str.R_Bi]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [0x4091e0]
test esi, esi
je 0x405317
push edi
cmp dword [0x408a24], 0
mov edi, esi
jne 0x405300
cmp dword [0x409a30], 0
jne 0x405300
push 0x80
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [edi]
mov esi, dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
jne 0x4052d7
pop edi
mov eax, dword [0x408a20]
pop esi
test eax, eax
je 0x405379
cmp dword [0x408a24], 0
jne 0x405379
cmp dword [0x409a30], 0
jne 0x405379
push ecx
push 0x4091e4
push ecx
mov edx, 0x104
lea ecx, [ebp - 0x108]
call fcn.00401781
test byte [0x409a34], 0x20
je 0x40535e
lea ecx, [ebp - 0x108]
call fcn.004065e8
push 0x4011fc
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [ebp - 0x108]
call fcn.00402390
mov eax, dword [0x408a20]
cmp word [0x409a40], 1
je 0x40538c
test eax, eax
je 0x40538c
call fcn.00401fe1
mov ecx, dword [ebp - 4]
and dword [0x408a20], 0
xor ecx, ebp
call fcn.00406ce0
mov esp, ebp
pop ebp
ret

Function at 0x4053a1
Capabilities:
Check if file exists
Create directory
Delete directory
Delete file
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [str.R_Bi]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, edx
mov ebx, ecx
xor edi, edi
push edi
push 0x401378
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0040171e
add esp, 0x10
mov edx, 0x104
mov ecx, esi
inc edi
push ebx
call fcn.00401680
lea eax, [ebp - 0x108]
mov edx, 0x104
push eax
mov ecx, esi
call fcn.0040658a
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40544f
cmp edi, 0x190
jl 0x4053bf
push esi
xor edi, edi
push edi
push 0x401384
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x40543a
push esi
inc edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406ce0
mov esp, ebp
pop ebp
ret 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x405415
xor edi, edi
inc edi
mov dword [0x408a20], edi
jmp 0x40543a
Function at 0x40621e
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [str.R_Bi]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x406268
push eax
push 0x10
push eax
push eax
mov edx, 0x4f0
xor ecx, ecx
call fcn.004044b9
call fcn.00406285
mov dword [0x409124], eax
xor eax, eax
jmp 0x406277
push 2
pop edx
push edx
lea ecx, [ebp - 0x108]
call fcn.0040597d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406ce0
mov esp, ebp
pop ebp
ret

Function at 0x406298
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [str.R_Bi]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x1c], ecx
push esi
push 0x4013d4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], esi
xor ebx, ebx
push 0x14
push eax
inc ebx
call fcn.0040171e
jmp 0x40633b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40635f
lea edx, [edi + 8]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4062e8
sub ecx, esi
mov esi, esp
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0x1c]
add eax, edx
push eax
push edx
push dword [edi + 4]
push dword [edi]
call dword [0x40a288]
call dword [ebp - 0x1c]
cmp esi, esp
je 0x406316
mov ecx, 4
int 0x29
push edi
test eax, eax
je 0x406355
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
inc esi
push esi
push 0x4013d4
push 0x14
push eax
mov dword [ebp - 0x20], esi
call fcn.0040171e
xor esi, esi
add esp, 0x10
lea eax, [ebp - 0x18]
push 0xa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x4062cb
jmp 0x40636b
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x40636b
mov dword [0x409124], 0x80070714
mov ebx, esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406ce0
mov esp, ebp
pop ebp
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [str.R_Bi]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push ecx
push 0x4091e4
push ecx
mov edx, 0x104
lea ecx, [ebp - 0x108]
call fcn.00401781
mov edi, 0x4011d8
lea ecx, [ebp - 0x108]
push edi
mov edx, 0x104
call fcn.0040658a
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406501
test al, 0x10
jne 0x406501
push 8
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x406508
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00406ce0
mov esp, ebp
pop ebp
ret

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

Disassembly:
mov edi, edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4066bf
xor eax, eax
ret
shr eax, 4
not eax
and eax, 1
ret
Function at 0x40681f
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [str.R_Bi]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [0x4081d8]
xor esi, esi
mov dword [ebp - 0xb0], 0xc
mov dword [ebp - 0xac], esi
cmp edi, 0xfffffffe
jne 0x406940
lea eax, [ebp - 0xa4]
mov dword [0x4081d8], esi
push eax
mov dword [ebp - 0xa4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40693a
xor edi, edi
inc edi
cmp dword [ebp - 0x94], edi
jne 0x40693a
cmp dword [ebp - 0xa0], 4
jne 0x40693a
cmp dword [ebp - 0x9c], 0xa
jae 0x40693a
push 0x4a
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x40693a
lea eax, [ebp - 0xa8]
push eax
push 0x20019
push esi
push 0x4013e0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40693a
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xb4]
push eax
push esi
push 0x401140
push dword [ebp - 0xa8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0xa8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40693a
lea edx, [ebp - 0xac]
lea ecx, [ebp - 0x10]
call fcn.004066f9
test eax, eax
je 0x40693a
mov eax, dword [ebp - 0xac]
and eax, 0x3ff
cmp eax, edi
je 0x406932
cmp eax, 0xd
jne 0x40693a
mov dword [0x4081d8], edi
jmp 0x406940
mov edi, dword [0x4081d8]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00406ce0
mov esp, ebp
pop ebp
ret

Function at 0x406952
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp byte [ecx], 0
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
je 0x4069a1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4069a1
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 8]
push 0x400
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4010cc
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4010de
mov eax, dword [0x41b08b]
shl eax, 2
mov dword [0x41b08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0040591c
pop edx
call fcn.00404cb8
call fcn.00405920
push 0
call fcn.00406bf4
pop ecx
push 0x41b034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x41b093], eax
push 0
jmp fcn.0040b180

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffddc
mov eax, dword [0x46a170]
mov edx, dword [0x46a178]
lea ecx, [ebp - 0x224]
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x46a174]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], edx
mov edx, dword [0x46a17c]
mov dword [0x46f57c], 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 0x401550
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 0x4014bb
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x401552
push 8
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0xc]
push ecx
call fcn.00405de8
add esp, 0xc
test eax, eax
je 0x4014d5
xor eax, eax
jmp 0x401552
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 0x4014fe
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x401552
push 4
push 0x1000
mov edx, dword [esi]
push edx
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [0x46a16c], 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 [0x46a16c]
mov ecx, dword [esi]
push ecx
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x401549
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
jmp 0x401552
mov eax, 1
jmp 0x401552
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40155c
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 0x4015a9
xor eax, eax
jmp 0x40166f
push ebx
push 0x45b0a4
call fcn.0040d84c
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 0x4015f1
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.00405c3c
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.00405c3c
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 0x40165f
xor eax, eax
jmp 0x40166f
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 0x403768
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 0x40379c
mov edx, dword [eax + 8]
test edx, edx
jne 0x40378b
mov edx, dword [eax + 0x10]
mov esi, dword [eax + 0xc]
cmp ebx, esi
jb 0x403798
add edx, esi
cmp ebx, edx
jb 0x4037a9
inc ecx
add eax, 0x28
mov edx, dword [ebp + 0xc]
movzx edx, word [edx + 6]
cmp ecx, edx
jb 0x403781
xor eax, eax
pop esi
pop ebx
pop ebp
ret
Function at 0x4037e4
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 0x4037fe
xor eax, eax
jmp 0x40397e
mov ebx, dword [edi + 0x3c]
add ebx, edi
cmp dword [ebx], 0x4550
je 0x403812
xor eax, eax
jmp 0x40397e
cmp word [ebx + 0x14], 0xe0
jne 0x403822
cmp word [ebx + 0x18], 0x10b
je 0x403829
xor eax, eax
jmp 0x40397e
mov dword [0x46f36c], 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.00403768
add esp, 8
test eax, eax
jne 0x403854
xor eax, eax
jmp 0x40397e
mov edx, dword [0x46f36c]
push edx
push ebx
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004037b0
add esp, 0xc
mov ebx, dword [ebx + 0x78]
test ebx, ebx
jne 0x403886
push 0x10
push 0
push str.Error_in_GetProcAddressDirectly__
push 0
call sub.USER32.DLL_MessageBoxA
xor eax, eax
jmp 0x40397e
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 0x403950
xor esi, esi
mov eax, dword [ebp - 8]
mov edx, eax
mov dword [ebp - 0x28], edx
jmp 0x403942
mov ecx, dword [ebp - 8]
mov eax, dword [ecx]
test eax, eax
je 0x40393d
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 0x403934
mov ecx, dword [ebp - 0x1c]
movzx eax, word [ecx]
cmp esi, eax
jne 0x403929
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 0x403929
test cl, cl
je 0x40391e
mov cl, byte [eax + 1]
cmp cl, byte [edx + 1]
jne 0x403929
add eax, 2
add edx, 2
test cl, cl
jne 0x403902
jne 0x403929
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, edi
jmp 0x40397e
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 0x4038e8
inc esi
add dword [ebp - 0x28], 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x4038c0
jmp 0x40397c
xor esi, esi
mov eax, dword [ebp - 8]
jmp 0x403974
mov ecx, dword [ebx + 0x10]
add ecx, esi
cmp edx, ecx
jne 0x403970
cmp dword [eax], 0
je 0x403970
mov edx, dword [eax]
shl edx, 6
add edi, edx
mov eax, edi
jmp 0x40397e
inc esi
add eax, 4
mov ecx, dword [ebx + 0x14]
dec ecx
cmp esi, ecx
jbe 0x403957
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret