joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b66
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 8]
push esi
test ecx, ecx
je 0x401b98
test dl, 3
je 0x401b95
movzx eax, byte [edx]
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x44bf40]
inc edx
sub ecx, 1
jne 0x401b78
mov dword [ebp - 4], edx
push edi
lea edi, [edx + ecx]
mov eax, edi
mov dword [ebp + 8], eax
cmp ecx, 0xc
jb 0x401c6c
sub edi, 0xc
xor ebx, dword [edx]
mov edx, dword [edx + 4]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov esi, dword [ecx*4 + 0x44d340]
xor esi, dword [eax*4 + 0x44d740]
mov eax, edx
shr eax, 0x18
xor esi, dword [eax*4 + 0x44cf40]
movzx eax, dl
mov edx, dword [ebp - 4]
xor esi, dword [eax*4 + 0x44db40]
mov edx, dword [edx + 8]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x44c340]
xor ecx, dword [eax*4 + 0x44c740]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x44e340]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x44e740]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x44bf40]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x44df40]
movzx eax, bl
xor ecx, dword [eax*4 + 0x44eb40]
movzx eax, dl
mov edx, dword [ebp - 4]
add edx, 0xc
mov dword [ebp - 4], edx
xor ecx, dword [eax*4 + 0x44cb40]
xor ecx, esi
mov ebx, ecx
cmp edx, edi
jbe 0x401bad
mov eax, dword [ebp + 8]
xor edi, edi
mov ecx, eax
sub ecx, edx
xor esi, esi
cmp edx, eax
cmova ecx, edi
pop edi
test ecx, ecx
je 0x401c96
movzx eax, byte [edx]
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [eax*4 + 0x44bf40]
inc edx
inc esi
cmp esi, ecx
jb 0x401c7e
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401ca0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
shr edi, 2
xor ebx, ebx
mov eax, edi
mov dword [ebp - 4], 1
shr eax, 1
mov ecx, ebx
add eax, 3
mov dword [esi], eax
add esi, 0x10
test edi, edi
je 0x401cd7
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x401cca
mov edx, dword [esi + edi*4 - 4]
imul eax, edi, 0xc
add eax, 0x70
add eax, esi
mov dword [ebp + 8], eax
test ebx, ebx
jne 0x401d45
movzx eax, dl
mov ebx, dword [ebp - 4]
push 0x1b
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
xor edx, ebx
add ebx, ebx
or edx, ecx
test ebx, 0x100
pop eax
cmovne ebx, eax
mov dword [ebp - 4], ebx
mov ebx, edi
jmp 0x401d92
cmp ebx, 4
jne 0x401d95
cmp edi, 6
jbe 0x401d95
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
or edx, ecx
mov eax, dword [ebp + 8]
xor edx, dword [esi]
dec ebx
mov dword [esi + edi*4], edx
add esi, 4
cmp esi, eax
jne 0x401ce6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x402ccc
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x44a008]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x402d15
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402d15
push 0xc00
call eax
test eax, eax
jne 0x402db0
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402db0
cmp eax, 0x104
ja 0x402db0
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x402d4c
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x402daf
push ebx
push edi
lea edi, [ebp - 0x2d4]
push 0x6c
lea edi, [edi + eax*2]
pop ebx
mov ecx, edi
jmp 0x402d76
movzx eax, al
mov word [ecx], ax
add ecx, 2
mov al, byte [esi]
inc esi
test al, al
jne 0x402d6d
push 0x2e
pop eax
push 0x64
mov word [ecx], ax
pop eax
mov word [ecx + 2], ax
xor eax, eax
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov word [ecx + 4], bx
mov word [ecx + 6], bx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp byte [esi], 0
jne 0x402d69
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d1d0
mov esp, ebp
pop ebp
ret
Function at 0x407085
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
xor edx, edx
xor eax, eax
push ebx
push esi
mov esi, ecx
inc eax
push edi
push 0x20
pop ecx
or dword [esi + 0x90], 0xffffffff
or dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [ebp - 4], esi
cmova eax, ecx
mov dword [esi + 0x78], edx
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x7c], edx
mov dword [esi + 0x34], edx
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], edx
mov dword [esi + 0x40], edx
mov dword [esi + 0x70], edx
mov dword [esi + 0x88], edx
mov dword [esi + 0x68], edx
mov dword [esi + 0x6c], edx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], edx
mov dword [esi + 0x60], edx
mov dword [esi + 0x64], edx
mov dword [esi + 0x80], edx
mov dword [esi + 0x84], edx
mov dword [esi + 0x58], edx
cmp eax, dword [esi + 0x20]
je 0x407135
lea edi, [esi + 0xc8]
mov ebx, ecx
cmp dword [edi + 8], edx
je 0x407114
mov ecx, edi
call fcn.00406187
xor edx, edx
add edi, 0x28
sub ebx, 1
jne 0x407106
cmp dword [esi + 0x5c], ebx
je 0x407130
mov eax, dword [esi + 0x14]
push dword [esi + 0x5c]
push eax
call dword [eax + 4]
xor edx, edx
mov dword [esi + 0x5c], edx
mov eax, dword [esi]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], edx
mov dword [esi + 0xa0], edx
mov dword [esi + 0xa4], edx
mov dword [esi + 0xa8], edx
mov dword [esi + 0xac], edx
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], edx
lea eax, [ecx + 5]
imul ebx, eax, 0x28
lea eax, [ecx + 1]
mov dword [esi + 0x58], eax
add ebx, esi
mov ecx, ebx
call fcn.0040616a
mov edi, eax
test edi, edi
jne 0x4071c7
lea ecx, [ebx + 0x20]
call fcn.004077bd
mov edi, eax
test edi, edi
jne 0x4071c7
lea ecx, [ebx + 0x1c]
call fcn.004077bd
mov edi, eax
test edi, edi
jne 0x4071c7
push ebx
call fcn.00406e38
mov edi, eax
test edi, edi
je 0x4071c7
and dword [esi + 0x44], 0
lea ebx, [esi + 0xc8]
push 0x20
pop esi
mov ecx, ebx
call fcn.004061ab
add ebx, 0x28
sub esi, 1
jne 0x4071b5
mov esi, dword [ebp - 4]
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
test eax, eax
je 0x4071db
mov dword [esi + 0x40], eax
xor edx, edx
cmp dword [esi + 0x38], edx
jne 0x4071ef
cmp dword [esi + 0x40], edx
jne 0x4071ef
cmp dword [esi + 0x3c], edx
jne 0x4071ef
mov dword [esi + 0x44], edx
xor ecx, ecx
cmp dword [esi + 0x44], edx
pop edi
pop esi
cmovne eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4071fe
Capabilities:
Hash data using sha256

