joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ffb0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ba2b0
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x631490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x2d], 0
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x48], ebx
jne 0x4501a3
lea eax, [edi + 0x4c]
push eax
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [ebp + 0x14]
mov eax, 2
mov word [ebp - 0x44], ax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp + 0x10]
mov word [ebp - 0x42], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0x10
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x44]
push eax
push 0
push dword [ebp + 0xc]
push ebx
push dword [edi + 0x28]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x45019a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x450092
xor esi, esi
jmp 0x450050
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x10
lea eax, [ebp - 0x44]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 0x48]
push dword [edi + 0x28]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x45019a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x450092
inc esi
cmp esi, 0xa
jl 0x450050
jmp 0x45019a
push 0
push 0x602705
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00404c00
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x7c]
mov edx, ebx
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x2c], 1
call fcn.004057e0
push eax
mov edx, str.sendto_error:
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00405a70
mov esi, eax
add esp, 4
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x45012e
cmp dword [ebp - 0x14], 0x10
jb 0x450113
push dword [ebp - 0x28]
call fcn.00450388
add esp, 4
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004045c0
cmp dword [ebp - 0x50], 0x10
jb 0x45013f
push dword [ebp - 0x64]
call fcn.00450388
add esp, 4
mov byte [ebp - 4], 0
cmp dword [ebp - 0x68], 0x10
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
jb 0x450166
push dword [ebp - 0x7c]
call fcn.00450388
add esp, 4
cmp byte [edi + 0x2d], 0
jne 0x450189
cmp dword [edi + 0xc], 0
je 0x450189
sub esp, 0x24
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.004066e0
mov eax, dword [edi + 0xc]
push edi
call eax
add esp, 0x28
cmp dword [ebp - 0x14], 0x10
jb 0x45019a
push dword [ebp - 0x28]
call fcn.00450388
add esp, 4
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00578263
mov esp, ebp
pop ebp
ret 0x10
Function at 0x45f778
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x45f7bd
call fcn.0046a155
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x45f7bd
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x45f7d9
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0046a2ee
mov ebx, eax
test edi, edi
je 0x45f7d7
test esi, esi
je 0x45f7d7
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x465b0a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.0046a155
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x465b41
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00465b62
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4e09b3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.004695a8
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4e09ef
call fcn.004e0bd2
mov dword [esi + 0xc], 1
jmp 0x4e09f4
call fcn.004e0bd2
cmp dword [esi], 0
je 0x4e0a3d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4e0a17
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0045f84d
jmp 0x4e0a28
push 0xff
mov ecx, esi
call fcn.0040cf10
push pe_nt_image_headers32
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0045d734
jmp 0x4e0a61
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4e0a61
push dword [esi]
push dword [ebp - 4]
call fcn.0046ccb0
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4e0b27
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004e0bd2
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4e0b6f
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0045f84d
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0045d734
jmp 0x4e0b7a
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0046ccb0
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x54339a
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.00573fb3
call fcn.0046a1a9
cmp dword [eax + 0x14], 0
jne 0x5433b5
mov ecx, esi
pop esi
jmp fcn.005427a0
pop esi
ret

