joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56104c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5f5ea4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x5d7fe4
push esi
call fcn.0056dead
pop ecx
pop ecx
test eax, eax
jne 0x56107a
xor al, al
jmp 0x5610f7
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00560d8f
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x5610b4
push dword [ebp - 0x210]
call fcn.0055224a
xor al, al
jmp 0x5610f5
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x5610ba
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x5610da
push edx
call fcn.00560f82
pop ecx
test al, al
je 0x5610a5
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x5610e8
mov bl, 1
push dword [ebp - 0x210]
call fcn.0055224a
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005368a5
leave
ret
Function at 0x569ba7
Capabilities:
Read file on windows

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

Function at 0x569bb2
Capabilities:
Read file on windows

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

Function at 0x56a08e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5d97c8
push 0x5d97c0
push str.FlsAlloc
push 0x1e
call fcn.00569ebb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x56a0c2
push dword [ebp + 8]
mov ecx, esi
call dword [0x5805c4]
call esi
jmp 0x56a0c8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x56a10c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5d97d8
push 0x5d97d0
push str.FlsGetValue
push 0x20
call fcn.00569ebb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x56a143
push dword [ebp + 8]
mov ecx, esi
call dword [0x5805c4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x56a6b9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x5fc3d8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x56a6f9
cmp byte [ebx], 0xa
jne 0x56a6f9
or byte [eax + edi + 0x28], 4
jmp 0x56a6fe
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x56a7fc
mov al, byte [edx]
cmp al, 0x1a
je 0x56a7de
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x56a72d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x56a752
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x56a75c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x56a70f
jmp 0x56a7fc
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x56a7d9
cmp dword [ebp - 0xc], 0
je 0x56a7d9
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x5fc3d8]
test byte [eax + edi + 0x28], 0x48
je 0x56a7b3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x56a79e
mov byte [esi], dl
jmp 0x56a7af
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5fc3d8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x56a7fc
cmp byte [ebp - 1], 0xa
jne 0x56a7c2
cmp esi, ebx
jne 0x56a7c2
mov byte [esi], 0xa
jmp 0x56a7fb
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0056b21f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x56a7fc
mov byte [esi], 0xd
jmp 0x56a7fb
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x5fc3d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x56a7f8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x56a7fc
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x56a805
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x5fc3d8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x56a848
cmp word [esi], dx
jne 0x56a848
or byte [edi + eax + 0x28], 4
jmp 0x56a84d
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x56a986
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x56a966
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x56a88f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x56a8c5
cmp eax, edx
jae 0x56a8d1
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x56a867
jmp 0x56a986
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x56a962
cmp dword [ebp - 0x14], 0
je 0x56a962
mov eax, dword [ebx*4 + 0x5fc3d8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x56a93a
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x56a980
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x5fc3d8]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x5fc3d8]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x5fc3d8]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x56a983
pop ebx
cmp word [ebp - 4], bx
jne 0x56a94b
cmp esi, dword [ebp + 0xc]
jne 0x56a94b
mov word [esi], bx
jmp 0x56a983
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0056b21f
add esp, 0x10
cmp word [ebp - 4], bx
je 0x56a986
push 0xd
jmp 0x56a97f
mov ecx, dword [ebx*4 + 0x5fc3d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x56a97d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x56a986
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x570a3e
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5f5ea4]
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 0x570a89
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00570bdd
test al, al
jne 0x570a83
sub edx, 2
cmp edx, edi
jne 0x570a69
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x570aab
lea eax, [edi + 2]
cmp edx, eax
je 0x570aab
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0057098a
add esp, 0x10
jmp 0x570ba5
push esi
lea ecx, [ebp - 0x255]
call fcn.00570bdd
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 0x570aee
push dword [ebp - 0x25c]
jmp 0x570a9b
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 0x570b2b
cmp word [ebp - 0x226], 0
je 0x570b4c
cmp word [ebp - 0x226], ax
jne 0x570b2b
cmp word [ebp - 0x224], 0
je 0x570b4c
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0057098a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x570b98
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x570b05
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x570b80
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x570ba5
push 0x5707ba
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0055f2c0
add esp, 0x10
jmp 0x570b75
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.005368a5
leave
ret
Function at 0x5714c9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x571566
push ebx
push esi
call fcn.00571492
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0056fcbf
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x571513
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x571565
push edi
push eax
call fcn.0056b570
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x571533
call fcn.0056822f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x571564
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0056fcbf
add esp, 0x20
test eax, eax
jne 0x571552
push edi
call fcn.0056822f
jmp 0x57155a
push ebx
call fcn.0056822f
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x571569
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x57157a
pop esi
ret
push ebx
push edi
push esi
call fcn.00571492
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0056b570
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5715a2
push ebx
push esi
push edi
call fcn.0054e3c0
add esp, 0xc
push 0
call fcn.0056822f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x571cee
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00571815
Function at 0x5785f7
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00578573
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x57876f
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x57876f
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x57871e
jg 0x578650
test eax, eax
je 0x578714
push 1
push 0x1000
call fcn.00569bbd
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x578676
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x57870b
push 0x8000
push ebx
call fcn.005606fa
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5786a2
jg 0x57869d
cmp ecx, 0x1000
jb 0x5786a2
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00569298
add esp, 0x10
cmp eax, 0xffffffff
je 0x5786e7
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x57869d
jl 0x5786ce
test ecx, ecx
jne 0x57868f
push dword [ebp - 0xc]
push ebx
call fcn.005606fa
push esi
call fcn.0056822f
add esp, 0xc
xor edi, edi
jmp 0x578780
cmp byte [edi + 0x24], 0
je 0x5786fe
cmp dword [edi + 0x20], 5
jne 0x5786fe
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x578709
mov edi, dword [edi + 0x18]
jmp 0x57870b
xor edi, edi
push esi
call fcn.0056822f
pop ecx
jmp 0x578780
test ecx, ecx
jg 0x5786e0
jl 0x57871e
test eax, eax
jae 0x5786e0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0056b21f
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x578741
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x5786e0
jmp 0x578778
push ebx
call fcn.0056dabb
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5786e0
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x578780
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x57877d
mov edi, dword [edi + 0x18]
jmp 0x578780
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0056b21f
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x403e59
pop dword [ebp - 8]
mov eax, 0xa4b7eaaf
sub eax, 0xa477ac56
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0x5ec628f7
add dword [ebp - 0x18], 0xef8c1c54
mov dword [ebp - 0x14], 0x53ba403d
sub dword [ebp - 0x14], 0x2186f3f8
mov dword [ebp - 0x10], 0x327b52d0
sub dword [ebp - 0x10], 0xe62f0ea2
mov dword [ebp - 0xc], 0x39c44504
add dword [ebp - 0xc], 0xc63bbafc
lea eax, [ebp - 0x18]
push eax
mov eax, 0x7a8790c8
sub eax, 0x7a47103c
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x89519017
add dword [ebp - 0x18], 0xeb20d93f
mov dword [ebp - 0x14], 0xae586496
sub dword [ebp - 0x14], 0x6cec0321
mov dword [ebp - 0x10], 0x8af2cf51
add dword [ebp - 0x10], 0xd87c9d1b
mov dword [ebp - 0xc], 0xe46dea55
sub dword [ebp - 0xc], 0xe46dea55
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, 0x5be9e6a7
sub eax, 0x5ba965d3
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x35215
push 0
call eax
mov ecx, 0x4188
xor ebx, ebx
add ebx, eax
mov edx, 0x177e726c
add edx, 0xe8c29d94
add edx, dword [ebp - 8]
mov edi, 0x441d214e
add edi, 0x201f11fe
xor dword [ebp - 4], edx
mov esi, dword [edx]
add dword [ebp - 4], esi
sub esi, edi
xor dword [ebp - 4], 0xc4745825
mov dword [ebx], esi
add dword [ebp - 4], ecx
add ebx, 0x4ab00fe8
sub ebx, 0x4ab00fe4
add edx, 4
loop 0x403f77
add eax, 0xf8f3
xor ebx, ebx
add ebx, eax
add eax, 0x82feb726
sub eax, 0x82feb721
mov ecx, 0x54a49310
add ecx, 0xab9b6cf0
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x401020
Capabilities:
Query or enumerate registry value

