joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49b631
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x49b64e
call fcn.0049f6ab
mov dword [eax], 0x16
xor eax, eax
jmp 0x49b6b8
push esi
push 0x8c
push 1
call fcn.0049b6bc
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x49b6a3
push esi
call fcn.0049ee7a
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x49b681
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x49b59c
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x49b6b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00498da6
test ebx, ebx
pop ecx
je 0x49b6b5
push ebx
call fcn.0049f6bd
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x49bfcf
Capabilities:
Terminate process

Disassembly:
push 8
push 0x4ba3b8
call fcn.0049d1b4
push 8
call fcn.0049d182
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x515da0], esi
jne 0x49c003
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x515d9c], esi
mov al, byte [ebp + 0x10]
mov byte [0x515d98], al
cmp dword [ebp + 0xc], edi
jne 0x49c04d
cmp dword [0x5165cc], edi
je 0x49c03d
mov eax, dword [0x5165c8]
sub eax, 4
mov dword [0x5165c8], eax
cmp eax, dword [0x5165cc]
jb 0x49c03d
mov eax, dword [eax]
cmp eax, edi
je 0x49c01e
call eax
jmp 0x49c01e
push 0x4c4050
mov eax, 0x4c4040
call fcn.0049bf4d
pop ecx
push 0x4c405c
mov eax, 0x4c4054
call fcn.0049bf4d
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x49c07e
cmp dword [ebp + 0x10], edi
jne 0x49c08c
mov dword [0x515da0], esi
push dword [ebp + 8]
call fcn.0049bf0b
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x49c08b
push 8
call fcn.0049d0cd
pop ecx
ret
call fcn.0049d1ef
ret
Function at 0x49fd6d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x49ff41
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x5164c0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x49ff41
test cl, 0x48
je 0x49fdd8
cmp byte [eax + 5], 0xa
je 0x49fdd8
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x49fe2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x49fe12
call fcn.0049f6ab
mov dword [eax], 9
call fcn.0049f6b4
mov dword [eax], esi
jmp 0x49fe22
cmp eax, 0x6d
je 0x49ff41
push eax
call fcn.0049f6bd
pop ecx
or eax, 0xffffffff
jmp 0x49ff43
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x49ff3c
test eax, eax
je 0x49fe51
cmp byte [ebx], 0xa
jne 0x49fe51
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x49fe5a
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x49ff36
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x49ff26
cmp al, 0xd
je 0x49fe8c
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x49ff18
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x49fea6
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x49fea1
add dword [ebp + 0x10], 2
jmp 0x49fefa
mov dword [ebp + 0x10], eax
jmp 0x49ff14
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
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 0x49fece
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x49ff14
cmp dword [ebp - 0xc], 0
je 0x49ff14
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x49feef
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x49fefa
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x49ff17
cmp ebx, dword [ebp + 0xc]
jne 0x49feff
cmp byte [ebp - 1], 0xa
jne 0x49feff
mov byte [ebx], 0xa
jmp 0x49ff17
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004a05b8
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x49ff18
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x49fe70
jmp 0x49ff36
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x49ff36
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x49ff43
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a020b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4a022b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0049f6bd
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4a024e
test byte [esp + 8], 2
je 0x4a024e
call fcn.0049f6ab
mov dword [eax], 0xd
call fcn.0049f6b4
mov dword [eax], 5
jmp 0x4a0227
xor eax, eax
ret