Function at 0x54fb0f
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.004057d0
call fcn.0046a1a9
cmp dword [eax + 0x14], 0
jne 0x54fb2a
mov ecx, esi
pop esi
jmp fcn.0054f3f8
pop esi
ret
Function at 0x5903f5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x631490]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.005829de
mov dword [ebp - 0x14], eax
cmp dword [0x63eca8], esi
jne 0x5904e8
push 0x800
push esi
push 0x5faf50
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x590475
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x5905c8
push esi
push esi
push 0x5faf50
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x5905c8
push 0x5faf68
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5905c8
push eax
call ebx
push 0x5faf74
push edi
mov dword [0x63eca8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5faf84
push edi
mov dword [0x63ecac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x63ecb0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x63ecb8], eax
test eax, eax
je 0x5904e5
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x63ecb4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x59050d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x590500
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x590522
push 4
pop eax
jmp 0x5905ca
cmp dword [ebp - 0x14], esi
je 0x590522
push dword [0x63eca8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x590507
mov eax, dword [0x63ecb4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x590580
cmp dword [0x63ecb8], edi
je 0x590580
push eax
call ebx
push dword [0x63ecb8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x590580
test eax, eax
je 0x590580
call ecx
test eax, eax
je 0x590575
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x590575
test byte [ebp - 8], 1
jne 0x590580
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x5905b0
mov eax, dword [0x63ecac]
cmp eax, edi
je 0x5905ad
push eax
call ebx
test eax, eax
je 0x5905ad
call eax
mov esi, eax
test esi, esi
je 0x5905ad
mov eax, dword [0x63ecb0]
cmp eax, edi
je 0x5905ad
push eax
call ebx
test eax, eax
je 0x5905ad
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x63eca8]
call ebx
test eax, eax
je 0x5905c8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x5905ca
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00578263
mov esp, ebp
pop ebp
ret
Function at 0x5a02b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x401000
Capabilities:
Parse pe header

Disassembly:
mov esi, dword [esp]
and esi, 0xfffff000
sub esi, 0x1000
cmp word [esi], 0x5a4d
jne 0x401009
mov edi, dword [esi + 0x3c]
add edi, esi
cmp word [edi], 0x4550
jne 0x401009
mov dword [section..data], esi
push str.LoadLibraryA
push dword [section..data]
call 0x4010c5
mov dword [0x40300c], eax
push str.GetProcAddress
push dword [section..data]
call 0x4010c5
mov dword [0x403008], eax
push dword [0x403010]
push dword [0x403008]
push dword [0x40300c]
push dword [section..data]
push str.Kernel32.dll
push 0x4030c3
call sub.user32.dll_wsprintfA
add esp, 0x18
push 0
push 0x403065
push 0x4030c3
push 0
call sub.user32.dll_MessageBoxA
lea eax, str.User32.dll
push eax
call dword [0x40300c]
lea edx, str.MessageBoxA
push edx
push eax
call dword [0x403008]
lea edx, [0x403053]
lea ecx, [0x403065]
push 0
push ecx
push edx
push 0
call eax
push 0
call sub.kernel32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ecx
push ebx
push edx
push esi
push edi
mov dword [ebp - 4], 0
mov esi, dword [ebp + 0xc]
mov edx, esi
cmp byte [esi], 0
je 0x4010e4
inc esi
jmp 0x4010dc
inc esi
sub esi, edx
mov dword [ebp - 8], esi
mov esi, dword [ebp + 8]
add esi, dword [esi + 0x3c]
mov esi, dword [esi + 0x78]
add esi, dword [ebp + 8]
mov ebx, dword [esi + 0x20]
add ebx, dword [ebp + 8]
xor edx, edx
push esi
mov edi, dword [ebx]
add edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
cld
repe cmpsb byte [esi], byte es:[edi]
jne 0x401112
pop esi
jmp 0x40111e
pop esi
add ebx, 4
inc edx
cmp edx, dword [esi + 0x18]
jb 0x4010fe
jmp 0x401140
sub ebx, dword [esi + 0x20]
sub ebx, dword [ebp + 8]
shr ebx, 1
add ebx, dword [esi + 0x24]
add ebx, dword [ebp + 8]
movzx eax, word [ebx]
shl eax, 2
add eax, dword [esi + 0x1c]
add eax, dword [ebp + 8]
mov eax, dword [eax]
add eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop edx
pop ebx
pop ecx
leave
ret 8
Function at 0x4010c5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov esi, dword [esp]
and esi, 0xfffff000
sub esi, 0x1000
cmp word [esi], 0x5a4d
jne 0x401009
mov edi, dword [esi + 0x3c]
add edi, esi
cmp word [edi], 0x4550
jne 0x401009
mov dword [section..data], esi
push str.LoadLibraryA
push dword [section..data]
call 0x4010c5
mov dword [0x40300c], eax
push str.GetProcAddress
push dword [section..data]
call 0x4010c5
mov dword [0x403008], eax
push dword [0x403010]
push dword [0x403008]
push dword [0x40300c]
push dword [section..data]
push str.Kernel32.dll
push 0x4030c3
call sub.user32.dll_wsprintfA
add esp, 0x18
push 0
push 0x403065
push 0x4030c3
push 0
call sub.user32.dll_MessageBoxA
lea eax, str.User32.dll
push eax
call dword [0x40300c]
lea edx, str.MessageBoxA
push edx
push eax
call dword [0x403008]
lea edx, [0x403053]
lea ecx, [0x403065]
push 0
push ecx
push edx
push 0
call eax
push 0
call sub.kernel32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ecx
push ebx
push edx
push esi
push edi
mov dword [ebp - 4], 0
mov esi, dword [ebp + 0xc]
mov edx, esi
cmp byte [esi], 0
je 0x4010e4
inc esi
jmp 0x4010dc
inc esi
sub esi, edx
mov dword [ebp - 8], esi
mov esi, dword [ebp + 8]
add esi, dword [esi + 0x3c]
mov esi, dword [esi + 0x78]
add esi, dword [ebp + 8]
mov ebx, dword [esi + 0x20]
add ebx, dword [ebp + 8]
xor edx, edx
push esi
mov edi, dword [ebx]
add edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
cld
repe cmpsb byte [esi], byte es:[edi]
jne 0x401112
pop esi
jmp 0x40111e
pop esi
add ebx, 4
inc edx
cmp edx, dword [esi + 0x18]
jb 0x4010fe
jmp 0x401140
sub ebx, dword [esi + 0x20]
sub ebx, dword [ebp + 8]
shr ebx, 1
add ebx, dword [esi + 0x24]
add ebx, dword [ebp + 8]
movzx eax, word [ebx]
shl eax, 2
add eax, dword [esi + 0x1c]
add eax, dword [ebp + 8]
mov eax, dword [eax]
add eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop edx
pop ebx
pop ecx
leave
ret 8
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
nop
nop
nop
nop
mov ebx, 0x40c7d0
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x2f2c421d
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x432060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4320d2
mov ebx, 0x42f314
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x359738ac
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4320c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x9dccd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x9dcd1c
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x9dcce2
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x9dcd80
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9dcdd2
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x9dcdd8
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret

Function at 0x9f52c5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009f4f85

Function at 0x9fa0bf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.009f9f3e

Function at 0x9ff670
Capabilities:
Parse pe header

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

Function at 0x40894d
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x4085d8
mov eax, 0x98d17cbc
or edx, edx
call fcn.00408972
or edx, eax
xor dword [esi], edi
sub edx, eax
inc esi
cmp esi, ecx
jne fcn.0040894d
ret
Function at 0x415aeb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041595c

Function at 0x415ee5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408ca0
mov eax, dword [0x502600]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00413aee
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x415f27
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x416083
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041e990
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x504ba0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00416c84
mov ecx, dword [esi*4 + 0x504ba0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41607c
cmp eax, dword [edi + ecx + 0x24]
jne 0x41607c
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41607c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00416c84
add esp, 0x14
test edx, edx
jl 0x41607c
jg 0x415ff2
test eax, eax
jb 0x41607c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41607c
jl 0x41600c
cmp dword [ebp - 0x1008], eax
ja 0x41607c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41602a
test ebx, ebx
je 0x416063
cmp ecx, edi
jae 0x416063
mov al, byte [ecx]
cmp al, 0xd
jne 0x416044
lea eax, [edi - 1]
cmp ecx, eax
jae 0x416050
cmp byte [ecx + 1], 0xa
jne 0x416050
inc ecx
jmp 0x416050
movzx eax, al
movsx eax, byte [eax + 0x5028d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41602a
cmp edx, ebx
jne 0x41602a
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x416081
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004080c7
leave
ret
Function at 0x416122
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x504ba0]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x416162
cmp byte [ebx], 0xa
jne 0x416162
or byte [eax + edi + 0x28], 4
jmp 0x416167
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x416265
mov al, byte [edx]
cmp al, 0x1a
je 0x416247
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x416196
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4161bb
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4161c5
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x416178
jmp 0x416265
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x416242
cmp dword [ebp - 0xc], 0
je 0x416242
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x504ba0]
test byte [eax + edi + 0x28], 0x48
je 0x41621c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x416207
mov byte [esi], dl
jmp 0x416218
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x504ba0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x416265
cmp byte [ebp - 1], 0xa
jne 0x41622b
cmp esi, ebx
jne 0x41622b
mov byte [esi], 0xa
jmp 0x416264
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00416ca2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x416265
mov byte [esi], 0xd
jmp 0x416264
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x504ba0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x416261
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x416265
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret