joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x40a05a]
shl eax, 2
mov dword [0x40a05e], eax
push edi
push ecx
xor eax, eax
mov edi, 0x40b81c
mov ecx, 0x40c1b8
cmp ecx, edi
jbe 0x401024
sub ecx, edi
cld
rep stosb byte es:[edi], al
pop ecx
pop edi
mov edx, dword fs:[4]
mov dword [0x40a06e], edx
mov eax, dword [edx - 8]
mov dword [0x40a066], eax
mov eax, dword [edx - 4]
mov dword [0x40a06a], eax
sub edx, 4
mov dword [0x40be10], edx
sub edx, 4
cmp edx, esp
jae 0x401054
mov esp, edx
push 0
call fcn.00404466
pop ecx
push 0x40a02c
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x40a062], eax
push 0
jmp fcn.00408c74

Function at 0x406b0c
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_SetCurrentDirectoryA
dec eax
je 0x406b28
call fcn.004071e0
jmp 0x406b8e
lea edx, [ebp - 0x108]
push edx
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryA
test eax, eax
jne 0x406b44
call fcn.004071e0
jmp 0x406b8e
movsx ecx, byte [ebp - 0x108]
push ecx
call fcn.0040761c
pop ecx
cmp al, 0x41
jl 0x406b8c
cmp al, 0x5a
jg 0x406b8c
cmp byte [ebp - 0x107], 0x3a
jne 0x406b8c
mov byte [ebp - 4], 0x3d
mov byte [ebp - 3], al
lea eax, [ebp - 0x108]
mov byte [ebp - 2], 0x3a
mov byte [ebp - 1], 0
push eax
lea edx, [ebp - 4]
push edx
call sub.KERNEL32.dll_SetEnvironmentVariableA
dec eax
je 0x406b8c
call fcn.004071e0
jmp 0x406b8e
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x406c4c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0xff
mov eax, dword [ebp + 8]
push eax
push 0x40bfe4
call fcn.00406e3c
add esp, 0xc
lea edx, [ebp - 8]
push 0
push 0
push 0
push edx
push 0x40bfe4
call fcn.0040475c
add esp, 0x14
push 0x40b400
lea ecx, [ebp - 8]
push ecx
call fcn.004022d4
add esp, 8
mov byte [0x40bfe4], 0
push 0
push 0
push 0
push 0
push 0
push 0xff
push 0x40bfe4
lea eax, [ebp - 8]
push eax
call sub.KERNEL32.dll_GetVolumeInformationA
test eax, eax
je 0x406cbf
mov eax, 0x40bfe4
jmp 0x406cc1
xor eax, eax
pop ecx
pop ecx
pop ebp
ret
Function at 0x406cc8
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov ebx, dword [esi]
test byte [ebx + 8], 8
je 0x406d38
cmp dword [ebx + 4], 0xffffffff
jne 0x406d38
mov dword [esi + 8], 8
mov eax, dword [ebx + 0xc]
push eax
call fcn.00406c4c
pop ecx
mov edi, eax
test edi, edi
je 0x406d2e
add esi, 0x10
xor eax, eax
push esi
push edi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov dword [ebx + 4], 0xfffffffe
xor eax, eax
jmp 0x406df8
call fcn.004071c0
jmp 0x406df8
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
je 0x406d45
cmp eax, 0xfffffffe
jne 0x406d6c
mov dword [ebx + 4], 0xffffffff
lea edx, [ebp - 0x148]
push edx
mov ecx, dword [ebx + 0xc]
push ecx
call sub.KERNEL32.dll_FindFirstFileA
mov edi, eax
mov dword [ebx + 4], edi
cmp edi, 0xffffffff
setne al
and eax, 1
jmp 0x406d7c
lea edx, [ebp - 0x148]
push edx
mov ecx, dword [ebx + 4]
push ecx
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x406d87
call fcn.004071c0
jmp 0x406df8
mov eax, dword [ebp - 0x148]
test al, 0x16
je 0x406d9b
mov edx, dword [ebx + 8]
and edx, eax
test dl, 0x16
je 0x406d38
mov ecx, dword [ebp - 0x148]
mov dword [esi + 8], ecx
lea eax, [ebp - 8]
push eax
lea edx, [ebp - 0x134]
push edx
call sub.KERNEL32.dll_FileTimeToLocalFileTime
lea ecx, [esi + 0xc]
push ecx
lea eax, [esi + 0xe]
push eax
lea edx, [ebp - 8]
push edx
call sub.KERNEL32.dll_FileTimeToDosDateTime
mov ecx, dword [ebp - 0x128]
xor eax, eax
mov dword [esi + 4], ecx
add esi, 0x10
push esi
lea edi, [ebp - 0x11c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4072d8
call fcn.004071e0
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x4072f3
test bl, 1
je 0x4072f3
mov dword [0x40b6f4], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x407404
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test byte [ebp + 0xd], 0xc0
jne 0x407423
mov eax, dword [0x40ae80]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x407430
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x40745d
je 0x40746f
sub ecx, 0x100
je 0x40747d
sub ecx, 0x100
je 0x407484
sub ecx, 0x100
je 0x407476
jmp 0x40748b
sub ecx, 0x600
je 0x407484
sub ecx, 0x100
je 0x40746f
jmp 0x40748b
mov edi, 1
jmp 0x407490
mov edi, 2
jmp 0x407490
mov edi, 4
jmp 0x407490
mov edi, 5
jmp 0x407490
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4074b7
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x40b3fc]
test al, 0x80
je 0x4074b0
mov ebx, 0x80
jmp 0x4074c9
mov ebx, 1
jmp 0x4074c9
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4074c9
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4074db
je 0x4074e4
dec eax
je 0x4074ed
jmp 0x4074f6
mov dword [ebp - 4], 0x80000000
jmp 0x407505
mov dword [ebp - 4], 0x40000000
jmp 0x407505
mov dword [ebp - 4], 0xc0000000
jmp 0x407505
push 1
call fcn.0040717c
pop ecx
mov ebx, eax
jmp 0x4075f1
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x407521
sub eax, 0x10
je 0x407528
sub eax, 0x10
je 0x407531
sub eax, 0x10
je 0x40753a
jmp 0x40753a
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x407541
mov dword [ebp - 8], 1
jmp 0x407541
mov dword [ebp - 8], 2
jmp 0x407541
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb eax, eax
neg eax
mov dword [ebp - 0xc], eax
push 0
push ebx
push edi
push edx
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ebp - 4]
push eax
mov edx, dword [ebp + 8]
push edx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x4075aa
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x40759f
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x40759f
add ebx, 0xffffffb2
push ebx
call fcn.0040717c
pop ecx
mov ebx, eax
jmp 0x4075f1
mov edi, esi
push edi
call fcn.00407374
pop ecx
test eax, eax
je 0x4075be
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4075ca
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.00406ed8
add esp, 8
mov ebx, eax
inc eax
jne 0x4075f1
push 4
call fcn.0040717c
pop ecx
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4082c4
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.dll_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret
Function at 0x408644
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0x40b6f8], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4086fc
cmp byte [0x40a059], 0
je 0x4086b6
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x54]
push edx
call fcn.0040241c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40869f
push 0x3a
lea edx, [ebp - 0x54]
push edx
call fcn.0040241c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40869f
lea ebx, [ebp - 0x54]
jmp 0x4086a0
inc ebx
call fcn.004085fc
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.dll_MessageBoxA
jmp 0x40871d
push 0xfffffffffffffff4
call sub.KERNEL32.dll_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x40b6fc
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0040236c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.dll_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x40b6ff
push ebx
call sub.KERNEL32.dll_WriteFile
jmp 0x40871d
cmp dword [0x40b6f8], 0xffffffff
je 0x40871d
mov eax, dword [0x40b6f8]
test eax, eax
je 0x40871d
cmp byte [eax], 0
je 0x40871d
push esi
push eax
call fcn.004087ac
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405630
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
adc dword [0x698e0c11], ecx
xor bl, al
sub esi, dword [edi]
pop es
adc dword [esi + ecx*4], ecx
imul esi, dword [edx], 0x7372bd8
jb 0x405632
push es
add byte [eax + 0x6f], dh
jo 0x4056b0
xor al, byte [eax]
add byte [edx], cl
sub al, 0x28
pop es
jb 0x40563f
push es
add byte [eax + 0x6f], dh
add byte cs:[eax], al
or bl, byte [eax]
outsd dx, dword [esi]
xor eax, dword [eax]
add byte [edx], cl
adc ecx, dword [ecx]
add bh, byte [ebx + 0xa]
add byte [eax], al
add al, 0x11
or dword [esi], edx
lcall 0x346f, 0x9a170911
add byte [eax], al
or ch, byte [ebx]
add dl, byte [esi]
sub al, byte [esi]
pop ss
pop eax
or al, byte [esi]
add ecx, dword [esi - 0x29ac097]
invalid
add byte [eax + 0x28], dh
sbb byte [eax], al
add byte [edx], cl
jge 0x4056c6
add byte [eax], al
add al, 2
jnp 0x4056cc
add byte [eax], al
add al, 0x28
xor eax, 0x2d0a0000
or al, 2
jnp 0x4056d9
or ch, byte [0xd7b020c]
add byte [eax], al
add al, 0x28
add byte ss:[eax], al
or ah, byte [esi]
add bh, byte [ebx + 6]
add byte [eax], al
add al, 0x28
add byte [eax + ebp], al
and al, byte [eax]
add byte [edx], cl
sub eax, 0x77b0229
add byte [eax], al
add al, 0x6f
aaa
add byte [eax], al
or bl, byte [edi]
rdmsr
sbb al, byte [edx]
jnp 0x4056fd
add byte [eax], al
add al, 0x6f
cmp byte [eax], al
add byte [edx], cl
sub al, 0xd
add bh, byte [ebx + 8]
add byte [eax], al
add al, 0x6f
or eax, 0x87b02
add byte [edi + ebp*2], al
cmp byte [eax], al
add byte [edx], cl
sub eax, 0x22a1602
jnp 0x405719
add byte [eax], al
add al, 0x72
sysret
cmp dword [eax], eax
add byte [edx], cl
sub eax, 0x97b0211
add byte [eax], al
add al, 0x72
sysret
Function at 0x1001681
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
and dword [ebp - 4], 0
mov dword [ebp + 8], eax
mov eax, dword [eax]
push esi
lea esi, [ecx + eax + 8]
test esi, esi
jbe 0x1001707
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push dword [0x1004074]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10016f2
call ebx
cmp eax, 0x3e5
jne 0x1001700
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [0x1004074]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1001700
mov eax, dword [ebp - 8]
add dword [ebp + 8], eax
sub esi, eax
test esi, esi
ja 0x10016a9
jmp 0x1001705
call ebx
mov dword [ebp - 4], eax
pop edi
pop ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1004058], eax
mov eax, dword [ebp - 4]
pop esi
leave
ret 4