Disassembly:
and dword [ecx + 8], 0
and dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
ret

Function at 0x40723f
Capabilities:
Hash data using sha256

Disassembly:
mov dword [ecx], 0x40724a
jmp fcn.004071fe
Function at 0x4076d0
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
push 0x38
pop eax
mov esi, dword [edi + 8]
and esi, 0x3f
mov byte [esi + edi + 0x40], 0x80
inc esi
cmp esi, eax
jbe 0x407713
push 0x40
pop ecx
cmp esi, ecx
je 0x407704
sub ecx, esi
lea eax, [edi + 0x40]
push ecx
add eax, esi
push 0
push eax
call fcn.0042e6e0
add esp, 0xc
push 1
lea edx, [edi + 0x40]
lea ecx, [edi + 0x20]
call dword [edi]
push 0x38
xor esi, esi
pop eax
sub eax, esi
push eax
lea eax, [edi + 0x40]
add eax, esi
push 0
push eax
call fcn.0042e6e0
mov ecx, dword [edi + 8]
lea esi, [edi + 0x20]
mov eax, dword [edi + 0xc]
lea edx, [edi + 0x40]
shld eax, ecx, 3
add esp, 0xc
shl ecx, 3
bswap ecx
bswap eax
mov dword [edi + 0x7c], ecx
mov ecx, esi
push 1
mov dword [edi + 0x78], eax
call dword [edi]
push 4
pop edx
mov ecx, dword [esi + 4]
mov eax, dword [esi]
lea esi, [esi + 8]
bswap eax
mov dword [ebx], eax
lea ebx, [ebx + 8]
bswap ecx
mov dword [ebx - 4], ecx
sub edx, 1
jne 0x40774c
mov ecx, edi
pop edi
pop esi
pop ebx
jmp fcn.004071fe