Disassembly:
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jne 0x401033
push 0x80004005
call fcn.00401000
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test esi, esi
je 0x40109a
mov ecx, dword [edi]
test ecx, ecx
jbe 0x401097
mov edx, dword [esp + 0x14]
test edx, edx
jbe 0x401092
cmp edx, 2
jbe 0x40108b
cmp edx, 7
jne 0x401092
cmp ecx, 1
jb 0x401092
cmp byte [ecx + esi - 1], 0
jne 0x401092
cmp ecx, 1
jbe 0x40109a
cmp byte [ecx + esi - 2], 0
jmp 0x401090
cmp byte [ecx + esi - 1], 0
je 0x40109a
mov eax, 0xd
mov byte [esi], 0
pop esi
pop edi
ret 0xc

Function at 0x4010a0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x364
mov eax, dword [0x40d040]
xor eax, esp
mov dword [esp + 0x360], eax
push ebx
push esi
mov esi, dword [esp + 0x378]
push edi
lea eax, [esp + 0xc]
push eax
push 0x2001f
xor edi, edi
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
xor ebx, ebx
push 0x80000002
mov dword [esp + 0x24], 0x100
mov dword [esp + 0x28], ebx
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x40115f
mov ebx, dword [esp + 0xc]
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], 0x3c
mov dword [esp + 0x30], 0x4000100
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], str.open
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], 5
mov dword [esp + 0x4c], edi
mov dword [esp + 0x64], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp ebx, edi
je 0x401143
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x36c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004012d3
add esp, 0x364
ret 0x10
lea ecx, [esp + 0x10]
push ecx
push edi
lea edx, [esp + 0x74]
push edx
lea ecx, [esp + 0x20]
call fcn.00401020
test eax, eax
jne 0x4010f5
push 0x44
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.004012f0
push esi
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x180]
push str._s__s
push edx
mov dword [esp + 0x44], 0x44
call fcn.00401258
add esp, 0x1c
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
lea edx, [esp + 0x18c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
jmp 0x401143

Function at 0x4012d3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40d040]
jne 0x4012dd
repz ret
jmp fcn.00402771
Function at 0x401748
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x401765
xor eax, eax
leave
ret
cmp dword [ebp - 4], 0x1000000
jne 0x401761
mov ecx, dword [ebp - 0x18]
cmp word [ecx], 0x5a4d
jne 0x401761
mov eax, dword [ecx + 0x3c]
test eax, eax
jle 0x401761
mov edx, dword [ebp - 0x10]
add edx, 0xffffff08
cmp eax, edx
ja 0x401761
add eax, ecx
cmp dword [eax], 0x4550
jne 0x401761
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
mov ecx, dword [eax + 0x50]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
mov eax, dword [eax + 0x58]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
xor eax, eax
inc eax
leave
ret