Function at 0x100171f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [esi + 0x10]
xor edi, edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push esi
push edi
sub edx, ecx
push edx
add eax, ecx
push eax
push dword [0x1004074]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001775
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3e5
je 0x1001775
call esi
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x1001782
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [esi + 0x10]
xor edi, edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp + 8]
push esi
push edi
push dword [ebp + 0x10]
push dword [eax]
push dword [0x1004090]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10017cf
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3e5
je 0x10017cf
call esi
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1001871
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
xor edi, edi
xor ebx, ebx
cmp dword [ebp + 8], edi
mov dword [ebp - 4], edi
jne 0x100188a
xor eax, eax
jmp 0x10018e6
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push 0x1001258
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10018d6
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
lea eax, [ebp + 8]
push eax
push edi
push 0x1001238
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10018d6
cmp dword [ebp + 8], 4
jne 0x10018d6
xor ebx, ebx
inc ebx
cmp dword [ebp - 4], edi
je 0x10018e4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop edi
pop ebx
leave
ret 4

Function at 0x1001a64
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
push 0
push 0x1001959
call dword [sym.imp.msvcrt.dll__beginthread]
add esp, 0xc
cmp eax, 0xffffffff
mov dword [0x1004064], eax
jne 0x1001a97
and dword [0x1004064], 0
push 0x12e
call fcn.01001903
pop ebp
ret 4