Function at 0x4095da
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x44ef41], 0
push esi
mov esi, edx
jne 0x409612
mov edx, ecx
lea ecx, [ebp - 0xc]
call fcn.004086eb
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042d1e1
pop ecx
test esi, esi
je 0x40961e
mov al, 1
jmp 0x409620
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jmp 0x40960c
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x409625
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x44ef41], 0
jne 0x40965b
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.004086eb
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042d1e1
pop ecx
test esi, esi
pop esi
je 0x409666
mov al, 1
jmp 0x409668
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jmp 0x409655
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40966c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x44ef41], 0
jne 0x4096a4
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.004086eb
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042d1e1
pop ecx
test esi, esi
pop esi
je 0x4096b1
mov al, 1
jmp 0x4096b3
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x40969e
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x4096b7
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0x43b6ab
call fcn.0043a989
mov edi, ecx
cmp byte [0x44ef41], 0
jne 0x4096f6
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.004086eb
xor ebx, ebx
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.0042d1e1
pop ecx
test esi, esi
je 0x409704
mov al, 1
jmp 0x40974a
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jmp 0x4096f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x409715
xor al, al
jmp 0x40974a
lea ecx, [ebp - 0x50]
call fcn.0040a010
lea ecx, [ebp - 0x28]
call fcn.00408141
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.0040a3d6
test al, al
je 0x40973f
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.0042d1e1
pop ecx
mov al, bl
call fcn.0043a952
ret

Function at 0x4098b3
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.0040a38f
cmp eax, 0xffffffff
je 0x4098e0
mov edx, eax
and dl, 0x11
cmp dl, 1
jne 0x4098e0
and eax, 0xfffffffe
mov ecx, esi
mov edx, eax
call fcn.004095da
test al, al
je 0x409919
cmp byte [0x44ef41], 0
jne 0x40990e
mov edx, esi
lea ecx, [ebp - 0xc]
call fcn.004086eb
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042d1e1
pop ecx
test esi, esi
je 0x409919
mov al, 1
jmp 0x40991b
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jmp 0x409908
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x409afe
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x44ef41], 0
jne 0x409b33
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.004086eb
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042d1e1
test esi, esi
pop ecx
setne al
pop esi
jmp 0x409b40
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret

