joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001e730
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10055d17
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x10071074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea esi, [edi + 4]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esi
test esi, esi
je 0x1001e77a
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, ebx
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001e786
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [edi + 0x2c]
call fcn.10006820
cmp dword [edi + 0x28], 0
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x24], eax
jne 0x1001e7f3
push 0x48
call fcn.1001f78c
mov ebx, eax
add esp, 4
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x1001e7e7
push 0x48
push 0
push ebx
call fcn.10031a30
add esp, 0xc
mov ecx, ebx
push dword [ebp + 0x14]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.1001d680
jmp 0x1001e7e9
xor eax, eax
mov ebx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
mov dword [edi + 0x28], eax
xor eax, eax
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0x10], eax
mov ecx, ebx
mov dword [ebp - 0x14], 7
sete al
lea edx, [ecx + 2]
lea eax, [eax*2 + 1]
mov dword [edi + 0x1c], eax
xor eax, eax
mov word [ebp - 0x28], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001e820
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.10006820
push 3
push 0x1005a564
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.10010e30
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1001e86f
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], eax
cmp dword [edi + 0x28], 0
je 0x1001e8be
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x1001e8be
push 0x10
xor eax, eax
mov dword [ebp - 0x40], 0
push str._______log_start
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
call fcn.10006820
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x50]
push edx
mov byte [ebp - 4], 3
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x50]
call fcn.10002c10
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x1001e8f4
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1001e8ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001e931
push edx
push ecx
call fcn.1001fb02
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test esi, esi
je 0x1001e913
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001f4ee
mov esp, ebp
pop ebp
ret 0x14
call fcn.10037731
int3
Function at 0x10026770
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10056a90
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10071074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
test edi, edi
je 0x10026937
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x10026937
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10026937
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x10026937
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 5
push 0x80000000
push edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, 0xffffffff
jne 0x1002681d
push 0x1e
push str..._src_file_utils.cc
push str.FALSE
call fcn.1004066f
add esp, 0xc
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push edi
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x10026863
push 0x24
push str..._src_file_utils.cc
push str.FALSE
call fcn.1004066f
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1c], ebx
je 0x10026897
push 0x29
push str..._src_file_utils.cc
push str._L_file_too_large__
call fcn.1004066f
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], 0
cmp eax, ecx
ja 0x100268bb
mov dword [esi + 0x10], eax
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x100268b5
mov ecx, dword [esi]
mov byte [ecx + eax], 0
jmp 0x100268c7
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.10010ea0
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push dword [ebp - 0x20]
mov ecx, esi
push 0
call fcn.10018aae
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp + 8]
jne 0x1002691c
push edi
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002bec0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10057188
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x10071074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.1001f78c
mov edi, eax
add esp, 4
test edi, edi
je 0x1002bf5d
push 1
mov dword [ebp - 4], 0
call fcn.10018eb2
add esp, 4
mov dword [edi + 4], eax
jmp 0x1002bf5f
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.1001a679
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov bl, al
mov dword [ebp - 4], 3
test edi, edi
je 0x1002bfc1
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x1002bfc1
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov byte [esi + 0x40], bl
jne 0x1002bfe4
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x1002c007
cmp byte [ebp + 0xc], 0
je 0x1002bff3
push esi
call fcn.1001921f
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x1002c013
mov esi, str.ios_base::badbit_set
jmp 0x1002c023
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.10001c10
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.10002040
push 0x1006f71c
lea eax, [ebp - 0x30]
push eax
call fcn.10030ebf
int3
Function at 0x1002ed10
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005742b
mov eax, dword fs:[0]
push eax
sub esp, 0x43c
mov eax, dword [0x10071074]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x448], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x444], eax
mov eax, dword [ebp + 0x10]
push 0x208
mov dword [ebp - 0x440], eax
lea eax, [ebp - 0x218]
push 0
push eax
mov dword [ebp - 0x43c], ebx
call fcn.10031a30
push ebx
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.100388a8
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor eax, eax
mov dword [ebp - 0x428], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1002edc0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x438]
call fcn.10006820
push 1
push 0x10068d38
lea ecx, [ebp - 0x438]
mov dword [ebp - 4], 0
call fcn.10010e30
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10031a30
mov ebx, dword [ebp - 0x424]
xor esi, esi
mov edi, dword [ebp - 0x438]
add esp, 0xc
cmp dword [ebp - 0x428], esi
jbe 0x1002ee80
nop word [eax + eax]
cmp ebx, 8
lea eax, [ebp - 0x438]
cmovae eax, edi
movzx eax, word [eax + esi*2]
mov ecx, eax
mov word [ebp + esi*2 - 0x420], ax
cmp ecx, 0x5c
je 0x1002ee54
cmp ecx, 0x2f
jne 0x1002ee77
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002ee77
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1002eec8
inc esi
cmp esi, dword [ebp - 0x428]
jb 0x1002ee30
push dword [ebp - 0x43c]
push dword [ebp - 0x440]
push dword [ebp - 0x444]
push dword [ebp - 0x448]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov esi, eax
cmp ebx, 8
jb 0x1002eed6
lea ecx, [ebx*2 + 2]
mov eax, edi
cmp ecx, 0x1000
jb 0x1002eecc
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002eef4
jmp 0x1002eecc
xor esi, esi
jmp 0x1002eea0
push ecx
push edi
call fcn.1001fb02
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001f4ee
mov esp, ebp
pop ebp
ret
call fcn.10037731
int3
Function at 0x1004c31a
Capabilities:
Set environment variable

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