Function at 0x402c8b
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x40d1e0]
je 0x402ca6
inc edi
cmp edi, 0x17
jb 0x402c97
cmp edi, 0x17
jae 0x402e26
push ebp
push 3
call fcn.00407025
cmp eax, 1
pop ecx
je 0x402df2
push 3
call fcn.00407025
test eax, eax
pop ecx
jne 0x402cda
cmp dword [0x40d050], 1
je 0x402df2
cmp ebx, 0xfc
je 0x402e25
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x40e340
push ebp
call fcn.00404cb0
add esp, 0xc
test eax, eax
je 0x402d10
push esi
push esi
push esi
push esi
push esi
call fcn.004025d2
add esp, 0x14
push 0x104
mov esi, 0x40e359
push esi
push 0
mov byte [0x40e45d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402d54
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00404cb0
add esp, 0xc
test eax, eax
je 0x402d54
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004025d2
add esp, 0x14
push esi
call fcn.00404d20
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x402d99
push esi
call fcn.00404d20
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x40e654
push 0x40a894
sub ecx, eax
push ecx
push eax
call fcn.00406f72
add esp, 0x14
test eax, eax
je 0x402d99
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004025d2
add esp, 0x14
jmp 0x402d9b
xor esi, esi
push 0x40a890
push ebx
push ebp
call fcn.00406f01
add esp, 0xc
test eax, eax
je 0x402dbb
push esi
push esi
push esi
push esi
push esi
call fcn.004025d2
add esp, 0x14
push dword [edi*8 + 0x40d1e4]
push ebx
push ebp
call fcn.00406f01
add esp, 0xc
test eax, eax
je 0x402ddd
push esi
push esi
push esi
push esi
push esi
call fcn.004025d2
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00406d44
add esp, 0xc
jmp 0x402e25
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x402e25
cmp ebp, 0xffffffff
je 0x402e25
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x40d1e4]
push dword [esi]
call fcn.00404d20
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x406d44
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004037e3
xor ebx, ebx
cmp dword [0x40e984], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x406e1a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x406efa
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x406efa
push eax
call fcn.00403775
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40e984], eax
call esi
push eax
call fcn.00403775
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40e988], eax
call esi
push eax
call fcn.00403775
mov dword [0x40e98c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00402a18
test eax, eax
pop ecx
pop ecx
je 0x406de8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004025d2
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x406e1a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00403775
cmp eax, ebx
pop ecx
mov dword [0x40e994], eax
je 0x406e1a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403775
pop ecx
mov dword [0x40e990], eax
mov eax, dword [0x40e990]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x406e9f
cmp dword [0x40e994], ecx
je 0x406e9f
push eax
call fcn.004037ec
push dword [0x40e994]
mov esi, eax
call fcn.004037ec
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x406e9f
cmp edi, ebx
je 0x406e9f
call esi
cmp eax, ebx
je 0x406e6c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406e6c
test byte [ebp - 0x18], 1
jne 0x406e9f
lea eax, [ebp - 0x10]
push eax
call fcn.00402a4f
test eax, eax
pop ecx
je 0x406e87
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004025d2
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x406e96
or dword [ebp + 0x10], 0x200000
jmp 0x406eda
or dword [ebp + 0x10], 0x40000
jmp 0x406eda
mov eax, dword [0x40e988]
cmp eax, dword [ebp - 8]
je 0x406eda
push eax
call fcn.004037ec
cmp eax, ebx
pop ecx
je 0x406eda
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x406eda
mov eax, dword [0x40e98c]
cmp eax, dword [ebp - 8]
je 0x406eda
push eax
call fcn.004037ec
cmp eax, ebx
pop ecx
je 0x406eda
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40e984]
call fcn.004037ec
cmp eax, ebx
pop ecx
je 0x406efa
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406efc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret