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

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push esi
push edi
push dword [ebp + 8]
lea esi, [ebp - 4]
call fcn.00409b77
mov ebx, dword [ebp - 4]
mov edi, eax
test edi, edi
js 0x409ea4
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x409ea4
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x409ea4
cmp eax, 3
je 0x409ea4
push 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x409ea4
call esi
mov edi, eax
test edi, edi
jle 0x409e9d
and edi, 0xffff
or edi, 0x80070000
test edi, edi
js 0x409ea4
mov edi, 0x80004005
test ebx, ebx
je 0x409eae
push ebx
call fcn.0040921f
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40a1fb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100a4
call fcn.00420640
mov eax, dword [0x428050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 7
mov esi, ecx
pop ecx
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10090], ebx
lea edi, [ebp - 0x1008c]
push 0x48
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10070]
push ebx
push eax
call fcn.0041d610
add esp, 0xc
xor eax, eax
push 7
mov byte [ebp - 0x24], bl
pop ecx
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x10094], eax
cmp eax, ebx
jne 0x40a265
mov dword [ebp - 0x10094], 0x403780
mov eax, fcn.004065c2
test eax, eax
je 0x40a28f
mov eax, dword [esi + 0x10]
push ebx
push dword [eax + 0x14]
push dword [eax + 0x10]
push dword [ebp - 0x10094]
push 3
call fcn.004065c2
mov ebx, eax
test ebx, ebx
jne 0x40a402
lea eax, [ebp - 0x10090]
push eax
call fcn.004232b0
mov eax, dword [esi + 0x10]
push dword [eax + 0xc]
push dword [eax + 8]
push dword [esi]
call fcn.00409d93
mov ebx, eax
xor edi, edi
cmp ebx, edi
jl 0x40a402
mov eax, fcn.004065c2
test eax, eax
je 0x40a2da
push edi
push edi
push edi
push dword [ebp - 0x10094]
push 4
call fcn.004065c2
mov ebx, eax
cmp ebx, edi
jne 0x40a402
xor ebx, ebx
mov dword [ebp - 0x1009c], ebx
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
sub ecx, edi
sbb eax, dword [ebp - 0x1009c]
cmp eax, ebx
jb 0x40a306
ja 0x40a301
cmp ecx, 0x10000
jbe 0x40a306
mov ecx, 0x10000
push ebx
lea eax, [ebp - 0x100a4]
push eax
push ecx
lea eax, [ebp - 0x10028]
push eax
push dword [esi]
mov dword [ebp - 0x100a4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a38e
push dword [ebp - 0x100a4]
lea eax, [ebp - 0x10028]
push eax
lea eax, [ebp - 0x10090]
push eax
call fcn.00423e20
add edi, dword [ebp - 0x100a4]
push ebx
adc dword [ebp - 0x1009c], ebx
push dword [ebp - 0x1009c]
mov dword [ebp - 0x100a0], edi
push edi
push dword [ebp - 0x10094]
push 4
call fcn.004065c2
mov ebx, eax
test ebx, ebx
jne 0x40a402
mov eax, dword [esi + 0x10]
mov ecx, dword [ebp - 0x1009c]
cmp ecx, dword [eax + 0x14]
ja 0x40a3b1
jb 0x40a387
cmp edi, dword [eax + 0x10]
jae 0x40a3b1
xor ebx, ebx
jmp 0x40a2e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x40a3a8
and ebx, 0xffff
or ebx, 0x80070000
test ebx, ebx
js 0x40a402
mov ebx, 0x80004005
jmp 0x40a402
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10090]
push eax
call fcn.00423f30
mov esi, dword [esi + 0x10]
push 0x20
add esi, 0x18
pop ecx
lea edi, [ebp - 0x24]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40a3d8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40a3aa
mov eax, fcn.004065c2
test eax, eax
je 0x40a402
push 0
push dword [ebp - 0x1009c]
push dword [ebp - 0x100a0]
push dword [ebp - 0x10094]
push 5
call fcn.004065c2
mov ebx, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00418bf8
leave
ret
Function at 0x40a6e3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor esi, esi
push esi
push esi
push dword [edi]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], esi
call fcn.00409d93
mov dword [ebp - 4], eax
cmp eax, esi
jl 0x40a851
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
jne 0x40a74e
mov eax, 0x20000
push eax
push 8
mov dword [ebp - 0xc], eax
call esi
push eax
call ebx
mov dword [ebp - 8], eax
test eax, eax
jne 0x40a76a
mov dword [ebp - 4], 0x8007000e
jmp 0x40a851
mov eax, dword [ebp - 0x18]
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x40a7df
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
and dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
sub ecx, eax
add eax, dword [ebp - 8]
push ecx
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a7e8
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
call fcn.0040a858
mov dword [ebp - 4], eax
cmp eax, 0x8007007a
je 0x40a71f
test eax, eax
js 0x40a834
push dword [ebp - 0x10]
push 8
call esi
push eax
call ebx
mov dword [edi + 8], eax
test eax, eax
je 0x40a7df
mov eax, dword [ebp - 0x14]
push dword [eax + 0x20]
push 8
call esi
push eax
call ebx
mov dword [edi + 0xc], eax
test eax, eax
jne 0x40a811
mov dword [ebp - 4], 0x8007000e
jmp 0x40a834
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
test eax, eax
jle 0x40a802
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x40a834
mov dword [ebp - 4], 0x80004005
jmp 0x40a834
push dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
push ebx
push dword [edi + 8]
call fcn.004207c0
add esp, 0xc
push dword [ebx + 0x20]
push dword [ebp - 0x1c]
push dword [edi + 0xc]
call fcn.004207c0
add esp, 0xc
cmp dword [ebp - 8], 0
je 0x40a851
push dword [ebp - 8]
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x40a851
call fcn.00409c65
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
Function at 0x40a858
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
and dword [edi], 0
cmp dword [ebp + 0xc], 0x40
jae 0x40a882
mov dword [edi], 0x138
mov eax, 0x8007007a
jmp 0x40a97c
mov ecx, 0x5a4d
cmp cx, word [eax]
je 0x40a896
mov eax, 0x8007000d
jmp 0x40a97c
push esi
mov esi, dword [eax + 0x3c]
cmp dword [ebp + 0xc], esi
jae 0x40a8b1
add esi, 0xf8
mov dword [edi], esi
mov eax, 0x8007007a
jmp 0x40a97b
lea ecx, [esi + eax]
cmp dword [ecx], 0x4550
je 0x40a8c6
mov eax, 0x8007000d
jmp 0x40a97b
movzx eax, word [ecx + 6]
movzx edx, word [ecx + 0x14]
push ebx
mov ebx, eax
imul ebx, ebx, 0x28
add ebx, esi
lea esi, [ebx + edx + 0x18]
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], esi
jae 0x40a8e6
mov dword [edi], esi
jmp 0x40a95c
lea ebx, [edx + ecx + 0x18]
xor edx, edx
test eax, eax
je 0x40a943
mov dword [ebp - 4], ebx
mov esi, dword [ebp - 4]
push 8
pop ecx
mov edi, 0x40509c
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40a909
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40a917
add dword [ebp - 4], 0x28
inc edx
cmp edx, dword [ebp - 8]
jb 0x40a8f3
cmp dword [ebp - 8], edx
jbe 0x40a943
imul edx, edx, 0x28
lea ecx, [edx + ebx]
mov edx, dword [ecx + 0x14]
mov esi, dword [ecx + 0x10]
add esi, edx
cmp dword [ebp + 0xc], esi
jae 0x40a936
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
jmp 0x40a95c
mov edi, dword [ebp + 8]
add edx, edi
cmp dword [edx], 0xb0c50003
je 0x40a94a
mov eax, 0x8007000d
jmp 0x40a97a
mov esi, dword [edx + 0x24]
mov eax, dword [edx + 0x20]
add eax, esi
cmp dword [ebp + 0xc], eax
jae 0x40a963
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, 0x8007007a
jmp 0x40a97a
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
mov eax, dword [ecx + 8]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov eax, dword [ebp + 0x1c]
add esi, edi
mov dword [eax], esi
mov eax, dword [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret 0x18
Function at 0x40a981
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x428050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
or dword [ebp - 0x264], 0xffffffff
push ebx
inc eax
mov dword [ebp - 0x26c], eax
push esi
lea eax, [ebp - 0x260]
xor ebx, ebx
push eax
mov dword [ebp - 0x260], ebx
mov dword [ebp - 0x25c], ebx
call fcn.00409a68
mov esi, eax
cmp esi, ebx
jl 0x40ab52
push dword [ebp - 0x260]
xor eax, eax
lea ecx, [ebp - 0x25c]
call fcn.00408c78
mov esi, eax
cmp esi, ebx
jl 0x40ab3d
push ebx
push 0x4050a8
lea eax, [ebp - 0x25c]
call fcn.00408e95
mov esi, eax
cmp esi, ebx
jl 0x40ab3d
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x268], eax
cmp eax, 0xffffffff
jne 0x40aa41
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, ebx
jle 0x40aa3b
and esi, 0xffff
or esi, 0x80070000
cmp esi, ebx
jl 0x40ab3d
test byte [ebp - 0x258], 0x10
jne 0x40aac5
mov eax, dword [ebp - 0x23c]
mov edx, dword [edi + 0x10]
xor ecx, ecx
xor ebx, ebx
add ecx, dword [ebp - 0x238]
adc eax, ebx
cmp ecx, dword [edx + 0x10]
jne 0x40aac5
cmp eax, dword [edx + 0x14]
jne 0x40aac5
push dword [ebp - 0x260]
xor eax, eax
lea ecx, [ebp - 0x25c]
call fcn.00408c78
mov esi, eax
test esi, esi
js 0x40ab13
push ebx
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x25c]
call fcn.00408e95
mov esi, eax
test esi, esi
js 0x40ab13
mov eax, dword [ebp + 8]
lea ecx, [eax + 4]
push ecx
push dword [eax]
lea ecx, [ebp - 0x264]
push dword [ebp - 0x25c]
lea edx, [ebp - 0x26c]
call fcn.0040ab77
mov esi, eax
test esi, esi
jns 0x40aae2
lea eax, [ebp - 0x258]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40aa41
jmp 0x40aaf8
push dword [ebp - 0x25c]
lea ecx, [edi + 4]
xor eax, eax
call fcn.00408c78
mov esi, eax
test esi, esi
js 0x40ab13
mov eax, dword [ebp - 0x264]
cmp eax, 0xffffffff
jne 0x40ab0a
mov esi, 0x80070002
jmp 0x40ab28
or dword [ebp - 0x264], 0xffffffff
mov dword [edi], eax
cmp dword [ebp - 0x264], 0xffffffff
je 0x40ab28
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x268], 0xffffffff
je 0x40ab3d
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor ebx, ebx
cmp dword [ebp - 0x25c], ebx
je 0x40ab52
push dword [ebp - 0x25c]
call fcn.0040921f
cmp dword [ebp - 0x260], ebx
je 0x40ab65
push dword [ebp - 0x260]
call fcn.0040921f
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418bf8
leave
ret 8
Function at 0x40ab77
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x428050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x80
push 3
push 7
push SysReAllocString
mov esi, edx
xor edi, edi
push eax
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x2c], edi
call fcn.00409eb7
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40abe4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
cmp eax, edi
jle 0x40abcf
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], edi
jl 0x40acba
mov dword [ebp - 0x2c], 0x80004005
jmp 0x40acba
push edi
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push ebx
mov dword [ebp - 0x30], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40ac2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
cmp eax, edi
jle 0x40ac17
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], edi
jl 0x40acae
mov dword [ebp - 0x2c], 0x80004005
jmp 0x40acae
cmp dword [ebp - 0x30], 0x24
je 0x40ac3b
mov dword [ebp - 0x2c], 0x8007001e
jmp 0x40acae
mov eax, dword [ebp - 0x28]
cmp dword [ebp + 0xc], eax
je 0x40ac6d
cmp dword [ebp + 0xc], edi
jne 0x40ac64
cmp eax, 0xb0c50000
je 0x40ac6d
cmp eax, 0xb0c50001
je 0x40ac6d
cmp eax, 0xb0c50002
je 0x40ac6d
cmp eax, 0xb0c50003
je 0x40ac6d
mov dword [ebp - 0x2c], 0x8007000d
jmp 0x40acae
cmp dword [ebp + 0x10], edi
je 0x40ac8f
mov esi, dword [ebp + 0x10]
push 0x10
pop ecx
lea edi, [ebp - 0x24]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40ac86
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40ac64
mov esi, dword [ebp - 0x34]
xor edi, edi
cmp esi, edi
je 0x40aca6
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x40aca1
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
jmp 0x40aca6
cmp eax, dword [ebp - 0x14]
jne 0x40ac64
mov eax, dword [ebp - 0x38]
mov dword [eax], ebx
or ebx, 0xffffffff
cmp ebx, 0xffffffff
je 0x40acba
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418bf8
leave
ret 0xc
Function at 0x40acce
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x428050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x10]
push esi
push edi
xor esi, esi
mov dword [ebp - 0x30], esi
push dword [eax + 0xc]
push dword [eax + 8]
push dword [ebx]
call fcn.00409d93
mov dword [ebp - 0x2c], eax
cmp eax, esi
jl 0x40ae11
push esi
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40ad46
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
cmp eax, esi
jle 0x40ad31
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], esi
jl 0x40ae11
mov dword [ebp - 0x2c], 0x80004005
jmp 0x40ae11
cmp dword [ebp - 0x30], 0x24
je 0x40ad58
mov dword [ebp - 0x2c], 0x8007001e
jmp 0x40ae11
push dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov dword [ebp - 0x34], edi
cmp edi, esi
jne 0x40ad7e
mov dword [ebp - 0x2c], 0x8007000e
jmp 0x40ae11
push 9
pop ecx
lea esi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
push 0x24
xor edi, edi
pop esi
mov dword [ebp - 0x30], edi
push edi
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x10]
sub eax, esi
push eax
mov eax, dword [ebp - 0x34]
add eax, esi
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40adc1
add esi, dword [ebp - 0x30]
cmp dword [ebp - 0x30], edi
jne 0x40ad8e
cmp esi, dword [ebp - 0x10]
je 0x40ade9
mov dword [ebp - 0x2c], 0x8007001e
jmp 0x40adf2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2c], eax
cmp eax, edi
jle 0x40addb
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], edi
jl 0x40adf2
mov dword [ebp - 0x2c], 0x80004005
jmp 0x40adf2
mov eax, dword [ebp - 0x34]
mov dword [ebx + 0x14], eax
mov dword [ebp - 0x34], edi
cmp dword [ebp - 0x34], edi
je 0x40ae11
push dword [ebp - 0x34]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x40ae11
call fcn.00409c65
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
pop edi
xor ecx, ebp
pop esi
call fcn.00418bf8
leave
ret
Function at 0x40b6c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x428050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push 6
pop ebx
mov edi, 0x94
push edi
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], ebx
call fcn.0041d610
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor edi, edi
inc edi
test eax, eax
je 0x40b75e
mov ecx, dword [ebp - 0x94]
mov eax, dword [ebp - 0x90]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], eax
cmp ecx, ebx
jne 0x40b74f
test eax, eax
jne 0x40b729
mov dword [esi], edi
jmp 0x40b75e
cmp eax, edi
jne 0x40b735
mov dword [esi], 2
jmp 0x40b75e
cmp eax, 2
jne 0x40b742
mov dword [esi], 3
jmp 0x40b75e
cmp eax, 3
jne 0x40b75e
mov dword [esi], 4
jmp 0x40b75e
cmp ecx, 0xa
jne 0x40b75e
test eax, eax
jne 0x40b75e
mov dword [esi], 5
push 0x405110
xor ebx, ebx
push 0x405120
mov dword [ebp - 0x9c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x429f78], eax
test eax, eax
je 0x40b7b4
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [0x429f78]
test eax, eax
jne 0x40b7b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40b7b2
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
mov eax, dword [ebp - 0x9c]
mov dword [esi + 4], eax
test ebx, ebx
jne 0x40b7cd
xor ecx, ecx
test eax, eax
sete cl
mov dword [esi + 8], ecx
jmp 0x40b7d3
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, esi
pop ebx
call fcn.00418bf8
leave
ret