Function at 0x1004cffc
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1004cf01
Function at 0x10001140
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001a5da
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.10015c8b
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x100011e6
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.10003b45
push 0x10025390
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.10007ff0
push edi
push esi
call fcn.10014a61
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10003962
mov esp, ebp
pop ebp
ret 4

Function at 0x10001820
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1001a668
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.100022b0
push dword [ebp + 0xc]
lea eax, [esp + 0x28]
push dword [ebp + 8]
push eax
call fcn.10001750
add esp, 0x24
mov dword [esp + 0x30], 0
cmp dword [eax + 0x14], 0x10
jb 0x10001891
mov eax, dword [eax]
mov dword [esp + 8], eax
mov ecx, esi
lea eax, [esp + 8]
push eax
call fcn.10003b45
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x100018ba
push dword [esp + 0xc]
call fcn.10004463
add esp, 4
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [esi], vtable.std::_System_error.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x48fdfc0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x48fe1a4
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3fb000]
push edi
or ebp, 0xffffffff
jmp 0x48fdfea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x48fdff1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fdfe0
mov eax, 1
add ebx, ebx
jne 0x48fe003
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x48fe014
jne 0x48fe033
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fe033
dec eax
add ebx, ebx
jne 0x48fe020
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x48fdff8
add ebx, ebx
jne 0x48fe02f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x48fe085
xor ecx, ecx
sub eax, 3
jb 0x48fe04b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x48fe0ba
sar eax, 1
mov ebp, eax
jmp 0x48fe056
add ebx, ebx
jne 0x48fe056
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fe024
inc ecx
add ebx, ebx
jne 0x48fe064
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x48fe024
add ebx, ebx
jne 0x48fe071
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x48fe066
jne 0x48fe082
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x48fe066
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x48fe0a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x48fe096
jmp 0x48fdfe6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x48fe0a4
add edi, ecx
jmp 0x48fdfe6
pop esi
mov edi, esi
mov ecx, 0x16cce
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x48fe0c2
cmp byte [edi], 0xaa
jne 0x48fe0c2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x48fe0c7
lea edi, [esi + 0x553000]
mov eax, dword [edi]
or eax, eax
je 0x48fe136
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x57f7cc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x57f90c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x48fe0f4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x57f910]
or eax, eax
je 0x48fe130
mov dword [ebx], eax
add ebx, 4
jmp 0x48fe111
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x48fe167
cmp al, 0xef
ja 0x48fe15a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x48fe13c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x48fe149
mov ebp, dword [esi + 0x57f914]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x48fe19b
sub esp, 0xffffff80
jmp 0x477b310
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x43b641
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
mov edx, dword [esp]
add esp, 4
add edi, 0xcc0b74b
sub edi, ecx
call fcn.0043b677
sub edi, ecx
xor dword [esi], edx
mov ecx, 0xe4955527
add ecx, ecx
mov edi, ecx
inc esi
add edi, ecx
cmp esi, ebx
jne fcn.0043b641
sub edi, 0x50b2e51c
mov ecx, edi
ret
Function at 0x1001b41
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
or dword [ebp - 0x18], 0xffffffff
mov eax, dword [0x1013dd4]
inc eax
mov dword [0x1013dd4], eax
mov eax, dword [0x1013dd4]
cmp eax, dword [0x1013e2c]
jbe 0x1001d66
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x18], 0xffffffff
jne 0x1001b7c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x10139b0], eax
mov eax, dword [0x10139b0]
sub eax, dword [ebp - 8]
mov dword [0x1013594], eax
mov eax, dword [0x1013594]
sub eax, 0x64
mov dword [0x1013594], eax
cmp dword [0x1013594], 0
jge 0x1001bab
mov eax, dword [0x1013df4]
mov dword [0x1013594], eax
jmp 0x1001bbf
fld qword [0x1013dc0]
call fcn.0100f718
inc eax
mov ecx, dword [0x1013e10]
mov dword [ecx], eax
mov eax, dword [0x1013594]
sub eax, dword [0x1013df4]
test eax, eax
je 0x1001bd8
call fcn.01001ea9
jmp 0x1001d66
and dword [0x101357c], 0
jmp 0x1001bec
mov eax, dword [0x101357c]
inc eax
mov dword [0x101357c], eax
mov eax, dword [0x1013590]
mov ecx, dword [0x101357c]
cmp ecx, dword [eax + 0x938]
jae 0x1001d64
mov dword [0x1013e34], fcn.01001ea9
mov dword [0x1013e38], 0x10038e9
mov dword [0x1013e3c], 0x10053f9
mov dword [0x1013e40], 0x1006e39
mov dword [0x1013e44], 0x1008968
mov dword [0x1013e48], 0x100a43e
mov dword [0x1013e4c], 0x100bef9
mov dword [0x1013e50], 0x100d99f
mov eax, dword [0x1013594]
sub eax, dword [0x1013df4]
mov ecx, dword [0x101357c]
add ecx, eax
mov eax, dword [0x1013590]
movzx eax, word [eax + ecx*2 + 0x20]
mov dword [0x101356c], eax
and dword [0x1013580], 0
jmp 0x1001c89
mov eax, dword [0x1013580]
inc eax
mov dword [0x1013580], eax
mov eax, dword [0x1013580]
cmp eax, dword [0x101356c]
ja 0x1001cde
mov eax, dword [0x1013584]
and eax, 0xf
mov dword [0x1013584], eax
mov eax, dword [0x1013590]
add eax, dword [0x1013584]
movzx eax, byte [eax + 0x10]
mov eax, dword [eax*4 + 0x1013e30]
inc eax
mov ecx, dword [0x1013590]
add ecx, dword [0x1013584]
movzx ecx, byte [ecx + 0x10]
mov dword [ecx*4 + 0x1013e30], eax
mov eax, dword [0x1013584]
inc eax
mov dword [0x1013584], eax
jmp 0x1001c7e
mov eax, dword [0x1013584]
dec eax
mov dword [0x1013584], eax
mov eax, dword [0x1013590]
add eax, dword [0x1013584]
movzx eax, byte [eax + 0x10]
mov eax, dword [eax*4 + 0x1013e30]
dec eax
mov ecx, dword [0x1013590]
add ecx, dword [0x1013584]
movzx ecx, byte [ecx + 0x10]
mov dword [ecx*4 + 0x1013e30], eax
mov eax, dword [0x1013590]
add eax, dword [0x1013584]
movzx eax, byte [eax + 0x10]
mov eax, dword [eax*4 + 0x1013e30]
mov al, byte [eax]
mov byte [ebp - 0x1c], al
mov eax, dword [0x1013e18]
add eax, dword [0x101357c]
mov al, byte [eax]
xor al, byte [ebp - 0x1c]
mov ecx, dword [0x1013e18]
add ecx, dword [0x101357c]
mov byte [ecx], al
mov eax, dword [0x1013584]
and eax, 0x1f0
mov dword [0x1013584], eax
jmp 0x1001be1
jmp 0x1001d76
cmp dword [0x1013dd4], 0x7a120
jb 0x1001b4b
mov eax, dword [ebp - 0x14]
leave
ret
Function at 0x10106bd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1013120
cmp edx, dword [eax]
je 0x10106df
add eax, 8
inc ecx
cmp eax, 0x10131b0
jl 0x10106d0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1013120]
jne 0x101080d
mov eax, dword [0x1013e60]
cmp eax, 1
je 0x10107e7
test eax, eax
jne 0x1010710
cmp dword [0x1013074], 1
je 0x10107e7
cmp edx, 0xfc
je 0x101080d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1010747
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.01010c70
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.01010de0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x101078a
lea eax, [ebp - 0x1a4]
push eax
call fcn.01010de0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x10123d0
push edi
call fcn.01011730
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.01010c70
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.01010c80
lea eax, [ebp - 0xa0]
push 0x10123b0
push eax
call fcn.01010c80
push dword [esi + 0x1013124]
lea eax, [ebp - 0xa0]
push eax
call fcn.01010c80
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.010116a4
add esp, 0x2c
pop edi
jmp 0x101080d
lea eax, [ebp + 8]
lea esi, [esi + 0x1013124]
push 0
push eax
push dword [esi]
call fcn.01010de0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret