joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4034f9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x4128c0]
push edi
jae 0x4036ce
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x4128e0]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x4036ce
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x4035a4
test dl, 2
jne 0x4035a4
test dl, 0x48
je 0x40356e
cmp byte [eax + 5], 0xa
je 0x40356e
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4035b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x40359f
mov dword [0x41141c], ecx
jmp 0x4036d5
cmp eax, 0x6d
jne 0x4035ab
xor eax, eax
jmp 0x4036e2
push eax
call fcn.004050dd
pop ecx
jmp 0x4036df
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x4036c9
test eax, eax
je 0x4035de
cmp byte [ebx], 0xa
jne 0x4035de
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4035e7
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x4036c3
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x4036b3
cmp al, 0xd
je 0x403619
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x4036a5
dec ecx
cmp dword [ebp - 8], ecx
jae 0x403633
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x40362e
add dword [ebp - 8], 2
jmp 0x403687
mov dword [ebp - 8], eax
jmp 0x4036a1
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40365b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4036a1
cmp dword [ebp - 0x10], 0
je 0x4036a1
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x40367c
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x403687
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4036a4
cmp ebx, dword [ebp + 0xc]
jne 0x40368c
cmp byte [ebp - 1], 0xa
jne 0x40368c
mov byte [ebx], 0xa
jmp 0x4036a4
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004036e7
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4036a5
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x4035fd
jmp 0x4036c3
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4036c3
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x4036e2
and dword [0x41141c], 0
mov dword [0x411418], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403de2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x403e02
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004050dd
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x403e23
test byte [esp + 8], 2
je 0x403e23
mov dword [0x411418], 0xd
mov dword [0x41141c], 5
jmp 0x403dfe
xor eax, eax
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403e75
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004050dd
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x403e96
test byte [esp + 8], 2
je 0x403e96
mov dword [0x411418], 0xd
mov dword [0x41141c], 5
jmp 0x403e71
xor eax, eax
ret
Function at 0x4040a3
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40c7d8
call fcn.00405878
mov edi, 0x94
mov eax, edi
call fcn.00403c60
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 [0x411424], ecx
mov eax, dword [esi + 4]
mov dword [0x411430], eax
mov edx, dword [esi + 8]
mov dword [0x411434], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x411428], esi
cmp ecx, 2
je 0x404103
or esi, 0x8000
mov dword [0x411428], esi
shl eax, 8
add eax, edx
mov dword [0x41142c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40413e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40413e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x404156
cmp eax, 0x20b
je 0x404143
mov dword [ebp - 0x1c], esi
jmp 0x40416a
cmp dword [ecx + 0x84], 0xe
jbe 0x40413e
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x404164
cmp dword [ecx + 0x74], 0xe
jbe 0x40413e
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004043ce
pop ecx
test eax, eax
jne 0x404196
cmp dword [0x411414], 1
jne 0x404183
call fcn.00407ac0
push 0x1c
call fcn.00407949
push 0xff
call fcn.00404f42
pop ecx
pop ecx
call fcn.004080be
mov dword [ebp - 4], esi
call fcn.00405306
test eax, eax
jge 0x4041af
push 0x1b
call fcn.0040407e
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x412a14], eax
call fcn.00407f9c
mov dword [0x41140c], eax
call fcn.00407efa
test eax, eax
jge 0x4041d5
push 8
call fcn.0040407e
pop ecx
call fcn.00407cc7
test eax, eax
jge 0x4041e6
push 9
call fcn.0040407e
pop ecx
push 1
call fcn.00404f72
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4041fc
push eax
call fcn.0040407e
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00407c6a
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40421d
movzx eax, word [ebp - 0x40]
jmp 0x404220
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00402750
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40423e
push edi
call fcn.0040509d
call fcn.004050bf
jmp 0x404270
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004058b3
ret
Function at 0x404fdc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x411464], esi
push edi
jne 0x404ffc
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x411460], esi
mov byte [0x41145c], al
jne 0x405062
mov ecx, dword [0x4129e8]
test ecx, ecx
je 0x405043
mov eax, dword [0x4129e4]
sub eax, 4
cmp eax, ecx
jmp 0x40503c
mov eax, dword [eax]
test eax, eax
je 0x40502e
call eax
mov eax, dword [0x4129e4]
sub eax, 4
cmp eax, dword [0x4129e8]
mov dword [0x4129e4], eax
jae 0x405026
mov eax, 0x40e020
mov esi, 0x40e028
cmp eax, esi
mov edi, eax
jae 0x405062
mov eax, dword [edi]
test eax, eax
je 0x40505b
call eax
add edi, 4
cmp edi, esi
jb 0x405053
mov eax, 0x40e02c
mov esi, 0x40e030
cmp eax, esi
mov edi, eax
jae 0x405081
mov eax, dword [edi]
test eax, eax
je 0x40507a
call eax
add edi, 4
cmp edi, esi
jb 0x405072
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x40509b
push dword [ebp + 8]
mov dword [0x411464], 1
call fcn.00404f42
pop ebp
ret

