joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40de89
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 0x40e05d
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x469180]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x40e05d
test cl, 0x48
je 0x40def4
cmp byte [eax + 5], 0xa
je 0x40def4
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 0x40df46
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x40df2e
call fcn.0040930e
mov dword [eax], 9
call fcn.00409317
mov dword [eax], esi
jmp 0x40df3e
cmp eax, 0x6d
je 0x40e05d
push eax
call fcn.00409320
pop ecx
or eax, 0xffffffff
jmp 0x40e05f
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x40e058
test eax, eax
je 0x40df6d
cmp byte [ebx], 0xa
jne 0x40df6d
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x40df76
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 0x40e052
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x40e042
cmp al, 0xd
je 0x40dfa8
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x40e034
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x40dfc2
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x40dfbd
add dword [ebp + 0x10], 2
jmp 0x40e016
mov dword [ebp + 0x10], eax
jmp 0x40e030
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 0x40dfea
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40e030
cmp dword [ebp - 0xc], 0
je 0x40e030
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x40e00b
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x40e016
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x40e033
cmp ebx, dword [ebp + 0xc]
jne 0x40e01b
cmp byte [ebp - 1], 0xa
jne 0x40e01b
mov byte [ebx], 0xa
jmp 0x40e033
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040e10f
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x40e034
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x40df8c
jmp 0x40e052
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x40e052
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 0x40e05f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e6da
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 0x40e708
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 0x40e70f
cmp ebx, dword [eax + 4]
jae 0x40e70f
xor eax, eax
jmp 0x40e8ff
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40e720
xor eax, eax
inc eax
jmp 0x40e8fe
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40e736
cmp ecx, edx
jae 0x40e87b
cmp dword [eax + 4], 0
je 0x40e73f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40e727
cmp dword [ebp + 8], 0
je 0x40e761
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40e87b
cmp eax, esi
jae 0x40e87b
mov eax, dword [0x468d30]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40e786
cmp dword [esi*4 + 0x468d38], edi
je 0x40e87f
inc esi
cmp esi, eax
jl 0x40e774
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40e8fb
cmp dword [ebp - 8], 0x1000000
jne 0x40e8fb
test byte [ebp - 0xc], 0xcc
je 0x40e804
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40e8fb
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40e8fb
cmp word [eax + 0x18], 0x10b
jne 0x40e8fb
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40e8fb
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40e804
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40e804
test byte [ecx + 0x27], 0x80
jne 0x40e87b
push 1
push 0x468d78
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40e718
mov ecx, dword [0x468d30]
test ecx, ecx
mov edx, ecx
jle 0x40e838
lea eax, [ecx*4 + 0x468d34]
cmp dword [eax], edi
je 0x40e838
dec edx
sub eax, 4
test edx, edx
jg 0x40e82c
test edx, edx
jne 0x40e869
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40e845
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40e85d
lea eax, [edx*4 + 0x468d38]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40e84b
cmp ecx, 0x10
jge 0x40e869
inc ecx
mov dword [0x468d30], ecx
push 0
push 0x468d78
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40e718
xor eax, eax
jmp 0x40e8fe
test esi, esi
jle 0x40e718
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x468d78
call ebx
test eax, eax
jne 0x40e718
cmp dword [esi*4 + 0x468d38], edi
je 0x40e8d5
mov eax, dword [0x468d30]
lea esi, [eax - 1]
test esi, esi
jl 0x40e8c3
cmp dword [esi*4 + 0x468d38], edi
je 0x40e8bf
dec esi
jns 0x40e8b3
test esi, esi
jge 0x40e8d3
cmp eax, 0x10
jge 0x40e8ce
inc eax
mov dword [0x468d30], eax
lea esi, [eax - 1]
jmp 0x40e8d5
je 0x40e8ed
xor ecx, ecx
test esi, esi
jl 0x40e8ed
lea eax, [ecx*4 + 0x468d38]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40e8db
push 0
push 0x468d78
call ebx
jmp 0x40e718
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41096f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x468d90], ebx
push esi
push edi
jne 0x4109ef
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x410a2a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4174cc
push edi
call esi
test eax, eax
mov dword [0x468d90], eax
je 0x410a2a
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x468d94], eax
call esi
cmp dword [0x468a58], 2
mov dword [0x468d98], eax
jne 0x4109ef
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x468da0], eax
je 0x4109ef
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x468d9c], eax
mov eax, dword [0x468d9c]
test eax, eax
je 0x410a34
call eax
test eax, eax
je 0x410a1b
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x468da0]
test eax, eax
je 0x410a1b
test byte [ebp - 8], 1
jne 0x410a34
cmp dword [0x468a64], 4
jb 0x410a2e
or byte [ebp + 0x12], 0x20
jmp 0x410a53
xor eax, eax
jmp 0x410a63
or byte [ebp + 0x12], 4
jmp 0x410a53
mov eax, dword [0x468d94]
test eax, eax
je 0x410a53
call eax
mov ebx, eax
test ebx, ebx
je 0x410a53
mov eax, dword [0x468d98]
test eax, eax
je 0x410a53
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x468d90]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x411f63
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.00409bd0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x411ffe
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 [0x468a58]
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 0x411ffe
cmp eax, 1
je 0x41201f
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 0x411ffe
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x411fcb
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x411ffa
xor eax, eax
inc eax
jmp 0x41203e
cmp edi, eax
jae 0x412002
xor eax, eax
jmp 0x41203e
cmp eax, esi
jae 0x412009
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 [0x468a58]
jmp 0x412022
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 0x412f41
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00409bd0
mov eax, dword [0x41a918]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0040e10f
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x413074
push 2
push esi
push dword [ebp + 8]
call fcn.0040e10f
add esp, 0xc
cmp eax, ebx
je 0x413074
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x413014
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004093a0
push 0x8000
push dword [ebp + 8]
call fcn.004139c0
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x412fca
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0040cc01
add esp, 0xc
cmp eax, 0xffffffff
je 0x412fea
sub edi, eax
test edi, edi
jg 0x412fc2
jmp 0x413002
call fcn.00409317
cmp dword [eax], 5
jne 0x412fff
call fcn.0040930e
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.004139c0
pop ecx
pop ecx
jmp 0x41305c
jge 0x41305c
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040e10f
push dword [ebp + 8]
call fcn.004110aa
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 0x41305c
call fcn.0040930e
mov dword [eax], 0xd
call fcn.00409317
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.0040e10f
add esp, 0xc
mov eax, esi
pop edi
jmp 0x413076
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0040d294
leave
ret
Function at 0x413c1f
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 0x413c38
or eax, 0xffffffff
jmp 0x413c99
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x413c95
push 0x3d
push esi
call fcn.00413e1f
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x413c95
cmp esi, eax
je 0x413c95
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x468a78]
sete cl
cmp eax, dword [0x468a7c]
mov dword [ebp - 8], ecx
jne 0x413c7b
mov edi, eax
call fcn.00413bbe
mov dword [0x468a78], eax
cmp eax, ebx
jne 0x413cd4
cmp dword [ebp + 0xc], ebx
je 0x413c9d
cmp dword [0x468a80], ebx
je 0x413c9d
call fcn.00413a7a
test eax, eax
je 0x413cd4
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x413ca6
xor eax, eax
jmp 0x413c98
push 4
call fcn.0040aa81
cmp eax, ebx
pop ecx
mov dword [0x468a78], eax
je 0x413c95
mov dword [eax], ebx
cmp dword [0x468a80], ebx
jne 0x413cd4
push 4
call fcn.0040aa81
cmp eax, ebx
pop ecx
mov dword [0x468a80], eax
je 0x413c95
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x468a78]
call fcn.00413b71
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x413d35
cmp dword [esi], ebx
je 0x413d35
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0040a969
cmp dword [ebp - 8], ebx
pop ecx
jne 0x413d18
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x413d76
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x413d0f
mov eax, edi
shl eax, 2
push eax
push dword [0x468a78]
call fcn.0040c9de
cmp eax, ebx
pop ecx
pop ecx
je 0x413d76
jmp 0x413d71
cmp dword [ebp - 8], ebx
jne 0x413de1
cmp edi, ebx
jge 0x413d44
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x468a78]
call fcn.0040c9de
cmp eax, ebx
pop ecx
pop ecx
je 0x413c95
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 [0x468a78], eax
cmp dword [ebp + 0xc], ebx
je 0x413dcb
push dword [ebp - 4]
call fcn.004084b0
inc eax
inc eax
push eax
call fcn.0040aa81
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x413dcb
push dword [ebp - 4]
push esi
call fcn.00408760
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 0x413dc4
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0040a969
pop ecx
cmp dword [ebp - 8], ebx
je 0x413dd9
push dword [ebp - 4]
call fcn.0040a969
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x413c98
push dword [ebp - 4]
call fcn.0040a969
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x413ca2
Function at 0x413ea0
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push 0x128
push 0x417df8
call fcn.0040a3e8
mov eax, dword [0x41a918]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
or dword [ebp - 0x12c], 0xffffffff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x413fad
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x134], esi
cmp esi, 0x104
jle 0x413f5e
mov dword [ebp - 4], ebx
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.00409bd0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x138], edi
jmp 0x413f4b
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x413fad
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, ebx
je 0x413fad
mov al, byte [edi]
cmp al, 0x5c
je 0x413f6c
cmp al, 0x2f
jne 0x413f71
cmp al, byte [edi + 1]
je 0x413fa7
mov byte [ebp - 0x128], 0x3d
movzx eax, byte [edi]
push eax
call fcn.00414177
pop ecx
mov byte [ebp - 0x127], al
mov byte [ebp - 0x126], 0x3a
mov byte [ebp - 0x125], bl
push edi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x413fad
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00409320
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x413fc9
push edi
call fcn.0040a969
pop ecx
mov eax, dword [ebp - 0x12c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c]
call fcn.0040d294
call fcn.0040a423
ret

