joyce8/EMBER2024-capa huggingface dataset:
Function at 0x492cf0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x4f5038]
xor eax, esp
mov dword [esp + 0x414], eax
push edi
mov edi, dword [esp + 0x424]
lea eax, [esp + 8]
push 0x410
push 0
push eax
call fcn.00496fd0
add esp, 0xc
mov dword [esp + 4], 0
lea eax, [esp + 4]
push eax
push dword [esp + 0x424]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x492d62
lea eax, [esp + 8]
push eax
push dword [esp + 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x492d7a
mov eax, dword [esp + 4]
test eax, eax
je 0x492d62
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
pop edi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.004947ff
add esp, 0x418
ret
lea edx, [esp + 8]
push esi
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x492d82
sub edx, esi
lea eax, [esp + 0xc]
sar edx, 1
mov ecx, edi
push edx
push eax
call fcn.004036d0
mov eax, dword [esp + 8]
pop esi
test eax, eax
je 0x492dae
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [esp + 0x418]
mov al, 1
pop edi
xor ecx, esp
call fcn.004947ff
add esp, 0x418
ret
Function at 0x493130
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x828]
sub esp, 0x828
push 0xffffffffffffffff
push 0x4c93e6
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4f5038]
xor eax, ebp
mov dword [ebp + 0x824], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00411530
mov ebx, eax
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x49317e
mov ecx, ebx
call fcn.0040f600
mov dword [ebp - 4], 0
mov eax, dword [0x4f65c4]
test al, 1
jne 0x4931bc
or eax, 1
mov dword [0x4f65c4], eax
mov byte [ebp - 4], 1
push 0x4c9d60
mov dword [0x4f65bc], 0
mov byte [0x4f65c0], 0
call fcn.00494f4a
add esp, 4
mov byte [ebp - 4], 0
cmp byte [0x4f65c0], 0
jne 0x493351
push 0x410
lea eax, [ebp + 0x414]
mov byte [0x4f65c0], 1
push 0
push eax
call fcn.00496fd0
add esp, 0xc
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x49322c
lea eax, [ebp + 0x414]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x493223
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x49322c
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x49322c
xor eax, eax
mov word [ebp + 0x414], ax
lea edi, [ebp + 0x414]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x493235
mov eax, dword [0x4d6bec]
mov dword [edi], eax
lea edi, [ebp + 0x414]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x493251
lea eax, [ebp + 0x414]
mov ecx, 8
mov esi, str.2345PicDesigner
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x493284
xor eax, eax
mov word [ebp + 0x414], ax
push 0x412
lea eax, [ebp]
push 0
push eax
call fcn.00496fd0
lea ecx, [ebp + 0x414]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4932a0
sub ecx, edx
sar ecx, 1
je 0x493328
push 0x207
lea eax, [ebp + 0x414]
push eax
lea eax, [ebp]
push eax
call fcn.0049cc2e
lea ecx, [ebp]
add esp, 0xc
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4932d0
sub ecx, edx
sar ecx, 1
je 0x493328
lea edi, [ebp]
add edi, 0xfffffffe
nop word [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4932f0
mov eax, dword [0x4d6bec]
mov dword [edi], eax
lea edi, [ebp]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x493310
mov ecx, 9
mov esi, str.RCPicDesigner.hzv
rep movsd dword es:[edi], dword [esi]
call fcn.0047d800
lea ecx, [ebp]
mov edx, eax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x493335
sub ecx, esi
sar ecx, 1
je 0x493351
lea eax, [ebp]
mov ecx, edx
push eax
call fcn.0047d900
mov dword [ebp - 4], 0xffffffff
test ebx, ebx
je 0x49336a
mov ecx, ebx
call fcn.0040f610
mov dword [ebp - 0x18], 0
mov eax, 0x4f65bc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x824]
xor ecx, ebp
call fcn.004947ff
lea esp, [ebp + 0x828]
pop ebp
ret
Function at 0x494290
Capabilities:
Get session user name

Disassembly:
sub esp, 0x214
mov eax, dword [0x4f5038]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, ecx
mov dword [esi], 0
cmp dword [0x4f5010], 0
jne 0x494312
push 0x20a
lea eax, [esp + 0xc]
push 0
push eax
call fcn.00496fd0
add esp, 0xc
mov dword [esp + 4], 0x104
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
lea ecx, [esp + 8]
mov word [esp + 0x20e], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4942f3
sub ecx, edx
lea eax, [esp + 8]
sar ecx, 1
push ecx
push eax
mov ecx, section..data
call fcn.004036d0
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004947ff
add esp, 0x214
ret

Function at 0x4943c0
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x4c9528
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4f5038]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x4f65c8]
test eax, eax
jle 0x494411
inc eax
mov dword [0x4f65c8], eax
mov al, 1
jmp 0x494503
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 0
xor bh, bh
mov dword [ebp - 0x14], 0
call fcn.0040c3e0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040d010
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040c460
test bl, bl
je 0x4944f3
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4944f3
push str.ImpersonateLoggedOnUser
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x10]
call eax
test eax, eax
je 0x4944ec
inc dword [0x4f65c8]
mov eax, dword [edi]
test eax, eax
je 0x494496
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov bh, 1
mov dword [edi], eax
cmp dword [0x4f5028], 0
mov dword [ebp - 0x10], 0
jne 0x4944ec
push 0x20a
lea eax, [ebp]
push 0
push eax
call fcn.00496fd0
add esp, 0xc
mov dword [ebp - 0x14], 0x104
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov ecx, 0x4f5018
mov word [ebp + 0x206], ax
lea eax, [ebp]
push eax
call fcn.004033a0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x494501
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bh
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.004947ff
lea esp, [ebp + 0x210]
pop ebp
ret
Function at 0x494530
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4f5038]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.00496fd0
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x494597
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x494580
jne 0x494597
cmp dword [esp + 8], 0
jbe 0x494597
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004947ff
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.004947ff
add esp, 0x118
ret

Function at 0x4945b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4f5038]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.00496fd0
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x494605
xor al, al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004947ff
add esp, 0x118
ret
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x114]
setae al
xor ecx, esp
call fcn.004947ff
add esp, 0x118
ret

Function at 0x494630
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4f5038]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.00496fd0
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x494685
xor al, al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004947ff
add esp, 0x118
ret
cmp dword [esp + 4], 0xa
mov ecx, dword [esp + 0x114]
setae al
xor ecx, esp
call fcn.004947ff
add esp, 0x118
ret

Function at 0x4a8e41
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a8b01
Function at 0x10001000
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode
Terminate process