Function at 0x40e541
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x40e549
mov dword [ecx*4 + 0x42b340], eax
inc ecx
cmp ecx, 0x100
jb 0x40e544
pop esi
ret
Function at 0x41606b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
sub esp, 0xc
xor eax, eax
and edx, 7
cmp ecx, 5
jb 0x4161bd
add dword [ebp + 0xc], 5
or dword [ebp - 4], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 8], ecx
lea edi, [eax + esi]
jmp 0x4160a7
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x4160ac
inc edi
cmp edi, dword [ebp - 8]
jb 0x41609e
mov eax, edi
sub eax, esi
cmp edi, dword [ebp - 8]
jae 0x41619d
mov ecx, eax
sub ecx, dword [ebp - 4]
cmp ecx, 3
jbe 0x416130
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp - 4], eax
test cl, cl
je 0x4160d8
cmp cl, 0xff
jne 0x41615f
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
sub esi, eax
sub esi, dword [ebp + 0xc]
mov ebx, esi
mov dword [ebp - 0xc], ebx
test edx, edx
je 0x416170
movzx esi, byte [edx + 0x404e80]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
shr ebx, cl
mov cl, bl
test cl, cl
je 0x416120
cmp cl, 0xff
jne 0x41616d
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, dword [ebp - 0xc]
jmp 0x4160f6
dec ecx
shl edx, cl
and edx, 7
je 0x4160c5
movzx ecx, byte [edx + 0x404e80]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x404e78], 0
mov cl, byte [ebx + 4]
je 0x41615c
test cl, cl
je 0x41615c
cmp cl, 0xff
jne 0x4160c5
mov dword [ebp - 4], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x416099
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x416099
mov esi, eax
sub esi, dword [ebp - 4]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x10]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret 0xc