Function at 0x1001ae9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
lea eax, [ebp + 8]
push eax
push esi
push dword [0x1004090]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1001bed
cmp dword [ebp + 8], 8
jne 0x1001bed
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov edx, dword [eax]
lea ebx, [ecx + edx + 8]
cmp dword [edi + 4], ebx
jae 0x1001b45
push ebx
push eax
call dword [sym.imp.msvcrt.dll_realloc]
test eax, eax
pop ecx
pop ecx
je 0x1001bf4
mov dword [edi], eax
mov dword [edi + 4], ebx
push dword [esi + 0x10]
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [edi]
push esi
lea ecx, [ebp + 8]
push ecx
mov ecx, dword [eax + 4]
add ecx, dword [eax]
add eax, 8
push ecx
push eax
push dword [0x1004090]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1001bca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x1001bf4
mov eax, dword [esi + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [0x1004060]
push 0xffffffffffffffff
mov dword [ebp - 4], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x1001bf4
cmp dword [0x1004040], ebx
jne 0x1001bf4
push ebx
lea eax, [ebp + 8]
push eax
push esi
push dword [0x1004090]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1001bf4
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, dword [eax]
cmp dword [ebp + 8], ecx
jne 0x1001bf4
push edi
call fcn.010017dc
push 8
push esi
push edi
call fcn.01001782
neg eax
sbb eax, eax
neg eax
jmp 0x1001bf0
xor eax, eax
inc eax
test eax, eax
je 0x1001bfe
mov dword [0x1004040], 1
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1001d0b
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1004028]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
xor esi, esi
cmp dword [0x1004090], esi
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x214], 2
jne 0x1001da9
push dword [0x10040b0]
lea eax, [ebp - 0x210]
push 0x10012cc
push 0x10012ac
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push esi
push 0x40000000
push 3
push esi
push esi
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [0x1004090], eax
jne 0x1001da5
push 0x4e20
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
call ebx
mov edi, eax
cmp edi, esi
jne 0x1001daf
cmp dword [0x1004090], esi
je 0x1001d3b
jmp 0x1001daf
xor edi, edi
jmp 0x1001daf
mov edi, dword [ebp - 0x214]
mov eax, dword [0x1004090]
cmp eax, 0xffffffff
jne 0x1001dc5
mov dword [0x1004040], 1
jmp 0x1001e11
push esi
push esi
lea ecx, [ebp - 0x214]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x1001ddf
call ebx
mov edi, eax
jmp 0x1001db9
push esi
push esi
push 0x1001c0a
call dword [sym.imp.msvcrt.dll__beginthread]
add esp, 0xc
cmp eax, 0xffffffff
mov dword [0x1004068], eax
jne 0x1001e11
mov dword [0x1004068], esi
mov dword [0x1004040], 1
call dword [sym.imp.msvcrt.dll__errno]
mov edi, dword [eax]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.01002922
leave
ret
Function at 0x100218f
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x1002fbc
call fcn.01002bc8
sub esp, 0x20
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
push dword [eax]
mov dword [ebp - 4], esi
push esi
call dword [sym.imp.OLEAUT32.dll_DllRegisterServer]
mov edi, eax
cmp edi, esi
mov dword [ebp - 0x18], edi
je 0x100232e
mov eax, dword [ebx]
mov ecx, dword [eax]
lea esi, [eax + 8]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x1001228
lea ecx, [ebp - 0x14]
call fcn.01001544
push dword [ebp - 0x14]
lea ecx, [ebp + 8]
push dword [ebp - 0x18]
call fcn.010015b1
test al, al
je 0x1002204
push ebx
call fcn.01002014
jmp 0x1002319
cmp dword [0x1004094], 0
je 0x100231e
mov eax, dword [0x1004090]
cmp eax, 0xffffffff
je 0x100231e
test eax, eax
je 0x100231e
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x100406c]
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 8]
push eax
push 8
push dword [ebx]
push dword [0x1004090]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100229e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3e5
jne 0x1002317
push 0xffffffffffffffff
push dword [0x100406c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1002317
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [0x1004090]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x1002317
mov esi, dword [ebx]
xor eax, eax
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x100406c]
push eax
add esi, 8
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ebx, dword [ebx]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 8]
push eax
mov eax, dword [ebx + 4]
add eax, dword [ebx]
push eax
push esi
push dword [0x1004090]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1002325
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x3e5
jne 0x1002317
push 0xffffffffffffffff
push dword [0x100406c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1002317
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [0x1004090]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x1002325
call esi
mov dword [ebp - 0x10], eax
jmp 0x1002325
mov dword [ebp - 0x10], 0x80004005
push dword [ebp - 0x18]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x1002a3a
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001308
call fcn.01002c70
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1002a75
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002a75
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1002a8d
cmp eax, 0x20b
je 0x1002a7a
mov dword [ebp - 0x1c], edi
jmp 0x1002aa1
cmp dword [ecx + 0x84], 0xe
jbe 0x1002a75
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1002a9b
cmp dword [ecx + 0x74], 0xe
jbe 0x1002a75
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x10040c8], 0xffffffff
or dword [0x10040cc], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x10040c0]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x10040bc]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x10040c4], eax
call fcn.01002c68
cmp dword [0x1004030], edi
jne 0x1002afc
push fcn.01002c68
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01002c51
push 0x100401c
push 0x1004018
call sub.msvcrt.dll__initterm
mov eax, dword [0x10040b8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x10040b4]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x34], eax
push 0x1004014
push section..data
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___winitenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.010025d2
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x1002b73
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1002ba8
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01002cab
ret