Disassembly:
push ebp
push esi
push edi
sub esp, 4
push 0x10001cd4
push 0x10001cf0
call dword [sym.imp.user32.dll_FindWindowW]
test eax, eax
jne 0x10001036
push 0x10040
push 0x10001d00
push 0x10001d04
push 0
call dword [sym.imp.user32.dll_MessageBoxW]
jmp 0x10001100
mov dword [0x10002568], eax
lea ecx, [esp]
push ecx
push eax
call dword [sym.imp.user32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x100010e9
push dword [esp]
push 0
push 0x43a
call dword [sym.imp.kernel32.dll_OpenProcess]
test eax, eax
je 0x100010e9
mov ebp, eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov esi, eax
mov eax, dword [esi + 0x3c]
push pe_nt_image_headers32
push 0x1000
push dword [esi + eax + 0x50]
push 0
push ebp
call dword [sym.imp.kernel32.dll_VirtualAllocEx]
test eax, eax
je 0x100010e2
mov edi, eax
mov eax, dword [esi + 0x3c]
push 0
push dword [esi + eax + 0x50]
push esi
push edi
push ebp
call dword [sym.imp.kernel32.dll_WriteProcessMemory]
test al, al
je 0x100010d3
lea eax, [edi + 0x1111]
push 0
push 0
push edi
push eax
push 0x1000
push 0
push ebp
call dword [sym.imp.kernel32.dll_CreateRemoteThread]
test eax, eax
je 0x100010d3
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x10001100
push 0x4000
push 0
push edi
push ebp
call dword [sym.imp.kernel32.dll_VirtualFreeEx]
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0x10010
push 0x10001d00
push 0x10001d4c
push 0
call dword [sym.imp.user32.dll_MessageBoxW]
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x4058b2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4058f1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4058f1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4058f1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4058f1
cmp dword [ecx + 0x74], 0xe
jbe 0x4058f1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x407471
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x41600c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4074bc
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0040768e
test al, al
jne 0x4074b6
sub edx, 2
cmp edx, edi
jne 0x40749c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4074de
lea eax, [edi + 2]
cmp edx, eax
je 0x4074de
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004073bd
add esp, 0x10
jmp 0x4075d8
push esi
lea ecx, [ebp - 0x255]
call fcn.0040768e
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407521
push dword [ebp - 0x25c]
jmp 0x4074ce
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x40755e
cmp word [ebp - 0x226], 0
je 0x40757f
cmp word [ebp - 0x226], ax
jne 0x40755e
cmp word [ebp - 0x224], 0
je 0x40757f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004073bd
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4075cb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x407538
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4075b3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4075d8
push 0x4071ed
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040a7f0
add esp, 0x10
jmp 0x4075a8
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004021a3
leave
ret

Function at 0x4081fa
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x40820b
pop esi
ret
push ebx
push edi
push esi
call fcn.004081c3
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00409a86
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x408233
push ebx
push esi
push edi
call fcn.00403340
add esp, 0xc
push 0
call fcn.004069a2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x408603
Capabilities:
Set environment variable

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

Function at 0x408849
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410afc
push 0x410af4
push 0x40fd50
push 0x1f
call fcn.00408727
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40887d
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f120]
call esi
jmp 0x408883
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4088c7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410b0c
push 0x410b04
push 0x40fd74
push 0x21
call fcn.00408727
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4088fe
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f120]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x408906
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x410b14
push 0x410b0c
push 0x40fd88
push 0x22
call fcn.00408727
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408940
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40f120]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40160d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46d07c]
jne 0x401617
repz ret
jmp fcn.00401fa0