Function at 0x417b0b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [esi + 4]
xor ebx, ebx
cmp dword [eax], ebx
jne 0x417b25
push ebx
push ebx
push eax
call fcn.0041799e
cmp eax, ebx
jne 0x417b7e
push edi
lea edi, [esi + 8]
cmp dword [edi], ebx
jne 0x417b39
push ebx
push ebx
push edi
call fcn.0041799e
cmp eax, ebx
jne 0x417b7d
lea eax, [esi + 4]
call fcn.00417ab0
mov eax, edi
call fcn.00417ab0
mov byte [esi + 0x10], bl
cmp dword [esi + 0xc], ebx
je 0x417b54
xor eax, eax
jmp 0x417b7d
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 0x417acb
push ebx
push ebx
call fcn.00422df7
add esp, 0x18
mov dword [esi + 0xc], eax
cmp eax, ebx
jne 0x417b50
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x417b7d
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret

Function at 0x418bf8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x428050]
jne 0x418c02
repz ret
jmp fcn.0041a65a
Function at 0x41cffb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x428050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00419e8f
and dword [ebp - 0x14], 0
cmp dword [0x429e90], 0
mov dword [ebp - 0x18], eax
jne 0x41d0ae
push 0x401fa0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41d156
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401f94
push ebx
call edi
test eax, eax
je 0x41d156
mov esi, dword [fcn.004028b4]
push eax
call esi
push 0x401f84
push ebx
mov dword [0x429e90], eax
call edi
push eax
call esi
push 0x401f70
push ebx
mov dword [0x429e94], eax
call edi
push eax
call esi
push 0x401f54
push ebx
mov dword [0x429e98], eax
call edi
push eax
call esi
mov dword [0x429ea0], eax
test eax, eax
je 0x41d0ae
push 0x401f3c
push ebx
call edi
push eax
call esi
mov dword [0x429e9c], eax
mov eax, dword [0x429e9c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.004028b0]
cmp eax, ecx
je 0x41d107
cmp dword [0x429ea0], ecx
je 0x41d107
push eax
call esi
push dword [0x429ea0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41d107
test ebx, ebx
je 0x41d107
call edi
test eax, eax
je 0x41d0fe
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41d0fe
test byte [ebp - 8], 1
jne 0x41d107
or dword [ebp + 0x10], 0x200000
jmp 0x41d13a
mov eax, dword [0x429e94]
cmp eax, dword [ebp - 0x18]
je 0x41d13a
push eax
call esi
test eax, eax
je 0x41d13a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41d13a
mov eax, dword [0x429e98]
cmp eax, dword [ebp - 0x18]
je 0x41d13a
push eax
call esi
test eax, eax
je 0x41d13a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x429e90]
call esi
test eax, eax
je 0x41d156
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41d158
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00418bf8
leave
ret

Function at 0x4232b0
Capabilities:
Hash data using sha256

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
pop ebp
ret 4