joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x1196344
call fcn.0040121c
mov edi, 0x94
mov eax, edi
call fcn.004011dc
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x1196344], ecx
mov eax, dword [esi + 4]
mov dword [0x1196348], eax
mov edx, dword [esi + 8]
mov dword [0x119634c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x1196350], esi
cmp ecx, 2
je 0x401060
or esi, 0x8000
mov dword [0x1196354], esi
shl eax, 8
add eax, edx
mov dword [0x1196344], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40109b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40109b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4010b3
cmp eax, 0x20b
je 0x4010a0
mov dword [ebp - 0x1c], esi
jmp 0x4010c7
cmp dword [ecx + 0x84], 0xe
jbe 0x40109b
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4010c1
cmp dword [ecx + 0x74], 0xe
jbe 0x40109b
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00401224
pop ecx
test eax, eax
jne 0x4010f3
cmp dword [0x1196344], 1
jne 0x4010e0
call fcn.00401224
push 0x1c
call fcn.00401224
push 0xff
call fcn.00401224
pop ecx
pop ecx
call fcn.00401224
mov dword [ebp - 4], esi
call fcn.00401224
test eax, eax
jge 0x40110c
push 0x1b
call fcn.00401224
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1196344], eax
call fcn.00401224
mov dword [0x1196348], eax
call fcn.00401224
test eax, eax
jge 0x401132
push 8
call fcn.00401224
pop ecx
call fcn.00401224
test eax, eax
jge 0x401143
push 9
call fcn.00401224
pop ecx
push 1
call fcn.00401224
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x401159
push eax
call fcn.00401224
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00401224
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40117a
movzx eax, word [ebp - 0x40]
jmp 0x40117d
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401228
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40119b
push edi
call fcn.00401220
call fcn.00401224
jmp 0x4011cd
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00401224
ret

Function at 0x401228
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push esi
push edi
push ebx
lea eax, [ebp - 4]
push eax
push 0x40
push 0x1cf000
push section..rdata
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x401252
push 0xfc837c
jmp 0x40125e
pop ebx
pop edi
pop esi
leave
ret 0x14
ret
Function at 0x4032d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov dword [ebp - 8], 0
cmp dword [ebp + 0xc], 0
je 0x4032f3
cmp dword [ebp + 0x10], 0
je 0x4032f3
call fcn.00404730
test eax, eax
jne 0x4032fb
mov eax, dword [ebp - 8]
jmp 0x4033ba
mov byte [ebp - 0x18], 0x7b
mov byte [ebp - 0x17], 0x25
mov byte [ebp - 0x16], 0x64
mov byte [ebp - 0x15], 0x7c
mov byte [ebp - 0x14], 0x25
mov byte [ebp - 0x13], 0x73
mov byte [ebp - 0x12], 0x7c
mov byte [ebp - 0x11], 0x25
mov byte [ebp - 0x10], 0x73
mov byte [ebp - 0xf], 0x7d
mov byte [ebp - 0xe], 0
call fcn.00404650
mov esi, dword [eax + 8]
call fcn.00404650
mov eax, dword [eax + 4]
lea ecx, [esi + eax + 0xa]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.004077d0
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4033b7
call fcn.00404650
mov eax, dword [eax + 0xc]
push eax
call fcn.00404650
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.004016e0
mov edx, dword [eax + 0x14c]
call edx
add esp, 0x14
cmp eax, 0xffffffff
je 0x4033a5
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0040bb10
add esp, 4
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov dword [ebp - 8], 1
cmp dword [ebp - 8], 0
jne 0x4033b7
mov edx, dword [ebp - 4]
push edx
call fcn.00407700
add esp, 4
mov eax, dword [ebp - 8]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405920
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov dword [ebp - 0x10], 0
cmp dword [ebp + 8], 0
je 0x405946
cmp dword [ebp + 0xc], 0
je 0x405946
cmp dword [ebp + 0x10], 0
je 0x405946
cmp dword [ebp + 0x14], 0
jne 0x40594e
mov eax, dword [ebp - 0x10]
jmp 0x405a7a
mov eax, dword [ebp + 0xc]
push eax
call fcn.004077d0
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x405a77
mov byte [ebp - 1], 0
mov byte [ebp - 2], 0
mov dword [ebp - 8], 0
jmp 0x405981
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0xc]
jae 0x405a56
movzx eax, byte [ebp - 1]
add eax, 1
and eax, 0x800000ff
jns 0x4059a2
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
movzx ecx, byte [eax + ecx]
movzx edx, byte [ebp - 2]
add ecx, edx
and ecx, 0x800000ff
jns 0x4059c8
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [ebp - 2], cl
mov byte [ebp - 3], 0
movzx eax, byte [ebp - 1]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov al, byte [edx + eax]
mov byte [ebp - 3], al
movzx ecx, byte [ebp - 2]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
movzx edx, byte [ebp - 1]
mov esi, dword [ebp + 0x10]
mov esi, dword [esi]
mov al, byte [eax + ecx]
mov byte [esi + edx], al
movzx ecx, byte [ebp - 2]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dl, byte [ebp - 3]
mov byte [eax + ecx], dl
movzx eax, byte [ebp - 1]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [edx + eax]
movzx ecx, byte [ebp - 2]
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
movzx ecx, byte [edx + ecx]
add eax, ecx
and eax, 0x800000ff
jns 0x405a2f
dec eax
or eax, 0xffffff00
inc eax
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
movzx eax, byte [edx]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x14]
movzx edx, byte [edx + ecx]
xor eax, edx
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 8]
mov byte [ecx], al
jmp 0x405978
mov edx, dword [ebp + 0x10]
mov al, byte [ebp - 1]
mov byte [edx + 4], al
mov ecx, dword [ebp + 0x10]
mov dl, byte [ebp - 2]
mov byte [ecx + 5], dl
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov dword [ebp - 0x10], 1
mov eax, dword [ebp - 0x10]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406ce0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0xffffffff
cmp dword [ebp + 8], 0
je 0x406d4c
mov eax, dword [ebp + 8]
push eax
call fcn.0040bb10
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x406d4c
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 0x10], 0
je 0x406d4c
mov ecx, dword [ebp - 8]
shr ecx, 8
mov edx, dword [ebp - 0xc]
movsx eax, byte [edx]
xor eax, dword [ebp - 8]
and eax, 0xff
xor ecx, dword [eax*4 + 0x415930]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
jmp 0x406d0e
mov eax, dword [ebp - 8]
xor eax, 0xffffffff
mov esp, ebp
pop ebp
ret

Function at 0x406d60
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0xffffffff
cmp dword [ebp + 8], 0
je 0x406dcc
mov eax, dword [ebp + 8]
push eax
call fcn.0040bb40
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x406dcc
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 0x10], 0
je 0x406dcc
mov ecx, dword [ebp - 8]
shr ecx, 8
mov edx, dword [ebp - 0xc]
movzx eax, word [edx]
xor eax, dword [ebp - 8]
and eax, 0xff
xor ecx, dword [eax*4 + 0x415930]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
add ecx, 2
mov dword [ebp - 0xc], ecx
jmp 0x406d8e
mov eax, dword [ebp - 8]
xor eax, 0xffffffff
mov esp, ebp
pop ebp
ret

Function at 0x406de0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov dword [ebp - 8], 0xffffffff
cmp dword [ebp + 8], 0
je 0x406e50
cmp dword [ebp + 0xc], 0
je 0x406e50
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0xc]
sub edx, 1
mov dword [ebp + 0xc], edx
cmp dword [ebp - 0x10], 0
je 0x406e50
mov eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov byte [ebp - 1], cl
mov esi, dword [ebp - 8]
shr esi, 8
movzx edx, byte [ebp - 1]
push edx
call fcn.0040c530
add esp, 4
movsx eax, al
xor eax, dword [ebp - 8]
and eax, 0xff
xor esi, dword [eax*4 + 0x415930]
mov dword [ebp - 8], esi
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
jmp 0x406e00
mov eax, dword [ebp - 8]
xor eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406e60
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov dword [ebp - 8], 0xffffffff
cmp dword [ebp + 8], 0
je 0x406ed2
cmp dword [ebp + 0xc], 0
je 0x406ed2
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp + 0xc]
sub edx, 1
mov dword [ebp + 0xc], edx
cmp dword [ebp - 0x10], 0
je 0x406ed2
mov eax, dword [ebp - 0xc]
mov cx, word [eax]
mov word [ebp - 2], cx
mov esi, dword [ebp - 8]
shr esi, 8
movzx edx, word [ebp - 2]
push edx
call fcn.0040c560
add esp, 4
movzx eax, ax
xor eax, dword [ebp - 8]
and eax, 0xff
xor esi, dword [eax*4 + 0x415930]
mov dword [ebp - 8], esi
mov ecx, dword [ebp - 0xc]
add ecx, 2
mov dword [ebp - 0xc], ecx
jmp 0x406e80
mov eax, dword [ebp - 8]
xor eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406ee0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov dword [ebp - 0xc], 0xffffffff
cmp dword [ebp + 8], 0
je 0x406f60
mov eax, dword [ebp + 8]
push eax
call fcn.0040bb10
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x406f60
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 0x14], 0
je 0x406f60
mov ecx, dword [ebp - 0x10]
mov dl, byte [ecx]
mov byte [ebp - 1], dl
mov esi, dword [ebp - 0xc]
shr esi, 8
movzx eax, byte [ebp - 1]
push eax
call fcn.0040c530
add esp, 4
movsx ecx, al
xor ecx, dword [ebp - 0xc]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x415930]
mov dword [ebp - 0xc], esi
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
jmp 0x406f0f
mov eax, dword [ebp - 0xc]
xor eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406f70
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov dword [ebp - 0xc], 0xffffffff
cmp dword [ebp + 8], 0
je 0x406ff2
mov eax, dword [ebp + 8]
push eax
call fcn.0040bb40
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x406ff2
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 0x14], 0
je 0x406ff2
mov ecx, dword [ebp - 0x10]
mov dx, word [ecx]
mov word [ebp - 2], dx
mov esi, dword [ebp - 0xc]
shr esi, 8
movzx eax, word [ebp - 2]
push eax
call fcn.0040c560
add esp, 4
movzx ecx, ax
xor ecx, dword [ebp - 0xc]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x415930]
mov dword [ebp - 0xc], esi
mov edx, dword [ebp - 0x10]
add edx, 2
mov dword [ebp - 0x10], edx
jmp 0x406f9f
mov eax, dword [ebp - 0xc]
xor eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x30031521
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x30053c20]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x7ff
push eax
call fcn.300281b3
add esp, 0x10
lea eax, [ebp - 0x804]
push eax
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.300123d7
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1004c83
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.01002df0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1004ce9
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x10062b8]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x1004ced
xor eax, eax
jmp 0x1004cfa
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401005
Capabilities:
Access peb ldr_data