Function at 0x40a38f
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x44ef41], 0
jne 0x40a3c1
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.004086eb
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.0042d1e1
pop ecx
mov eax, esi
pop esi
jmp 0x40a3d2
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x40aa19
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40aa43
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40aa43
xor al, al
jmp 0x40aa57
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40d927
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
lea eax, [esp + 8]
push ebx
push esi
push edi
push eax
lea eax, [esp + 0x14]
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
xor ebx, ebx
test eax, eax
je 0x40d96f
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40d96f
push 0x20
mov edx, ebx
pop edi
mov eax, ecx
shr ecx, 1
and eax, 1
add edx, eax
sub edi, 1
jne 0x40d95f
jmp 0x40d97e
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [esp + 0x30]
mov eax, 0x40000000
mov dword [esi], edx
lea ecx, [esp + 0x10]
mov dword [esi + 4], edx
mov byte [esi + 8], bl
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ebx
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
call fcn.0040b66b
mov byte [esi + 9], al
test al, al
je 0x40d9fb
mov edi, dword [esp + 0x14]
mov eax, 0x70000000
mov ebx, dword [esp + 0x10]
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], edi
test edi, edi
jne 0x40d9d0
cmp ebx, eax
jbe 0x40d9d4
mov ebx, eax
xor edi, edi
push ecx
push ecx
push edi
push ebx
call fcn.0040d8d6
shrd ebx, edi, 5
push 0
push 0x11
shr edi, 5
push edi
push ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
call fcn.0043ac60
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411c0a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov esi, ecx
xor ebx, ebx
push dword [ebp + 8]
mov byte [eax], bl
lea ecx, [esi - 4]
call fcn.00411886
mov edi, ebx
cmp dword [esi + 0x78], ebx
jbe 0x411c9e
cmp edi, dword [esi + 0x60]
je 0x411c98
mov eax, dword [esi + 0x74]
mov eax, dword [eax + edi*4]
mov dword [ebp + 0xc], eax
lea ecx, [eax + 4]
call fcn.00407856
mov ecx, eax
test ecx, ecx
jne 0x411d16
mov ecx, dword [ebp + 0xc]
add ecx, 8
call fcn.00407856
mov ecx, eax
test ecx, ecx
jne 0x411d16
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x10], bl
cmp dword [eax + 0xc], ebx
jne 0x411c98
lea ecx, [ebp + 8]
push ecx
push ebx
push eax
push 0x413928
push ebx
push ebx
call fcn.00432fe5
mov ecx, dword [ebp + 0xc]
add esp, 0x18
mov dword [ecx + 0xc], eax
test eax, eax
jne 0x411c98
call fcn.0040776f
mov ecx, eax
test ecx, ecx
jne 0x411d16
inc edi
cmp edi, dword [esi + 0x78]
jb 0x411c2e
mov edi, ebx
cmp dword [esi + 0x78], ebx
jbe 0x411cc7
cmp edi, dword [esi + 0x60]
je 0x411cc1
mov eax, dword [esi + 0x74]
mov ecx, dword [eax + edi*4]
mov byte [ecx + 0x10], bl
add ecx, 4
call fcn.004077bd
mov ecx, eax
test ecx, ecx
jne 0x411d16
inc edi
cmp edi, dword [esi + 0x78]
jb 0x411ca5
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x74]
push dword [ebp + 0x10]
mov ecx, dword [ecx + eax*4]
call fcn.004114a1
mov edi, ebx
cmp dword [esi + 0x78], ebx
jbe 0x411d28
cmp ebx, dword [esi + 0x60]
je 0x411cf7
mov eax, dword [esi + 0x74]
mov ecx, dword [eax + ebx*4]
mov ecx, dword [ecx + 8]
call fcn.004077a1
test edi, edi
cmove edi, eax
inc ebx
cmp ebx, dword [esi + 0x78]
jb 0x411cdf
push 0
pop ebx
test edi, edi
je 0x411d28
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
jmp 0x411dd2
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x411dd2
push 0x80004004
lea ecx, [esi - 4]
call fcn.00411bda
test eax, eax
jne 0x411dd2
push 0x8007000e
lea ecx, [esi - 4]
call fcn.00411bda
test eax, eax
jne 0x411dd2
mov edi, dword [esi + 0x78]
mov ecx, ebx
test edi, edi
je 0x411d82
mov edx, dword [esi + 0x74]
mov eax, dword [edx]
mov eax, dword [eax + 0x6c]
test eax, eax
je 0x411d7a
cmp eax, 0x20000010
je 0x411d7a
cmp eax, 1
je 0x411d7a
cmp eax, 0x80004005
jne 0x411dd2
inc ecx
add edx, 4
cmp ecx, edi
jb 0x411d5e
push 1
lea ecx, [esi - 4]
call fcn.00411bda
test eax, eax
jne 0x411dd2
mov ecx, ebx
test edi, edi
je 0x411dd0
mov edx, dword [esi + 0x74]
mov eax, dword [edx]
mov eax, dword [eax + 0x6c]
test eax, eax
je 0x411da9
cmp eax, 0x20000010
jne 0x411dd2
inc ecx
add edx, 4
cmp ecx, edi
jb 0x411d99
test edi, edi
je 0x411dd0
mov eax, dword [esi + 0x74]
push dword [ebp + 0x14]
mov ecx, dword [eax + ebx*4]
add ecx, 0x18
call fcn.00410fff
test eax, eax
jne 0x411dd2
inc ebx
cmp ebx, dword [esi + 0x78]
jb 0x411db5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x419163
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43c172
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x44a008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 0xcc]
call fcn.0042d1e1
push dword [esi + 0xc0]
call fcn.0042d1e1
push dword [esi + 0x9c]
call fcn.0042d1e1
push dword [esi + 0x90]
call fcn.0042d1e1
push dword [esi + 0x30]
call fcn.0042d1e1
push dword [esi + 0x24]
call fcn.0042d1e1
push dword [esi + 0x18]
call fcn.0042d1e1
add esp, 0x1c
and dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4191e0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 1
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4191f4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 2
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x419208
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 3
mov ecx, dword [esi]
test ecx, ecx
je 0x41921b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41a4df
Capabilities:
Hide graphical window

Disassembly:
push 0xc
mov eax, 0x43b80d
call fcn.0043a989
mov edi, ecx
push dword [ebp + 8]
lea ecx, [edi + 0x74]
call fcn.00408287
push ecx
push 0x61
lea ecx, [edi + 0x68]
call fcn.004092fe
mov esi, dword [ebp + 0xc]
mov ecx, dword [esi]
call fcn.004077a1
mov ecx, esi
call fcn.00407780
mov edx, 0xce4
lea ecx, [ebp - 0x18]
call fcn.00419618
and dword [ebp - 4], 0
lea ecx, [edi + 0x6c]
push dword [eax]
call fcn.004196e9
push dword [ebp - 0x18]
call fcn.0042d1e1
pop ecx
push 1
push dword [edi + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
call fcn.0043a952
ret 8
Function at 0x41b45e
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x44a008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor ebx, ebx
mov dword [ebp - 0x214], ecx
lea eax, [ebp - 0x20c]
mov esi, edx
push ebx
push eax
call fcn.0042e6e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41b532
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41b4ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41b501
mov eax, dword [ebp - 0x210]
xor ecx, ecx
add ecx, ebx
mov dword [esi], ecx
adc eax, 0
mov dword [esi + 4], eax
push dword [esi]
and dword [ebp - 0x218], 0
call fcn.0042d31c
pop ecx
mov ecx, dword [ebp - 0x214]
push 0
mov dword [ecx], eax
lea ecx, [ebp - 0x218]
push ecx
push dword [esi]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d1d0
mov esp, ebp
pop ebp
ret
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6a
sub eax, 0x403d10
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x10003af0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov ecx, dword [esp + 0x1c]
cmp ecx, 0
je 0x10003cd5
call fcn.10003b06
Function at 0x100096c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push esi
push edi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
push edi
push esi
push edi
push esi
mov ebx, esp
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
push ecx
mov eax, dword [esp + 0x34]
push eax
push ebx
cmp ecx, 0
je 0x1000979b
and ebp, 0xfffffff8
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
je 0x10009736
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor eax, ecx
xor ebx, edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call fcn.10009300
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov dword [edi], eax
mov dword [edi + 4], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x10009704
mov ebp, dword [esp + 0x38]
and ebp, 7
je 0x10009854
call fcn.10009748
and ebp, 0xfffffff8
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
je 0x100097f3
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call fcn.10009300
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [edi], ecx
mov dword [edi + 4], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
add esi, 8
add edi, 8
sub ebp, 8
jne 0x100097ac
mov ebp, dword [esp + 0x38]
and ebp, 7
je 0x10009854
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebx
call fcn.10009300
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
xor ecx, eax
xor edx, ebx
mov eax, dword [esi]
mov ebx, dword [esi + 4]
ror edx, 0x10
mov byte [edi + 6], dl
shr edx, 0x10
mov byte [edi + 5], dh
mov byte [edi + 4], dl
mov dword [edi], ecx
jmp 0x1000984f
jmp 0x10009854
mov ecx, dword [esp + 0x40]
add esp, 0x1c
mov dword [ecx], eax
mov dword [ecx + 4], ebx
pop edi
pop esi
pop ebx
pop ebp
ret