Function at 0x40556b
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00403c60
mov eax, dword [0x40e28c]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x4128c0]
mov dword [ebp - 4], eax
jae 0x4056ae
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x4128e0]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x4056ae
push 1
push esi
push ebx
call fcn.004036e7
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x4056b8
push 2
push esi
push ebx
call fcn.004036e7
add esp, 0xc
cmp eax, 0xffffffff
je 0x4056b8
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x405658
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00408b70
push 0x8000
push ebx
call fcn.00408ae9
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x405617
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.00403309
add esp, 0xc
cmp eax, 0xffffffff
je 0x405635
sub edi, eax
test edi, edi
jg 0x40560c
jmp 0x40564b
cmp dword [0x41141c], 5
jne 0x405648
mov dword [0x411418], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.00408ae9
pop ecx
pop ecx
jmp 0x405698
jge 0x405698
push 0
push dword [ebp + 0xc]
push ebx
call fcn.004036e7
push ebx
call fcn.004052ca
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x405698
mov dword [0x411418], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x41141c], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.004036e7
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4056bb
mov dword [0x411418], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00403b0f
leave
ret
Function at 0x407949
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40e28c]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40e488]
je 0x40797e
inc eax
cmp eax, 0x13
jb 0x40796f
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40e488]
jne 0x407aa4
mov eax, dword [0x411414]
cmp eax, 1
je 0x407a7c
cmp eax, edx
jne 0x4079ae
cmp dword [0x40e2b4], 1
je 0x407a7c
cmp ecx, 0xfc
je 0x407aa4
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4079e4
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00408cd0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00407840
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x407a18
mov eax, edi
push eax
call fcn.00407840
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c838
push edi
call fcn.00408dd0
add esp, 0x10
push edi
call fcn.00407840
push dword [esi + 0x40e48c]
mov ebx, eax
call fcn.00407840
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00403c60
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00408cd0
push edi
push ebx
call fcn.00408ce0
push 0x40c834
push ebx
call fcn.00408ce0
push dword [esi + 0x40e48c]
push ebx
call fcn.00408ce0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00408bd0
add esp, 0x2c
jmp 0x407aa4
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40e48c]
push dword [esi]
call fcn.00407840
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00403b0f
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x408bd0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4115bc], ebx
push esi
push edi
jne 0x408c50
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x408c8b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40d414
push edi
call esi
test eax, eax
mov dword [0x4115bc], eax
je 0x408c8b
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4115c0], eax
call esi
cmp dword [0x411424], 2
mov dword [0x4115c4], eax
jne 0x408c50
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4115cc], eax
je 0x408c50
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4115c8], eax
mov eax, dword [0x4115c8]
test eax, eax
je 0x408c95
call eax
test eax, eax
je 0x408c7c
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4115cc]
test eax, eax
je 0x408c7c
test byte [ebp - 8], 1
jne 0x408c95
cmp dword [0x411430], 4
jb 0x408c8f
or byte [ebp + 0x12], 0x20
jmp 0x408cb4
xor eax, eax
jmp 0x408cc4
or byte [ebp + 0x12], 4
jmp 0x408cb4
mov eax, dword [0x4115c0]
test eax, eax
je 0x408cb4
call eax
mov ebx, eax
test ebx, ebx
je 0x408cb4
mov eax, dword [0x4115c4]
test eax, eax
je 0x408cb4
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4115bc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408fe2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x409010
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x409017
cmp ebx, dword [eax + 4]
jae 0x409017
xor eax, eax
jmp 0x409207
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x409028
xor eax, eax
inc eax
jmp 0x409206
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40903e
cmp ecx, edx
jae 0x409183
cmp dword [eax + 4], 0
je 0x409047
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40902f
cmp dword [ebp + 8], 0
je 0x409069
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x409183
cmp eax, esi
jae 0x409183
mov eax, dword [0x4115d0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40908e
cmp dword [esi*4 + 0x4115d8], edi
je 0x409187
inc esi
cmp esi, eax
jl 0x40907c
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x409203
cmp dword [ebp - 8], 0x1000000
jne 0x409203
test byte [ebp - 0xc], 0xcc
je 0x40910c
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x409203
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x409203
cmp word [eax + 0x18], 0x10b
jne 0x409203
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x409203
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40910c
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40910c
test byte [ecx + 0x27], 0x80
jne 0x409183
push 1
push 0x411618
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x409020
mov ecx, dword [0x4115d0]
test ecx, ecx
mov edx, ecx
jle 0x409140
lea eax, [ecx*4 + 0x4115d4]
cmp dword [eax], edi
je 0x409140
dec edx
sub eax, 4
test edx, edx
jg 0x409134
test edx, edx
jne 0x409171
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40914d
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x409165
lea eax, [edx*4 + 0x4115d8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x409153
cmp ecx, 0x10
jge 0x409171
inc ecx
mov dword [0x4115d0], ecx
push 0
push 0x411618
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x409020
xor eax, eax
jmp 0x409206
test esi, esi
jle 0x409020
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x411618
call ebx
test eax, eax
jne 0x409020
cmp dword [esi*4 + 0x4115d8], edi
je 0x4091dd
mov eax, dword [0x4115d0]
lea esi, [eax - 1]
test esi, esi
jl 0x4091cb
cmp dword [esi*4 + 0x4115d8], edi
je 0x4091c7
dec esi
jns 0x4091bb
test esi, esi
jge 0x4091db
cmp eax, 0x10
jge 0x4091d6
inc eax
mov dword [0x4115d0], eax
lea esi, [eax - 1]
jmp 0x4091dd
je 0x4091f5
xor ecx, ecx
test esi, esi
jl 0x4091f5
lea eax, [ecx*4 + 0x4115d8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4091e3
push 0
push 0x411618
call ebx
jmp 0x409020
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a501
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00403c60
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40a59c
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x411424]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40a59c
cmp eax, 1
je 0x40a5bd
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40a59c
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40a569
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40a598
xor eax, eax
inc eax
jmp 0x40a5dc
cmp edi, eax
jae 0x40a5a0
xor eax, eax
jmp 0x40a5dc
cmp eax, esi
jae 0x40a5a7
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x411424]
jmp 0x40a5c0
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000dea3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000dee2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000dee2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000dee2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1000dee2
cmp dword [ecx + 0x74], 0xe
jbe 0x1000dee2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10010b5f
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 0x10010bfc
push ebx
push esi
call fcn.10010b28
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.10010abc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10010ba9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10010bfb
push edi
push eax
call fcn.10011b1a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10010bc9
call fcn.1000f604
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10010bfa
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10010abc
add esp, 0x20
test eax, eax
jne 0x10010be8
push edi
call fcn.1000f604
jmp 0x10010bf0
push ebx
call fcn.1000f604
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 0x10010e69
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10018888
push 0x10018880
push str.FlsAlloc
push 0x1f
call fcn.10010d85
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10010e9d
push dword [ebp + 8]
mov ecx, esi
call dword [0x10017150]
call esi
jmp 0x10010ea3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10010ee7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10018898
push 0x10018890
push str.FlsGetValue
push 0x21
call fcn.10010d85
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10010f1e
push dword [ebp + 8]
mov ecx, esi
call dword [0x10017150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10010f26
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100188a0
push 0x10018898
push str.FlsSetValue
push 0x22
call fcn.10010d85
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10010f60
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10017150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100165e0
Capabilities:
Parse pe header

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

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x40560d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x40561c
pop dword [ebp - 0x3c]
mov eax, 0x40561c
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x2919d24b
sub dword [ebp - 0x4c], 0xdac78d00
mov dword [ebp - 0x48], 0x20a162f7
add dword [ebp - 0x48], 0x1191e94e
mov dword [ebp - 0x44], 0xf2421d4d
sub dword [ebp - 0x44], 0xa5f5d91f
mov dword [ebp - 0x40], 0x4caa63e
add dword [ebp - 0x40], 0xfb3559c2
lea eax, [ebp - 0x4c]
push eax
mov eax, 0xbec4da81
sub eax, 0xbe840a2d
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0xc6b3ea73
add dword [ebp - 0x4c], 0xadbe7ee3
mov dword [ebp - 0x48], 0xbd72acc8
sub dword [ebp - 0x48], 0x7c064b53
mov dword [ebp - 0x44], 0x5eebb301
sub dword [ebp - 0x44], 0xfb7c4695
mov dword [ebp - 0x40], 0x7ec5efb0
sub dword [ebp - 0x40], 0x7ec5efb0
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x38a13
push 0
call eax
mov ecx, 0x4471
mov edx, eax
mov ebx, 0x41b000
add ebx, dword [ebp - 0x3c]
mov edi, 0xe32b2aa6
sub edi, 0x84969f73
add dword [ebp - 0xc], 0x3f1f6585
mov esi, dword [ebx]
sub dword [ebp - 0x18], ecx
xor esi, edi
xor dword [ebp - 0x28], 0x2b481336
mov dword [edx], esi
mov dword [ebp - 8], 0x7b4de584
add edx, 0xb431e1e2
add edx, 0x4bce1e22
add ebx, 4
loop 0x405728
add eax, 0xf58833e
add eax, 0xf0a88159
mov ebx, eax
add eax, 0x681ee56
sub eax, 0x681ee51
mov ecx, 0x6bf03696
sub ecx, 0x6bb03696
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x6d3db325
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x6d3db334
pop dword [ebp - 0x24]
mov eax, 0x34cb0814
sub eax, 0xc78d54e0
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0x946e8471
sub dword [ebp - 0x34], 0x461c3f26
mov dword [ebp - 0x30], 0x895a9083
add dword [ebp - 0x30], 0xa8d8bbc2
mov dword [ebp - 0x2c], 0xfdf1ba67
add dword [ebp - 0x2c], 0x4e5a89c7
mov dword [ebp - 0x28], 0xa4d63fcf
sub dword [ebp - 0x28], 0xa4d63fcf
lea eax, [ebp - 0x34]
push eax
mov eax, 0xf6a04dad
sub eax, 0x89626d65
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0x7d0f343c
sub dword [ebp - 0x34], 0x89ccae6
mov dword [ebp - 0x30], 0xbbf3774b
add dword [ebp - 0x30], 0x8578ea2a
mov dword [ebp - 0x2c], 0x9336faa1
add dword [ebp - 0x2c], 0xd03871cb
mov dword [ebp - 0x28], 0x2cc3077d
add dword [ebp - 0x28], 0xd33cf883
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, 0xc9c0a78f
sub eax, 0x5c82c73b
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x41391
push 0
call eax
mov ecx, 0x8b3b9578
sub ecx, 0x8b3b4274
mov edi, eax
mov ebx, 0x7266cb50
sub ebx, 0x5282f50
add ebx, dword [ebp - 0x24]
mov esi, 0x4ae4dd66
add esi, 0xd4472005
xor dword [ebp - 0x1c], 0x50b41c5e
mov edx, dword [ebx]
sub dword [ebp - 0x18], esi
xor edx, esi
sub dword [ebp - 4], edx
mov dword [edi], edx
add edi, 0xf7113e12
sub edi, 0xf7113e0e
add ebx, 0x7d915710
sub ebx, 0x7d91570c
loop 0x6d3db456
add eax, 0x13ee3
mov ebx, eax
add eax, 0xbb72446b
add eax, 0x448dbb9a
mov ecx, 0xbb5734ff
sub ecx, 0x4e1b34ff
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x6d3dd4ec
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d3e5200]
jne 0x6d3dd4f6
repz ret
jmp fcn.6d3dd963