Function at 0x4a50a9
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.00498cb0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4a5144
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 [0x515d60]
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 0x4a5144
cmp eax, 1
je 0x4a5165
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 0x4a5144
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4a5111
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4a5140
xor eax, eax
inc eax
jmp 0x4a5184
cmp edi, eax
jae 0x4a5148
xor eax, eax
jmp 0x4a5184
cmp eax, esi
jae 0x4a514f
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 [0x515d60]
jmp 0x4a5168
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 0x4a518c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4e6324]
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 + 0x4e64f8]
je 0x4a51c1
inc eax
cmp eax, 0x13
jb 0x4a51b2
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4e64f8]
jne 0x4a52e7
mov eax, dword [0x515dac]
cmp eax, 1
je 0x4a52bf
cmp eax, edx
jne 0x4a51f1
cmp dword [0x4e5d5c], 1
je 0x4a52bf
cmp ecx, 0xfc
je 0x4a52e7
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 0x4a5227
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004a0000
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0049f9a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4a525b
mov eax, edi
push eax
call fcn.0049f9a0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bed8c
push edi
call fcn.0049b0b0
add esp, 0x10
push edi
call fcn.0049f9a0
push dword [esi + 0x4e64fc]
mov ebx, eax
call fcn.0049f9a0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00498cb0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004a0000
push edi
push ebx
call fcn.004a0010
push 0x4b5588
push ebx
call fcn.004a0010
push dword [esi + 0x4e64fc]
push ebx
call fcn.004a0010
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004a8c41
add esp, 0x2c
jmp 0x4a52e7
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4e64fc]
push dword [esi]
call fcn.0049f9a0
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.004a364d
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4a5c89
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 0x4a5cb7
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 0x4a5cbe
cmp ebx, dword [eax + 4]
jae 0x4a5cbe
xor eax, eax
jmp 0x4a5eae
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4a5ccf
xor eax, eax
inc eax
jmp 0x4a5ead
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4a5ce5
cmp ecx, edx
jae 0x4a5e2a
cmp dword [eax + 4], 0
je 0x4a5cee
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4a5cd6
cmp dword [ebp + 8], 0
je 0x4a5d10
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4a5e2a
cmp eax, esi
jae 0x4a5e2a
mov eax, dword [0x516130]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4a5d35
cmp dword [esi*4 + 0x516138], edi
je 0x4a5e2e
inc esi
cmp esi, eax
jl 0x4a5d23
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4a5eaa
cmp dword [ebp - 8], 0x1000000
jne 0x4a5eaa
test byte [ebp - 0xc], 0xcc
je 0x4a5db3
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4a5eaa
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4a5eaa
cmp word [eax + 0x18], 0x10b
jne 0x4a5eaa
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4a5eaa
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4a5db3
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4a5db3
test byte [ecx + 0x27], 0x80
jne 0x4a5e2a
push 1
push 0x516178
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4a5cc7
mov ecx, dword [0x516130]
test ecx, ecx
mov edx, ecx
jle 0x4a5de7
lea eax, [ecx*4 + 0x516134]
cmp dword [eax], edi
je 0x4a5de7
dec edx
sub eax, 4
test edx, edx
jg 0x4a5ddb
test edx, edx
jne 0x4a5e18
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4a5df4
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4a5e0c
lea eax, [edx*4 + 0x516138]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4a5dfa
cmp ecx, 0x10
jge 0x4a5e18
inc ecx
mov dword [0x516130], ecx
push 0
push 0x516178
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4a5cc7
xor eax, eax
jmp 0x4a5ead
test esi, esi
jle 0x4a5cc7
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x516178
call ebx
test eax, eax
jne 0x4a5cc7
cmp dword [esi*4 + 0x516138], edi
je 0x4a5e84
mov eax, dword [0x516130]
lea esi, [eax - 1]
test esi, esi
jl 0x4a5e72
cmp dword [esi*4 + 0x516138], edi
je 0x4a5e6e
dec esi
jns 0x4a5e62
test esi, esi
jge 0x4a5e82
cmp eax, 0x10
jge 0x4a5e7d
inc eax
mov dword [0x516130], eax
lea esi, [eax - 1]
jmp 0x4a5e84
je 0x4a5e9c
xor ecx, ecx
test esi, esi
jl 0x4a5e9c
lea eax, [ecx*4 + 0x516138]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4a5e8a
push 0
push 0x516178
call ebx
jmp 0x4a5cc7
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a6a49
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00498cb0
mov eax, dword [0x4e6324]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.004a05b8
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x4a6b7c
push 2
push esi
push dword [ebp + 8]
call fcn.004a05b8
add esp, 0xc
cmp eax, ebx
je 0x4a6b7c
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4a6b1c
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004a38a0
push 0x8000
push dword [ebp + 8]
call fcn.004a8f46
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x4a6ad2
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0049ccfa
add esp, 0xc
cmp eax, 0xffffffff
je 0x4a6af2
sub edi, eax
test edi, edi
jg 0x4a6aca
jmp 0x4a6b0a
call fcn.0049f6b4
cmp dword [eax], 5
jne 0x4a6b07
call fcn.0049f6ab
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.004a8f46
pop ecx
pop ecx
jmp 0x4a6b64
jge 0x4a6b64
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004a05b8
push dword [ebp + 8]
call fcn.004a596f
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, ebx
jne 0x4a6b64
call fcn.0049f6ab
mov dword [eax], 0xd
call fcn.0049f6b4
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.004a05b8
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4a6b7e
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.004a364d
leave
ret
Function at 0x4a8c41
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x516204], ebx
push esi
push edi
jne 0x4a8cc1
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4a8cfc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x516204], eax
je 0x4a8cfc
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x516208], eax
call esi
cmp dword [0x515d60], 2
mov dword [0x51620c], eax
jne 0x4a8cc1
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x516214], eax
je 0x4a8cc1
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x516210], eax
mov eax, dword [0x516210]
test eax, eax
je 0x4a8d06
call eax
test eax, eax
je 0x4a8ced
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x516214]
test eax, eax
je 0x4a8ced
test byte [ebp - 8], 1
jne 0x4a8d06
cmp dword [0x515d6c], 4
jb 0x4a8d00
or byte [ebp + 0x12], 0x20
jmp 0x4a8d25
xor eax, eax
jmp 0x4a8d35
or byte [ebp + 0x12], 4
jmp 0x4a8d25
mov eax, dword [0x516208]
test eax, eax
je 0x4a8d25
call eax
mov ebx, eax
test ebx, ebx
je 0x4a8d25
mov eax, dword [0x51620c]
test eax, eax
je 0x4a8d25
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x516204]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a9d83
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4a9d9c
or eax, 0xffffffff
jmp 0x4a9dfd
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4a9df9
push 0x3d
push esi
call fcn.004a9f58
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4a9df9
cmp esi, eax
je 0x4a9df9
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x515d80]
sete cl
cmp eax, dword [0x515d84]
mov dword [ebp - 8], ecx
jne 0x4a9ddf
mov edi, eax
call fcn.004a9d22
mov dword [0x515d80], eax
cmp eax, ebx
jne 0x4a9e38
cmp dword [ebp + 0xc], ebx
je 0x4a9e01
cmp dword [0x515d88], ebx
je 0x4a9e01
call fcn.004a98a5
test eax, eax
je 0x4a9e38
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x4a9e0a
xor eax, eax
jmp 0x4a9dfc
push 4
call fcn.00498d94
cmp eax, ebx
pop ecx
mov dword [0x515d80], eax
je 0x4a9df9
mov dword [eax], ebx
cmp dword [0x515d88], ebx
jne 0x4a9e38
push 4
call fcn.00498d94
cmp eax, ebx
pop ecx
mov dword [0x515d88], eax
je 0x4a9df9
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x515d80]
call fcn.004a9cd5
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x4a9e99
cmp dword [esi], ebx
je 0x4a9e99
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00498da6
cmp dword [ebp - 8], ebx
pop ecx
jne 0x4a9e7c
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4a9eda
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x4a9e73
mov eax, edi
shl eax, 2
push eax
push dword [0x515d80]
call fcn.0049a775
cmp eax, ebx
pop ecx
pop ecx
je 0x4a9eda
jmp 0x4a9ed5
cmp dword [ebp - 8], ebx
jne 0x4a9f45
cmp edi, ebx
jge 0x4a9ea8
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x515d80]
call fcn.0049a775
cmp eax, ebx
pop ecx
pop ecx
je 0x4a9df9
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x515d80], eax
cmp dword [ebp + 0xc], ebx
je 0x4a9f2f
push dword [ebp - 4]
call fcn.0049f9a0
inc eax
inc eax
push eax
call fcn.00498d94
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4a9f2f
push dword [ebp - 4]
push esi
call fcn.004a0000
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4a9f28
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00498da6
pop ecx
cmp dword [ebp - 8], ebx
je 0x4a9f3d
push dword [ebp - 4]
call fcn.00498da6
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4a9dfc
push dword [ebp - 4]
call fcn.00498da6
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x4a9e06
Function at 0x100655d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x100655df
pop dword [ebp - 0x3c]
mov eax, 0x97d7769f
sub eax, 0x87d120c0
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x70981
push 0
mov eax, 0x3cdb2c8a
sub eax, 0x2cc51af6
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0xbe1ff9bd
add ecx, 0x41e0359d
xor ebx, ebx
add ebx, eax
mov edi, 0xeaecd407
add edi, 0x252b4df9
add edi, dword [ebp - 0x3c]
mov edx, 0x652de6cc
sub edx, 0xf9340098
sub dword [ebp - 0x30], ecx
mov esi, dword [edi]
xor dword [ebp - 0x14], eax
sub esi, edx
xor dword [ebp - 0x24], eax
mov dword [ebx], esi
add ebx, 4
add edi, 0xb112605d
add edi, 0x4eed9fa7
loop 0x10065640
add eax, 0xe6f4323e
add eax, 0x190c7dfd
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x85bbc147
sub ecx, 0x75bbc147
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x100e08a8
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100e08b9
pop esi
ret
push ebx
push edi
push esi
call fcn.100655d0
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100655d0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100e08e1
push ebx
push esi
push edi
call fcn.100ca6c0
add esp, 0xc
push 0
call fcn.100655d0
pop ecx
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x41208a
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4b1064
push eax
push dword fs:[0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x41210a
arpl word [edx + esi], si
mov cl, 0xa5
cdq
invalid
invalid
Function at 0x1c21110
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 4], ebx
test edi, edi
jne 0x1c2112e
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx + 4]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov eax, dword [ebx]
push dword [ecx + 0x78]
mov ecx, ebx
call dword [eax]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x1c211ca
mov eax, dword [ebp + 8]
cmp eax, 0xffff
ja 0x1c21165
pop esi
mov word [edi], ax
mov al, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebx]
mov ecx, ebx
push dword [esi + 0x20]
call dword [eax]
mov ecx, dword [esi + 0x18]
mov ebx, eax
mov dword [ebp - 0xc], eax
lea edi, [eax + ecx*4]
cmp eax, edi
je 0x1c211ca
lea ecx, [ecx]
mov ecx, dword [ebp - 4]
mov eax, edi
sub eax, ebx
sar eax, 2
cdq
sub eax, edx
sar eax, 1
push dword [ebx + eax*4]
lea esi, [ebx + eax*4]
mov eax, dword [ecx]
call dword [eax]
mov edx, dword [ebp + 8]
mov ecx, edx
mov dl, byte [edx]
test dl, dl
je 0x1c211b1
cmp dl, byte [eax]
jne 0x1c211b1
mov dl, byte [ecx + 1]
inc ecx
inc eax
test dl, dl
jne 0x1c211a4
movzx eax, byte [eax]
movzx ecx, byte [ecx]
sub ecx, eax
je 0x1c211d5
test ecx, ecx
jle 0x1c211c4
lea ebx, [esi + 4]
jmp 0x1c211c6
mov edi, esi
cmp ebx, edi
jne 0x1c21180
pop esi
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov eax, dword [ecx]
push dword [edi + 0x24]
call dword [eax]
sub esi, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
sar esi, 2
mov ax, word [eax + esi*2]
add ax, word [edi + 0x10]
pop esi
pop edi
mov word [ecx], ax
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8