Function at 0x406bcc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x46d07c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040454b
and dword [ebp - 0x14], 0
cmp dword [0x46fa58], 0
mov dword [ebp - 0x18], eax
jne 0x406c7f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x406d27
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x406d27
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x46fa58], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x46fa5c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x46fa60], eax
call edi
push eax
call esi
mov dword [0x46fa68], eax
test eax, eax
je 0x406c7f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46fa64], eax
mov eax, dword [0x46fa64]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x406cd8
cmp dword [0x46fa68], ecx
je 0x406cd8
push eax
call esi
push dword [0x46fa68]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x406cd8
test ebx, ebx
je 0x406cd8
call edi
test eax, eax
je 0x406ccf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x406ccf
test byte [ebp - 8], 1
jne 0x406cd8
or dword [ebp + 0x10], 0x200000
jmp 0x406d0b
mov eax, dword [0x46fa5c]
cmp eax, dword [ebp - 0x18]
je 0x406d0b
push eax
call esi
test eax, eax
je 0x406d0b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x406d0b
mov eax, dword [0x46fa60]
cmp eax, dword [ebp - 0x18]
je 0x406d0b
push eax
call esi
test eax, eax
je 0x406d0b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46fa58]
call esi
test eax, eax
je 0x406d27
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x406d29
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040160d
leave
ret
Function at 0x10003a00
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14ac
call fcn.1000ab80
mov eax, dword [0x1001a2b8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, dword [ebp + 0xc]
mov dword [0x1001b394], eax
mov ecx, dword [ebp + 0x14]
mov dword [0x1001b390], ecx
mov edx, dword [ebp + 0x10]
mov dword [0x1001b38c], edx
mov byte [ebp - 0x408], 0
push 0x3ff
push 0
lea eax, [ebp - 0x407]
push eax
call fcn.1000aae0
add esp, 0xc
lea ecx, [ebp - 0x408]
push ecx
call fcn.10004f00
push 0x10
push 0
lea edx, [ebp - 0x818]
push edx
call fcn.1000aae0
add esp, 0xc
push 0x44
push 0
lea eax, [ebp - 0xc60]
push eax
call fcn.1000aae0
add esp, 0xc
mov dword [ebp - 0xc60], 0x44
xor ecx, ecx
mov word [ebp - 0xc30], cx
mov dword [ebp - 0xc34], 1
mov byte [ebp - 0x808], 0
push 0x3ff
push 0
lea edx, [ebp - 0x807]
push edx
call fcn.1000aae0
add esp, 0xc
mov byte [ebp - 0xc18], 0
push 0x3ff
push 0
lea eax, [ebp - 0xc17]
push eax
call fcn.1000aae0
add esp, 0xc
call section..text
movzx ecx, al
cmp ecx, 1
jne 0x10003b5b
mov byte [ebp - 0x1460], 0
push 0x7ff
push 0
lea edx, [ebp - 0x145f]
push edx
call fcn.1000aae0
add esp, 0xc
push 0x100161d0
lea eax, [ebp - 0x408]
push eax
push str.__s___s
push 0x800
lea ecx, [ebp - 0x1460]
push ecx
call fcn.1000ab5a
add esp, 0x14
lea edx, [ebp - 0x818]
push edx
lea eax, [ebp - 0xc60]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x1460]
push ecx
lea edx, [ebp - 0x408]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
jmp 0x10003bef
push 0x400
lea eax, [ebp - 0x808]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0x14ac], eax
mov ecx, 0x11
mov esi, str._s__d__c_cmd.exe__d__c_cmd.exe__d__c_IF_EXIST___s___start______s___s_
lea edi, [ebp - 0x14a8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push str.__param1
lea ecx, [ebp - 0x408]
push ecx
lea edx, [ebp - 0x408]
push edx
lea eax, [ebp - 0x808]
push eax
lea ecx, [ebp - 0x14a8]
push ecx
push 0x400
lea edx, [ebp - 0xc18]
push edx
call fcn.1000ab5a
add esp, 0x1c
lea eax, [ebp - 0x818]
push eax
lea ecx, [ebp - 0xc60]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0xc18]
push edx
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10008dfd
mov esp, ebp
pop ebp
ret

Function at 0x10003c00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov dword [0x1001b394], eax
mov ecx, dword [ebp + 0x14]
mov dword [0x1001b390], ecx
mov edx, dword [ebp + 0x10]
mov dword [0x1001b38c], edx
mov byte [0x1001b2c4], 0
mov byte [0x1001b2c5], 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x100041d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x1001b2c8], eax
mov esp, ebp
pop ebp
ret
Function at 0x10003c50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov dword [0x1001b394], eax
mov ecx, dword [ebp + 0x14]
mov dword [0x1001b390], ecx
mov edx, dword [ebp + 0x10]
mov dword [0x1001b38c], edx
mov byte [0x1001b2c4], 1
mov byte [0x1001b2c5], 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x100041d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x1001b2c8], eax
mov esp, ebp
pop ebp
ret

Function at 0x10003cd0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffec
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
and edx, 0xfffbffff
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
push 0xffffffffffffffec
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov esp, ebp
pop ebp
ret

Function at 0x10005270
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0x10]
jge 0x100052fa
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100052c0
cmp dword [ebp - 0x10], 0
jne 0x100052c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100052fa
cmp dword [ebp - 4], 0
jne 0x100052dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x100052dd
jmp 0x100052fa
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x10]
mov dword [ebp + 0xc], edx
jmp 0x10005291
mov eax, dword [ebp - 0xc]
xor ecx, ecx
cmp eax, dword [ebp + 0x10]
sete cl
mov al, cl
mov esp, ebp
pop ebp
ret