Disassembly:
push 0
push 2
push 0x403071
push 0x403053
call dword [sym.imp.Winmm.dll_mciSendStringA]
cmp eax, 0x107
je 0x401021
ret
mov edi, edi
mov esi, 0x402058
mov edi, esi
push 1
push 0x40308f
push 1
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateSemaphoreW]
mov edx, eax
pop ebx
mov ecx, 0x340
mov al, byte [esi]
sub al, bl
stosb byte es:[edi], al
inc esi
loop 0x401045
push dword fs:[0x30]
mov eax, dword [esp]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
cmp word [eax], 0x5a4d
je 0x40106b
xor eax, eax
mov dword [0x4030a2], eax
add esp, 4
ret
Function at 0x10002e60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x10003490
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0x40
push 0x1000
push 0x6065e
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
push 0x6065e
push 0x10034578
push eax
call fcn.10024dc0
add esp, 0xc
lea edi, [ebp - 0x28]
push esi
push edi
call fcn.10003b90
add esp, 8
push edi
call fcn.100034d0
add esp, 4
test eax, eax
jne 0x10002ee0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
call fcn.1000f7c0
add esp, 0xc
jmp 0x10002ed0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x10], 0
push 0x10094be0
push 0x10034568
push edi
push 0x2b
push 0x1003453c
call fcn.10033470
add esp, 0x14
ud2
Function at 0x1000aa40
Capabilities:
Get system information on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x3c
xorps xmm0, xmm0
call 0x1000aa4f
pop edi
lea eax, [esp + 0x18]
mov dword [esp + 0x38], 0
movups xmmword [esp + 0x28], xmm0
movups xmmword [esp + 0x18], xmm0
push eax
call sub.KERNEL32.dll_GetSystemInfo
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x1000aaef
mov ecx, dword [esp + 0x54]
xor edx, edx
mov ebx, dword [esp + 0x5c]
mov ebp, dword [esp + 0x50]
mov eax, ecx
div esi
lea eax, [esi + ecx]
sub eax, edx
test edx, edx
cmove eax, ecx
test eax, eax
cmove eax, esi
test ebx, ebx
mov dword [esp + 4], eax
je 0x1000aad7
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x10], 0
mov dword [esp], 0
mov dword [esp + 8], 0
xor edx, edx
mov dword [esp + 0xc], 0
mov eax, dword [ecx]
lea ebp, [ecx + ebx*8]
mov ebx, dword [ecx + 4]
mov esi, dword [eax*4 + 0x1000aca4]
xor eax, eax
add esi, edi
jmp esi
mov ebx, dword [esp + 4]
xor ecx, ecx
xor edx, edx
xor esi, esi
mov dword [esp + 8], 0
test dl, dl
je 0x1000aaf9
jmp 0x1000ab06
push 0x10099fa4
call fcn.10033600
mov eax, 1
test cl, cl
je 0x1000ac1d
mov dword [ebp + 4], 7
jmp 0x1000ac92
test esi, esi
je 0x1000ac2a
mov dword [ebp + 4], 8
jmp 0x1000ac92
push eax
push 0x3000
push ebx
push dword [esp + 0x14]
call sub.KERNEL32.dll_VirtualAlloc
test eax, eax
je 0x1000ac47
mov dword [ebp], 1
jmp 0x1000ac7b
call fcn.10014590
mov dword [ebp + 4], 0xa
jmp 0x1000ac8f
mov dword [ebp + 8], eax
mov dword [ebp + 0xc], ebx
jmp 0x1000ac99
mov dword [ebp + 8], eax
mov dword [ebp], 2
mov eax, ebp
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000ede0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x1000f3a0
lea eax, [ebp - 0x18]
mov ebx, dword [ebp + 0x10]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0x100bc059]
push 4
push 8
call fcn.10004d60
add esp, 8
test eax, eax
je 0x1000eec2
mov esi, eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [esi], ebx
mov dword [esi + 4], ecx
push 0
push 0x10000
push esi
push 0x1000ef40
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1000ee5d
mov dword [edi + 4], eax
mov byte [edi], 4
jmp 0x1000eeaf
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x24], eax
push eax
mov dword [ebp - 0x20], ecx
call dword [ecx]
add esp, 4
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp + 8]
mov eax, dword [ecx + 4]
test eax, eax
je 0x1000ee94
push dword [ecx + 8]
push eax
push dword [ebp - 0x24]
call fcn.10004d70
add esp, 0xc
push 4
push 8
push dword [ebp - 0x28]
call fcn.10004d70
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [edi], 0
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push 8
push 4
call fcn.10032fc0
add esp, 8
ud2
Function at 0x10011f50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x10011f94
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x10011f9a
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x10011fd6
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x10011ff8
test eax, eax
js 0x10011fe2
mov eax, dword [esp + 0xc]
mov bl, 4
jmp 0x10011feb
xor ebx, ebx
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
mov byte [esi], bl
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x1009c260
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.1000c3d0
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.1000cfb0
mov ecx, 7
int 0x29
ud2
Function at 0x10012880
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x43c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x10012ce0
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov esi, 0x200
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x2c], 2
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], ecx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x20], 0
mov eax, dword [eax + 4]
mov dword [ebp - 0x38], eax
cmp esi, 0x201
jae 0x10012910
jmp 0x100128fe
jbe 0x10012999
cmp esi, 0x201
jae 0x10012910
mov dword [ebp - 0x30], 0x200
lea ebx, [ebp - 0x448]
mov edi, esi
jmp 0x10012941
mov edi, dword [ebp - 0x34]
sub esi, edi
je 0x10012935
mov dword [ebp - 0x10], 0
push esi
push edi
lea eax, [ebp - 0x28]
push eax
call fcn.10032e10
add esp, 0xc
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push ebx
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x10012968
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100129fc
cmp esi, edi
jne 0x100128f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10012a1b
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x100128fe
jmp 0x10012910
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x10], 0
cmp esi, eax
ja 0x10012a38
lea eax, [ebp - 0x48]
push esi
push ebx
push eax
call fcn.10010620
add esp, 0xc
movsd xmm0, qword [ebp - 0x48]
mov esi, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x40]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x100129e6
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.10004d70
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x43c
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov byte [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi], 0x80000000
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x100129d6
jmp 0x100129e6
mov dword [ebp - 0x10], 0
push 0x1009c6bc
push 0x28
push str.internal_error:_entered_unreachable_code
call fcn.10033190
add esp, 0xc
jmp 0x10012a47
push 0x1009c684
push eax
push esi
call fcn.10033510
add esp, 0xc
ud2