Function at 0x413fe3
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x414011
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x414016
cmp eax, 1
je 0x414016
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x41401a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x41a918]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x414092
push ebx
call fcn.00413fe3
test eax, eax
pop ecx
jne 0x414061
call fcn.00409317
mov dword [eax], 0xf
call fcn.0040930e
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0040d294
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x4140a4
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x414054
inc eax
cmp eax, 0x104
ja 0x414054
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4140dc
cmp eax, dword [ebp + 0x10]
jg 0x4140bf
mov eax, dword [ebp + 0x10]
push eax
call fcn.0040aa81
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x4140f1
call fcn.0040930e
mov dword [eax], 0xc
jmp 0x414054
cmp eax, dword [ebp + 0x10]
jle 0x4140f1
call fcn.0040930e
mov dword [eax], 0x22
jmp 0x414054
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.00408760
pop ecx
pop ecx
jmp 0x414056
Function at 0x4103c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xd4
push ebx
push ebp
push esi
xor esi, esi
push edi
push esi
push esi
push 0x3e9
mov dword [esp + 0x38], 0x64
mov dword [esp + 0x24], esi
call fcn.004129a0
mov ebp, eax
push esi
mov ebx, dword [esp + 0xec]
push esi
mov dword [esp + 0x58], ebp
lea edi, [ebx + 0x14]
mov ecx, edi
mov dword [esp + 0x1c], edi
call fcn.0040d560
cmp eax, esi
je 0x41095a
cmp dword [esp + 0xec], esi
jne 0x410453
lea esi, [eax + 0x18]
push esi
call fcn.00402460
add esi, eax
push esi
call fcn.00402460
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x410451
mov eax, dword [esi + 0x1c]
push eax
call dword [0x477410]
test eax, eax
je 0x410451
mov eax, dword [esi + 0x1b4]
test eax, eax
je 0x410466
push 0
push 0
mov ecx, esi
call fcn.00416930
xor esi, esi
cmp dword [esp + 0xf4], 1
jne 0x4104b1
mov dword [esp + 0xf8], esi
jmp 0x4104cb
mov ecx, dword [esi + 0x1c]
push ecx
call dword [0x47762c]
test eax, eax
je 0x41048f
push 9
mov ecx, esi
call fcn.0046a05c
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xd4
ret 0x14
mov edx, dword [esi + 0x1c]
push edx
call dword [0x477474]
push eax
call fcn.00467629
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xd4
ret 0x14
mov eax, dword [esp + 0xf8]
cmp eax, esi
je 0x4104cb
push eax
call dword [0x477410]
test eax, eax
je 0x41095a
push esi
push esi
push 0x7d9
call fcn.004129a0
lea ecx, [ebx + 0x34]
push edi
mov dword [esp + 0x24], ecx
call fcn.0040d4f0
push ebx
mov ecx, ebp
call fcn.0040d9d0
cmp eax, esi
mov dword [esp + 0x4c], eax
je 0x41095a
lea eax, [esp + 0xb4]
mov ecx, edi
push eax
mov dword [esp + 0xa0], esi
mov dword [esp + 0x14], esi
call fcn.0040e030
cmp eax, esi
mov dword [esp + 0x28], esi
jle 0x410541
mov edx, dword [esp + 0xb4]
lea ecx, [esp + 0x28]
push esi
push ecx
push esi
push 0xffffffffffffffff
push eax
push esi
push edx
mov ecx, edi
call fcn.0040d560
push eax
call fcn.0041e110
add esp, 0x18
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x54]
call fcn.00401a70
mov esi, 0x48a56c
lea ecx, [esp + 0x7c]
mov dword [esp + 0x54], esi
call fcn.00401a70
lea ecx, [esp + 0x68]
mov dword [esp + 0x7c], esi
call fcn.00401a70
lea ecx, [esp + 0x34]
mov dword [esp + 0x68], esi
call fcn.00401a70
mov esi, dword [ebx + 0x18]
mov ebx, esi
mov dword [esp + 0x30], esi
test esi, esi
mov dword [esp + 0x1c], ebx
jle 0x410849
Function at 0x412b00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4736f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebp
push edi
mov edi, ecx
xor ebp, ebp
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x48]
push ebp
push eax
push ecx
lea ecx, [edi + 0x104]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call fcn.0040da60
test eax, eax
jne 0x412b6c
push ebp
push 0x4a1f24
mov ecx, edi
call fcn.00411d80
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
pop edi
pop ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
mov edx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x50]
push esi
push ebp
push ebp
push ebx
lea ecx, [edx + 0x14]
call fcn.0040d5e0
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.00401a70
push ebx
mov dword [esp + 0x4c], ebp
call fcn.0040dc10
add esp, 4
test eax, eax
je 0x412c0f
add esi, 0x18
push esi
call fcn.00402460
add esi, eax
push esi
call fcn.00402460
mov ecx, dword [esp + 0x60]
add esp, 8
cmp ecx, 3
lea eax, [esi + eax + 8]
ja case.default.0x412c74
jmp dword [ecx*4 + 0x412f50]
mov eax, dword [esi]
push ebp
push eax
mov ecx, edi
call fcn.00411ec0
mov ebx, dword [esp + 0x58]
mov ebp, eax
lea edi, [esi + 0x18]
mov edx, dword [ebp + 0x28]
lea ecx, [ebx + ebx*4]
mov esi, edi
lea eax, [edx + ecx*4]
push esi
mov dword [esp + 0x5c], eax
call fcn.00402460
add esi, eax
push esi
call fcn.00402460
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x412c60
mov ecx, dword [esi + 0x1c]
push ecx
call dword [0x477410]
test eax, eax
je 0x412c60
mov eax, 1
jmp 0x412c62
xor eax, eax
cmp ebx, 8
jge 0x412ec7
cmp ebx, 7
ja case.default.0x412c74
jmp dword [ebx*4 + 0x412f60]
test eax, eax
jne 0x412eda
mov ecx, dword [esp + 0x10]
push eax
push 0x4a1f10
call fcn.00411d80
push 6
call dword [ebp + 0x2c]
lea edx, [esp + 0x1c]
xor ecx, ecx
add ebx, 0xfffffff8
push edx
mov dword [esp + 0x20], ecx
push ebx
push esi
mov dword [esp + 0x2c], ecx
call eax
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
call fcn.00413420
mov eax, dword [esp + 0x14]
Function at 0x41ba00
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4b9a58]
xor edx, edx
cmp eax, edx
jne 0x41ba26
xor eax, eax
mov byte [eax + 0x4b9958], al
inc eax
cmp eax, 0x100
jl 0x41ba0e
mov dword [0x4b9a58], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4b9958
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41bab7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x41ba8a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x41ba58
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41bb30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x41bb83
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x41bb6a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret